From c8d575a9082dac43d6ab0d1c7981a5256edaeea2 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Sat, 31 Aug 2024 00:28:33 +0000 Subject: [PATCH 1/6] New updates to generated code --- src/GitHub.Octokit.GHEC.SDK.csproj | 16 +- .../Advisories/AdvisoriesRequestBuilder.cs | 83 +- .../GetDirectionQueryParameterType.cs | 4 +- .../GetSeverityQueryParameterType.cs | 4 +- .../Advisories/GetSortQueryParameterType.cs | 12 +- .../Advisories/GetTypeQueryParameterType.cs | 4 +- .../Item/WithGhsa_ItemRequestBuilder.cs | 30 +- src/GitHub/App/AppRequestBuilder.cs | 38 +- .../App/Hook/Config/ConfigPatchRequestBody.cs | 30 +- .../App/Hook/Config/ConfigRequestBuilder.cs | 38 +- .../Deliveries/DeliveriesRequestBuilder.cs | 49 +- .../Item/Attempts/AttemptsPostResponse.cs | 16 +- .../Item/Attempts/AttemptsRequestBuilder.cs | 34 +- .../Item/WithDelivery_ItemRequestBuilder.cs | 38 +- src/GitHub/App/Hook/HookRequestBuilder.cs | 20 +- .../InstallationRequestsRequestBuilder.cs | 39 +- .../InstallationsRequestBuilder.cs | 41 +- .../Access_tokensPostRequestBody.cs | 28 +- .../Access_tokensRequestBuilder.cs | 46 +- .../Item/Suspended/SuspendedRequestBuilder.cs | 26 +- .../WithInstallation_ItemRequestBuilder.cs | 42 +- .../AppManifestsRequestBuilder.cs | 18 +- .../Conversions/ConversionsRequestBuilder.cs | 34 +- ...versionsPostResponse.cs => Integration.cs} | 15 +- .../Item/WithCodeItemRequestBuilder.cs | 16 +- .../ApplicationsRequestBuilder.cs | 18 +- .../Item/Grant/GrantDeleteRequestBody.cs | 18 +- .../Item/Grant/GrantRequestBuilder.cs | 30 +- .../Token/Scoped/ScopedPostRequestBody.cs | 34 +- .../Item/Token/Scoped/ScopedRequestBuilder.cs | 46 +- .../Item/Token/TokenDeleteRequestBody.cs | 18 +- .../Item/Token/TokenPatchRequestBody.cs | 18 +- .../Item/Token/TokenPostRequestBody.cs | 18 +- .../Item/Token/TokenRequestBuilder.cs | 70 +- .../Item/WithClient_ItemRequestBuilder.cs | 20 +- src/GitHub/Apps/AppsRequestBuilder.cs | 18 +- .../Item/WithApp_slugItemRequestBuilder.cs | 34 +- .../Assignments/AssignmentsRequestBuilder.cs | 18 +- .../Accepted_assignmentsRequestBuilder.cs | 35 +- .../Item/Grades/GradesRequestBuilder.cs | 32 +- .../Item/WithAssignment_ItemRequestBuilder.cs | 38 +- .../Classrooms/ClassroomsRequestBuilder.cs | 41 +- .../Assignments/AssignmentsRequestBuilder.cs | 35 +- .../Item/WithClassroom_ItemRequestBuilder.cs | 34 +- .../Codes_of_conductRequestBuilder.cs | 34 +- .../Item/WithKeyItemRequestBuilder.cs | 30 +- src/GitHub/Emojis/EmojisGetResponse.cs | 16 +- src/GitHub/Emojis/EmojisRequestBuilder.cs | 26 +- .../EnterpriseInstallationRequestBuilder.cs | 18 +- .../ServerStatisticsRequestBuilder.cs | 35 +- ...WithEnterprise_or_orgItemRequestBuilder.cs | 16 +- .../Enterprises/EnterprisesRequestBuilder.cs | 18 +- .../Item/Actions/ActionsRequestBuilder.cs | 32 +- .../Item/Actions/Cache/CacheRequestBuilder.cs | 16 +- .../Cache/Usage/UsageRequestBuilder.cs | 26 +- .../CustomizationRequestBuilder.cs | 16 +- .../Issuer/IssuerRequestBuilder.cs | 26 +- .../Item/Actions/Oidc/OidcRequestBuilder.cs | 16 +- .../Item/WithOrg_ItemRequestBuilder.cs | 18 +- .../Organizations/OrganizationsGetResponse.cs | 26 +- .../OrganizationsPutRequestBody.cs | 18 +- .../OrganizationsRequestBuilder.cs | 47 +- .../Permissions/PermissionsPutRequestBody.cs | 28 +- .../Permissions/PermissionsRequestBuilder.cs | 46 +- .../SelectedActionsRequestBuilder.cs | 34 +- .../Workflow/WorkflowRequestBuilder.cs | 34 +- .../Item/WithOrg_ItemRequestBuilder.cs | 18 +- .../Organizations/OrganizationsGetResponse.cs | 26 +- .../OrganizationsPutRequestBody.cs | 18 +- .../OrganizationsRequestBuilder.cs | 47 +- .../Item/WithRunner_ItemRequestBuilder.cs | 18 +- .../Item/Runners/RunnersGetResponse.cs | 26 +- .../Item/Runners/RunnersPutRequestBody.cs | 18 +- .../Item/Runners/RunnersRequestBuilder.cs | 47 +- .../WithRunner_group_ItemRequestBuilder.cs | 46 +- .../Item/WithRunner_group_PatchRequestBody.cs | 32 +- ...unner_group_PatchRequestBody_visibility.cs | 4 +- .../RunnerGroups/RunnerGroupsGetResponse.cs | 26 +- .../RunnerGroupsPostRequestBody.cs | 34 +- .../RunnerGroupsPostRequestBody_visibility.cs | 4 +- .../RunnerGroupsRequestBuilder.cs | 51 +- .../Downloads/DownloadsRequestBuilder.cs | 28 +- .../GenerateJitconfigPostRequestBody.cs | 24 +- .../GenerateJitconfigPostResponse.cs | 26 +- .../GenerateJitconfigRequestBuilder.cs | 38 +- .../Labels/Item/WithNameDeleteResponse.cs | 26 +- .../Labels/Item/WithNameItemRequestBuilder.cs | 34 +- .../Item/Labels/LabelsDeleteResponse.cs | 26 +- .../Runners/Item/Labels/LabelsGetResponse.cs | 26 +- .../Item/Labels/LabelsPostRequestBody.cs | 18 +- .../Runners/Item/Labels/LabelsPostResponse.cs | 26 +- .../Item/Labels/LabelsPutRequestBody.cs | 18 +- .../Runners/Item/Labels/LabelsPutResponse.cs | 26 +- .../Item/Labels/LabelsRequestBuilder.cs | 92 +- .../Item/WithRunner_ItemRequestBuilder.cs | 30 +- .../RegistrationTokenRequestBuilder.cs | 26 +- .../RemoveToken/RemoveTokenRequestBuilder.cs | 26 +- .../Actions/Runners/RunnersGetResponse.cs | 26 +- .../Actions/Runners/RunnersRequestBuilder.cs | 55 +- .../AnnouncementRequestBuilder.cs | 38 +- .../Item/AuditLog/AuditLogRequestBuilder.cs | 39 +- .../AuditLog/GetIncludeQueryParameterType.cs | 4 +- .../AuditLog/GetOrderQueryParameterType.cs | 4 +- .../Alerts/AlertsRequestBuilder.cs | 49 +- .../Alerts/GetDirectionQueryParameterType.cs | 4 +- .../Alerts/GetSortQueryParameterType.cs | 4 +- .../CodeScanningRequestBuilder.cs | 16 +- ...e_security_and_analysisPatchRequestBody.cs | 28 +- ...ode_security_and_analysisRequestBuilder.cs | 42 +- .../ConsumedLicensesRequestBuilder.cs | 33 +- .../Copilot/Billing/BillingRequestBuilder.cs | 16 +- .../Copilot/Billing/Seats/SeatsGetResponse.cs | 26 +- .../Billing/Seats/SeatsRequestBuilder.cs | 49 +- .../Item/Copilot/CopilotRequestBuilder.cs | 20 +- .../Item/Copilot/Usage/UsageRequestBuilder.cs | 51 +- .../Dependabot/Alerts/AlertsRequestBuilder.cs | 53 +- .../Alerts/GetDirectionQueryParameterType.cs | 4 +- .../Alerts/GetScopeQueryParameterType.cs | 4 +- .../Alerts/GetSortQueryParameterType.cs | 4 +- .../Dependabot/DependabotRequestBuilder.cs | 16 +- .../Item/WithEnablementItemRequestBuilder.cs | 22 +- .../WithSecurity_productItemRequestBuilder.cs | 18 +- .../LicenseSyncStatusRequestBuilder.cs | 26 +- .../Alerts/AlertsRequestBuilder.cs | 49 +- .../Alerts/GetDirectionQueryParameterType.cs | 4 +- .../Alerts/GetSortQueryParameterType.cs | 4 +- .../Alerts/GetStateQueryParameterType.cs | 4 +- .../SecretScanningRequestBuilder.cs | 16 +- .../Billing/Actions/ActionsRequestBuilder.cs | 26 +- .../AdvancedSecurityRequestBuilder.cs | 33 +- .../Settings/Billing/BillingRequestBuilder.cs | 36 +- .../CostCenters/CostCentersRequestBuilder.cs | 48 +- .../Resource/ResourceDeleteRequestBody.cs | 18 +- .../Item/Resource/ResourceDeleteResponse.cs | 18 +- .../Item/Resource/ResourcePostRequestBody.cs | 18 +- .../Item/Resource/ResourcePostResponse.cs | 18 +- .../Item/Resource/ResourceRequestBuilder.cs | 78 +- .../WithCost_center_ItemRequestBuilder.cs | 16 +- .../Packages/PackagesRequestBuilder.cs | 26 +- .../SharedStorageRequestBuilder.cs | 26 +- .../Billing/Usage/UsageRequestBuilder.cs | 49 +- .../Item/Settings/SettingsRequestBuilder.cs | 16 +- .../Item/Copilot/CopilotRequestBuilder.cs | 16 +- .../Item/Copilot/Usage/UsageRequestBuilder.cs | 51 +- .../Item/WithTeam_slugItemRequestBuilder.cs | 16 +- .../Item/Team/TeamRequestBuilder.cs | 18 +- .../Item/WithEnterpriseItemRequestBuilder.cs | 66 +- src/GitHub/Events/EventsRequestBuilder.cs | 43 +- src/GitHub/Feeds/FeedsRequestBuilder.cs | 26 +- src/GitHub/Gists/GistsPostRequestBody.cs | 43 +- .../Gists/GistsPostRequestBody_files.cs | 16 +- src/GitHub/Gists/GistsRequestBuilder.cs | 77 +- .../Item/Comments/CommentsPostRequestBody.cs | 18 +- .../Item/Comments/CommentsRequestBuilder.cs | 69 +- .../Item/WithComment_ItemRequestBuilder.cs | 58 +- .../Item/WithComment_PatchRequestBody.cs | 18 +- .../Item/Commits/CommitsRequestBuilder.cs | 43 +- .../Gists/Item/Forks/ForksRequestBuilder.cs | 63 +- .../Item/Item/WithShaItemRequestBuilder.cs | 38 +- src/GitHub/Gists/Item/Star/Star404Error.cs | 14 +- .../Gists/Item/Star/StarRequestBuilder.cs | 42 +- .../Gists/Item/WithGist_ItemRequestBuilder.cs | 84 +- .../Gists/Item/WithGist_PatchRequestBody.cs | 26 +- .../Item/WithGist_PatchRequestBody_files.cs | 16 +- .../Gists/Public/PublicRequestBuilder.cs | 43 +- .../Gists/Starred/StarredRequestBuilder.cs | 43 +- src/GitHub/GitHubClient.cs | 165 +- .../Gitignore/GitignoreRequestBuilder.cs | 16 +- .../Item/WithNameItemRequestBuilder.cs | 26 +- .../Templates/TemplatesRequestBuilder.cs | 26 +- .../InstallationRequestBuilder.cs | 20 +- .../Repositories/RepositoriesGetResponse.cs | 28 +- .../RepositoriesRequestBuilder.cs | 41 +- .../Installation/Token/TokenRequestBuilder.cs | 18 +- .../Issues/GetDirectionQueryParameterType.cs | 4 +- .../Issues/GetFilterQueryParameterType.cs | 4 +- .../Issues/GetSortQueryParameterType.cs | 4 +- .../Issues/GetStateQueryParameterType.cs | 4 +- src/GitHub/Issues/IssuesRequestBuilder.cs | 51 +- .../Item/WithLicenseItemRequestBuilder.cs | 34 +- src/GitHub/Licenses/LicensesRequestBuilder.cs | 41 +- .../Markdown/MarkdownPostRequestBody.cs | 28 +- .../Markdown/MarkdownPostRequestBody_mode.cs | 4 +- src/GitHub/Markdown/MarkdownRequestBuilder.cs | 30 +- src/GitHub/Markdown/Raw/RawRequestBuilder.cs | 18 +- .../Accounts/AccountsRequestBuilder.cs | 18 +- .../Item/WithAccount_ItemRequestBuilder.cs | 34 +- .../Marketplace_listingRequestBuilder.cs | 24 +- .../Item/Accounts/AccountsRequestBuilder.cs | 51 +- .../GetDirectionQueryParameterType.cs | 4 +- .../Accounts/GetSortQueryParameterType.cs | 4 +- .../Plans/Item/WithPlan_ItemRequestBuilder.cs | 16 +- .../Plans/PlansRequestBuilder.cs | 49 +- .../Accounts/AccountsRequestBuilder.cs | 18 +- .../Item/WithAccount_ItemRequestBuilder.cs | 30 +- .../Item/Accounts/AccountsRequestBuilder.cs | 43 +- .../GetDirectionQueryParameterType.cs | 4 +- .../Accounts/GetSortQueryParameterType.cs | 4 +- .../Plans/Item/WithPlan_ItemRequestBuilder.cs | 16 +- .../Stubbed/Plans/PlansRequestBuilder.cs | 45 +- .../Stubbed/StubbedRequestBuilder.cs | 20 +- src/GitHub/Meta/MetaRequestBuilder.cs | 26 +- src/GitHub/Models/ActionsBillingUsage.cs | 30 +- ...ionsBillingUsage_minutes_used_breakdown.cs | 46 +- src/GitHub/Models/ActionsCacheList.cs | 26 +- .../Models/ActionsCacheList_actions_caches.cs | 30 +- .../Models/ActionsCacheUsageByRepository.cs | 22 +- .../Models/ActionsCacheUsageOrgEnterprise.cs | 20 +- .../ActionsDefaultWorkflowPermissions.cs | 4 +- .../Models/ActionsEnterprisePermissions.cs | 32 +- .../ActionsGetDefaultWorkflowPermissions.cs | 24 +- ...ionsOidcCustomIssuerPolicyForEnterprise.cs | 18 +- .../Models/ActionsOrganizationPermissions.cs | 32 +- src/GitHub/Models/ActionsPublicKey.cs | 28 +- .../Models/ActionsRepositoryPermissions.cs | 26 +- src/GitHub/Models/ActionsSecret.cs | 22 +- .../ActionsSetDefaultWorkflowPermissions.cs | 24 +- src/GitHub/Models/ActionsVariable.cs | 24 +- .../ActionsWorkflowAccessToRepository.cs | 22 +- ...WorkflowAccessToRepository_access_level.cs | 4 +- src/GitHub/Models/Activity.cs | 42 +- src/GitHub/Models/Activity_activity_type.cs | 4 +- src/GitHub/Models/Actor.cs | 28 +- src/GitHub/Models/AddedToProjectIssueEvent.cs | 54 +- .../AddedToProjectIssueEvent_project_card.cs | 28 +- .../AdvancedSecurityActiveCommitters.cs | 32 +- ...ancedSecurityActiveCommittersRepository.cs | 28 +- .../AdvancedSecurityActiveCommittersUser.cs | 22 +- src/GitHub/Models/Alerts503Error.cs | 32 +- src/GitHub/Models/AllowedActions.cs | 4 +- src/GitHub/Models/Analyses503Error.cs | 32 +- src/GitHub/Models/Announcement.cs | 20 +- src/GitHub/Models/AnnouncementBanner.cs | 22 +- src/GitHub/Models/ApiOverview.cs | 60 +- src/GitHub/Models/ApiOverview_domains.cs | 36 +- ...iOverview_domains_artifact_attestations.cs | 73 + .../ApiOverview_ssh_key_fingerprints.cs | 24 +- src/GitHub/Models/AppPermissions.cs | 304 ++-- src/GitHub/Models/AppPermissions_actions.cs | 4 +- .../Models/AppPermissions_administration.cs | 4 +- src/GitHub/Models/AppPermissions_checks.cs | 4 +- .../Models/AppPermissions_codespaces.cs | 4 +- src/GitHub/Models/AppPermissions_contents.cs | 4 +- .../AppPermissions_dependabot_secrets.cs | 4 +- .../Models/AppPermissions_deployments.cs | 4 +- .../Models/AppPermissions_email_addresses.cs | 4 +- .../Models/AppPermissions_environments.cs | 4 +- src/GitHub/Models/AppPermissions_followers.cs | 4 +- .../Models/AppPermissions_git_ssh_keys.cs | 4 +- src/GitHub/Models/AppPermissions_gpg_keys.cs | 4 +- .../AppPermissions_interaction_limits.cs | 4 +- src/GitHub/Models/AppPermissions_issues.cs | 4 +- src/GitHub/Models/AppPermissions_members.cs | 4 +- src/GitHub/Models/AppPermissions_metadata.cs | 4 +- ...Permissions_organization_administration.cs | 4 +- ...sions_organization_announcement_banners.cs | 4 +- ...ns_organization_copilot_seat_management.cs | 4 +- ...rmissions_organization_custom_org_roles.cs | 4 +- ...missions_organization_custom_properties.cs | 4 +- ...ppPermissions_organization_custom_roles.cs | 4 +- .../AppPermissions_organization_events.cs | 4 +- .../AppPermissions_organization_hooks.cs | 4 +- .../AppPermissions_organization_packages.cs | 4 +- ...nization_personal_access_token_requests.cs | 4 +- ...ons_organization_personal_access_tokens.cs | 4 +- .../AppPermissions_organization_plan.cs | 4 +- .../AppPermissions_organization_projects.cs | 4 +- .../AppPermissions_organization_secrets.cs | 4 +- ...ssions_organization_self_hosted_runners.cs | 4 +- ...pPermissions_organization_user_blocking.cs | 4 +- src/GitHub/Models/AppPermissions_packages.cs | 4 +- src/GitHub/Models/AppPermissions_pages.cs | 4 +- src/GitHub/Models/AppPermissions_profile.cs | 4 +- .../Models/AppPermissions_pull_requests.cs | 4 +- ...ermissions_repository_custom_properties.cs | 4 +- .../Models/AppPermissions_repository_hooks.cs | 4 +- .../AppPermissions_repository_projects.cs | 4 +- .../AppPermissions_secret_scanning_alerts.cs | 4 +- src/GitHub/Models/AppPermissions_secrets.cs | 4 +- .../Models/AppPermissions_security_events.cs | 4 +- .../Models/AppPermissions_single_file.cs | 4 +- src/GitHub/Models/AppPermissions_starring.cs | 4 +- src/GitHub/Models/AppPermissions_statuses.cs | 4 +- .../Models/AppPermissions_team_discussions.cs | 4 +- .../AppPermissions_vulnerability_alerts.cs | 4 +- src/GitHub/Models/AppPermissions_workflows.cs | 4 +- src/GitHub/Models/Artifact.cs | 44 +- src/GitHub/Models/Artifact_workflow_run.cs | 26 +- src/GitHub/Models/AssignedIssueEvent.cs | 62 +- src/GitHub/Models/AuditLogEvent.cs | 138 +- .../Models/AuditLogEvent_actor_location.cs | 18 +- src/GitHub/Models/AuditLogEvent_config.cs | 16 +- src/GitHub/Models/AuditLogEvent_config_was.cs | 16 +- src/GitHub/Models/AuditLogEvent_data.cs | 16 +- src/GitHub/Models/AuditLogEvent_events.cs | 16 +- .../Models/AuditLogEvent_events_were.cs | 16 +- src/GitHub/Models/AuthenticationToken.cs | 44 +- .../Models/AuthenticationToken_permissions.cs | 16 +- ...uthenticationToken_repository_selection.cs | 4 +- src/GitHub/Models/AuthorAssociation.cs | 4 +- src/GitHub/Models/Authorization.cs | 64 +- src/GitHub/Models/Authorization_app.cs | 22 +- src/GitHub/Models/AutoMerge.cs | 34 +- src/GitHub/Models/AutoMerge_merge_method.cs | 4 +- src/GitHub/Models/Autolink.cs | 24 +- src/GitHub/Models/BaseGist.cs | 74 +- src/GitHub/Models/BaseGist_files.cs | 16 +- src/GitHub/Models/BasicError.cs | 34 +- src/GitHub/Models/BillingUsageReport.cs | 24 +- .../Models/BillingUsageReport503Error.cs | 32 +- .../Models/BillingUsageReport_usageItems.cs | 38 +- src/GitHub/Models/Blob.cs | 30 +- src/GitHub/Models/BranchProtection.cs | 120 +- .../BranchProtection_allow_deletions.cs | 18 +- .../BranchProtection_allow_force_pushes.cs | 18 +- .../BranchProtection_allow_fork_syncing.cs | 18 +- .../BranchProtection_block_creations.cs | 18 +- .../Models/BranchProtection_lock_branch.cs | 18 +- ...ection_required_conversation_resolution.cs | 18 +- ...ranchProtection_required_linear_history.cs | 18 +- .../BranchProtection_required_signatures.cs | 20 +- src/GitHub/Models/BranchRestrictionPolicy.cs | 48 +- .../Models/BranchRestrictionPolicy_apps.cs | 54 +- .../BranchRestrictionPolicy_apps_owner.cs | 62 +- ...ranchRestrictionPolicy_apps_permissions.cs | 24 +- .../Models/BranchRestrictionPolicy_teams.cs | 42 +- .../Models/BranchRestrictionPolicy_users.cs | 52 +- src/GitHub/Models/BranchShort.cs | 28 +- src/GitHub/Models/BranchShort_commit.cs | 20 +- src/GitHub/Models/BranchWithProtection.cs | 50 +- .../Models/BranchWithProtection__links.cs | 20 +- src/GitHub/Models/CheckAnnotation.cs | 36 +- .../Models/CheckAutomatedSecurityFixes.cs | 20 +- src/GitHub/Models/CheckRun.cs | 88 +- src/GitHub/Models/CheckRun_check_suite.cs | 18 +- src/GitHub/Models/CheckRun_conclusion.cs | 4 +- src/GitHub/Models/CheckRun_output.cs | 26 +- src/GitHub/Models/CheckRun_status.cs | 4 +- src/GitHub/Models/CheckSuite.cs | 86 +- src/GitHub/Models/CheckSuitePreference.cs | 32 +- .../CheckSuitePreference_preferences.cs | 24 +- ...ference_preferences_auto_trigger_checks.cs | 20 +- src/GitHub/Models/CheckSuite_conclusion.cs | 4 +- src/GitHub/Models/CheckSuite_status.cs | 4 +- src/GitHub/Models/Classroom.cs | 32 +- .../Models/ClassroomAcceptedAssignment.cs | 50 +- src/GitHub/Models/ClassroomAssignment.cs | 70 +- src/GitHub/Models/ClassroomAssignmentGrade.cs | 38 +- src/GitHub/Models/ClassroomAssignment_type.cs | 4 +- src/GitHub/Models/CloneTraffic.cs | 28 +- src/GitHub/Models/Code.cs | 32 +- src/GitHub/Models/Code503Error.cs | 32 +- src/GitHub/Models/CodeOfConduct.cs | 26 +- src/GitHub/Models/CodeOfConductSimple.cs | 24 +- src/GitHub/Models/CodeScanningAlert.cs | 78 +- .../Models/CodeScanningAlert503Error.cs | 32 +- .../Models/CodeScanningAlertClassification.cs | 4 +- .../CodeScanningAlertDismissedReason.cs | 4 +- .../Models/CodeScanningAlertInstance.cs | 58 +- .../CodeScanningAlertInstance_message.cs | 18 +- src/GitHub/Models/CodeScanningAlertItems.cs | 78 +- .../Models/CodeScanningAlertLocation.cs | 26 +- src/GitHub/Models/CodeScanningAlertRule.cs | 42 +- .../Models/CodeScanningAlertRuleSummary.cs | 36 +- ...lertRuleSummary_security_severity_level.cs | 4 +- .../CodeScanningAlertRuleSummary_severity.cs | 4 +- ...anningAlertRule_security_severity_level.cs | 4 +- .../Models/CodeScanningAlertRule_severity.cs | 4 +- .../Models/CodeScanningAlertSetState.cs | 4 +- .../Models/CodeScanningAlertSeverity.cs | 4 +- src/GitHub/Models/CodeScanningAlertState.cs | 4 +- .../Models/CodeScanningAlertStateQuery.cs | 4 +- src/GitHub/Models/CodeScanningAnalysis.cs | 52 +- .../Models/CodeScanningAnalysis503Error.cs | 32 +- .../Models/CodeScanningAnalysisDeletion.cs | 20 +- .../CodeScanningAnalysisDeletion503Error.cs | 32 +- src/GitHub/Models/CodeScanningAnalysisTool.cs | 22 +- .../Models/CodeScanningCodeqlDatabase.cs | 42 +- .../CodeScanningCodeqlDatabase503Error.cs | 32 +- src/GitHub/Models/CodeScanningDefaultSetup.cs | 44 +- .../CodeScanningDefaultSetup503Error.cs | 32 +- .../Models/CodeScanningDefaultSetupUpdate.cs | 34 +- ...odeScanningDefaultSetupUpdate_languages.cs | 4 +- ...eScanningDefaultSetupUpdate_query_suite.cs | 4 +- .../CodeScanningDefaultSetupUpdate_state.cs | 4 +- .../CodeScanningDefaultSetup_languages.cs | 4 +- .../CodeScanningDefaultSetup_query_suite.cs | 4 +- .../CodeScanningDefaultSetup_schedule.cs | 4 +- .../Models/CodeScanningDefaultSetup_state.cs | 4 +- .../CodeScanningOrganizationAlertItems.cs | 86 +- .../Models/CodeScanningSarifsReceipt.cs | 20 +- .../CodeScanningSarifsReceipt503Error.cs | 32 +- src/GitHub/Models/CodeScanningSarifsStatus.cs | 26 +- .../CodeScanningSarifsStatus503Error.cs | 32 +- ...eScanningSarifsStatus_processing_status.cs | 4 +- .../Models/CodeScanningVariantAnalysis.cs | 78 +- .../CodeScanningVariantAnalysis503Error.cs | 32 +- .../CodeScanningVariantAnalysisLanguage.cs | 4 +- .../CodeScanningVariantAnalysisRepoTask.cs | 42 +- ...ScanningVariantAnalysisRepoTask503Error.cs | 32 +- .../CodeScanningVariantAnalysisRepository.cs | 28 +- ...ScanningVariantAnalysisSkippedRepoGroup.cs | 26 +- .../CodeScanningVariantAnalysisStatus.cs | 4 +- ...eScanningVariantAnalysis_failure_reason.cs | 4 +- ...ingVariantAnalysis_scanned_repositories.cs | 36 +- ...ingVariantAnalysis_skipped_repositories.cs | 48 +- ...is_skipped_repositories_not_found_repos.cs | 20 +- .../CodeScanningVariantAnalysis_status.cs | 4 +- src/GitHub/Models/CodeSearchResultItem.cs | 54 +- .../Models/CodeSecurityConfiguration.cs | 110 +- .../CodeSecurityConfigurationForRepository.cs | 30 +- ...curityConfigurationForRepository_status.cs | 4 +- .../CodeSecurityConfigurationRepositories.cs | 30 +- ...ecurityConfigurationRepositories_status.cs | 4 +- ...SecurityConfiguration_advanced_security.cs | 4 +- ...nfiguration_code_scanning_default_setup.cs | 4 +- ...SecurityConfiguration_dependabot_alerts.cs | 4 +- ...nfiguration_dependabot_security_updates.cs | 4 +- ...eSecurityConfiguration_dependency_graph.cs | 4 +- ...tion_dependency_graph_autosubmit_action.cs | 4 +- ...endency_graph_autosubmit_action_options.cs | 18 +- .../CodeSecurityConfiguration_enforcement.cs | 4 +- ...uration_private_vulnerability_reporting.cs | 4 +- ...deSecurityConfiguration_secret_scanning.cs | 4 +- ...uration_secret_scanning_push_protection.cs | 4 +- ...uration_secret_scanning_validity_checks.cs | 4 +- .../CodeSecurityConfiguration_target_type.cs | 4 +- .../CodeSecurityDefaultConfigurations.cs | 30 +- ...ultConfigurations_default_for_new_repos.cs | 4 +- src/GitHub/Models/Code_matches.cs | 20 +- src/GitHub/Models/CodeownersErrors.cs | 24 +- src/GitHub/Models/CodeownersErrors_errors.cs | 30 +- src/GitHub/Models/Codespace.cs | 124 +- src/GitHub/Models/Codespace503Error.cs | 32 +- src/GitHub/Models/CodespaceExportDetails.cs | 30 +- src/GitHub/Models/CodespaceMachine.cs | 34 +- .../CodespaceMachine_prebuild_availability.cs | 4 +- .../Models/CodespaceWithFullRepository.cs | 122 +- .../CodespaceWithFullRepository_git_status.cs | 26 +- .../CodespaceWithFullRepository_location.cs | 4 +- ...eWithFullRepository_runtime_constraints.cs | 18 +- .../CodespaceWithFullRepository_state.cs | 4 +- src/GitHub/Models/Codespace_git_status.cs | 26 +- src/GitHub/Models/Codespace_location.cs | 4 +- .../Models/Codespace_runtime_constraints.cs | 18 +- src/GitHub/Models/Codespace_state.cs | 4 +- src/GitHub/Models/CodespacesOrgSecret.cs | 30 +- .../Models/CodespacesOrgSecret_visibility.cs | 4 +- ...despacesPermissionsCheckForDevcontainer.cs | 18 +- ...PermissionsCheckForDevcontainer503Error.cs | 32 +- src/GitHub/Models/CodespacesPublicKey.cs | 28 +- src/GitHub/Models/CodespacesSecret.cs | 30 +- .../Models/CodespacesSecret_visibility.cs | 4 +- src/GitHub/Models/CodespacesUserPublicKey.cs | 20 +- src/GitHub/Models/Collaborator.cs | 66 +- src/GitHub/Models/Collaborator_permissions.cs | 26 +- src/GitHub/Models/CombinedBillingUsage.cs | 22 +- src/GitHub/Models/CombinedCommitStatus.cs | 42 +- src/GitHub/Models/Commit.cs | 136 +- src/GitHub/Models/Commit503Error.cs | 32 +- src/GitHub/Models/CommitActivity.cs | 22 +- src/GitHub/Models/CommitComment.cs | 60 +- src/GitHub/Models/CommitComparison.cs | 70 +- src/GitHub/Models/CommitComparison503Error.cs | 32 +- src/GitHub/Models/CommitComparison_status.cs | 4 +- src/GitHub/Models/CommitSearchResultItem.cs | 76 +- .../Models/CommitSearchResultItem_commit.cs | 54 +- .../CommitSearchResultItem_commit_author.cs | 22 +- .../CommitSearchResultItem_commit_tree.cs | 20 +- .../Models/CommitSearchResultItem_parents.cs | 22 +- src/GitHub/Models/Commit_commit.cs | 54 +- src/GitHub/Models/Commit_commit_tree.cs | 20 +- src/GitHub/Models/Commit_parents.cs | 22 +- src/GitHub/Models/Commit_stats.cs | 22 +- src/GitHub/Models/Commits.cs | 32 +- src/GitHub/Models/Commits_matches.cs | 20 +- src/GitHub/Models/CommunityProfile.cs | 34 +- src/GitHub/Models/CommunityProfile_files.cs | 72 +- src/GitHub/Models/ContentFile.cs | 54 +- src/GitHub/Models/ContentFile__links.cs | 22 +- src/GitHub/Models/ContentFile_type.cs | 4 +- src/GitHub/Models/ContentSubmodule.cs | 48 +- src/GitHub/Models/ContentSubmodule__links.cs | 22 +- src/GitHub/Models/ContentSubmodule_type.cs | 4 +- src/GitHub/Models/ContentSymlink.cs | 48 +- src/GitHub/Models/ContentSymlink__links.cs | 22 +- src/GitHub/Models/ContentSymlink_type.cs | 4 +- src/GitHub/Models/ContentTraffic.cs | 24 +- src/GitHub/Models/Contributor.cs | 58 +- src/GitHub/Models/ContributorActivity.cs | 34 +- .../Models/ContributorActivity_weeks.cs | 24 +- .../Models/ConvertedNoteToIssueIssueEvent.cs | 54 +- ...ertedNoteToIssueIssueEvent_project_card.cs | 28 +- .../Models/CopilotOrganizationDetails.cs | 54 +- .../Models/CopilotOrganizationDetails_cli.cs | 4 +- .../CopilotOrganizationDetails_ide_chat.cs | 4 +- ...opilotOrganizationDetails_platform_chat.cs | 4 +- ...nizationDetails_public_code_suggestions.cs | 4 +- ...nizationDetails_seat_management_setting.cs | 4 +- src/GitHub/Models/CopilotSeatBreakdown.cs | 28 +- src/GitHub/Models/CopilotSeatDetails.cs | 79 +- .../Models/CopilotSeatDetails_assignee.cs | 16 +- .../Models/CopilotSeatDetails_organization.cs | 16 +- src/GitHub/Models/CopilotUsageMetrics.cs | 40 +- .../Models/CopilotUsageMetrics_breakdown.cs | 30 +- src/GitHub/Models/CredentialAuthorization.cs | 44 +- src/GitHub/Models/CustomDeploymentRuleApp.cs | 24 +- src/GitHub/Models/CustomProperty.cs | 55 +- src/GitHub/Models/CustomPropertyValue.cs | 35 +- .../Models/CustomProperty_value_type.cs | 4 +- .../CustomProperty_values_editable_by.cs | 4 +- src/GitHub/Models/Databases503Error.cs | 32 +- src/GitHub/Models/DemilestonedIssueEvent.cs | 54 +- .../DemilestonedIssueEvent_milestone.cs | 18 +- src/GitHub/Models/DependabotAlert.cs | 68 +- src/GitHub/Models/DependabotAlertPackage.cs | 18 +- .../Models/DependabotAlertSecurityAdvisory.cs | 62 +- .../DependabotAlertSecurityAdvisory_cvss.cs | 18 +- .../DependabotAlertSecurityAdvisory_cwes.cs | 18 +- ...ndabotAlertSecurityAdvisory_identifiers.cs | 20 +- ...tAlertSecurityAdvisory_identifiers_type.cs | 4 +- ...endabotAlertSecurityAdvisory_references.cs | 16 +- ...ependabotAlertSecurityAdvisory_severity.cs | 4 +- .../DependabotAlertSecurityVulnerability.cs | 32 +- ...rityVulnerability_first_patched_version.cs | 16 +- ...abotAlertSecurityVulnerability_severity.cs | 4 +- .../Models/DependabotAlertWithRepository.cs | 76 +- ...ependabotAlertWithRepository_dependency.cs | 28 +- ...botAlertWithRepository_dependency_scope.cs | 4 +- ...botAlertWithRepository_dismissed_reason.cs | 4 +- .../DependabotAlertWithRepository_state.cs | 4 +- .../Models/DependabotAlert_dependency.cs | 28 +- .../DependabotAlert_dependency_scope.cs | 4 +- .../DependabotAlert_dismissed_reason.cs | 4 +- src/GitHub/Models/DependabotAlert_state.cs | 4 +- src/GitHub/Models/DependabotPublicKey.cs | 20 +- src/GitHub/Models/DependabotSecret.cs | 22 +- src/GitHub/Models/DependencyGraphDiff.cs | 50 +- .../Models/DependencyGraphDiff_change_type.cs | 4 +- .../Models/DependencyGraphDiff_scope.cs | 4 +- .../DependencyGraphDiff_vulnerabilities.cs | 24 +- src/GitHub/Models/DependencyGraphSpdxSbom.cs | 24 +- .../Models/DependencyGraphSpdxSbom_sbom.cs | 44 +- ...pendencyGraphSpdxSbom_sbom_creationInfo.cs | 20 +- .../DependencyGraphSpdxSbom_sbom_packages.cs | 42 +- ...raphSpdxSbom_sbom_packages_externalRefs.cs | 22 +- src/GitHub/Models/DeployKey.cs | 34 +- src/GitHub/Models/Deployment.cs | 64 +- src/GitHub/Models/DeploymentBranchPolicy.cs | 28 +- .../DeploymentBranchPolicyNamePattern.cs | 18 +- ...ploymentBranchPolicyNamePatternWithType.cs | 24 +- ...entBranchPolicyNamePatternWithType_type.cs | 4 +- .../Models/DeploymentBranchPolicySettings.cs | 20 +- .../Models/DeploymentBranchPolicy_type.cs | 4 +- src/GitHub/Models/DeploymentProtectionRule.cs | 30 +- src/GitHub/Models/DeploymentReviewerType.cs | 4 +- src/GitHub/Models/DeploymentSimple.cs | 50 +- src/GitHub/Models/DeploymentStatus.cs | 62 +- src/GitHub/Models/DeploymentStatus_state.cs | 4 +- src/GitHub/Models/DiffEntry.cs | 42 +- src/GitHub/Models/DiffEntry_status.cs | 4 +- src/GitHub/Models/Email.cs | 24 +- src/GitHub/Models/EmptyObject.cs | 14 +- src/GitHub/Models/EmptyObject503Error.cs | 32 +- src/GitHub/Models/EnabledOrganizations.cs | 4 +- src/GitHub/Models/EnabledRepositories.cs | 4 +- src/GitHub/Models/Enterprise.cs | 36 +- .../EnterpriseSecurityAnalysisSettings.cs | 30 +- src/GitHub/Models/EnterpriseTeam.cs | 36 +- src/GitHub/Models/EnvironmentApprovals.cs | 40 +- .../EnvironmentApprovals_environments.cs | 30 +- .../Models/EnvironmentApprovals_state.cs | 4 +- src/GitHub/Models/EnvironmentObject.cs | 83 +- .../Environment_protection_rulesMember1.cs | 24 +- .../Environment_protection_rulesMember2.cs | 32 +- ...nment_protection_rulesMember2_reviewers.cs | 59 +- .../Environment_protection_rulesMember3.cs | 22 +- src/GitHub/Models/Event.cs | 56 +- src/GitHub/Models/Event_payload.cs | 42 +- src/GitHub/Models/Event_payload_pages.cs | 28 +- src/GitHub/Models/Event_repo.cs | 22 +- src/GitHub/Models/Events503Error.cs | 32 +- src/GitHub/Models/ExternalGroup.cs | 38 +- src/GitHub/Models/ExternalGroup_members.cs | 24 +- src/GitHub/Models/ExternalGroup_teams.cs | 20 +- src/GitHub/Models/ExternalGroups.cs | 24 +- src/GitHub/Models/ExternalGroups_groups.cs | 22 +- src/GitHub/Models/Feed.cs | 44 +- src/GitHub/Models/Feed__links.cs | 96 +- src/GitHub/Models/FileCommit.cs | 32 +- src/GitHub/Models/FileCommit503Error.cs | 32 +- src/GitHub/Models/FileCommit_commit.cs | 66 +- src/GitHub/Models/FileCommit_commit_author.cs | 22 +- .../Models/FileCommit_commit_committer.cs | 22 +- .../Models/FileCommit_commit_parents.cs | 22 +- src/GitHub/Models/FileCommit_commit_tree.cs | 20 +- .../Models/FileCommit_commit_verification.cs | 24 +- src/GitHub/Models/FileCommit_content.cs | 42 +- .../Models/FileCommit_content__links.cs | 22 +- src/GitHub/Models/Files503Error.cs | 32 +- src/GitHub/Models/FullRepository.cs | 298 ++-- .../FullRepository_custom_properties.cs | 16 +- .../FullRepository_merge_commit_message.cs | 4 +- .../FullRepository_merge_commit_title.cs | 4 +- .../Models/FullRepository_permissions.cs | 26 +- ...lRepository_squash_merge_commit_message.cs | 4 +- ...ullRepository_squash_merge_commit_title.cs | 4 +- src/GitHub/Models/GetAllCostCenters.cs | 24 +- .../Models/GetAllCostCenters503Error.cs | 32 +- .../Models/GetAllCostCenters_costCenters.cs | 28 +- ...GetAllCostCenters_costCenters_resources.cs | 20 +- src/GitHub/Models/GetConsumedLicenses.cs | 28 +- .../Models/GetConsumedLicenses_users.cs | 52 +- src/GitHub/Models/GetLicenseSyncStatus.cs | 24 +- .../GetLicenseSyncStatus_server_instances.cs | 28 +- ...seSyncStatus_server_instances_last_sync.cs | 22 +- src/GitHub/Models/GistComment.cs | 42 +- src/GitHub/Models/GistComment403Error.cs | 38 +- .../Models/GistComment403Error_block.cs | 22 +- src/GitHub/Models/GistCommit.cs | 38 +- src/GitHub/Models/GistCommit_change_status.cs | 22 +- src/GitHub/Models/GistHistory.cs | 38 +- .../Models/GistHistory_change_status.cs | 22 +- src/GitHub/Models/GistSimple.cs | 88 +- src/GitHub/Models/GistSimple403Error.cs | 38 +- src/GitHub/Models/GistSimple403Error_block.cs | 22 +- src/GitHub/Models/GistSimple_files.cs | 16 +- src/GitHub/Models/GistSimple_fork_of.cs | 74 +- src/GitHub/Models/GistSimple_fork_of_files.cs | 16 +- src/GitHub/Models/GistSimple_forks.cs | 32 +- src/GitHub/Models/GitCommit.cs | 66 +- src/GitHub/Models/GitCommit_author.cs | 22 +- src/GitHub/Models/GitCommit_committer.cs | 22 +- src/GitHub/Models/GitCommit_parents.cs | 22 +- src/GitHub/Models/GitCommit_tree.cs | 20 +- src/GitHub/Models/GitCommit_verification.cs | 24 +- src/GitHub/Models/GitRef.cs | 30 +- src/GitHub/Models/GitRef_object.cs | 22 +- src/GitHub/Models/GitTag.cs | 50 +- src/GitHub/Models/GitTag_object.cs | 22 +- src/GitHub/Models/GitTag_tagger.cs | 22 +- src/GitHub/Models/GitTree.cs | 30 +- src/GitHub/Models/GitTree_tree.cs | 28 +- src/GitHub/Models/GitignoreTemplate.cs | 20 +- src/GitHub/Models/GlobalAdvisory.cs | 98 +- src/GitHub/Models/GlobalAdvisory_credits.cs | 30 +- src/GitHub/Models/GlobalAdvisory_cvss.cs | 20 +- src/GitHub/Models/GlobalAdvisory_cwes.cs | 20 +- src/GitHub/Models/GlobalAdvisory_epss.cs | 61 + .../Models/GlobalAdvisory_identifiers.cs | 24 +- .../Models/GlobalAdvisory_identifiers_type.cs | 4 +- src/GitHub/Models/GlobalAdvisory_severity.cs | 4 +- src/GitHub/Models/GlobalAdvisory_type.cs | 4 +- src/GitHub/Models/GpgKey.cs | 58 +- src/GitHub/Models/GpgKey_emails.cs | 20 +- src/GitHub/Models/GpgKey_subkeys.cs | 50 +- src/GitHub/Models/GpgKey_subkeys_emails.cs | 20 +- src/GitHub/Models/Group.cs | 36 +- src/GitHub/Models/GroupMapping.cs | 24 +- src/GitHub/Models/GroupMapping_groups.cs | 26 +- src/GitHub/Models/GroupResponse.cs | 36 +- src/GitHub/Models/GroupResponse_members.cs | 22 +- src/GitHub/Models/GroupResponse_schemas.cs | 4 +- src/GitHub/Models/Group_members.cs | 20 +- src/GitHub/Models/Group_schemas.cs | 4 +- src/GitHub/Models/Hook.cs | 54 +- src/GitHub/Models/HookDelivery.cs | 58 +- src/GitHub/Models/HookDeliveryItem.cs | 40 +- src/GitHub/Models/HookDelivery_request.cs | 32 +- .../Models/HookDelivery_request_headers.cs | 16 +- .../Models/HookDelivery_request_payload.cs | 16 +- src/GitHub/Models/HookDelivery_response.cs | 26 +- .../Models/HookDelivery_response_headers.cs | 16 +- src/GitHub/Models/HookResponse.cs | 22 +- src/GitHub/Models/Hovercard.cs | 24 +- src/GitHub/Models/Hovercard_contexts.cs | 20 +- src/GitHub/Models/Import.cs | 72 +- src/GitHub/Models/Import_project_choices.cs | 22 +- src/GitHub/Models/Import_status.cs | 4 +- src/GitHub/Models/Installation.cs | 107 +- src/GitHub/Models/InstallationToken.cs | 48 +- .../InstallationToken_repository_selection.cs | 4 +- .../Installation_repository_selection.cs | 4 +- src/GitHub/Models/Instances503Error.cs | 32 +- src/GitHub/Models/Integration.cs | 62 +- .../Models/IntegrationInstallationRequest.cs | 67 +- src/GitHub/Models/Integration_permissions.cs | 26 +- src/GitHub/Models/InteractionExpiry.cs | 4 +- src/GitHub/Models/InteractionGroup.cs | 4 +- src/GitHub/Models/InteractionLimit.cs | 28 +- src/GitHub/Models/InteractionLimitResponse.cs | 26 +- src/GitHub/Models/Issue.cs | 146 +- src/GitHub/Models/Issue503Error.cs | 32 +- src/GitHub/Models/IssueComment.cs | 66 +- src/GitHub/Models/IssueEvent.cs | 142 +- .../Models/IssueEventDismissedReview.cs | 24 +- src/GitHub/Models/IssueEventForIssue.cs | 138 +- src/GitHub/Models/IssueEventLabel.cs | 20 +- src/GitHub/Models/IssueEventMilestone.cs | 18 +- src/GitHub/Models/IssueEventProjectCard.cs | 28 +- src/GitHub/Models/IssueEventRename.cs | 20 +- src/GitHub/Models/IssueSearchResultItem.cs | 150 +- .../Models/IssueSearchResultItem_labels.cs | 30 +- .../IssueSearchResultItem_pull_request.cs | 26 +- src/GitHub/Models/Issue_pull_request.cs | 26 +- src/GitHub/Models/Issue_state_reason.cs | 4 +- src/GitHub/Models/Issues.cs | 32 +- src/GitHub/Models/Issues503Error.cs | 32 +- src/GitHub/Models/Issues_matches.cs | 20 +- src/GitHub/Models/Job.cs | 76 +- src/GitHub/Models/Job_conclusion.cs | 4 +- src/GitHub/Models/Job_status.cs | 4 +- src/GitHub/Models/Job_steps.cs | 32 +- src/GitHub/Models/Job_steps_status.cs | 4 +- src/GitHub/Models/Key.cs | 30 +- src/GitHub/Models/KeySimple.cs | 20 +- src/GitHub/Models/Label.cs | 30 +- src/GitHub/Models/LabelSearchResultItem.cs | 40 +- src/GitHub/Models/LabeledIssueEvent.cs | 54 +- src/GitHub/Models/LabeledIssueEvent_label.cs | 20 +- src/GitHub/Models/Labels.cs | 32 +- src/GitHub/Models/Labels_matches.cs | 20 +- src/GitHub/Models/Language.cs | 16 +- src/GitHub/Models/License.cs | 42 +- src/GitHub/Models/LicenseContent.cs | 54 +- src/GitHub/Models/LicenseContent__links.cs | 22 +- src/GitHub/Models/LicenseSimple.cs | 28 +- src/GitHub/Models/Link.cs | 18 +- src/GitHub/Models/LinkWithType.cs | 20 +- src/GitHub/Models/Locations503Error.cs | 32 +- src/GitHub/Models/LockedIssueEvent.cs | 48 +- src/GitHub/Models/MarketplaceAccount.cs | 30 +- src/GitHub/Models/MarketplaceListingPlan.cs | 46 +- .../MarketplaceListingPlan_price_model.cs | 4 +- src/GitHub/Models/MarketplacePurchase.cs | 44 +- ...lacePurchase_marketplace_pending_change.cs | 32 +- ...arketplacePurchase_marketplace_purchase.cs | 38 +- src/GitHub/Models/MergedUpstream.cs | 26 +- .../Models/MergedUpstream_merge_type.cs | 4 +- src/GitHub/Models/Meta.cs | 28 +- src/GitHub/Models/Meta_resourceType.cs | 4 +- src/GitHub/Models/Metadata.cs | 16 +- src/GitHub/Models/Migration.cs | 64 +- src/GitHub/Models/Milestone.cs | 60 +- src/GitHub/Models/Milestone_state.cs | 4 +- src/GitHub/Models/MilestonedIssueEvent.cs | 54 +- .../Models/MilestonedIssueEvent_milestone.cs | 18 +- src/GitHub/Models/MinimalRepository.cs | 220 +-- .../Models/MinimalRepository_license.cs | 26 +- .../Models/MinimalRepository_permissions.cs | 26 +- .../Models/MovedColumnInProjectIssueEvent.cs | 54 +- ...dColumnInProjectIssueEvent_project_card.cs | 28 +- .../Models/NullableCodeOfConductSimple.cs | 24 +- src/GitHub/Models/NullableCodespaceMachine.cs | 34 +- ...eCodespaceMachine_prebuild_availability.cs | 4 +- src/GitHub/Models/NullableCollaborator.cs | 66 +- .../NullableCollaborator_permissions.cs | 26 +- .../Models/NullableCommunityHealthFile.cs | 20 +- src/GitHub/Models/NullableGitUser.cs | 22 +- src/GitHub/Models/NullableIntegration.cs | 62 +- .../Models/NullableIntegration_permissions.cs | 26 +- src/GitHub/Models/NullableIssue.cs | 146 +- .../Models/NullableIssue_pull_request.cs | 26 +- .../Models/NullableIssue_state_reason.cs | 4 +- src/GitHub/Models/NullableLicenseSimple.cs | 28 +- src/GitHub/Models/NullableMilestone.cs | 60 +- src/GitHub/Models/NullableMilestone_state.cs | 4 +- .../Models/NullableMinimalRepository.cs | 220 +-- .../NullableMinimalRepository_license.cs | 26 +- .../NullableMinimalRepository_permissions.cs | 26 +- src/GitHub/Models/NullableRepository.cs | 240 +-- ...NullableRepository_merge_commit_message.cs | 4 +- .../NullableRepository_merge_commit_title.cs | 4 +- .../Models/NullableRepository_permissions.cs | 26 +- ...eRepository_squash_merge_commit_message.cs | 4 +- ...bleRepository_squash_merge_commit_title.cs | 4 +- .../Models/NullableScopedInstallation.cs | 46 +- ...ScopedInstallation_repository_selection.cs | 4 +- src/GitHub/Models/NullableSimpleCommit.cs | 40 +- .../Models/NullableSimpleCommit_author.cs | 20 +- .../Models/NullableSimpleCommit_committer.cs | 20 +- src/GitHub/Models/NullableSimpleUser.cs | 58 +- src/GitHub/Models/NullableTeamSimple.cs | 42 +- src/GitHub/Models/OidcCustomSub.cs | 18 +- src/GitHub/Models/OidcCustomSubRepo.cs | 20 +- src/GitHub/Models/OrgHook.cs | 44 +- src/GitHub/Models/OrgHook_config.cs | 24 +- src/GitHub/Models/OrgMembership.cs | 56 +- .../Models/OrgMembership_permissions.cs | 18 +- src/GitHub/Models/OrgMembership_role.cs | 4 +- src/GitHub/Models/OrgMembership_state.cs | 4 +- .../Models/OrgRepoCustomPropertyValues.cs | 30 +- src/GitHub/Models/OrgRulesetConditions.cs | 16 +- .../Models/OrganizationActionsSecret.cs | 30 +- .../OrganizationActionsSecret_visibility.cs | 4 +- .../Models/OrganizationActionsVariable.cs | 32 +- .../OrganizationActionsVariable_visibility.cs | 4 +- ...tionCustomOrganizationRoleCreateSchema.cs} | 28 +- ...mOrganizationRoleCreateSchema_base_role.cs | 31 + ...tionCustomOrganizationRoleUpdateSchema.cs} | 30 +- ...mOrganizationRoleUpdateSchema_base_role.cs | 35 + .../OrganizationCustomRepositoryRole.cs | 42 +- ...izationCustomRepositoryRoleCreateSchema.cs | 28 +- ...tomRepositoryRoleCreateSchema_base_role.cs | 4 +- ...izationCustomRepositoryRoleUpdateSchema.cs | 28 +- ...tomRepositoryRoleUpdateSchema_base_role.cs | 4 +- ...anizationCustomRepositoryRole_base_role.cs | 4 +- .../Models/OrganizationDependabotSecret.cs | 30 +- ...OrganizationDependabotSecret_visibility.cs | 4 +- .../OrganizationFineGrainedPermission.cs | 20 +- src/GitHub/Models/OrganizationFull.cs | 138 +- src/GitHub/Models/OrganizationFull_plan.cs | 26 +- src/GitHub/Models/OrganizationInvitation.cs | 46 +- .../OrganizationProgrammaticAccessGrant.cs | 50 +- ...anizationProgrammaticAccessGrantRequest.cs | 52 +- ...grammaticAccessGrantRequest_permissions.cs | 40 +- ...ssGrantRequest_permissions_organization.cs | 16 +- ...ticAccessGrantRequest_permissions_other.cs | 16 +- ...cessGrantRequest_permissions_repository.cs | 16 +- ...AccessGrantRequest_repository_selection.cs | 4 +- ...tionProgrammaticAccessGrant_permissions.cs | 40 +- ...ticAccessGrant_permissions_organization.cs | 16 +- ...ogrammaticAccessGrant_permissions_other.cs | 16 +- ...maticAccessGrant_permissions_repository.cs | 16 +- ...ammaticAccessGrant_repository_selection.cs | 4 +- src/GitHub/Models/OrganizationRole.cs | 36 +- .../Models/OrganizationSecretScanningAlert.cs | 84 +- ...rganizationSecretScanningAlert_validity.cs | 4 +- src/GitHub/Models/OrganizationSimple.cs | 40 +- src/GitHub/Models/Package.cs | 58 +- src/GitHub/Models/PackageVersion.cs | 44 +- src/GitHub/Models/PackageVersion_metadata.cs | 38 +- .../PackageVersion_metadata_container.cs | 18 +- .../Models/PackageVersion_metadata_docker.cs | 18 +- .../PackageVersion_metadata_package_type.cs | 4 +- src/GitHub/Models/Package_package_type.cs | 4 +- src/GitHub/Models/Package_visibility.cs | 4 +- src/GitHub/Models/PackagesBillingUsage.cs | 22 +- src/GitHub/Models/Page.cs | 64 +- src/GitHub/Models/PageBuild.cs | 44 +- src/GitHub/Models/PageBuildStatus.cs | 20 +- src/GitHub/Models/PageBuild_error.cs | 18 +- src/GitHub/Models/PageDeployment.cs | 39 +- src/GitHub/Models/Page_build_type.cs | 4 +- .../Models/Page_protected_domain_state.cs | 4 +- src/GitHub/Models/Page_status.cs | 4 +- src/GitHub/Models/PagesDeploymentStatus.cs | 22 +- .../Models/PagesDeploymentStatus_status.cs | 4 +- src/GitHub/Models/PagesHealthCheck.cs | 32 +- .../Models/PagesHealthCheck_alt_domain.cs | 72 +- src/GitHub/Models/PagesHealthCheck_domain.cs | 72 +- src/GitHub/Models/PagesHttpsCertificate.cs | 28 +- .../Models/PagesHttpsCertificate_state.cs | 4 +- src/GitHub/Models/PagesSourceHash.cs | 20 +- src/GitHub/Models/ParticipationStats.cs | 20 +- src/GitHub/Models/PatchSchema.cs | 32 +- src/GitHub/Models/PatchSchema_Operations.cs | 26 +- .../Models/PatchSchema_Operations_op.cs | 4 +- src/GitHub/Models/PatchSchema_schemas.cs | 4 +- src/GitHub/Models/PendingDeployment.cs | 38 +- .../Models/PendingDeployment_environment.cs | 26 +- .../Models/PendingDeployment_reviewers.cs | 59 +- src/GitHub/Models/PorterAuthor.cs | 30 +- src/GitHub/Models/PorterLargeFile.cs | 24 +- src/GitHub/Models/PrivateUser.cs | 108 +- src/GitHub/Models/PrivateUser_plan.cs | 24 +- .../PrivateVulnerabilityReportCreate.cs | 38 +- ...ivateVulnerabilityReportCreate_severity.cs | 4 +- ...lnerabilityReportCreate_vulnerabilities.cs | 28 +- ...ityReportCreate_vulnerabilities_package.cs | 24 +- src/GitHub/Models/Project.cs | 56 +- src/GitHub/Models/ProjectCard.cs | 48 +- .../Models/ProjectCollaboratorPermission.cs | 26 +- src/GitHub/Models/ProjectColumn.cs | 32 +- .../Models/Project_organization_permission.cs | 4 +- src/GitHub/Models/ProtectedBranch.cs | 114 +- .../Models/ProtectedBranchAdminEnforced.cs | 20 +- .../ProtectedBranchPullRequestReview.cs | 42 +- ...stReview_bypass_pull_request_allowances.cs | 40 +- ...ullRequestReview_dismissal_restrictions.cs | 46 +- .../ProtectedBranchRequiredStatusCheck.cs | 34 +- ...otectedBranchRequiredStatusCheck_checks.cs | 20 +- .../Models/ProtectedBranch_allow_deletions.cs | 16 +- .../ProtectedBranch_allow_force_pushes.cs | 16 +- .../ProtectedBranch_allow_fork_syncing.cs | 16 +- .../Models/ProtectedBranch_block_creations.cs | 16 +- .../Models/ProtectedBranch_enforce_admins.cs | 18 +- .../Models/ProtectedBranch_lock_branch.cs | 16 +- ...Branch_required_conversation_resolution.cs | 16 +- ...ProtectedBranch_required_linear_history.cs | 16 +- ...tedBranch_required_pull_request_reviews.cs | 42 +- ..._reviews_bypass_pull_request_allowances.cs | 40 +- ..._request_reviews_dismissal_restrictions.cs | 46 +- .../ProtectedBranch_required_signatures.cs | 20 +- src/GitHub/Models/PublicUser.cs | 100 +- src/GitHub/Models/PublicUser_plan.cs | 24 +- src/GitHub/Models/PullRequest.cs | 192 +-- src/GitHub/Models/PullRequest503Error.cs | 32 +- src/GitHub/Models/PullRequestMergeResult.cs | 22 +- src/GitHub/Models/PullRequestMinimal.cs | 38 +- src/GitHub/Models/PullRequestMinimal_base.cs | 28 +- .../Models/PullRequestMinimal_base_repo.cs | 22 +- src/GitHub/Models/PullRequestMinimal_head.cs | 28 +- .../Models/PullRequestMinimal_head_repo.cs | 22 +- src/GitHub/Models/PullRequestReview.cs | 58 +- src/GitHub/Models/PullRequestReviewComment.cs | 112 +- .../Models/PullRequestReviewComment__links.cs | 40 +- .../PullRequestReviewComment__links_html.cs | 18 +- ...equestReviewComment__links_pull_request.cs | 18 +- .../PullRequestReviewComment__links_self.cs | 18 +- .../Models/PullRequestReviewComment_side.cs | 4 +- .../PullRequestReviewComment_start_side.cs | 4 +- .../PullRequestReviewComment_subject_type.cs | 4 +- src/GitHub/Models/PullRequestReviewRequest.cs | 32 +- src/GitHub/Models/PullRequestReview__links.cs | 32 +- .../Models/PullRequestReview__links_html.cs | 18 +- .../PullRequestReview__links_pull_request.cs | 18 +- src/GitHub/Models/PullRequestSimple.cs | 158 +- src/GitHub/Models/PullRequestSimple__links.cs | 80 +- src/GitHub/Models/PullRequestSimple_base.cs | 38 +- src/GitHub/Models/PullRequestSimple_head.cs | 38 +- src/GitHub/Models/PullRequestSimple_labels.cs | 30 +- src/GitHub/Models/PullRequestWebhook.cs | 46 +- ...PullRequestWebhook_merge_commit_message.cs | 4 +- .../PullRequestWebhook_merge_commit_title.cs | 4 +- ...uestWebhook_squash_merge_commit_message.cs | 4 +- ...equestWebhook_squash_merge_commit_title.cs | 4 +- src/GitHub/Models/PullRequest__links.cs | 80 +- src/GitHub/Models/PullRequest_base.cs | 38 +- src/GitHub/Models/PullRequest_base_repo.cs | 204 +-- .../Models/PullRequest_base_repo_owner.cs | 52 +- .../PullRequest_base_repo_permissions.cs | 26 +- src/GitHub/Models/PullRequest_base_user.cs | 52 +- src/GitHub/Models/PullRequest_head.cs | 38 +- src/GitHub/Models/PullRequest_head_repo.cs | 204 +-- .../Models/PullRequest_head_repo_license.cs | 26 +- .../Models/PullRequest_head_repo_owner.cs | 52 +- .../PullRequest_head_repo_permissions.cs | 26 +- src/GitHub/Models/PullRequest_head_user.cs | 52 +- src/GitHub/Models/PullRequest_labels.cs | 30 +- src/GitHub/Models/PullRequest_state.cs | 4 +- src/GitHub/Models/RateLimit.cs | 24 +- src/GitHub/Models/RateLimitOverview.cs | 32 +- .../Models/RateLimitOverview_resources.cs | 96 +- src/GitHub/Models/Reaction.cs | 36 +- src/GitHub/Models/ReactionRollup.cs | 36 +- src/GitHub/Models/Reaction_content.cs | 4 +- src/GitHub/Models/ReferencedWorkflow.cs | 22 +- src/GitHub/Models/ReferrerTraffic.cs | 22 +- src/GitHub/Models/Release.cs | 80 +- src/GitHub/Models/ReleaseAsset.cs | 52 +- src/GitHub/Models/ReleaseAsset_state.cs | 4 +- src/GitHub/Models/ReleaseNotesContent.cs | 20 +- .../Models/RemovedFromProjectIssueEvent.cs | 54 +- ...movedFromProjectIssueEvent_project_card.cs | 28 +- src/GitHub/Models/RenamedIssueEvent.cs | 54 +- src/GitHub/Models/RenamedIssueEvent_rename.cs | 20 +- src/GitHub/Models/RepoCodespacesSecret.cs | 22 +- src/GitHub/Models/RepoSearchResultItem.cs | 218 +-- .../RepoSearchResultItem_permissions.cs | 26 +- src/GitHub/Models/Repositories.cs | 32 +- src/GitHub/Models/Repositories503Error.cs | 32 +- src/GitHub/Models/Repositories_matches.cs | 20 +- src/GitHub/Models/Repository.cs | 240 +-- src/GitHub/Models/RepositoryAdvisory.cs | 132 +- src/GitHub/Models/RepositoryAdvisoryCreate.cs | 48 +- .../RepositoryAdvisoryCreate_credits.cs | 22 +- .../RepositoryAdvisoryCreate_severity.cs | 4 +- ...epositoryAdvisoryCreate_vulnerabilities.cs | 28 +- ...yAdvisoryCreate_vulnerabilities_package.cs | 24 +- src/GitHub/Models/RepositoryAdvisoryCredit.cs | 34 +- .../Models/RepositoryAdvisoryCredit_state.cs | 4 +- src/GitHub/Models/RepositoryAdvisoryUpdate.cs | 56 +- .../RepositoryAdvisoryUpdate_credits.cs | 22 +- .../RepositoryAdvisoryUpdate_severity.cs | 4 +- .../Models/RepositoryAdvisoryUpdate_state.cs | 4 +- ...epositoryAdvisoryUpdate_vulnerabilities.cs | 28 +- ...yAdvisoryUpdate_vulnerabilities_package.cs | 24 +- .../Models/RepositoryAdvisoryVulnerability.cs | 28 +- ...RepositoryAdvisoryVulnerability_package.cs | 24 +- .../Models/RepositoryAdvisory_credits.cs | 24 +- src/GitHub/Models/RepositoryAdvisory_cvss.cs | 20 +- src/GitHub/Models/RepositoryAdvisory_cwes.cs | 20 +- .../Models/RepositoryAdvisory_identifiers.cs | 24 +- .../RepositoryAdvisory_identifiers_type.cs | 4 +- .../Models/RepositoryAdvisory_severity.cs | 4 +- src/GitHub/Models/RepositoryAdvisory_state.cs | 4 +- .../Models/RepositoryAdvisory_submission.cs | 18 +- .../RepositoryCollaboratorPermission.cs | 28 +- .../Models/RepositoryFineGrainedPermission.cs | 20 +- src/GitHub/Models/RepositoryInvitation.cs | 58 +- .../RepositoryInvitation_permissions.cs | 4 +- src/GitHub/Models/RepositoryRule.cs | 1416 +++++++++-------- .../Models/RepositoryRuleBranchNamePattern.cs | 30 +- ...ositoryRuleBranchNamePattern_parameters.cs | 28 +- ...leBranchNamePattern_parameters_operator.cs | 4 +- .../RepositoryRuleBranchNamePattern_type.cs | 4 +- .../Models/RepositoryRuleCodeScanning.cs | 30 +- .../RepositoryRuleCodeScanning_parameters.cs | 24 +- .../Models/RepositoryRuleCodeScanning_type.cs | 4 +- .../RepositoryRuleCommitAuthorEmailPattern.cs | 30 +- ...RuleCommitAuthorEmailPattern_parameters.cs | 28 +- ...tAuthorEmailPattern_parameters_operator.cs | 4 +- ...sitoryRuleCommitAuthorEmailPattern_type.cs | 4 +- .../RepositoryRuleCommitMessagePattern.cs | 30 +- ...toryRuleCommitMessagePattern_parameters.cs | 28 +- ...ommitMessagePattern_parameters_operator.cs | 4 +- ...RepositoryRuleCommitMessagePattern_type.cs | 4 +- .../RepositoryRuleCommitterEmailPattern.cs | 30 +- ...oryRuleCommitterEmailPattern_parameters.cs | 28 +- ...mmitterEmailPattern_parameters_operator.cs | 4 +- ...epositoryRuleCommitterEmailPattern_type.cs | 4 +- src/GitHub/Models/RepositoryRuleCreation.cs | 22 +- .../Models/RepositoryRuleCreation_type.cs | 4 +- src/GitHub/Models/RepositoryRuleDeletion.cs | 22 +- .../Models/RepositoryRuleDeletion_type.cs | 4 +- src/GitHub/Models/RepositoryRuleDetailed.cs | 16 +- .../Models/RepositoryRuleEnforcement.cs | 4 +- ...estriction.cs => RepositoryRuleMember1.cs} | 32 +- ...cs => RepositoryRuleMember1_parameters.cs} | 20 +- ..._type.cs => RepositoryRuleMember1_type.cs} | 6 +- ...ath_length.cs => RepositoryRuleMember2.cs} | 32 +- ...cs => RepositoryRuleMember2_parameters.cs} | 20 +- ..._type.cs => RepositoryRuleMember2_type.cs} | 6 +- ...estriction.cs => RepositoryRuleMember3.cs} | 32 +- ...cs => RepositoryRuleMember3_parameters.cs} | 20 +- ..._type.cs => RepositoryRuleMember3_type.cs} | 6 +- ..._file_size.cs => RepositoryRuleMember4.cs} | 32 +- ...cs => RepositoryRuleMember4_parameters.cs} | 20 +- ..._type.cs => RepositoryRuleMember4_type.cs} | 6 +- src/GitHub/Models/RepositoryRuleMergeQueue.cs | 30 +- .../RepositoryRuleMergeQueue_parameters.cs | 38 +- ...MergeQueue_parameters_grouping_strategy.cs | 4 +- ...yRuleMergeQueue_parameters_merge_method.cs | 4 +- .../Models/RepositoryRuleMergeQueue_type.cs | 4 +- .../Models/RepositoryRuleNonFastForward.cs | 22 +- .../RepositoryRuleNonFastForward_type.cs | 4 +- .../RepositoryRuleParamsCodeScanningTool.cs | 30 +- ...ParamsCodeScanningTool_alerts_threshold.cs | 4 +- ...eScanningTool_security_alerts_threshold.cs | 4 +- ...itoryRuleParamsStatusCheckConfiguration.cs | 20 +- ...positoryRuleParamsWorkflowFileReference.cs | 24 +- .../Models/RepositoryRulePullRequest.cs | 30 +- .../RepositoryRulePullRequest_parameters.cs | 26 +- .../Models/RepositoryRulePullRequest_type.cs | 4 +- .../RepositoryRuleRequiredDeployments.cs | 30 +- ...itoryRuleRequiredDeployments_parameters.cs | 18 +- .../RepositoryRuleRequiredDeployments_type.cs | 4 +- .../RepositoryRuleRequiredLinearHistory.cs | 22 +- ...epositoryRuleRequiredLinearHistory_type.cs | 4 +- .../RepositoryRuleRequiredSignatures.cs | 22 +- .../RepositoryRuleRequiredSignatures_type.cs | 4 +- .../RepositoryRuleRequiredStatusChecks.cs | 30 +- ...toryRuleRequiredStatusChecks_parameters.cs | 28 +- ...RepositoryRuleRequiredStatusChecks_type.cs | 4 +- .../Models/RepositoryRuleTagNamePattern.cs | 30 +- ...RepositoryRuleTagNamePattern_parameters.cs | 28 +- ...yRuleTagNamePattern_parameters_operator.cs | 4 +- .../RepositoryRuleTagNamePattern_type.cs | 4 +- src/GitHub/Models/RepositoryRuleUpdate.cs | 30 +- .../Models/RepositoryRuleUpdate_parameters.cs | 18 +- .../Models/RepositoryRuleUpdate_type.cs | 4 +- src/GitHub/Models/RepositoryRuleWorkflows.cs | 30 +- .../RepositoryRuleWorkflows_parameters.cs | 26 +- .../Models/RepositoryRuleWorkflows_type.cs | 4 +- src/GitHub/Models/RepositoryRuleset.cs | 113 +- .../Models/RepositoryRulesetBypassActor.cs | 30 +- ...RepositoryRulesetBypassActor_actor_type.cs | 8 +- ...epositoryRulesetBypassActor_bypass_mode.cs | 4 +- .../Models/RepositoryRulesetConditions.cs | 24 +- .../RepositoryRulesetConditions_ref_name.cs | 20 +- src/GitHub/Models/RepositoryRuleset__links.cs | 32 +- .../Models/RepositoryRuleset__links_html.cs | 18 +- .../Models/RepositoryRuleset__links_self.cs | 18 +- ...positoryRuleset_current_user_can_bypass.cs | 4 +- .../Models/RepositoryRuleset_source_type.cs | 4 +- src/GitHub/Models/RepositoryRuleset_target.cs | 4 +- src/GitHub/Models/RepositorySubscription.cs | 28 +- .../Models/Repository_merge_commit_message.cs | 4 +- .../Models/Repository_merge_commit_title.cs | 4 +- src/GitHub/Models/Repository_permissions.cs | 26 +- .../Repository_squash_merge_commit_message.cs | 4 +- .../Repository_squash_merge_commit_title.cs | 4 +- src/GitHub/Models/Resource503Error.cs | 32 +- src/GitHub/Models/ReviewComment.cs | 106 +- src/GitHub/Models/ReviewComment__links.cs | 40 +- src/GitHub/Models/ReviewComment_side.cs | 4 +- src/GitHub/Models/ReviewComment_start_side.cs | 4 +- .../ReviewCustomGatesCommentRequired.cs | 20 +- .../Models/ReviewCustomGatesStateRequired.cs | 26 +- .../ReviewCustomGatesStateRequired_state.cs | 4 +- .../Models/ReviewDismissedIssueEvent.cs | 54 +- ...iewDismissedIssueEvent_dismissed_review.cs | 24 +- .../Models/ReviewRequestRemovedIssueEvent.cs | 70 +- .../Models/ReviewRequestedIssueEvent.cs | 70 +- src/GitHub/Models/Root.cs | 82 +- src/GitHub/Models/RuleSuite.cs | 54 +- .../Models/RuleSuite_evaluation_result.cs | 4 +- src/GitHub/Models/RuleSuite_result.cs | 4 +- .../Models/RuleSuite_rule_evaluations.cs | 40 +- .../RuleSuite_rule_evaluations_enforcement.cs | 4 +- .../RuleSuite_rule_evaluations_result.cs | 4 +- .../RuleSuite_rule_evaluations_rule_source.cs | 22 +- src/GitHub/Models/RuleSuites.cs | 46 +- .../Models/RuleSuites_evaluation_result.cs | 4 +- src/GitHub/Models/RuleSuites_result.cs | 4 +- src/GitHub/Models/Runner.cs | 36 +- src/GitHub/Models/RunnerApplication.cs | 28 +- src/GitHub/Models/RunnerGroupsEnterprise.cs | 38 +- src/GitHub/Models/RunnerGroupsOrg.cs | 42 +- src/GitHub/Models/RunnerLabel.cs | 26 +- src/GitHub/Models/RunnerLabel_type.cs | 4 +- src/GitHub/Models/ScimEnterpriseGroupList.cs | 38 +- .../Models/ScimEnterpriseGroupList_schemas.cs | 4 +- .../Models/ScimEnterpriseGroupResponse.cs | 24 +- .../ScimEnterpriseGroupResponse_members.cs | 22 +- src/GitHub/Models/ScimEnterpriseUserList.cs | 38 +- .../Models/ScimEnterpriseUserList_schemas.cs | 4 +- .../Models/ScimEnterpriseUserResponse.cs | 32 +- .../ScimEnterpriseUserResponse_groups.cs | 22 +- src/GitHub/Models/ScimError.cs | 38 +- src/GitHub/Models/ScimUser.cs | 78 +- src/GitHub/Models/ScimUserList.cs | 32 +- src/GitHub/Models/ScimUser_emails.cs | 22 +- src/GitHub/Models/ScimUser_groups.cs | 20 +- src/GitHub/Models/ScimUser_meta.cs | 24 +- src/GitHub/Models/ScimUser_name.cs | 22 +- src/GitHub/Models/ScimUser_operations.cs | 63 +- src/GitHub/Models/ScimUser_operations_op.cs | 4 +- .../ScimUser_operations_valueMember1.cs | 16 +- .../ScimUser_operations_valueMember2.cs | 16 +- src/GitHub/Models/ScimUser_roles.cs | 24 +- src/GitHub/Models/SecretScanningAlert.cs | 76 +- .../Models/SecretScanningAlert503Error.cs | 32 +- .../Models/SecretScanningAlertResolution.cs | 4 +- src/GitHub/Models/SecretScanningAlertState.cs | 4 +- .../Models/SecretScanningAlert_validity.cs | 4 +- src/GitHub/Models/SecretScanningLocation.cs | 171 +- .../Models/SecretScanningLocationCommit.cs | 34 +- .../SecretScanningLocationDiscussionBody.cs | 18 +- ...SecretScanningLocationDiscussionComment.cs | 18 +- .../SecretScanningLocationDiscussionTitle.cs | 18 +- .../Models/SecretScanningLocationIssueBody.cs | 18 +- .../SecretScanningLocationIssueComment.cs | 18 +- .../SecretScanningLocationIssueTitle.cs | 18 +- .../SecretScanningLocationPullRequestBody.cs | 18 +- ...ecretScanningLocationPullRequestComment.cs | 18 +- ...SecretScanningLocationPullRequestReview.cs | 18 +- ...canningLocationPullRequestReviewComment.cs | 18 +- .../SecretScanningLocationPullRequestTitle.cs | 18 +- .../SecretScanningLocationWikiCommit.cs | 34 +- .../Models/SecretScanningLocation_type.cs | 4 +- .../SecretScanningPushProtectionBypass.cs | 26 +- ...retScanningPushProtectionBypass503Error.cs | 32 +- ...ecretScanningPushProtectionBypassReason.cs | 4 +- .../Models/SecurityAdvisoryCreditTypes.cs | 4 +- .../Models/SecurityAdvisoryEcosystems.cs | 4 +- src/GitHub/Models/SecurityAndAnalysis.cs | 64 +- .../SecurityAndAnalysis_advanced_security.cs | 22 +- ...ityAndAnalysis_advanced_security_status.cs | 4 +- ...AndAnalysis_dependabot_security_updates.cs | 22 +- ...ysis_dependabot_security_updates_status.cs | 4 +- .../SecurityAndAnalysis_secret_scanning.cs | 22 +- ...s_secret_scanning_non_provider_patterns.cs | 22 +- ...t_scanning_non_provider_patterns_status.cs | 4 +- ...nalysis_secret_scanning_push_protection.cs | 22 +- ..._secret_scanning_push_protection_status.cs | 4 +- ...urityAndAnalysis_secret_scanning_status.cs | 4 +- ...nalysis_secret_scanning_validity_checks.cs | 22 +- ..._secret_scanning_validity_checks_status.cs | 4 +- src/GitHub/Models/SelectedActions.cs | 22 +- src/GitHub/Models/ServerStatistics.cs | 66 +- src/GitHub/Models/ServerStatisticsActions.cs | 20 +- src/GitHub/Models/ServerStatisticsPackages.cs | 28 +- .../ServerStatisticsPackages_ecosystems.cs | 48 +- ...erStatisticsPackages_ecosystems_enabled.cs | 4 +- ...erverStatisticsPackages_ecosystems_name.cs | 4 +- .../Models/ServerStatistics_dormant_users.cs | 20 +- .../Models/ServerStatistics_ghe_stats.cs | 96 +- .../ServerStatistics_ghe_stats_comments.cs | 24 +- .../ServerStatistics_ghe_stats_gists.cs | 22 +- .../ServerStatistics_ghe_stats_hooks.cs | 22 +- .../ServerStatistics_ghe_stats_issues.cs | 22 +- .../ServerStatistics_ghe_stats_milestones.cs | 22 +- .../Models/ServerStatistics_ghe_stats_orgs.cs | 24 +- .../ServerStatistics_ghe_stats_pages.cs | 18 +- .../ServerStatistics_ghe_stats_pulls.cs | 24 +- .../ServerStatistics_ghe_stats_repos.cs | 28 +- .../ServerStatistics_ghe_stats_users.cs | 22 +- .../Models/ServerStatistics_github_connect.cs | 18 +- src/GitHub/Models/ShortBlob.cs | 20 +- src/GitHub/Models/ShortBranch.cs | 38 +- src/GitHub/Models/ShortBranch_commit.cs | 20 +- src/GitHub/Models/SigstoreBundle0.cs | 34 +- .../Models/SigstoreBundle0_dsseEnvelope.cs | 28 +- ...SigstoreBundle0_dsseEnvelope_signatures.cs | 20 +- .../SigstoreBundle0_verificationMaterial.cs | 34 +- ...undle0_verificationMaterial_tlogEntries.cs | 48 +- ...onMaterial_tlogEntries_inclusionPromise.cs | 18 +- ...icationMaterial_tlogEntries_kindVersion.cs | 20 +- ..._verificationMaterial_tlogEntries_logId.cs | 18 +- ...rificationMaterial_x509CertificateChain.cs | 24 +- ...erial_x509CertificateChain_certificates.cs | 18 +- src/GitHub/Models/SimpleClassroom.cs | 24 +- .../Models/SimpleClassroomAssignment.cs | 62 +- .../Models/SimpleClassroomAssignment_type.cs | 4 +- .../Models/SimpleClassroomOrganization.cs | 28 +- .../Models/SimpleClassroomRepository.cs | 28 +- src/GitHub/Models/SimpleClassroomUser.cs | 24 +- src/GitHub/Models/SimpleCommit.cs | 40 +- src/GitHub/Models/SimpleCommitStatus.cs | 38 +- src/GitHub/Models/SimpleCommit_author.cs | 20 +- src/GitHub/Models/SimpleCommit_committer.cs | 20 +- src/GitHub/Models/SimpleRepository.cs | 114 +- src/GitHub/Models/SimpleUser.cs | 58 +- src/GitHub/Models/Snapshot.cs | 54 +- src/GitHub/Models/Snapshot_detector.cs | 20 +- src/GitHub/Models/Snapshot_job.cs | 20 +- src/GitHub/Models/Snapshot_manifests.cs | 16 +- src/GitHub/Models/SocialAccount.cs | 20 +- src/GitHub/Models/SshSigningKey.cs | 24 +- src/GitHub/Models/StateChangeIssueEvent.cs | 48 +- src/GitHub/Models/Status.cs | 44 +- src/GitHub/Models/StatusCheckPolicy.cs | 32 +- src/GitHub/Models/StatusCheckPolicy_checks.cs | 20 +- src/GitHub/Models/Tag.cs | 32 +- src/GitHub/Models/TagProtection.cs | 26 +- src/GitHub/Models/Tag_commit.cs | 20 +- src/GitHub/Models/Team.cs | 56 +- src/GitHub/Models/TeamDiscussion.cs | 64 +- src/GitHub/Models/TeamDiscussionComment.cs | 54 +- src/GitHub/Models/TeamFull.cs | 74 +- .../Models/TeamFull_notification_setting.cs | 4 +- src/GitHub/Models/TeamFull_privacy.cs | 4 +- src/GitHub/Models/TeamMembership.cs | 32 +- src/GitHub/Models/TeamMembership_role.cs | 4 +- src/GitHub/Models/TeamMembership_state.cs | 4 +- src/GitHub/Models/TeamOrganization.cs | 120 +- src/GitHub/Models/TeamOrganization_plan.cs | 26 +- src/GitHub/Models/TeamProject.cs | 60 +- src/GitHub/Models/TeamProject_permissions.cs | 22 +- src/GitHub/Models/TeamRepository.cs | 212 +-- .../Models/TeamRepository_permissions.cs | 26 +- src/GitHub/Models/TeamRoleAssignment.cs | 56 +- .../Models/TeamRoleAssignment_permissions.cs | 26 +- src/GitHub/Models/TeamSimple.cs | 42 +- src/GitHub/Models/Team_permissions.cs | 26 +- src/GitHub/Models/ThreadObject.cs | 46 +- src/GitHub/Models/ThreadSubscription.cs | 30 +- src/GitHub/Models/Thread_subject.cs | 24 +- .../Models/TimelineAssignedIssueEvent.cs | 54 +- src/GitHub/Models/TimelineCommentEvent.cs | 76 +- .../Models/TimelineCommitCommentedEvent.cs | 30 +- src/GitHub/Models/TimelineCommittedEvent.cs | 68 +- .../Models/TimelineCommittedEvent_author.cs | 22 +- .../TimelineCommittedEvent_committer.cs | 22 +- .../Models/TimelineCommittedEvent_parents.cs | 22 +- .../Models/TimelineCommittedEvent_tree.cs | 20 +- .../TimelineCommittedEvent_verification.cs | 24 +- .../Models/TimelineCrossReferencedEvent.cs | 38 +- .../TimelineCrossReferencedEvent_source.cs | 26 +- src/GitHub/Models/TimelineIssueEvents.cs | 194 +-- .../Models/TimelineLineCommentedEvent.cs | 28 +- src/GitHub/Models/TimelineReviewedEvent.cs | 60 +- .../Models/TimelineReviewedEvent__links.cs | 32 +- .../TimelineReviewedEvent__links_html.cs | 18 +- ...melineReviewedEvent__links_pull_request.cs | 18 +- .../Models/TimelineUnassignedIssueEvent.cs | 54 +- src/GitHub/Models/Topic.cs | 18 +- src/GitHub/Models/TopicSearchResultItem.cs | 66 +- .../Models/TopicSearchResultItem_aliases.cs | 24 +- ...SearchResultItem_aliases_topic_relation.cs | 24 +- .../Models/TopicSearchResultItem_related.cs | 24 +- ...SearchResultItem_related_topic_relation.cs | 24 +- src/GitHub/Models/Topics.cs | 32 +- src/GitHub/Models/Topics_matches.cs | 20 +- src/GitHub/Models/Traffic.cs | 22 +- src/GitHub/Models/UnassignedIssueEvent.cs | 62 +- src/GitHub/Models/UnlabeledIssueEvent.cs | 54 +- .../Models/UnlabeledIssueEvent_label.cs | 20 +- src/GitHub/Models/User.cs | 56 +- src/GitHub/Models/UserMarketplacePurchase.cs | 44 +- src/GitHub/Models/UserName.cs | 24 +- src/GitHub/Models/UserNameResponse.cs | 24 +- src/GitHub/Models/UserResponse.cs | 56 +- src/GitHub/Models/UserResponse_schemas.cs | 4 +- src/GitHub/Models/UserRoleAssignment.cs | 58 +- src/GitHub/Models/UserSearchResultItem.cs | 90 +- src/GitHub/Models/User_schemas.cs | 4 +- src/GitHub/Models/Users.cs | 22 +- src/GitHub/Models/Users503Error.cs | 32 +- src/GitHub/Models/ValidationError.cs | 38 +- src/GitHub/Models/ValidationErrorSimple.cs | 32 +- src/GitHub/Models/ValidationError_errors.cs | 43 +- src/GitHub/Models/Verification.cs | 24 +- src/GitHub/Models/ViewTraffic.cs | 28 +- src/GitHub/Models/Vulnerability.cs | 30 +- src/GitHub/Models/Vulnerability_package.cs | 24 +- src/GitHub/Models/WebhookConfig.cs | 30 +- src/GitHub/Models/WebhookConfigInsecureSsl.cs | 12 +- .../Models/WithPathGetResponseMember1.cs | 16 +- src/GitHub/Models/Workflow.cs | 42 +- src/GitHub/Models/WorkflowRun.cs | 130 +- src/GitHub/Models/WorkflowRunUsage.cs | 26 +- .../Models/WorkflowRunUsage_billable.cs | 40 +- .../Models/WorkflowRunUsage_billable_MACOS.cs | 28 +- ...orkflowRunUsage_billable_MACOS_job_runs.cs | 20 +- .../WorkflowRunUsage_billable_UBUNTU.cs | 28 +- ...rkflowRunUsage_billable_UBUNTU_job_runs.cs | 20 +- .../WorkflowRunUsage_billable_WINDOWS.cs | 28 +- ...kflowRunUsage_billable_WINDOWS_job_runs.cs | 20 +- src/GitHub/Models/WorkflowUsage.cs | 24 +- src/GitHub/Models/WorkflowUsage_billable.cs | 40 +- .../Models/WorkflowUsage_billable_MACOS.cs | 18 +- .../Models/WorkflowUsage_billable_UBUNTU.cs | 18 +- .../Models/WorkflowUsage_billable_WINDOWS.cs | 18 +- src/GitHub/Models/Workflow_state.cs | 4 +- .../Item/Item/Events/EventsRequestBuilder.cs | 43 +- .../Item/Item/WithRepoItemRequestBuilder.cs | 16 +- .../Item/WithOwnerItemRequestBuilder.cs | 18 +- src/GitHub/Networks/NetworksRequestBuilder.cs | 18 +- .../NotificationsPutRequestBody.cs | 20 +- .../Notifications/NotificationsPutResponse.cs | 18 +- .../NotificationsRequestBuilder.cs | 71 +- .../SubscriptionPutRequestBody.cs | 18 +- .../SubscriptionRequestBuilder.cs | 62 +- .../Item/WithThread_ItemRequestBuilder.cs | 42 +- .../Threads/ThreadsRequestBuilder.cs | 18 +- src/GitHub/Octocat/OctocatRequestBuilder.cs | 29 +- .../Custom_roles/Custom_rolesGetResponse.cs | 26 +- .../Custom_rolesRequestBuilder.cs | 26 +- .../WithOrganization_ItemRequestBuilder.cs | 16 +- .../OrganizationsRequestBuilder.cs | 41 +- .../Item/Actions/ActionsRequestBuilder.cs | 40 +- .../Item/Actions/Cache/CacheRequestBuilder.cs | 20 +- .../Cache/Usage/UsageRequestBuilder.cs | 26 +- .../UsageByRepositoryGetResponse.cs | 26 +- .../UsageByRepositoryRequestBuilder.cs | 33 +- .../CustomizationRequestBuilder.cs | 16 +- .../Customization/Sub/SubRequestBuilder.cs | 46 +- .../Item/Actions/Oidc/OidcRequestBuilder.cs | 16 +- .../Permissions/PermissionsPutRequestBody.cs | 28 +- .../Permissions/PermissionsRequestBuilder.cs | 46 +- .../Item/WithRepository_ItemRequestBuilder.cs | 18 +- .../Repositories/RepositoriesGetResponse.cs | 26 +- .../RepositoriesPutRequestBody.cs | 18 +- .../RepositoriesRequestBuilder.cs | 47 +- .../SelectedActionsRequestBuilder.cs | 34 +- .../Workflow/WorkflowRequestBuilder.cs | 34 +- .../Item/WithRepository_ItemRequestBuilder.cs | 18 +- .../Repositories/RepositoriesGetResponse.cs | 26 +- .../RepositoriesPutRequestBody.cs | 18 +- .../RepositoriesRequestBuilder.cs | 47 +- .../Item/WithRunner_ItemRequestBuilder.cs | 18 +- .../Item/Runners/RunnersGetResponse.cs | 26 +- .../Item/Runners/RunnersPutRequestBody.cs | 18 +- .../Item/Runners/RunnersRequestBuilder.cs | 47 +- .../WithRunner_group_ItemRequestBuilder.cs | 46 +- .../Item/WithRunner_group_PatchRequestBody.cs | 30 +- ...unner_group_PatchRequestBody_visibility.cs | 4 +- .../RunnerGroups/RunnerGroupsGetResponse.cs | 26 +- .../RunnerGroupsPostRequestBody.cs | 36 +- .../RunnerGroupsPostRequestBody_visibility.cs | 4 +- .../RunnerGroupsRequestBuilder.cs | 51 +- .../Downloads/DownloadsRequestBuilder.cs | 28 +- .../GenerateJitconfigPostRequestBody.cs | 24 +- .../GenerateJitconfigPostResponse.cs | 26 +- .../GenerateJitconfigRequestBuilder.cs | 38 +- .../Labels/Item/WithNameDeleteResponse.cs | 26 +- .../Labels/Item/WithNameItemRequestBuilder.cs | 34 +- .../Item/Labels/LabelsDeleteResponse.cs | 26 +- .../Runners/Item/Labels/LabelsGetResponse.cs | 26 +- .../Item/Labels/LabelsPostRequestBody.cs | 18 +- .../Runners/Item/Labels/LabelsPostResponse.cs | 26 +- .../Item/Labels/LabelsPutRequestBody.cs | 18 +- .../Runners/Item/Labels/LabelsPutResponse.cs | 26 +- .../Item/Labels/LabelsRequestBuilder.cs | 88 +- .../Item/WithRunner_ItemRequestBuilder.cs | 30 +- .../RegistrationTokenRequestBuilder.cs | 26 +- .../RemoveToken/RemoveTokenRequestBuilder.cs | 26 +- .../Actions/Runners/RunnersGetResponse.cs | 26 +- .../Actions/Runners/RunnersRequestBuilder.cs | 55 +- .../Item/WithRepository_ItemRequestBuilder.cs | 18 +- .../Repositories/RepositoriesGetResponse.cs | 26 +- .../RepositoriesPutRequestBody.cs | 18 +- .../RepositoriesRequestBuilder.cs | 47 +- .../Item/WithSecret_nameItemRequestBuilder.cs | 42 +- .../Item/WithSecret_namePutRequestBody.cs | 28 +- ...ithSecret_namePutRequestBody_visibility.cs | 4 +- .../PublicKey/PublicKeyRequestBuilder.cs | 26 +- .../Actions/Secrets/SecretsGetResponse.cs | 26 +- .../Actions/Secrets/SecretsRequestBuilder.cs | 43 +- .../Item/WithRepository_ItemRequestBuilder.cs | 18 +- .../Repositories/RepositoriesGetResponse.cs | 26 +- .../RepositoriesPutRequestBody.cs | 18 +- .../RepositoriesRequestBuilder.cs | 47 +- .../Item/WithNameItemRequestBuilder.cs | 38 +- .../Item/WithNamePatchRequestBody.cs | 28 +- .../WithNamePatchRequestBody_visibility.cs | 4 +- .../Actions/Variables/VariablesGetResponse.cs | 26 +- .../Variables/VariablesPostRequestBody.cs | 28 +- .../VariablesPostRequestBody_visibility.cs | 4 +- .../Variables/VariablesRequestBuilder.cs | 51 +- .../AnnouncementRequestBuilder.cs | 38 +- .../AttestationsRequestBuilder.cs | 18 +- .../Item/WithSubject_digestGetResponse.cs | 24 +- ...hSubject_digestGetResponse_attestations.cs | 26 +- ...t_digestGetResponse_attestations_bundle.cs | 34 +- ...sponse_attestations_bundle_dsseEnvelope.cs | 16 +- ...ttestations_bundle_verificationMaterial.cs | 16 +- .../WithSubject_digestItemRequestBuilder.cs | 33 +- .../Item/AuditLog/AuditLogRequestBuilder.cs | 39 +- .../AuditLog/GetIncludeQueryParameterType.cs | 4 +- .../AuditLog/GetOrderQueryParameterType.cs | 4 +- .../Orgs/Item/Blocks/BlocksRequestBuilder.cs | 41 +- .../Item/WithUsernameItemRequestBuilder.cs | 26 +- .../Alerts/AlertsRequestBuilder.cs | 51 +- .../Alerts/GetDirectionQueryParameterType.cs | 4 +- .../Alerts/GetSortQueryParameterType.cs | 4 +- .../CodeScanningRequestBuilder.cs | 16 +- .../CodeSecurityRequestBuilder.cs | 16 +- .../ConfigurationsPostRequestBody.cs | 116 +- ...ationsPostRequestBody_advanced_security.cs | 4 +- ...RequestBody_code_scanning_default_setup.cs | 4 +- ...ationsPostRequestBody_dependabot_alerts.cs | 4 +- ...RequestBody_dependabot_security_updates.cs | 4 +- ...rationsPostRequestBody_dependency_graph.cs | 4 +- ...Body_dependency_graph_autosubmit_action.cs | 4 +- ...endency_graph_autosubmit_action_options.cs | 18 +- ...nfigurationsPostRequestBody_enforcement.cs | 4 +- ...estBody_private_vulnerability_reporting.cs | 4 +- ...urationsPostRequestBody_secret_scanning.cs | 4 +- ...estBody_secret_scanning_push_protection.cs | 4 +- ...estBody_secret_scanning_validity_checks.cs | 4 +- .../ConfigurationsRequestBuilder.cs | 71 +- .../Defaults/DefaultsRequestBuilder.cs | 36 +- .../Detach/DetachDeleteRequestBody.cs | 16 +- .../Detach/DetachRequestBuilder.cs | 42 +- .../GetTarget_typeQueryParameterType.cs | 4 +- .../Item/Attach/AttachPostRequestBody.cs | 22 +- .../Attach/AttachPostRequestBody_scope.cs | 4 +- .../Item/Attach/AttachPostResponse.cs | 16 +- .../Item/Attach/AttachRequestBuilder.cs | 30 +- .../Item/Defaults/DefaultsPutRequestBody.cs | 22 +- ...ltsPutRequestBody_default_for_new_repos.cs | 4 +- .../Item/Defaults/DefaultsPutResponse.cs | 30 +- ...faultsPutResponse_default_for_new_repos.cs | 4 +- .../Item/Defaults/DefaultsRequestBuilder.cs | 38 +- .../RepositoriesRequestBuilder.cs | 43 +- .../WithConfiguration_ItemRequestBuilder.cs | 74 +- .../WithConfiguration_PatchRequestBody.cs | 92 +- ...tion_PatchRequestBody_advanced_security.cs | 4 +- ...RequestBody_code_scanning_default_setup.cs | 4 +- ...tion_PatchRequestBody_dependabot_alerts.cs | 4 +- ...RequestBody_dependabot_security_updates.cs | 4 +- ...ation_PatchRequestBody_dependency_graph.cs | 4 +- ...Body_dependency_graph_autosubmit_action.cs | 4 +- ...endency_graph_autosubmit_action_options.cs | 18 +- ...figuration_PatchRequestBody_enforcement.cs | 4 +- ...estBody_private_vulnerability_reporting.cs | 4 +- ...ration_PatchRequestBody_secret_scanning.cs | 4 +- ...estBody_secret_scanning_push_protection.cs | 4 +- ...estBody_secret_scanning_validity_checks.cs | 4 +- .../Codespaces/Access/AccessPutRequestBody.cs | 24 +- .../Access/AccessPutRequestBody_visibility.cs | 4 +- .../Codespaces/Access/AccessRequestBuilder.cs | 42 +- .../Selected_usersDeleteRequestBody.cs | 18 +- .../Selected_usersPostRequestBody.cs | 18 +- .../Selected_usersRequestBuilder.cs | 58 +- .../Item/Codespaces/CodespacesGetResponse.cs | 26 +- .../Codespaces/CodespacesRequestBuilder.cs | 57 +- .../Item/WithRepository_ItemRequestBuilder.cs | 34 +- .../Repositories/RepositoriesGetResponse.cs | 26 +- .../RepositoriesPutRequestBody.cs | 18 +- .../RepositoriesRequestBuilder.cs | 55 +- .../Item/WithSecret_nameItemRequestBuilder.cs | 54 +- .../Item/WithSecret_namePutRequestBody.cs | 28 +- ...ithSecret_namePutRequestBody_visibility.cs | 4 +- .../PublicKey/PublicKeyRequestBuilder.cs | 26 +- .../Codespaces/Secrets/SecretsGetResponse.cs | 26 +- .../Secrets/SecretsRequestBuilder.cs | 43 +- .../Copilot/Billing/BillingRequestBuilder.cs | 54 +- .../Copilot/Billing/Seats/SeatsGetResponse.cs | 26 +- .../Billing/Seats/SeatsRequestBuilder.cs | 49 +- .../Selected_teamsDeleteRequestBody.cs | 18 +- .../Selected_teamsDeleteResponse.cs | 18 +- .../Selected_teamsPostRequestBody.cs | 18 +- .../Selected_teamsPostResponse.cs | 18 +- .../Selected_teamsRequestBuilder.cs | 74 +- .../Selected_usersDeleteRequestBody.cs | 18 +- .../Selected_usersDeleteResponse.cs | 18 +- .../Selected_usersPostRequestBody.cs | 18 +- .../Selected_usersPostResponse.cs | 18 +- .../Selected_usersRequestBuilder.cs | 74 +- .../Item/Copilot/CopilotRequestBuilder.cs | 20 +- .../Item/Copilot/Usage/UsageRequestBuilder.cs | 51 +- .../CredentialAuthorizationsRequestBuilder.cs | 41 +- .../Item/WithCredential_ItemRequestBuilder.cs | 22 +- .../CustomRepositoryRolesGetResponse.cs | 26 +- .../CustomRepositoryRolesRequestBuilder.cs | 52 +- .../Item/WithRole_ItemRequestBuilder.cs | 50 +- .../Custom_rolesRequestBuilder.cs | 44 +- .../Item/WithRole_ItemRequestBuilder.cs | 50 +- .../Dependabot/Alerts/AlertsRequestBuilder.cs | 57 +- .../Alerts/GetDirectionQueryParameterType.cs | 4 +- .../Alerts/GetScopeQueryParameterType.cs | 4 +- .../Alerts/GetSortQueryParameterType.cs | 4 +- .../Dependabot/DependabotRequestBuilder.cs | 20 +- .../Item/WithRepository_ItemRequestBuilder.cs | 18 +- .../Repositories/RepositoriesGetResponse.cs | 26 +- .../RepositoriesPutRequestBody.cs | 18 +- .../RepositoriesRequestBuilder.cs | 47 +- .../Item/WithSecret_nameItemRequestBuilder.cs | 42 +- .../Item/WithSecret_namePutRequestBody.cs | 28 +- ...ithSecret_namePutRequestBody_visibility.cs | 4 +- .../PublicKey/PublicKeyRequestBuilder.cs | 26 +- .../Dependabot/Secrets/SecretsGetResponse.cs | 26 +- .../Secrets/SecretsRequestBuilder.cs | 43 +- .../Conflicts/ConflictsRequestBuilder.cs | 36 +- .../Orgs/Item/Docker/DockerRequestBuilder.cs | 16 +- .../Orgs/Item/Events/EventsRequestBuilder.cs | 35 +- .../ExternalGroupRequestBuilder.cs | 18 +- .../Item/WithGroup_ItemRequestBuilder.cs | 26 +- .../ExternalGroupsRequestBuilder.cs | 33 +- .../Failed_invitationsRequestBuilder.cs | 39 +- .../Fine_grained_permissionsRequestBuilder.cs | 28 +- .../Orgs/Item/Hooks/HooksPostRequestBody.cs | 30 +- .../Item/Hooks/HooksPostRequestBody_config.cs | 34 +- .../Orgs/Item/Hooks/HooksRequestBuilder.cs | 65 +- .../Item/Config/ConfigPatchRequestBody.cs | 30 +- .../Hooks/Item/Config/ConfigRequestBuilder.cs | 38 +- .../Deliveries/DeliveriesRequestBuilder.cs | 49 +- .../Item/Attempts/AttemptsPostResponse.cs | 16 +- .../Item/Attempts/AttemptsRequestBuilder.cs | 34 +- .../Item/WithDelivery_ItemRequestBuilder.cs | 38 +- .../Hooks/Item/Pings/PingsRequestBuilder.cs | 22 +- .../Hooks/Item/WithHook_ItemRequestBuilder.cs | 66 +- .../Hooks/Item/WithHook_PatchRequestBody.cs | 30 +- .../Item/WithHook_PatchRequestBody_config.cs | 30 +- .../InstallationRequestBuilder.cs | 26 +- .../Installations/InstallationsGetResponse.cs | 26 +- .../InstallationsRequestBuilder.cs | 33 +- .../InteractionLimitsRequestBuilder.cs | 42 +- .../GetInvitation_sourceQueryParameterType.cs | 4 +- .../Invitations/GetRoleQueryParameterType.cs | 4 +- .../Invitations/InvitationsPostRequestBody.cs | 30 +- .../InvitationsPostRequestBody_role.cs | 4 +- .../Invitations/InvitationsRequestBuilder.cs | 69 +- .../Item/Teams/TeamsRequestBuilder.cs | 39 +- .../Item/WithInvitation_ItemRequestBuilder.cs | 30 +- .../Issues/GetDirectionQueryParameterType.cs | 4 +- .../Issues/GetFilterQueryParameterType.cs | 4 +- .../Item/Issues/GetSortQueryParameterType.cs | 4 +- .../Item/Issues/GetStateQueryParameterType.cs | 4 +- .../Orgs/Item/Issues/IssuesRequestBuilder.cs | 47 +- .../Item/WithEnablementItemRequestBuilder.cs | 26 +- .../Item/WithEnablementPostRequestBody.cs | 22 +- ...thEnablementPostRequestBody_query_suite.cs | 4 +- .../WithSecurity_productItemRequestBuilder.cs | 18 +- .../Members/GetFilterQueryParameterType.cs | 4 +- .../Item/Members/GetRoleQueryParameterType.cs | 4 +- .../Item/Codespaces/CodespacesGetResponse.cs | 26 +- .../Codespaces/CodespacesRequestBuilder.cs | 55 +- .../Item/Stop/StopRequestBuilder.cs | 42 +- .../Item/WithCodespace_nameDeleteResponse.cs | 16 +- .../WithCodespace_nameItemRequestBuilder.cs | 46 +- .../Item/Copilot/CopilotRequestBuilder.cs | 42 +- .../Item/WithUsernameItemRequestBuilder.cs | 30 +- .../Item/Members/MembersRequestBuilder.cs | 49 +- .../Item/WithUsernameItemRequestBuilder.cs | 62 +- .../Item/WithUsernamePutRequestBody.cs | 24 +- .../Item/WithUsernamePutRequestBody_role.cs | 4 +- .../Memberships/MembershipsRequestBuilder.cs | 18 +- .../GetExcludeQueryParameterType.cs | 4 +- .../Item/Archive/ArchiveRequestBuilder.cs | 26 +- .../Item/GetExcludeQueryParameterType.cs | 4 +- .../Repos/Item/Lock/LockRequestBuilder.cs | 22 +- .../Item/WithRepo_nameItemRequestBuilder.cs | 16 +- .../Item/Repos/ReposRequestBuilder.cs | 18 +- .../RepositoriesRequestBuilder.cs | 39 +- .../Item/WithMigration_ItemRequestBuilder.cs | 53 +- .../Migrations/MigrationsPostRequestBody.cs | 40 +- .../MigrationsPostRequestBody_exclude.cs | 4 +- .../Migrations/MigrationsRequestBuilder.cs | 65 +- ...ionFineGrainedPermissionsRequestBuilder.cs | 36 +- .../Item/Teams/TeamsRequestBuilder.cs | 35 +- .../Item/Users/UsersRequestBuilder.cs | 35 +- .../Item/WithRole_ItemRequestBuilder.cs | 70 +- .../OrganizationRolesGetResponse.cs | 26 +- .../OrganizationRolesRequestBuilder.cs | 76 +- .../Item/Item/WithRole_ItemRequestBuilder.cs | 18 +- .../Item/WithTeam_slugItemRequestBuilder.cs | 24 +- .../Teams/TeamsRequestBuilder.cs | 18 +- .../Item/Item/WithRole_ItemRequestBuilder.cs | 18 +- .../Item/WithUsernameItemRequestBuilder.cs | 24 +- .../Users/UsersRequestBuilder.cs | 18 +- .../GetFilterQueryParameterType.cs | 4 +- .../Item/WithUsername422Error.cs | 30 +- .../Item/WithUsernameItemRequestBuilder.cs | 38 +- .../Item/WithUsernamePutRequestBody.cs | 18 +- .../Item/WithUsernamePutResponse.cs | 14 +- .../Outside_collaboratorsRequestBuilder.cs | 43 +- .../GetPackage_typeQueryParameterType.cs | 4 +- .../GetVisibilityQueryParameterType.cs | 4 +- .../Item/Restore/RestoreRequestBuilder.cs | 41 +- .../Versions/GetStateQueryParameterType.cs | 4 +- .../Item/Restore/RestoreRequestBuilder.cs | 30 +- .../WithPackage_version_ItemRequestBuilder.cs | 42 +- .../Item/Versions/VersionsRequestBuilder.cs | 55 +- .../WithPackage_nameItemRequestBuilder.cs | 46 +- .../WithPackage_typeItemRequestBuilder.cs | 18 +- .../Item/Packages/PackagesRequestBuilder.cs | 53 +- .../GetDirectionQueryParameterType.cs | 4 +- .../GetSortQueryParameterType.cs | 4 +- .../RepositoriesRequestBuilder.cs | 47 +- .../WithPat_request_ItemRequestBuilder.cs | 46 +- .../Item/WithPat_request_PostRequestBody.cs | 24 +- .../WithPat_request_PostRequestBody_action.cs | 4 +- ...sonalAccessTokenRequestsPostRequestBody.cs | 26 +- ...cessTokenRequestsPostRequestBody_action.cs | 4 +- ...PersonalAccessTokenRequestsPostResponse.cs | 16 +- ...rsonalAccessTokenRequestsRequestBuilder.cs | 89 +- .../GetDirectionQueryParameterType.cs | 4 +- .../GetSortQueryParameterType.cs | 4 +- .../RepositoriesRequestBuilder.cs | 47 +- .../Item/WithPat_ItemRequestBuilder.cs | 46 +- .../Item/WithPat_PostRequestBody.cs | 22 +- .../Item/WithPat_PostRequestBody_action.cs | 4 +- .../PersonalAccessTokensPostRequestBody.cs | 24 +- ...sonalAccessTokensPostRequestBody_action.cs | 4 +- .../PersonalAccessTokensPostResponse.cs | 16 +- .../PersonalAccessTokensRequestBuilder.cs | 89 +- .../Projects/GetStateQueryParameterType.cs | 4 +- .../Item/Projects/ProjectsPostRequestBody.cs | 20 +- .../Item/Projects/ProjectsRequestBuilder.cs | 73 +- .../Properties/PropertiesRequestBuilder.cs | 20 +- ...hCustom_property_nameItemRequestBuilder.cs | 62 +- .../WithCustom_property_namePutRequestBody.cs | 45 +- ..._property_namePutRequestBody_value_type.cs | 4 +- .../Schema/SchemaPatchRequestBody.cs | 24 +- .../Properties/Schema/SchemaRequestBuilder.cs | 64 +- .../Values/ValuesPatchRequestBody.cs | 26 +- .../Properties/Values/ValuesRequestBuilder.cs | 63 +- .../Item/WithUsernameItemRequestBuilder.cs | 22 +- .../Public_membersRequestBuilder.cs | 41 +- .../Repos/GetDirectionQueryParameterType.cs | 4 +- .../Item/Repos/GetSortQueryParameterType.cs | 4 +- .../Item/Repos/GetTypeQueryParameterType.cs | 4 +- .../Orgs/Item/Repos/ReposPostRequestBody.cs | 92 +- .../ReposPostRequestBody_custom_properties.cs | 16 +- ...posPostRequestBody_merge_commit_message.cs | 4 +- ...ReposPostRequestBody_merge_commit_title.cs | 4 +- ...RequestBody_squash_merge_commit_message.cs | 4 +- ...stRequestBody_squash_merge_commit_title.cs | 4 +- .../Repos/ReposPostRequestBody_visibility.cs | 4 +- .../Orgs/Item/Repos/ReposRequestBuilder.cs | 61 +- ...oryFineGrainedPermissionsRequestBuilder.cs | 28 +- .../Item/WithRuleset_ItemRequestBuilder.cs | 62 +- .../Item/WithRuleset_PutRequestBody.cs | 54 +- .../Item/WithRuleset_PutRequestBody_target.cs | 4 +- .../GetRule_suite_resultQueryParameterType.cs | 4 +- .../GetTime_periodQueryParameterType.cs | 4 +- .../Item/WithRule_suite_ItemRequestBuilder.cs | 34 +- .../RuleSuites/RuleSuitesRequestBuilder.cs | 53 +- .../Item/Rulesets/RulesetsPostRequestBody.cs | 56 +- .../RulesetsPostRequestBody_target.cs | 4 +- .../Item/Rulesets/RulesetsRequestBuilder.cs | 73 +- .../Alerts/AlertsRequestBuilder.cs | 49 +- .../Alerts/GetDirectionQueryParameterType.cs | 4 +- .../Alerts/GetSortQueryParameterType.cs | 4 +- .../Alerts/GetStateQueryParameterType.cs | 4 +- .../SecretScanningRequestBuilder.cs | 16 +- .../GetDirectionQueryParameterType.cs | 4 +- .../GetSortQueryParameterType.cs | 4 +- .../GetStateQueryParameterType.cs | 4 +- .../SecurityAdvisoriesRequestBuilder.cs | 49 +- .../SecurityManagersRequestBuilder.cs | 32 +- .../Item/WithTeam_slugItemRequestBuilder.cs | 18 +- .../Teams/TeamsRequestBuilder.cs | 18 +- .../Billing/Actions/ActionsRequestBuilder.cs | 26 +- .../AdvancedSecurityRequestBuilder.cs | 33 +- .../Settings/Billing/BillingRequestBuilder.cs | 28 +- .../Packages/PackagesRequestBuilder.cs | 26 +- .../SharedStorageRequestBuilder.cs | 26 +- .../Item/Settings/SettingsRequestBuilder.cs | 16 +- .../Item/Copilot/CopilotRequestBuilder.cs | 16 +- .../Item/Copilot/Usage/UsageRequestBuilder.cs | 51 +- .../Item/WithTeam_slugItemRequestBuilder.cs | 16 +- .../Orgs/Item/Team/TeamRequestBuilder.cs | 18 +- .../TeamSync/Groups/GroupsRequestBuilder.cs | 33 +- .../Item/TeamSync/TeamSyncRequestBuilder.cs | 16 +- .../Discussions/DiscussionsPostRequestBody.cs | 22 +- .../Discussions/DiscussionsRequestBuilder.cs | 55 +- .../GetDirectionQueryParameterType.cs | 4 +- .../Item/Comments/CommentsPostRequestBody.cs | 18 +- .../Item/Comments/CommentsRequestBuilder.cs | 55 +- .../GetDirectionQueryParameterType.cs | 4 +- .../Reactions/GetContentQueryParameterType.cs | 4 +- .../Item/WithReaction_ItemRequestBuilder.cs | 18 +- .../Reactions/ReactionsPostRequestBody.cs | 22 +- .../ReactionsPostRequestBody_content.cs | 4 +- .../Item/Reactions/ReactionsRequestBuilder.cs | 55 +- .../WithComment_numberItemRequestBuilder.cs | 42 +- .../WithComment_numberPatchRequestBody.cs | 18 +- .../Reactions/GetContentQueryParameterType.cs | 4 +- .../Item/WithReaction_ItemRequestBuilder.cs | 18 +- .../Reactions/ReactionsPostRequestBody.cs | 22 +- .../ReactionsPostRequestBody_content.cs | 4 +- .../Item/Reactions/ReactionsRequestBuilder.cs | 55 +- ...WithDiscussion_numberItemRequestBuilder.cs | 46 +- .../WithDiscussion_numberPatchRequestBody.cs | 20 +- .../ExternalGroupsPatchRequestBody.cs | 18 +- .../ExternalGroupsRequestBuilder.cs | 38 +- .../Invitations/InvitationsRequestBuilder.cs | 35 +- .../Item/Members/GetRoleQueryParameterType.cs | 4 +- .../Item/Members/MembersRequestBuilder.cs | 37 +- .../Item/WithUsernameItemRequestBuilder.cs | 38 +- .../Item/WithUsernamePutRequestBody.cs | 24 +- .../Item/WithUsernamePutRequestBody_role.cs | 4 +- .../Memberships/MembershipsRequestBuilder.cs | 18 +- .../Projects/Item/WithProject_403Error.cs | 30 +- .../Item/WithProject_ItemRequestBuilder.cs | 38 +- .../Item/WithProject_PutRequestBody.cs | 22 +- .../WithProject_PutRequestBody_permission.cs | 4 +- .../Item/Projects/ProjectsRequestBuilder.cs | 41 +- .../Item/Item/WithRepoItemRequestBuilder.cs | 34 +- .../Repos/Item/Item/WithRepoPutRequestBody.cs | 18 +- .../Repos/Item/WithOwnerItemRequestBuilder.cs | 18 +- .../Teams/Item/Repos/ReposRequestBuilder.cs | 41 +- .../GroupMappingsPatchRequestBody.cs | 22 +- .../GroupMappingsPatchRequestBody_groups.cs | 22 +- .../GroupMappingsRequestBuilder.cs | 38 +- .../Item/TeamSync/TeamSyncRequestBuilder.cs | 16 +- .../Teams/Item/Teams/TeamsRequestBuilder.cs | 35 +- .../Item/WithTeam_slugItemRequestBuilder.cs | 90 +- .../Item/WithTeam_slugPatchRequestBody.cs | 42 +- ...ugPatchRequestBody_notification_setting.cs | 4 +- ...ithTeam_slugPatchRequestBody_permission.cs | 4 +- .../WithTeam_slugPatchRequestBody_privacy.cs | 4 +- .../Orgs/Item/Teams/TeamsPostRequestBody.cs | 46 +- ...amsPostRequestBody_notification_setting.cs | 4 +- .../Teams/TeamsPostRequestBody_permission.cs | 4 +- .../Teams/TeamsPostRequestBody_privacy.cs | 4 +- .../Orgs/Item/Teams/TeamsRequestBuilder.cs | 65 +- src/GitHub/Orgs/Item/WithOrgDeleteResponse.cs | 16 +- .../Orgs/Item/WithOrgItemRequestBuilder.cs | 256 +-- .../Orgs/Item/WithOrgPatchRequestBody.cs | 86 +- ...questBody_default_repository_permission.cs | 4 +- ...embers_allowed_repository_creation_type.cs | 4 +- src/GitHub/Orgs/OrgsRequestBuilder.cs | 18 +- .../Columns/Cards/CardsRequestBuilder.cs | 18 +- .../Columns/Cards/Item/Moves/Moves403Error.cs | 38 +- .../Cards/Item/Moves/Moves403Error_errors.cs | 24 +- .../Columns/Cards/Item/Moves/Moves503Error.cs | 40 +- .../Cards/Item/Moves/Moves503Error_errors.cs | 20 +- .../Cards/Item/Moves/MovesPostRequestBody.cs | 20 +- .../Cards/Item/Moves/MovesPostResponse.cs | 14 +- .../Cards/Item/Moves/MovesRequestBuilder.cs | 46 +- .../Columns/Cards/Item/WithCard_403Error.cs | 32 +- .../Cards/Item/WithCard_ItemRequestBuilder.cs | 82 +- .../Cards/Item/WithCard_PatchRequestBody.cs | 20 +- .../Projects/Columns/ColumnsRequestBuilder.cs | 22 +- .../Item/Cards/CardsPostRequestBodyMember1.cs | 18 +- .../Item/Cards/CardsPostRequestBodyMember2.cs | 20 +- .../Columns/Item/Cards/CardsRequestBuilder.cs | 120 +- .../GetArchived_stateQueryParameterType.cs | 4 +- .../Columns/Item/Cards/ProjectCard503Error.cs | 40 +- .../Item/Cards/ProjectCard503Error_errors.cs | 20 +- .../Item/Moves/MovesPostRequestBody.cs | 18 +- .../Columns/Item/Moves/MovesPostResponse.cs | 14 +- .../Columns/Item/Moves/MovesRequestBuilder.cs | 42 +- .../Item/WithColumn_ItemRequestBuilder.cs | 74 +- .../Item/WithColumn_PatchRequestBody.cs | 18 +- .../CollaboratorsRequestBuilder.cs | 59 +- .../GetAffiliationQueryParameterType.cs | 4 +- .../Permission/PermissionRequestBuilder.cs | 42 +- .../Item/WithUsernameItemRequestBuilder.cs | 62 +- .../Item/WithUsernamePutRequestBody.cs | 24 +- .../WithUsernamePutRequestBody_permission.cs | 4 +- .../Item/Columns/ColumnsPostRequestBody.cs | 18 +- .../Item/Columns/ColumnsRequestBuilder.cs | 67 +- src/GitHub/Projects/Item/Project403Error.cs | 32 +- .../Projects/Item/WithProject_403Error.cs | 32 +- .../Item/WithProject_ItemRequestBuilder.cs | 86 +- .../Item/WithProject_PatchRequestBody.cs | 30 +- ...atchRequestBody_organization_permission.cs | 4 +- src/GitHub/Projects/ProjectsRequestBuilder.cs | 22 +- .../Rate_limit/Rate_limitRequestBuilder.cs | 30 +- .../Item/Actions/ActionsRequestBuilder.cs | 64 +- .../Actions/Artifacts/ArtifactsGetResponse.cs | 26 +- .../Artifacts/ArtifactsRequestBuilder.cs | 39 +- .../WithArchive_formatItemRequestBuilder.cs | 22 +- .../Item/WithArtifact_ItemRequestBuilder.cs | 32 +- .../Item/Actions/Cache/CacheRequestBuilder.cs | 16 +- .../Cache/Usage/UsageRequestBuilder.cs | 26 +- .../Actions/Caches/CachesRequestBuilder.cs | 58 +- .../Caches/GetDirectionQueryParameterType.cs | 4 +- .../Caches/GetSortQueryParameterType.cs | 4 +- .../Item/WithCache_ItemRequestBuilder.cs | 18 +- .../Jobs/Item/Logs/LogsRequestBuilder.cs | 18 +- .../Jobs/Item/Rerun/RerunPostRequestBody.cs | 18 +- .../Jobs/Item/Rerun/RerunRequestBuilder.cs | 34 +- .../Jobs/Item/WithJob_ItemRequestBuilder.cs | 34 +- .../Item/Actions/Jobs/JobsRequestBuilder.cs | 18 +- .../CustomizationRequestBuilder.cs | 16 +- .../Customization/Sub/SubPutRequestBody.cs | 20 +- .../Customization/Sub/SubRequestBuilder.cs | 58 +- .../Item/Actions/Oidc/OidcRequestBuilder.cs | 16 +- .../OrganizationSecretsGetResponse.cs | 26 +- .../OrganizationSecretsRequestBuilder.cs | 33 +- .../OrganizationVariablesGetResponse.cs | 26 +- .../OrganizationVariablesRequestBuilder.cs | 33 +- .../Access/AccessRequestBuilder.cs | 34 +- .../Permissions/PermissionsPutRequestBody.cs | 24 +- .../Permissions/PermissionsRequestBuilder.cs | 46 +- .../SelectedActionsRequestBuilder.cs | 34 +- .../Workflow/WorkflowRequestBuilder.cs | 34 +- .../Downloads/DownloadsRequestBuilder.cs | 28 +- .../GenerateJitconfigPostRequestBody.cs | 24 +- .../GenerateJitconfigPostResponse.cs | 26 +- .../GenerateJitconfigRequestBuilder.cs | 38 +- .../Labels/Item/WithNameDeleteResponse.cs | 26 +- .../Labels/Item/WithNameItemRequestBuilder.cs | 34 +- .../Item/Labels/LabelsDeleteResponse.cs | 26 +- .../Runners/Item/Labels/LabelsGetResponse.cs | 26 +- .../Item/Labels/LabelsPostRequestBody.cs | 18 +- .../Runners/Item/Labels/LabelsPostResponse.cs | 26 +- .../Item/Labels/LabelsPutRequestBody.cs | 18 +- .../Runners/Item/Labels/LabelsPutResponse.cs | 26 +- .../Item/Labels/LabelsRequestBuilder.cs | 88 +- .../Item/WithRunner_ItemRequestBuilder.cs | 30 +- .../RegistrationTokenRequestBuilder.cs | 26 +- .../RemoveToken/RemoveTokenRequestBuilder.cs | 26 +- .../Actions/Runners/RunnersGetResponse.cs | 26 +- .../Actions/Runners/RunnersRequestBuilder.cs | 55 +- .../Runs/GetStatusQueryParameterType.cs | 4 +- .../Item/Approvals/ApprovalsRequestBuilder.cs | 28 +- .../Item/Approve/ApproveRequestBuilder.cs | 34 +- .../Item/Artifacts/ArtifactsGetResponse.cs | 26 +- .../Item/Artifacts/ArtifactsRequestBuilder.cs | 33 +- .../Item/Attempts/AttemptsRequestBuilder.cs | 18 +- .../Attempts/Item/Jobs/JobsGetResponse.cs | 26 +- .../Attempts/Item/Jobs/JobsRequestBuilder.cs | 37 +- .../Attempts/Item/Logs/LogsRequestBuilder.cs | 18 +- .../WithAttempt_numberItemRequestBuilder.cs | 41 +- .../Runs/Item/Cancel/CancelRequestBuilder.cs | 30 +- ...eployment_protection_ruleRequestBuilder.cs | 71 +- .../ForceCancel/ForceCancelRequestBuilder.cs | 30 +- .../Item/Jobs/GetFilterQueryParameterType.cs | 4 +- .../Actions/Runs/Item/Jobs/JobsGetResponse.cs | 26 +- .../Runs/Item/Jobs/JobsRequestBuilder.cs | 35 +- .../Runs/Item/Logs/LogsRequestBuilder.cs | 26 +- .../Pending_deploymentsPostRequestBody.cs | 26 +- ...ending_deploymentsPostRequestBody_state.cs | 4 +- .../Pending_deploymentsRequestBuilder.cs | 42 +- .../Runs/Item/Rerun/RerunPostRequestBody.cs | 18 +- .../Runs/Item/Rerun/RerunRequestBuilder.cs | 30 +- .../RerunFailedJobsPostRequestBody.cs | 18 +- .../RerunFailedJobsRequestBuilder.cs | 30 +- .../Runs/Item/Timing/TimingRequestBuilder.cs | 26 +- .../Runs/Item/WithRun_ItemRequestBuilder.cs | 85 +- .../Item/Item/Actions/Runs/RunsGetResponse.cs | 26 +- .../Item/Actions/Runs/RunsRequestBuilder.cs | 41 +- .../Item/WithSecret_nameItemRequestBuilder.cs | 38 +- .../Item/WithSecret_namePutRequestBody.cs | 20 +- .../PublicKey/PublicKeyRequestBuilder.cs | 26 +- .../Actions/Secrets/SecretsGetResponse.cs | 26 +- .../Actions/Secrets/SecretsRequestBuilder.cs | 43 +- .../Item/WithNameItemRequestBuilder.cs | 34 +- .../Item/WithNamePatchRequestBody.cs | 20 +- .../Actions/Variables/VariablesGetResponse.cs | 26 +- .../Variables/VariablesPostRequestBody.cs | 20 +- .../Variables/VariablesRequestBuilder.cs | 51 +- .../Item/Disable/DisableRequestBuilder.cs | 18 +- .../Dispatches/DispatchesPostRequestBody.cs | 26 +- .../DispatchesPostRequestBody_inputs.cs | 16 +- .../Dispatches/DispatchesRequestBuilder.cs | 26 +- .../Item/Enable/EnableRequestBuilder.cs | 18 +- .../Item/Runs/GetStatusQueryParameterType.cs | 4 +- .../Workflows/Item/Runs/RunsGetResponse.cs | 26 +- .../Workflows/Item/Runs/RunsRequestBuilder.cs | 35 +- .../Item/Timing/TimingRequestBuilder.cs | 26 +- .../Item/WithWorkflow_ItemRequestBuilder.cs | 46 +- .../Actions/Workflows/WorkflowsGetResponse.cs | 26 +- .../Workflows/WorkflowsRequestBuilder.cs | 39 +- .../Item/Activity/ActivityRequestBuilder.cs | 45 +- .../GetActivity_typeQueryParameterType.cs | 4 +- .../GetDirectionQueryParameterType.cs | 4 +- .../GetTime_periodQueryParameterType.cs | 4 +- .../Item/Assignees/AssigneesRequestBuilder.cs | 45 +- .../Item/WithAssigneeItemRequestBuilder.cs | 22 +- .../AttestationsPostRequestBody.cs | 24 +- .../AttestationsPostRequestBody_bundle.cs | 34 +- ...ionsPostRequestBody_bundle_dsseEnvelope.cs | 16 +- ...RequestBody_bundle_verificationMaterial.cs | 16 +- .../Attestations/AttestationsPostResponse.cs | 18 +- .../AttestationsRequestBuilder.cs | 44 +- .../Item/WithSubject_digestGetResponse.cs | 24 +- ...hSubject_digestGetResponse_attestations.cs | 26 +- ...t_digestGetResponse_attestations_bundle.cs | 34 +- ...sponse_attestations_bundle_dsseEnvelope.cs | 16 +- ...ttestations_bundle_verificationMaterial.cs | 16 +- .../WithSubject_digestItemRequestBuilder.cs | 33 +- .../Autolinks/AutolinksPostRequestBody.cs | 22 +- .../Item/Autolinks/AutolinksRequestBuilder.cs | 50 +- .../Item/WithAutolink_ItemRequestBuilder.cs | 34 +- .../AutomatedSecurityFixesRequestBuilder.cs | 26 +- .../Item/Branches/BranchesRequestBuilder.cs | 45 +- .../Enforce_adminsRequestBuilder.cs | 38 +- .../Protection/ProtectionPutRequestBody.cs | 56 +- ...questBody_required_pull_request_reviews.cs | 40 +- ..._reviews_bypass_pull_request_allowances.cs | 22 +- ..._request_reviews_dismissal_restrictions.cs | 22 +- ...onPutRequestBody_required_status_checks.cs | 28 +- ...questBody_required_status_checks_checks.cs | 20 +- .../ProtectionPutRequestBody_restrictions.cs | 22 +- .../Protection/ProtectionRequestBuilder.cs | 78 +- ...ed_pull_request_reviewsPatchRequestBody.cs | 40 +- ...uestBody_bypass_pull_request_allowances.cs | 22 +- ...PatchRequestBody_dismissal_restrictions.cs | 22 +- ...ired_pull_request_reviewsRequestBuilder.cs | 46 +- .../Required_signaturesRequestBuilder.cs | 46 +- .../ContextsDeleteRequestBodyMember1.cs | 18 +- .../ContextsPostRequestBodyMember1.cs | 18 +- .../Contexts/ContextsPutRequestBodyMember1.cs | 18 +- .../Contexts/ContextsRequestBuilder.cs | 175 +- .../Required_status_checksPatchRequestBody.cs | 28 +- ...ed_status_checksPatchRequestBody_checks.cs | 20 +- .../Required_status_checksRequestBuilder.cs | 54 +- .../Apps/AppsDeleteRequestBodyMember1.cs | 18 +- .../Apps/AppsPostRequestBodyMember1.cs | 18 +- .../Apps/AppsPutRequestBodyMember1.cs | 18 +- .../Restrictions/Apps/AppsRequestBuilder.cs | 179 ++- .../RestrictionsRequestBuilder.cs | 42 +- .../Teams/TeamsDeleteRequestBodyMember1.cs | 18 +- .../Teams/TeamsPostRequestBodyMember1.cs | 18 +- .../Teams/TeamsPutRequestBodyMember1.cs | 18 +- .../Restrictions/Teams/TeamsRequestBuilder.cs | 179 ++- .../Users/UsersDeleteRequestBodyMember1.cs | 18 +- .../Users/UsersPostRequestBodyMember1.cs | 18 +- .../Users/UsersPutRequestBodyMember1.cs | 18 +- .../Restrictions/Users/UsersRequestBuilder.cs | 179 ++- .../Item/Rename/RenamePostRequestBody.cs | 18 +- .../Item/Rename/RenameRequestBuilder.cs | 42 +- .../Item/WithBranchItemRequestBuilder.cs | 38 +- .../CheckRunsPostRequestBodyMember1.cs | 22 +- .../CheckRunsPostRequestBodyMember1_status.cs | 4 +- .../CheckRunsPostRequestBodyMember2.cs | 22 +- .../CheckRunsPostRequestBodyMember2_status.cs | 4 +- .../Item/CheckRuns/CheckRunsRequestBuilder.cs | 87 +- .../Annotations/AnnotationsRequestBuilder.cs | 35 +- .../Item/Rerequest/RerequestRequestBuilder.cs | 38 +- .../Item/WithCheck_run_ItemRequestBuilder.cs | 91 +- .../WithCheck_run_PatchRequestBodyMember1.cs | 22 +- ...heck_run_PatchRequestBodyMember1_status.cs | 4 +- .../WithCheck_run_PatchRequestBodyMember2.cs | 22 +- ...heck_run_PatchRequestBodyMember2_status.cs | 4 +- .../CheckSuites/CheckSuitesPostRequestBody.cs | 18 +- .../CheckSuites/CheckSuitesRequestBuilder.cs | 40 +- .../Item/CheckRuns/CheckRunsGetResponse.cs | 26 +- .../Item/CheckRuns/CheckRunsRequestBuilder.cs | 37 +- .../CheckRuns/GetFilterQueryParameterType.cs | 4 +- .../CheckRuns/GetStatusQueryParameterType.cs | 4 +- .../Item/Rerequest/RerequestRequestBuilder.cs | 26 +- .../WithCheck_suite_ItemRequestBuilder.cs | 34 +- .../PreferencesPatchRequestBody.cs | 24 +- ...cesPatchRequestBody_auto_trigger_checks.cs | 20 +- .../Preferences/PreferencesRequestBuilder.cs | 30 +- .../Alerts/AlertsRequestBuilder.cs | 61 +- .../Alerts/GetDirectionQueryParameterType.cs | 4 +- .../Alerts/GetSortQueryParameterType.cs | 4 +- .../Item/Instances/InstancesRequestBuilder.cs | 47 +- .../WithAlert_numberItemRequestBuilder.cs | 66 +- .../Item/WithAlert_numberPatchRequestBody.cs | 30 +- .../Analyses/AnalysesRequestBuilder.cs | 57 +- .../GetDirectionQueryParameterType.cs | 4 +- .../Analyses/GetSortQueryParameterType.cs | 4 +- .../Item/WithAnalysis_ItemRequestBuilder.cs | 69 +- .../CodeScanningRequestBuilder.cs | 32 +- .../Codeql/CodeqlRequestBuilder.cs | 20 +- .../Databases/DatabasesRequestBuilder.cs | 46 +- .../Item/WithLanguageItemRequestBuilder.cs | 38 +- .../Item/WithRepo_nameItemRequestBuilder.cs | 34 +- .../Item/WithRepo_ownerItemRequestBuilder.cs | 18 +- .../Item/Repos/ReposRequestBuilder.cs | 18 +- ...eql_variant_analysis_ItemRequestBuilder.cs | 38 +- .../VariantAnalysesPostRequestBody.cs | 28 +- .../VariantAnalysesRequestBuilder.cs | 48 +- .../DefaultSetupRequestBuilder.cs | 66 +- .../Item/WithSarif_ItemRequestBuilder.cs | 34 +- .../Sarifs/SarifsPostRequestBody.cs | 28 +- .../Sarifs/SarifsRequestBuilder.cs | 48 +- ...CodeSecurityConfigurationRequestBuilder.cs | 34 +- .../Codeowners/CodeownersRequestBuilder.cs | 16 +- .../Codeowners/Errors/ErrorsRequestBuilder.cs | 33 +- .../Item/Codespaces/CodespacesGetResponse.cs | 26 +- .../Codespaces/CodespacesPostRequestBody.cs | 42 +- .../CodespacesPostRequestBody_geo.cs | 4 +- .../Codespaces/CodespacesRequestBuilder.cs | 101 +- .../Devcontainers/DevcontainersGetResponse.cs | 26 +- .../DevcontainersGetResponse_devcontainers.cs | 22 +- .../DevcontainersRequestBuilder.cs | 53 +- .../Machines/MachinesGetResponse.cs | 26 +- .../Machines/MachinesRequestBuilder.cs | 49 +- .../Item/Codespaces/New/NewGetResponse.cs | 32 +- .../Codespaces/New/NewGetResponse_defaults.cs | 20 +- .../Item/Codespaces/New/NewRequestBuilder.cs | 45 +- .../Permissions_checkRequestBuilder.cs | 53 +- .../Item/WithSecret_nameItemRequestBuilder.cs | 38 +- .../Item/WithSecret_namePutRequestBody.cs | 20 +- .../PublicKey/PublicKeyRequestBuilder.cs | 26 +- .../Codespaces/Secrets/SecretsGetResponse.cs | 26 +- .../Secrets/SecretsRequestBuilder.cs | 43 +- .../CollaboratorsRequestBuilder.cs | 49 +- .../GetAffiliationQueryParameterType.cs | 4 +- .../GetPermissionQueryParameterType.cs | 4 +- .../Permission/PermissionRequestBuilder.cs | 30 +- .../Item/WithUsernameItemRequestBuilder.cs | 50 +- .../Item/WithUsernamePutRequestBody.cs | 18 +- .../Item/Comments/CommentsRequestBuilder.cs | 41 +- .../Reactions/GetContentQueryParameterType.cs | 4 +- .../Item/WithReaction_ItemRequestBuilder.cs | 18 +- .../Reactions/ReactionsPostRequestBody.cs | 22 +- .../ReactionsPostRequestBody_content.cs | 4 +- .../Item/Reactions/ReactionsRequestBuilder.cs | 63 +- .../Item/WithComment_ItemRequestBuilder.cs | 54 +- .../Item/WithComment_PatchRequestBody.cs | 18 +- .../Item/Commits/CommitsRequestBuilder.cs | 57 +- .../BranchesWhereHeadRequestBuilder.cs | 36 +- .../Item/CheckRuns/CheckRunsGetResponse.cs | 26 +- .../Item/CheckRuns/CheckRunsRequestBuilder.cs | 37 +- .../CheckRuns/GetFilterQueryParameterType.cs | 4 +- .../CheckRuns/GetStatusQueryParameterType.cs | 4 +- .../CheckSuites/CheckSuitesGetResponse.cs | 26 +- .../CheckSuites/CheckSuitesRequestBuilder.cs | 33 +- .../Item/Comments/CommentsPostRequestBody.cs | 24 +- .../Item/Comments/CommentsRequestBuilder.cs | 55 +- .../Item/Commit_shaItemRequestBuilder.cs | 81 +- .../Commits/Item/Pulls/PullsRequestBuilder.cs | 39 +- .../Item/Status/StatusRequestBuilder.cs | 37 +- .../Item/Statuses/StatusesRequestBuilder.cs | 35 +- .../Item/Community/CommunityRequestBuilder.cs | 16 +- .../Profile/ProfileRequestBuilder.cs | 26 +- .../Item/Compare/CompareRequestBuilder.cs | 18 +- .../Item/WithBaseheadItemRequestBuilder.cs | 45 +- .../Item/Contents/ContentsRequestBuilder.cs | 18 +- .../Item/WithPathDeleteRequestBody.cs | 38 +- .../Item/WithPathDeleteRequestBody_author.cs | 20 +- .../WithPathDeleteRequestBody_committer.cs | 20 +- .../Item/WithPathItemRequestBuilder.cs | 140 +- .../Contents/Item/WithPathPutRequestBody.cs | 40 +- .../Item/WithPathPutRequestBody_author.cs | 22 +- .../Item/WithPathPutRequestBody_committer.cs | 22 +- .../ContributorsRequestBuilder.cs | 43 +- .../Dependabot/Alerts/AlertsRequestBuilder.cs | 63 +- .../Alerts/GetDirectionQueryParameterType.cs | 4 +- .../Alerts/GetScopeQueryParameterType.cs | 4 +- .../Alerts/GetSortQueryParameterType.cs | 4 +- .../WithAlert_numberItemRequestBuilder.cs | 66 +- .../Item/WithAlert_numberPatchRequestBody.cs | 28 +- ...numberPatchRequestBody_dismissed_reason.cs | 4 +- .../WithAlert_numberPatchRequestBody_state.cs | 4 +- .../Dependabot/DependabotRequestBuilder.cs | 20 +- .../Item/WithSecret_nameItemRequestBuilder.cs | 38 +- .../Item/WithSecret_namePutRequestBody.cs | 20 +- .../PublicKey/PublicKeyRequestBuilder.cs | 26 +- .../Dependabot/Secrets/SecretsGetResponse.cs | 26 +- .../Secrets/SecretsRequestBuilder.cs | 43 +- .../Compare/CompareRequestBuilder.cs | 18 +- .../Item/WithBaseheadItemRequestBuilder.cs | 43 +- .../DependencyGraphRequestBuilder.cs | 24 +- .../Sbom/SbomRequestBuilder.cs | 34 +- .../Snapshots/SnapshotsPostResponse.cs | 24 +- .../Snapshots/SnapshotsRequestBuilder.cs | 30 +- .../Deployments/DeploymentsPostRequestBody.cs | 34 +- .../Deployments/DeploymentsRequestBuilder.cs | 57 +- .../Item/WithStatus_ItemRequestBuilder.cs | 30 +- .../Item/Statuses/StatusesPostRequestBody.cs | 34 +- .../Statuses/StatusesPostRequestBody_state.cs | 4 +- .../Item/Statuses/StatusesRequestBuilder.cs | 61 +- .../Item/WithDeployment_ItemRequestBuilder.cs | 42 +- .../Dispatches/DispatchesPostRequestBody.cs | 26 +- ...ispatchesPostRequestBody_client_payload.cs | 16 +- .../Dispatches/DispatchesRequestBuilder.cs | 34 +- .../Environments/EnvironmentsGetResponse.cs | 26 +- .../EnvironmentsRequestBuilder.cs | 39 +- .../DeploymentBranchPoliciesGetResponse.cs | 26 +- .../DeploymentBranchPoliciesRequestBuilder.cs | 51 +- .../WithBranch_policy_ItemRequestBuilder.cs | 38 +- .../Apps/AppsGetResponse.cs | 26 +- .../Apps/AppsRequestBuilder.cs | 33 +- .../Deployment_protection_rulesGetResponse.cs | 26 +- ...loyment_protection_rulesPostRequestBody.cs | 18 +- ...ployment_protection_rulesRequestBuilder.cs | 48 +- .../WithProtection_rule_ItemRequestBuilder.cs | 26 +- .../Item/WithSecret_nameItemRequestBuilder.cs | 38 +- .../Item/WithSecret_namePutRequestBody.cs | 20 +- .../PublicKey/PublicKeyRequestBuilder.cs | 26 +- .../Item/Secrets/SecretsGetResponse.cs | 26 +- .../Item/Secrets/SecretsRequestBuilder.cs | 43 +- .../Item/WithNameItemRequestBuilder.cs | 34 +- .../Item/WithNamePatchRequestBody.cs | 20 +- .../Item/Variables/VariablesGetResponse.cs | 26 +- .../Variables/VariablesPostRequestBody.cs | 20 +- .../Item/Variables/VariablesRequestBuilder.cs | 51 +- .../WithEnvironment_nameItemRequestBuilder.cs | 58 +- .../WithEnvironment_namePutRequestBody.cs | 34 +- ...nvironment_namePutRequestBody_reviewers.cs | 24 +- .../Item/Item/Events/EventsRequestBuilder.cs | 35 +- .../Item/Item/Forks/ForksPostRequestBody.cs | 22 +- .../Item/Item/Forks/ForksRequestBuilder.cs | 69 +- .../Item/Forks/GetSortQueryParameterType.cs | 4 +- .../Item/Generate/GeneratePostRequestBody.cs | 26 +- .../Item/Generate/GenerateRequestBuilder.cs | 30 +- .../Item/Git/Blobs/BlobsPostRequestBody.cs | 20 +- .../Item/Git/Blobs/BlobsRequestBuilder.cs | 48 +- .../Item/WithFile_shaItemRequestBuilder.cs | 42 +- .../Git/Commits/CommitsPostRequestBody.cs | 40 +- .../Commits/CommitsPostRequestBody_author.cs | 22 +- .../CommitsPostRequestBody_committer.cs | 22 +- .../Item/Git/Commits/CommitsRequestBuilder.cs | 48 +- .../Item/WithCommit_shaItemRequestBuilder.cs | 34 +- .../Repos/Item/Item/Git/GitRequestBuilder.cs | 40 +- .../Item/WithRefItemRequestBuilder.cs | 32 +- .../MatchingRefsRequestBuilder.cs | 18 +- .../Git/Ref/Item/WithRefItemRequestBuilder.cs | 34 +- .../Item/Item/Git/Ref/RefRequestBuilder.cs | 18 +- .../Refs/Item/WithRefItemRequestBuilder.cs | 46 +- .../Git/Refs/Item/WithRefPatchRequestBody.cs | 20 +- .../Item/Item/Git/Refs/RefsPostRequestBody.cs | 20 +- .../Item/Item/Git/Refs/RefsRequestBuilder.cs | 44 +- .../Item/WithTag_shaItemRequestBuilder.cs | 34 +- .../Item/Item/Git/Tags/TagsPostRequestBody.cs | 36 +- .../Git/Tags/TagsPostRequestBody_tagger.cs | 22 +- .../Item/Git/Tags/TagsPostRequestBody_type.cs | 4 +- .../Item/Item/Git/Tags/TagsRequestBuilder.cs | 44 +- .../Item/WithTree_shaItemRequestBuilder.cs | 45 +- .../Item/Git/Trees/TreesPostRequestBody.cs | 26 +- .../Git/Trees/TreesPostRequestBody_tree.cs | 34 +- .../Trees/TreesPostRequestBody_tree_mode.cs | 4 +- .../Trees/TreesPostRequestBody_tree_type.cs | 4 +- .../Item/Git/Trees/TreesRequestBuilder.cs | 52 +- .../Item/Item/Hooks/HooksPostRequestBody.cs | 28 +- .../Item/Hooks/HooksPostRequestBody_config.cs | 30 +- .../Item/Item/Hooks/HooksRequestBuilder.cs | 69 +- .../Item/Config/ConfigPatchRequestBody.cs | 28 +- .../Hooks/Item/Config/ConfigRequestBuilder.cs | 38 +- .../Deliveries/DeliveriesRequestBuilder.cs | 49 +- .../Item/Attempts/AttemptsPostResponse.cs | 16 +- .../Item/Attempts/AttemptsRequestBuilder.cs | 34 +- .../Item/WithDelivery_ItemRequestBuilder.cs | 38 +- .../Hooks/Item/Pings/PingsRequestBuilder.cs | 22 +- .../Hooks/Item/Tests/TestsRequestBuilder.cs | 22 +- .../Hooks/Item/WithHook_ItemRequestBuilder.cs | 70 +- .../Hooks/Item/WithHook_PatchRequestBody.cs | 32 +- .../Import/Authors/AuthorsRequestBuilder.cs | 49 +- .../Item/WithAuthor_ItemRequestBuilder.cs | 42 +- .../Item/WithAuthor_PatchRequestBody.cs | 18 +- .../Item/Import/ImportPatchRequestBody.cs | 28 +- .../Item/Import/ImportPatchRequestBody_vcs.cs | 4 +- .../Item/Item/Import/ImportPutRequestBody.cs | 30 +- .../Item/Import/ImportPutRequestBody_vcs.cs | 4 +- .../Item/Item/Import/ImportRequestBuilder.cs | 90 +- .../Large_files/Large_filesRequestBuilder.cs | 32 +- .../Item/Import/Lfs/LfsPatchRequestBody.cs | 22 +- .../Import/Lfs/LfsPatchRequestBody_use_lfs.cs | 4 +- .../Item/Item/Import/Lfs/LfsRequestBuilder.cs | 38 +- .../InstallationRequestBuilder.cs | 30 +- .../InteractionLimitsRequestBuilder.cs | 38 +- .../Invitations/InvitationsRequestBuilder.cs | 41 +- .../Item/WithInvitation_ItemRequestBuilder.cs | 30 +- .../Item/WithInvitation_PatchRequestBody.cs | 22 +- ...Invitation_PatchRequestBody_permissions.cs | 4 +- .../Issues/Comments/CommentsRequestBuilder.cs | 53 +- .../GetDirectionQueryParameterType.cs | 4 +- .../Comments/GetSortQueryParameterType.cs | 4 +- .../Reactions/GetContentQueryParameterType.cs | 4 +- .../Item/WithReaction_ItemRequestBuilder.cs | 18 +- .../Reactions/ReactionsPostRequestBody.cs | 22 +- .../ReactionsPostRequestBody_content.cs | 4 +- .../Item/Reactions/ReactionsRequestBuilder.cs | 63 +- .../Item/WithComment_ItemRequestBuilder.cs | 50 +- .../Item/WithComment_PatchRequestBody.cs | 18 +- .../Issues/Events/EventsRequestBuilder.cs | 45 +- .../Item/WithEvent_ItemRequestBuilder.cs | 38 +- .../Issues/GetDirectionQueryParameterType.cs | 4 +- .../Item/Issues/GetSortQueryParameterType.cs | 4 +- .../Item/Issues/GetStateQueryParameterType.cs | 4 +- .../Item/Item/Issues/IssuesPostRequestBody.cs | 58 +- .../Item/Item/Issues/IssuesRequestBuilder.cs | 99 +- .../Assignees/AssigneesDeleteRequestBody.cs | 18 +- .../Assignees/AssigneesPostRequestBody.cs | 18 +- .../Item/Assignees/AssigneesRequestBuilder.cs | 48 +- .../Item/WithAssigneeItemRequestBuilder.cs | 22 +- .../Item/Comments/CommentsPostRequestBody.cs | 18 +- .../Item/Comments/CommentsRequestBuilder.cs | 71 +- .../Item/Events/EventsRequestBuilder.cs | 39 +- .../Labels/Item/WithNameItemRequestBuilder.cs | 36 +- .../Labels/LabelsPostRequestBodyMember1.cs | 18 +- .../Labels/LabelsPostRequestBodyMember2.cs | 24 +- .../LabelsPostRequestBodyMember2_labels.cs | 18 +- .../Labels/LabelsPostRequestBodyMember3.cs | 16 +- .../Labels/LabelsPutRequestBodyMember1.cs | 18 +- .../Labels/LabelsPutRequestBodyMember2.cs | 24 +- .../LabelsPutRequestBodyMember2_labels.cs | 18 +- .../Labels/LabelsPutRequestBodyMember3.cs | 16 +- .../Item/Labels/LabelsRequestBuilder.cs | 251 +-- .../Issues/Item/Lock/LockPutRequestBody.cs | 22 +- .../Lock/LockPutRequestBody_lock_reason.cs | 4 +- .../Issues/Item/Lock/LockRequestBuilder.cs | 50 +- .../Reactions/GetContentQueryParameterType.cs | 4 +- .../Item/WithReaction_ItemRequestBuilder.cs | 18 +- .../Reactions/ReactionsPostRequestBody.cs | 22 +- .../ReactionsPostRequestBody_content.cs | 4 +- .../Item/Reactions/ReactionsRequestBuilder.cs | 67 +- .../Item/Timeline/TimelineRequestBuilder.cs | 43 +- .../WithIssue_numberItemRequestBuilder.cs | 94 +- .../Item/WithIssue_numberPatchRequestBody.cs | 70 +- .../WithIssue_numberPatchRequestBody_state.cs | 4 +- ...sue_numberPatchRequestBody_state_reason.cs | 4 +- .../Keys/Item/WithKey_ItemRequestBuilder.cs | 30 +- .../Item/Item/Keys/KeysPostRequestBody.cs | 22 +- .../Item/Item/Keys/KeysRequestBuilder.cs | 57 +- .../Labels/Item/WithNameItemRequestBuilder.cs | 42 +- .../Labels/Item/WithNamePatchRequestBody.cs | 22 +- .../Item/Item/Labels/LabelsPostRequestBody.cs | 22 +- .../Item/Item/Labels/LabelsRequestBuilder.cs | 65 +- .../Item/Languages/LanguagesRequestBuilder.cs | 26 +- .../Repos/Item/Item/Lfs/LfsPutResponse.cs | 16 +- .../Repos/Item/Item/Lfs/LfsRequestBuilder.cs | 26 +- .../Item/License/LicenseRequestBuilder.cs | 37 +- .../MergeUpstreamPostRequestBody.cs | 18 +- .../MergeUpstreamRequestBuilder.cs | 30 +- .../Item/Item/Merges/MergesPostRequestBody.cs | 22 +- .../Item/Item/Merges/MergesRequestBuilder.cs | 38 +- .../GetDirectionQueryParameterType.cs | 4 +- .../Milestones/GetSortQueryParameterType.cs | 4 +- .../Milestones/GetStateQueryParameterType.cs | 4 +- .../Item/Labels/LabelsRequestBuilder.cs | 35 +- .../WithMilestone_numberItemRequestBuilder.cs | 50 +- .../WithMilestone_numberPatchRequestBody.cs | 30 +- ...hMilestone_numberPatchRequestBody_state.cs | 4 +- .../Milestones/MilestonesPostRequestBody.cs | 30 +- .../MilestonesPostRequestBody_state.cs | 4 +- .../Milestones/MilestonesRequestBuilder.cs | 71 +- .../NotificationsPutRequestBody.cs | 18 +- .../Notifications/NotificationsPutResponse.cs | 20 +- .../NotificationsRequestBuilder.cs | 47 +- .../Item/Pages/Builds/BuildsRequestBuilder.cs | 53 +- .../Item/WithBuild_ItemRequestBuilder.cs | 26 +- .../Builds/Latest/LatestRequestBuilder.cs | 26 +- .../Deployments/DeploymentsPostRequestBody.cs | 26 +- .../Deployments/DeploymentsRequestBuilder.cs | 48 +- .../Item/Cancel/CancelRequestBuilder.cs | 22 +- ...WithPages_deployment_ItemRequestBuilder.cs | 34 +- .../Item/Pages/Health/HealthRequestBuilder.cs | 30 +- .../Item/Item/Pages/PagesPostRequestBody.cs | 30 +- .../Pages/PagesPostRequestBody_build_type.cs | 4 +- .../Item/Pages/PagesPostRequestBody_source.cs | 26 +- .../Pages/PagesPostRequestBody_source_path.cs | 4 +- .../Item/Item/Pages/PagesPutRequestBody.cs | 57 +- .../Pages/PagesPutRequestBody_build_type.cs | 4 +- .../PagesPutRequestBody_sourceMember1.cs | 24 +- .../PagesPutRequestBody_sourceMember1_path.cs | 4 +- .../Item/Item/Pages/PagesRequestBuilder.cs | 94 +- ...rivateVulnerabilityReportingGetResponse.cs | 18 +- ...ateVulnerabilityReportingRequestBuilder.cs | 38 +- .../Projects/GetStateQueryParameterType.cs | 4 +- .../Item/Projects/ProjectsPostRequestBody.cs | 20 +- .../Item/Projects/ProjectsRequestBuilder.cs | 89 +- .../Properties/PropertiesRequestBuilder.cs | 16 +- .../Values/ValuesPatchRequestBody.cs | 24 +- .../Properties/Values/ValuesRequestBuilder.cs | 56 +- .../Pulls/Comments/CommentsRequestBuilder.cs | 45 +- .../GetDirectionQueryParameterType.cs | 4 +- .../Comments/GetSortQueryParameterType.cs | 4 +- .../Reactions/GetContentQueryParameterType.cs | 4 +- .../Item/WithReaction_ItemRequestBuilder.cs | 18 +- .../Reactions/ReactionsPostRequestBody.cs | 22 +- .../ReactionsPostRequestBody_content.cs | 4 +- .../Item/Reactions/ReactionsRequestBuilder.cs | 63 +- .../Item/WithComment_ItemRequestBuilder.cs | 50 +- .../Item/WithComment_PatchRequestBody.cs | 18 +- .../Pulls/GetDirectionQueryParameterType.cs | 4 +- .../Item/Pulls/GetSortQueryParameterType.cs | 4 +- .../Item/Pulls/GetStateQueryParameterType.cs | 4 +- .../Codespaces/CodespacesPostRequestBody.cs | 40 +- .../CodespacesPostRequestBody_geo.cs | 4 +- .../Codespaces/CodespacesRequestBuilder.cs | 46 +- .../Item/Comments/CommentsPostRequestBody.cs | 48 +- .../Comments/CommentsPostRequestBody_side.cs | 4 +- .../CommentsPostRequestBody_start_side.cs | 4 +- .../CommentsPostRequestBody_subject_type.cs | 4 +- .../Item/Comments/CommentsRequestBuilder.cs | 65 +- .../GetDirectionQueryParameterType.cs | 4 +- .../Comments/GetSortQueryParameterType.cs | 4 +- .../Item/Replies/RepliesPostRequestBody.cs | 18 +- .../Item/Replies/RepliesRequestBuilder.cs | 34 +- .../Item/WithComment_ItemRequestBuilder.cs | 16 +- .../Item/Commits/CommitsRequestBuilder.cs | 35 +- .../Pulls/Item/Files/FilesRequestBuilder.cs | 47 +- .../Pulls/Item/Merge/MergePutRequestBody.cs | 28 +- .../Merge/MergePutRequestBody_merge_method.cs | 4 +- .../Pulls/Item/Merge/MergeRequestBuilder.cs | 50 +- .../Merge/PullRequestMergeResult405Error.cs | 30 +- .../Merge/PullRequestMergeResult409Error.cs | 30 +- .../Requested_reviewersDeleteRequestBody.cs | 20 +- .../Requested_reviewersPostRequestBody.cs | 20 +- .../Requested_reviewersRequestBuilder.cs | 58 +- .../Item/Comments/CommentsRequestBuilder.cs | 39 +- .../Dismissals/DismissalsPutRequestBody.cs | 24 +- .../DismissalsPutRequestBody_event.cs | 4 +- .../Dismissals/DismissalsRequestBuilder.cs | 38 +- .../Item/Events/EventsPostRequestBody.cs | 24 +- .../Events/EventsPostRequestBody_event.cs | 4 +- .../Item/Events/EventsRequestBuilder.cs | 42 +- .../Item/WithReview_ItemRequestBuilder.cs | 74 +- .../Reviews/Item/WithReview_PutRequestBody.cs | 18 +- .../Item/Reviews/ReviewsPostRequestBody.cs | 34 +- .../ReviewsPostRequestBody_comments.cs | 30 +- .../Reviews/ReviewsPostRequestBody_event.cs | 4 +- .../Item/Reviews/ReviewsRequestBuilder.cs | 61 +- .../UpdateBranchPutRequestBody.cs | 18 +- .../UpdateBranch/UpdateBranchPutResponse.cs | 20 +- .../UpdateBranchRequestBuilder.cs | 38 +- .../Item/WithPull_numberItemRequestBuilder.cs | 94 +- .../Item/WithPull_numberPatchRequestBody.cs | 30 +- .../WithPull_numberPatchRequestBody_state.cs | 4 +- .../Item/Item/Pulls/PullsPostRequestBody.cs | 32 +- .../Item/Item/Pulls/PullsRequestBuilder.cs | 75 +- .../Readme/Item/WithDirItemRequestBuilder.cs | 41 +- .../Item/Item/Readme/ReadmeRequestBuilder.cs | 47 +- .../Releases/Assets/AssetsRequestBuilder.cs | 18 +- .../Item/WithAsset_ItemRequestBuilder.cs | 42 +- .../Assets/Item/WithAsset_PatchRequestBody.cs | 22 +- .../GenerateNotesPostRequestBody.cs | 24 +- .../GenerateNotesRequestBuilder.cs | 34 +- .../Item/Assets/AssetsRequestBuilder.cs | 50 +- .../Reactions/GetContentQueryParameterType.cs | 4 +- .../Item/WithReaction_ItemRequestBuilder.cs | 18 +- .../Reactions/ReactionsPostRequestBody.cs | 22 +- .../ReactionsPostRequestBody_content.cs | 4 +- .../Item/Reactions/ReactionsRequestBuilder.cs | 63 +- .../Item/WithRelease_ItemRequestBuilder.cs | 50 +- .../Item/WithRelease_PatchRequestBody.cs | 38 +- ...ithRelease_PatchRequestBody_make_latest.cs | 4 +- .../Releases/Latest/LatestRequestBuilder.cs | 26 +- .../Item/Releases/ReleasesPostRequestBody.cs | 40 +- .../ReleasesPostRequestBody_make_latest.cs | 4 +- .../Item/Releases/ReleasesRequestBuilder.cs | 81 +- .../Tags/Item/WithTagItemRequestBuilder.cs | 30 +- .../Item/Releases/Tags/TagsRequestBuilder.cs | 18 +- src/GitHub/Repos/Item/Item/Repo403Error.cs | 30 +- .../Repos/Item/Item/RepoItemRequestBuilder.cs | 338 ++-- .../Repos/Item/Item/RepoPatchRequestBody.cs | 92 +- ...poPatchRequestBody_merge_commit_message.cs | 4 +- ...RepoPatchRequestBody_merge_commit_title.cs | 4 +- ...oPatchRequestBody_security_and_analysis.cs | 56 +- ...security_and_analysis_advanced_security.cs | 18 +- ...y_security_and_analysis_secret_scanning.cs | 18 +- ...s_secret_scanning_non_provider_patterns.cs | 18 +- ...nalysis_secret_scanning_push_protection.cs | 18 +- ...nalysis_secret_scanning_validity_checks.cs | 18 +- ...RequestBody_squash_merge_commit_message.cs | 4 +- ...chRequestBody_squash_merge_commit_title.cs | 4 +- .../Item/RepoPatchRequestBody_visibility.cs | 4 +- .../Rules/Branches/BranchesRequestBuilder.cs | 18 +- .../Item/WithBranchItemRequestBuilder.cs | 35 +- .../Item/Item/Rules/RulesRequestBuilder.cs | 16 +- .../Item/WithRuleset_ItemRequestBuilder.cs | 69 +- .../Item/WithRuleset_PutRequestBody.cs | 54 +- .../Item/WithRuleset_PutRequestBody_target.cs | 4 +- .../GetRule_suite_resultQueryParameterType.cs | 4 +- .../GetTime_periodQueryParameterType.cs | 4 +- .../Item/WithRule_suite_ItemRequestBuilder.cs | 34 +- .../RuleSuites/RuleSuitesRequestBuilder.cs | 53 +- .../Item/Rulesets/RulesetsPostRequestBody.cs | 56 +- .../RulesetsPostRequestBody_target.cs | 4 +- .../Item/Rulesets/RulesetsRequestBuilder.cs | 73 +- .../Alerts/AlertsRequestBuilder.cs | 51 +- .../Alerts/GetDirectionQueryParameterType.cs | 4 +- .../Alerts/GetSortQueryParameterType.cs | 4 +- .../Alerts/GetStateQueryParameterType.cs | 4 +- .../Item/Locations/LocationsRequestBuilder.cs | 39 +- .../WithAlert_numberItemRequestBuilder.cs | 50 +- .../Item/WithAlert_numberPatchRequestBody.cs | 30 +- .../PushProtectionBypassesPostRequestBody.cs | 24 +- .../PushProtectionBypassesRequestBuilder.cs | 34 +- .../SecretScanningRequestBuilder.cs | 20 +- .../GetDirectionQueryParameterType.cs | 4 +- .../GetSortQueryParameterType.cs | 4 +- .../GetStateQueryParameterType.cs | 4 +- .../Item/Cve/CvePostResponse.cs | 16 +- .../Item/Cve/CveRequestBuilder.cs | 42 +- .../Item/Forks/ForksRequestBuilder.cs | 42 +- .../Item/WithGhsa_ItemRequestBuilder.cs | 66 +- .../Reports/ReportsRequestBuilder.cs | 42 +- .../SecurityAdvisoriesRequestBuilder.cs | 83 +- .../Repos/Item/Item/Stargazers/SimpleUser.cs | 16 +- .../Repos/Item/Item/Stargazers/Stargazer.cs | 16 +- .../Stargazers/StargazersRequestBuilder.cs | 68 +- .../Code_frequencyRequestBuilder.cs | 27 +- .../Commit_activityRequestBuilder.cs | 28 +- .../ContributorsRequestBuilder.cs | 28 +- .../ParticipationRequestBuilder.cs | 30 +- .../Punch_card/Punch_cardRequestBuilder.cs | 27 +- .../Item/Item/Stats/StatsRequestBuilder.cs | 32 +- .../Item/WithShaItemRequestBuilder.cs | 30 +- .../Statuses/Item/WithShaPostRequestBody.cs | 28 +- .../Item/WithShaPostRequestBody_state.cs | 4 +- .../Item/Statuses/StatusesRequestBuilder.cs | 18 +- .../Subscribers/SubscribersRequestBuilder.cs | 35 +- .../SubscriptionPutRequestBody.cs | 20 +- .../SubscriptionRequestBuilder.cs | 42 +- .../WithTag_protection_ItemRequestBuilder.cs | 26 +- .../Protection/ProtectionPostRequestBody.cs | 18 +- .../Protection/ProtectionRequestBuilder.cs | 62 +- .../Item/Item/Tags/TagsRequestBuilder.cs | 39 +- .../Tarball/Item/WithRefItemRequestBuilder.cs | 18 +- .../Item/Tarball/TarballRequestBuilder.cs | 18 +- .../Item/Item/Teams/TeamsRequestBuilder.cs | 39 +- .../Item/Item/Topics/TopicsPutRequestBody.cs | 18 +- .../Item/Item/Topics/TopicsRequestBuilder.cs | 57 +- .../Traffic/Clones/ClonesRequestBuilder.cs | 39 +- .../Clones/GetPerQueryParameterType.cs | 4 +- .../Popular/Paths/PathsRequestBuilder.cs | 32 +- .../Traffic/Popular/PopularRequestBuilder.cs | 20 +- .../Referrers/ReferrersRequestBuilder.cs | 32 +- .../Item/Traffic/TrafficRequestBuilder.cs | 24 +- .../Traffic/Views/GetPerQueryParameterType.cs | 4 +- .../Item/Traffic/Views/ViewsRequestBuilder.cs | 39 +- .../Item/Transfer/TransferPostRequestBody.cs | 22 +- .../Item/Transfer/TransferRequestBuilder.cs | 30 +- .../VulnerabilityAlertsRequestBuilder.cs | 18 +- .../Zipball/Item/WithRefItemRequestBuilder.cs | 18 +- .../Item/Zipball/ZipballRequestBuilder.cs | 18 +- .../Repos/Item/OwnerItemRequestBuilder.cs | 18 +- src/GitHub/Repos/ReposRequestBuilder.cs | 18 +- .../RepositoriesRequestBuilder.cs | 39 +- src/GitHub/Scim/ScimRequestBuilder.cs | 16 +- .../Enterprises/EnterprisesRequestBuilder.cs | 18 +- .../Item/Groups/GroupsRequestBuilder.cs | 75 +- .../Item/WithScim_group_ItemRequestBuilder.cs | 121 +- .../Item/WithScim_user_ItemRequestBuilder.cs | 114 +- .../Item/Users/UsersRequestBuilder.cs | 75 +- .../Item/WithEnterpriseItemRequestBuilder.cs | 20 +- .../Item/WithScim_user_ItemRequestBuilder.cs | 90 +- .../Item/WithScim_user_PatchRequestBody.cs | 26 +- ...thScim_user_PatchRequestBody_Operations.cs | 63 +- ...cim_user_PatchRequestBody_Operations_op.cs | 4 +- ...atchRequestBody_Operations_valueMember1.cs | 26 +- ...atchRequestBody_Operations_valueMember2.cs | 16 +- .../Item/WithScim_user_PutRequestBody.cs | 44 +- .../WithScim_user_PutRequestBody_emails.cs | 22 +- .../Item/WithScim_user_PutRequestBody_name.cs | 22 +- .../Item/Users/UsersPostRequestBody.cs | 44 +- .../Item/Users/UsersPostRequestBody_emails.cs | 22 +- .../Item/Users/UsersPostRequestBody_name.cs | 22 +- .../Item/Users/UsersRequestBuilder.cs | 87 +- .../Item/WithOrgItemRequestBuilder.cs | 16 +- .../OrganizationsRequestBuilder.cs | 18 +- src/GitHub/Scim/V2/V2RequestBuilder.cs | 20 +- src/GitHub/Search/Code/CodeGetResponse.cs | 28 +- src/GitHub/Search/Code/CodeRequestBuilder.cs | 49 +- .../Search/Code/GetOrderQueryParameterType.cs | 4 +- .../Search/Code/GetSortQueryParameterType.cs | 4 +- .../Search/Commits/CommitsGetResponse.cs | 28 +- .../Search/Commits/CommitsRequestBuilder.cs | 37 +- .../Commits/GetOrderQueryParameterType.cs | 4 +- .../Commits/GetSortQueryParameterType.cs | 4 +- .../Issues/GetOrderQueryParameterType.cs | 4 +- .../Issues/GetSortQueryParameterType.cs | 4 +- src/GitHub/Search/Issues/IssuesGetResponse.cs | 28 +- .../Search/Issues/IssuesRequestBuilder.cs | 49 +- .../Labels/GetOrderQueryParameterType.cs | 4 +- .../Labels/GetSortQueryParameterType.cs | 4 +- src/GitHub/Search/Labels/LabelsGetResponse.cs | 28 +- .../Search/Labels/LabelsRequestBuilder.cs | 49 +- .../GetOrderQueryParameterType.cs | 4 +- .../Repositories/GetSortQueryParameterType.cs | 4 +- .../Repositories/RepositoriesGetResponse.cs | 28 +- .../RepositoriesRequestBuilder.cs | 45 +- src/GitHub/Search/SearchRequestBuilder.cs | 40 +- src/GitHub/Search/Topics/TopicsGetResponse.cs | 28 +- .../Search/Topics/TopicsRequestBuilder.cs | 33 +- .../Users/GetOrderQueryParameterType.cs | 4 +- .../Search/Users/GetSortQueryParameterType.cs | 4 +- src/GitHub/Search/Users/UsersGetResponse.cs | 28 +- .../Search/Users/UsersRequestBuilder.cs | 45 +- .../Discussions/DiscussionsPostRequestBody.cs | 22 +- .../Discussions/DiscussionsRequestBuilder.cs | 55 +- .../GetDirectionQueryParameterType.cs | 4 +- .../Item/Comments/CommentsPostRequestBody.cs | 18 +- .../Item/Comments/CommentsRequestBuilder.cs | 55 +- .../GetDirectionQueryParameterType.cs | 4 +- .../Reactions/GetContentQueryParameterType.cs | 4 +- .../Reactions/ReactionsPostRequestBody.cs | 22 +- .../ReactionsPostRequestBody_content.cs | 4 +- .../Item/Reactions/ReactionsRequestBuilder.cs | 49 +- .../WithComment_numberItemRequestBuilder.cs | 42 +- .../WithComment_numberPatchRequestBody.cs | 18 +- .../Reactions/GetContentQueryParameterType.cs | 4 +- .../Reactions/ReactionsPostRequestBody.cs | 22 +- .../ReactionsPostRequestBody_content.cs | 4 +- .../Item/Reactions/ReactionsRequestBuilder.cs | 49 +- ...WithDiscussion_numberItemRequestBuilder.cs | 46 +- .../WithDiscussion_numberPatchRequestBody.cs | 20 +- .../Invitations/InvitationsRequestBuilder.cs | 35 +- .../Item/Members/GetRoleQueryParameterType.cs | 4 +- .../Item/WithUsernameItemRequestBuilder.cs | 22 +- .../Item/Members/MembersRequestBuilder.cs | 47 +- .../Item/WithUsernameItemRequestBuilder.cs | 46 +- .../Item/WithUsernamePutRequestBody.cs | 24 +- .../Item/WithUsernamePutRequestBody_role.cs | 4 +- .../Memberships/MembershipsRequestBuilder.cs | 18 +- .../Projects/Item/WithProject_403Error.cs | 30 +- .../Item/WithProject_ItemRequestBuilder.cs | 54 +- .../Item/WithProject_PutRequestBody.cs | 22 +- .../WithProject_PutRequestBody_permission.cs | 4 +- .../Item/Projects/ProjectsRequestBuilder.cs | 45 +- .../Item/Item/WithRepoItemRequestBuilder.cs | 42 +- .../Repos/Item/Item/WithRepoPutRequestBody.cs | 22 +- .../Item/WithRepoPutRequestBody_permission.cs | 4 +- .../Repos/Item/WithOwnerItemRequestBuilder.cs | 18 +- .../Teams/Item/Repos/ReposRequestBuilder.cs | 45 +- .../GroupMappingsPatchRequestBody.cs | 26 +- .../GroupMappingsPatchRequestBody_groups.cs | 28 +- .../GroupMappingsRequestBuilder.cs | 54 +- .../Item/TeamSync/TeamSyncRequestBuilder.cs | 16 +- .../Teams/Item/Teams/TeamsRequestBuilder.cs | 47 +- .../Teams/Item/WithTeam_ItemRequestBuilder.cs | 94 +- .../Teams/Item/WithTeam_PatchRequestBody.cs | 42 +- ...m_PatchRequestBody_notification_setting.cs | 4 +- .../WithTeam_PatchRequestBody_permission.cs | 4 +- .../Item/WithTeam_PatchRequestBody_privacy.cs | 4 +- src/GitHub/Teams/TeamsRequestBuilder.cs | 18 +- .../User/Blocks/BlocksRequestBuilder.cs | 53 +- .../Item/WithUsernameItemRequestBuilder.cs | 58 +- .../User/Codespaces/CodespacesGetResponse.cs | 26 +- .../CodespacesPostRequestBodyMember1.cs | 44 +- .../CodespacesPostRequestBodyMember1_geo.cs | 4 +- .../CodespacesPostRequestBodyMember2.cs | 40 +- .../CodespacesPostRequestBodyMember2_geo.cs | 4 +- ...acesPostRequestBodyMember2_pull_request.cs | 20 +- .../Codespaces/CodespacesRequestBuilder.cs | 138 +- .../Item/Exports/ExportsRequestBuilder.cs | 52 +- .../Item/WithExport_ItemRequestBuilder.cs | 30 +- .../Item/Machines/MachinesGetResponse.cs | 26 +- .../Item/Machines/MachinesRequestBuilder.cs | 42 +- .../Item/Publish/PublishPostRequestBody.cs | 20 +- .../Item/Publish/PublishRequestBuilder.cs | 46 +- .../Item/Start/StartRequestBuilder.cs | 54 +- .../Item/Stop/StopRequestBuilder.cs | 42 +- .../Item/WithCodespace_nameDeleteResponse.cs | 16 +- .../WithCodespace_nameItemRequestBuilder.cs | 110 +- .../WithCodespace_namePatchRequestBody.cs | 22 +- .../Item/WithRepository_ItemRequestBuilder.cs | 50 +- .../Repositories/RepositoriesGetResponse.cs | 26 +- .../RepositoriesPutRequestBody.cs | 18 +- .../RepositoriesRequestBuilder.cs | 72 +- .../Item/WithSecret_nameItemRequestBuilder.cs | 50 +- .../Item/WithSecret_namePutRequestBody.cs | 22 +- .../PublicKey/PublicKeyRequestBuilder.cs | 26 +- .../Codespaces/Secrets/SecretsGetResponse.cs | 26 +- .../Secrets/SecretsRequestBuilder.cs | 43 +- .../Conflicts/ConflictsRequestBuilder.cs | 28 +- .../User/Docker/DockerRequestBuilder.cs | 16 +- src/GitHub/User/Email/EmailRequestBuilder.cs | 16 +- .../Visibility/VisibilityPatchRequestBody.cs | 22 +- .../VisibilityPatchRequestBody_visibility.cs | 4 +- .../Visibility/VisibilityRequestBuilder.cs | 48 +- .../Emails/EmailsDeleteRequestBodyMember1.cs | 18 +- .../Emails/EmailsPostRequestBodyMember1.cs | 18 +- .../User/Emails/EmailsRequestBuilder.cs | 163 +- .../User/Followers/FollowersRequestBuilder.cs | 43 +- .../User/Following/FollowingRequestBuilder.cs | 49 +- .../Item/WithUsernameItemRequestBuilder.cs | 54 +- .../User/Gpg_keys/Gpg_keysPostRequestBody.cs | 20 +- .../User/Gpg_keys/Gpg_keysRequestBuilder.cs | 81 +- .../Item/WithGpg_key_ItemRequestBuilder.cs | 54 +- .../Installations/InstallationsGetResponse.cs | 26 +- .../InstallationsRequestBuilder.cs | 47 +- .../Item/WithRepository_ItemRequestBuilder.cs | 34 +- .../Repositories/RepositoriesGetResponse.cs | 28 +- .../RepositoriesRequestBuilder.cs | 47 +- .../WithInstallation_ItemRequestBuilder.cs | 16 +- .../InteractionLimitsRequestBuilder.cs | 42 +- .../Issues/GetDirectionQueryParameterType.cs | 4 +- .../Issues/GetFilterQueryParameterType.cs | 4 +- .../User/Issues/GetSortQueryParameterType.cs | 4 +- .../User/Issues/GetStateQueryParameterType.cs | 4 +- .../User/Issues/IssuesRequestBuilder.cs | 47 +- .../Item/WithAccount_ItemRequestBuilder.cs | 61 +- .../Keys/Item/WithKey_ItemRequestBuilder.cs | 50 +- src/GitHub/User/Keys/KeysPostRequestBody.cs | 20 +- src/GitHub/User/Keys/KeysRequestBuilder.cs | 81 +- .../Marketplace_purchasesRequestBuilder.cs | 47 +- .../Stubbed/StubbedRequestBuilder.cs | 39 +- .../Memberships/MembershipsRequestBuilder.cs | 16 +- .../Orgs/GetStateQueryParameterType.cs | 4 +- .../Orgs/Item/WithOrgItemRequestBuilder.cs | 58 +- .../Orgs/Item/WithOrgPatchRequestBody.cs | 22 +- .../Item/WithOrgPatchRequestBody_state.cs | 4 +- .../Memberships/Orgs/OrgsRequestBuilder.cs | 55 +- .../Item/Archive/ArchiveRequestBuilder.cs | 38 +- .../Repos/Item/Lock/LockRequestBuilder.cs | 30 +- .../Item/WithRepo_nameItemRequestBuilder.cs | 16 +- .../Item/Repos/ReposRequestBuilder.cs | 18 +- .../RepositoriesRequestBuilder.cs | 39 +- .../Item/WithMigration_ItemRequestBuilder.cs | 57 +- .../Migrations/MigrationsPostRequestBody.cs | 40 +- .../MigrationsPostRequestBody_exclude.cs | 4 +- .../Migrations/MigrationsRequestBuilder.cs | 73 +- src/GitHub/User/Orgs/OrgsRequestBuilder.cs | 43 +- .../GetPackage_typeQueryParameterType.cs | 4 +- .../GetVisibilityQueryParameterType.cs | 4 +- .../Item/Restore/RestoreRequestBuilder.cs | 41 +- .../Versions/GetStateQueryParameterType.cs | 4 +- .../Item/Restore/RestoreRequestBuilder.cs | 30 +- .../WithPackage_version_ItemRequestBuilder.cs | 42 +- .../Item/Versions/VersionsRequestBuilder.cs | 55 +- .../WithPackage_nameItemRequestBuilder.cs | 46 +- .../WithPackage_typeItemRequestBuilder.cs | 18 +- .../User/Packages/PackagesRequestBuilder.cs | 45 +- .../User/Projects/ProjectsPostRequestBody.cs | 20 +- .../User/Projects/ProjectsRequestBuilder.cs | 42 +- .../Public_emailsRequestBuilder.cs | 47 +- .../Repos/GetDirectionQueryParameterType.cs | 4 +- .../User/Repos/GetSortQueryParameterType.cs | 4 +- .../User/Repos/GetTypeQueryParameterType.cs | 4 +- .../Repos/GetVisibilityQueryParameterType.cs | 4 +- src/GitHub/User/Repos/ReposPostRequestBody.cs | 78 +- ...posPostRequestBody_merge_commit_message.cs | 4 +- ...ReposPostRequestBody_merge_commit_title.cs | 4 +- ...RequestBody_squash_merge_commit_message.cs | 4 +- ...stRequestBody_squash_merge_commit_title.cs | 4 +- src/GitHub/User/Repos/ReposRequestBuilder.cs | 87 +- .../Item/WithInvitation_ItemRequestBuilder.cs | 42 +- .../Repository_invitationsRequestBuilder.cs | 53 +- .../Social_accountsDeleteRequestBody.cs | 18 +- .../Social_accountsPostRequestBody.cs | 18 +- .../Social_accountsRequestBuilder.cs | 101 +- .../WithSsh_signing_key_ItemRequestBuilder.cs | 50 +- .../Ssh_signing_keysPostRequestBody.cs | 20 +- .../Ssh_signing_keysRequestBuilder.cs | 81 +- .../Starred/GetDirectionQueryParameterType.cs | 4 +- .../User/Starred/GetSortQueryParameterType.cs | 4 +- .../Item/Item/WithRepoItemRequestBuilder.cs | 54 +- .../Item/WithOwnerItemRequestBuilder.cs | 18 +- .../User/Starred/StarredRequestBuilder.cs | 53 +- .../SubscriptionsRequestBuilder.cs | 43 +- src/GitHub/User/Teams/TeamsRequestBuilder.cs | 43 +- src/GitHub/User/UserPatchRequestBody.cs | 32 +- src/GitHub/User/UserRequestBuilder.cs | 203 +-- .../AttestationsRequestBuilder.cs | 18 +- .../Item/WithSubject_digestGetResponse.cs | 24 +- ...hSubject_digestGetResponse_attestations.cs | 26 +- .../WithSubject_digestItemRequestBuilder.cs | 37 +- .../Conflicts/ConflictsRequestBuilder.cs | 36 +- .../Users/Item/Docker/DockerRequestBuilder.cs | 16 +- .../Users/Item/Events/EventsRequestBuilder.cs | 43 +- .../Orgs/Item/WithOrgItemRequestBuilder.cs | 35 +- .../Item/Events/Orgs/OrgsRequestBuilder.cs | 18 +- .../Events/Public/PublicRequestBuilder.cs | 35 +- .../Item/Followers/FollowersRequestBuilder.cs | 35 +- .../Item/Following/FollowingRequestBuilder.cs | 41 +- .../Item/WithTarget_userItemRequestBuilder.cs | 18 +- .../Users/Item/Gists/GistsRequestBuilder.cs | 39 +- .../Item/Gpg_keys/Gpg_keysRequestBuilder.cs | 35 +- .../GetSubject_typeQueryParameterType.cs | 4 +- .../Item/Hovercard/HovercardRequestBuilder.cs | 43 +- .../InstallationRequestBuilder.cs | 26 +- .../Users/Item/Keys/KeysRequestBuilder.cs | 35 +- .../Users/Item/Orgs/OrgsRequestBuilder.cs | 35 +- .../GetPackage_typeQueryParameterType.cs | 4 +- .../GetVisibilityQueryParameterType.cs | 4 +- .../Item/Restore/RestoreRequestBuilder.cs | 41 +- .../Item/Restore/RestoreRequestBuilder.cs | 30 +- .../WithPackage_version_ItemRequestBuilder.cs | 42 +- .../Item/Versions/VersionsRequestBuilder.cs | 46 +- .../WithPackage_nameItemRequestBuilder.cs | 46 +- .../WithPackage_typeItemRequestBuilder.cs | 18 +- .../Item/Packages/PackagesRequestBuilder.cs | 53 +- .../Projects/GetStateQueryParameterType.cs | 4 +- .../Item/Projects/ProjectsRequestBuilder.cs | 41 +- .../Public/PublicRequestBuilder.cs | 35 +- .../Received_eventsRequestBuilder.cs | 39 +- .../Repos/GetDirectionQueryParameterType.cs | 4 +- .../Item/Repos/GetSortQueryParameterType.cs | 4 +- .../Item/Repos/GetTypeQueryParameterType.cs | 4 +- .../Users/Item/Repos/ReposRequestBuilder.cs | 41 +- .../Billing/Actions/ActionsRequestBuilder.cs | 26 +- .../Settings/Billing/BillingRequestBuilder.cs | 24 +- .../Packages/PackagesRequestBuilder.cs | 26 +- .../SharedStorageRequestBuilder.cs | 26 +- .../Item/Settings/SettingsRequestBuilder.cs | 16 +- .../Social_accountsRequestBuilder.cs | 35 +- .../Ssh_signing_keysRequestBuilder.cs | 35 +- .../Starred/GetDirectionQueryParameterType.cs | 4 +- .../Item/Starred/GetSortQueryParameterType.cs | 4 +- src/GitHub/Users/Item/Starred/Repository.cs | 16 +- .../Users/Item/Starred/StarredRepository.cs | 16 +- .../Item/Starred/StarredRequestBuilder.cs | 68 +- .../SubscriptionsRequestBuilder.cs | 35 +- .../Item/WithUsernameItemRequestBuilder.cs | 141 +- src/GitHub/Users/UsersRequestBuilder.cs | 41 +- src/GitHub/Versions/VersionsRequestBuilder.cs | 24 +- src/GitHub/Zen/ZenRequestBuilder.cs | 18 +- src/GitHub/kiota-lock.json | 5 +- test/Tests.csproj | 2 +- 2710 files changed, 44312 insertions(+), 38720 deletions(-) rename src/GitHub/AppManifests/Item/Conversions/{ConversionsPostResponse.cs => Integration.cs} (70%) create mode 100644 src/GitHub/Models/ApiOverview_domains_artifact_attestations.cs create mode 100644 src/GitHub/Models/GlobalAdvisory_epss.cs rename src/GitHub/{Orgs/Item/OrganizationRoles/OrganizationRolesPostRequestBody.cs => Models/OrganizationCustomOrganizationRoleCreateSchema.cs} (64%) create mode 100644 src/GitHub/Models/OrganizationCustomOrganizationRoleCreateSchema_base_role.cs rename src/GitHub/{Orgs/Item/OrganizationRoles/Item/WithRole_PatchRequestBody.cs => Models/OrganizationCustomOrganizationRoleUpdateSchema.cs} (61%) create mode 100644 src/GitHub/Models/OrganizationCustomOrganizationRoleUpdateSchema_base_role.cs rename src/GitHub/Models/{File_path_restriction.cs => RepositoryRuleMember1.cs} (58%) rename src/GitHub/Models/{File_path_restriction_parameters.cs => RepositoryRuleMember1_parameters.cs} (71%) rename src/GitHub/Models/{File_path_restriction_type.cs => RepositoryRuleMember1_type.cs} (69%) rename src/GitHub/Models/{Max_file_path_length.cs => RepositoryRuleMember2.cs} (58%) rename src/GitHub/Models/{Max_file_path_length_parameters.cs => RepositoryRuleMember2_parameters.cs} (70%) rename src/GitHub/Models/{Max_file_path_length_type.cs => RepositoryRuleMember2_type.cs} (69%) rename src/GitHub/Models/{File_extension_restriction.cs => RepositoryRuleMember3.cs} (58%) rename src/GitHub/Models/{File_extension_restriction_parameters.cs => RepositoryRuleMember3_parameters.cs} (71%) rename src/GitHub/Models/{File_extension_restriction_type.cs => RepositoryRuleMember3_type.cs} (70%) rename src/GitHub/Models/{Max_file_size.cs => RepositoryRuleMember4.cs} (58%) rename src/GitHub/Models/{Max_file_size_parameters.cs => RepositoryRuleMember4_parameters.cs} (71%) rename src/GitHub/Models/{Max_file_size_type.cs => RepositoryRuleMember4_type.cs} (68%) diff --git a/src/GitHub.Octokit.GHEC.SDK.csproj b/src/GitHub.Octokit.GHEC.SDK.csproj index 7977fdc4..e1c45122 100644 --- a/src/GitHub.Octokit.GHEC.SDK.csproj +++ b/src/GitHub.Octokit.GHEC.SDK.csproj @@ -33,14 +33,14 @@ - - - - - - - - + + + + + + + + diff --git a/src/GitHub/Advisories/AdvisoriesRequestBuilder.cs b/src/GitHub/Advisories/AdvisoriesRequestBuilder.cs index 8c9b123d..3373455c 100644 --- a/src/GitHub/Advisories/AdvisoriesRequestBuilder.cs +++ b/src/GitHub/Advisories/AdvisoriesRequestBuilder.cs @@ -1,74 +1,76 @@ // using GitHub.Advisories.Item; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Advisories { +namespace GitHub.Advisories +{ /// /// Builds and executes requests for operations under \advisories /// - public class AdvisoriesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AdvisoriesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.advisories.item collection /// The GHSA (GitHub Security Advisory) identifier of the advisory. - /// A - public WithGhsa_ItemRequestBuilder this[string position] + /// A + public global::GitHub.Advisories.Item.WithGhsa_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("ghsa_id", position); - return new WithGhsa_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Advisories.Item.WithGhsa_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AdvisoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/advisories{?affects*,after*,before*,cve_id*,cwes*,direction*,ecosystem*,ghsa_id*,is_withdrawn*,modified*,per_page*,published*,severity*,sort*,type*,updated*}", pathParameters) + public AdvisoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/advisories{?affects*,after*,before*,cve_id*,cwes*,direction*,ecosystem*,epss_percentage*,epss_percentile*,ghsa_id*,is_withdrawn*,modified*,per_page*,published*,severity*,sort*,type*,updated*}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AdvisoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/advisories{?affects*,after*,before*,cve_id*,cwes*,direction*,ecosystem*,ghsa_id*,is_withdrawn*,modified*,per_page*,published*,severity*,sort*,type*,updated*}", rawUrl) + public AdvisoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/advisories{?affects*,after*,before*,cve_id*,cwes*,direction*,ecosystem*,epss_percentage*,epss_percentile*,ghsa_id*,is_withdrawn*,modified*,per_page*,published*,severity*,sort*,type*,updated*}", rawUrl) { } /// /// Lists all global security advisories that match the specified parameters. If no other parameters are defined, the request will return only GitHub-reviewed advisories that are not malware.By default, all responses will exclude advisories for malware, because malware are not standard vulnerabilities. To list advisories for malware, you must include the `type` parameter in your request, with the value `malware`. For more information about the different types of security advisories, see "[About the GitHub Advisory database](https://docs.github.com/enterprise-cloud@latest//code-security/security-advisories/global-security-advisories/about-the-github-advisory-database#about-types-of-security-advisories)." /// API method documentation /// - /// A List<GlobalAdvisory> + /// A List<global::GitHub.Models.GlobalAdvisory> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code - /// When receiving a 429 status code + /// When receiving a 422 status code + /// When receiving a 429 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, - {"429", BasicError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, + { "429", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GlobalAdvisory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.GlobalAdvisory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists all global security advisories that match the specified parameters. If no other parameters are defined, the request will return only GitHub-reviewed advisories that are not malware.By default, all responses will exclude advisories for malware, because malware are not standard vulnerabilities. To list advisories for malware, you must include the `type` parameter in your request, with the value `malware`. For more information about the different types of security advisories, see "[About the GitHub Advisory database](https://docs.github.com/enterprise-cloud@latest//code-security/security-advisories/global-security-advisories/about-the-github-advisory-database#about-types-of-security-advisories)." @@ -77,11 +79,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -92,16 +94,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AdvisoriesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Advisories.AdvisoriesRequestBuilder WithUrl(string rawUrl) { - return new AdvisoriesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Advisories.AdvisoriesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all global security advisories that match the specified parameters. If no other parameters are defined, the request will return only GitHub-reviewed advisories that are not malware.By default, all responses will exclude advisories for malware, because malware are not standard vulnerabilities. To list advisories for malware, you must include the `type` parameter in your request, with the value `malware`. For more information about the different types of security advisories, see "[About the GitHub Advisory database](https://docs.github.com/enterprise-cloud@latest//code-security/security-advisories/global-security-advisories/about-the-github-advisory-database#about-types-of-security-advisories)." /// - public class AdvisoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AdvisoriesRequestBuilderGetQueryParameters { /// If specified, only return advisories that affect any of `package` or `package@version`. A maximum of 1000 packages can be specified.If the query parameter causes the URL to exceed the maximum URL length supported by your client, you must specify fewer packages.Example: `affects=package1,package2@1.0.0,package3@^2.0.0` or `affects[]=package1&affects[]=package2@1.0.0` #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -155,10 +158,30 @@ public class AdvisoriesRequestBuilderGetQueryParameters #endif /// The direction to sort the results by. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Advisories.GetDirectionQueryParameterType? Direction { get; set; } /// If specified, only advisories for these ecosystems will be returned. [QueryParameter("ecosystem")] - public SecurityAdvisoryEcosystems? Ecosystem { get; set; } + public global::GitHub.Models.SecurityAdvisoryEcosystems? Ecosystem { get; set; } + /// If specified, only return advisories that have an EPSS percentage score that matches the provided value.The EPSS percentage represents the likelihood of a CVE being exploited. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("epss_percentage")] + public string? EpssPercentage { get; set; } +#nullable restore +#else + [QueryParameter("epss_percentage")] + public string EpssPercentage { get; set; } +#endif + /// If specified, only return advisories that have an EPSS percentile score that matches the provided value.The EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("epss_percentile")] + public string? EpssPercentile { get; set; } +#nullable restore +#else + [QueryParameter("epss_percentile")] + public string EpssPercentile { get; set; } +#endif /// If specified, only advisories with this GHSA (GitHub Security Advisory) identifier will be returned. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -197,13 +220,13 @@ public class AdvisoriesRequestBuilderGetQueryParameters #endif /// If specified, only advisories with these severities will be returned. [QueryParameter("severity")] - public GetSeverityQueryParameterType? Severity { get; set; } + public global::GitHub.Advisories.GetSeverityQueryParameterType? Severity { get; set; } /// The property to sort the results by. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Advisories.GetSortQueryParameterType? Sort { get; set; } /// If specified, only advisories of this type will be returned. By default, a request with no other parameters defined will only return reviewed advisories that are not malware. [QueryParameter("type")] - public GetTypeQueryParameterType? Type { get; set; } + public global::GitHub.Advisories.GetTypeQueryParameterType? Type { get; set; } /// If specified, only return advisories that were updated on a date or date range.For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/enterprise-cloud@latest//search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/GitHub/Advisories/GetDirectionQueryParameterType.cs b/src/GitHub/Advisories/GetDirectionQueryParameterType.cs index 78a16675..e0e16a98 100644 --- a/src/GitHub/Advisories/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Advisories/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Advisories { +namespace GitHub.Advisories +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Advisories/GetSeverityQueryParameterType.cs b/src/GitHub/Advisories/GetSeverityQueryParameterType.cs index a413749a..20275318 100644 --- a/src/GitHub/Advisories/GetSeverityQueryParameterType.cs +++ b/src/GitHub/Advisories/GetSeverityQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Advisories { +namespace GitHub.Advisories +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSeverityQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Advisories/GetSortQueryParameterType.cs b/src/GitHub/Advisories/GetSortQueryParameterType.cs index 5431ea5b..43abad22 100644 --- a/src/GitHub/Advisories/GetSortQueryParameterType.cs +++ b/src/GitHub/Advisories/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Advisories { +namespace GitHub.Advisories +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 @@ -14,5 +16,13 @@ public enum GetSortQueryParameterType #pragma warning disable CS1591 Published, #pragma warning restore CS1591 + [EnumMember(Value = "epss_percentage")] + #pragma warning disable CS1591 + Epss_percentage, + #pragma warning restore CS1591 + [EnumMember(Value = "epss_percentile")] + #pragma warning disable CS1591 + Epss_percentile, + #pragma warning restore CS1591 } } diff --git a/src/GitHub/Advisories/GetTypeQueryParameterType.cs b/src/GitHub/Advisories/GetTypeQueryParameterType.cs index b303869f..8c90afdb 100644 --- a/src/GitHub/Advisories/GetTypeQueryParameterType.cs +++ b/src/GitHub/Advisories/GetTypeQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Advisories { +namespace GitHub.Advisories +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetTypeQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Advisories/Item/WithGhsa_ItemRequestBuilder.cs b/src/GitHub/Advisories/Item/WithGhsa_ItemRequestBuilder.cs index ae724357..510e82ba 100644 --- a/src/GitHub/Advisories/Item/WithGhsa_ItemRequestBuilder.cs +++ b/src/GitHub/Advisories/Item/WithGhsa_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Advisories.Item { +namespace GitHub.Advisories.Item +{ /// /// Builds and executes requests for operations under \advisories\{ghsa_id} /// - public class WithGhsa_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithGhsa_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithGhsa_ItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,25 +36,25 @@ public WithGhsa_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Gets a global security advisory using its GitHub Security Advisory (GHSA) identifier. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GlobalAdvisory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GlobalAdvisory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets a global security advisory using its GitHub Security Advisory (GHSA) identifier. @@ -76,11 +78,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithGhsa_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Advisories.Item.WithGhsa_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithGhsa_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Advisories.Item.WithGhsa_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/App/AppRequestBuilder.cs b/src/GitHub/App/AppRequestBuilder.cs index e2f00d4d..b64e3e6b 100644 --- a/src/GitHub/App/AppRequestBuilder.cs +++ b/src/GitHub/App/AppRequestBuilder.cs @@ -3,37 +3,39 @@ using GitHub.App.InstallationRequests; using GitHub.App.Installations; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.App { +namespace GitHub.App +{ /// /// Builds and executes requests for operations under \app /// - public class AppRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AppRequestBuilder : BaseRequestBuilder { /// The hook property - public HookRequestBuilder Hook + public global::GitHub.App.Hook.HookRequestBuilder Hook { - get => new HookRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.App.Hook.HookRequestBuilder(PathParameters, RequestAdapter); } /// The installationRequests property - public InstallationRequestsRequestBuilder InstallationRequests + public global::GitHub.App.InstallationRequests.InstallationRequestsRequestBuilder InstallationRequests { - get => new InstallationRequestsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.App.InstallationRequests.InstallationRequestsRequestBuilder(PathParameters, RequestAdapter); } /// The installations property - public InstallationsRequestBuilder Installations + public global::GitHub.App.Installations.InstallationsRequestBuilder Installations { - get => new InstallationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.App.Installations.InstallationsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -41,7 +43,7 @@ public AppRequestBuilder(Dictionary pathParameters, IRequestAdap { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,20 +54,20 @@ public AppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Returns the GitHub App associated with the authentication credentials used. To see how many app installations are associated with this GitHub App, see the `installations_count` in the response. For more details about your app's installations, see the "[List installations for the authenticated app](https://docs.github.com/enterprise-cloud@latest//rest/apps/apps#list-installations-for-the-authenticated-app)" endpoint.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, Integration.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Integration.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Returns the GitHub App associated with the authentication credentials used. To see how many app installations are associated with this GitHub App, see the `installations_count` in the response. For more details about your app's installations, see the "[List installations for the authenticated app](https://docs.github.com/enterprise-cloud@latest//rest/apps/apps#list-installations-for-the-authenticated-app)" endpoint.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. @@ -89,11 +91,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AppRequestBuilder WithUrl(string rawUrl) + public global::GitHub.App.AppRequestBuilder WithUrl(string rawUrl) { - return new AppRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.App.AppRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/App/Hook/Config/ConfigPatchRequestBody.cs b/src/GitHub/App/Hook/Config/ConfigPatchRequestBody.cs index 8dd9fa08..316a2303 100644 --- a/src/GitHub/App/Hook/Config/ConfigPatchRequestBody.cs +++ b/src/GitHub/App/Hook/Config/ConfigPatchRequestBody.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.App.Hook.Config { +namespace GitHub.App.Hook.Config +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ConfigPatchRequestBody : IAdditionalDataHolder, IParsable + public partial class ConfigPatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -23,10 +25,10 @@ public class ConfigPatchRequestBody : IAdditionalDataHolder, IParsable /// The insecure_ssl property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WebhookConfigInsecureSsl? InsecureSsl { get; set; } + public global::GitHub.Models.WebhookConfigInsecureSsl? InsecureSsl { get; set; } #nullable restore #else - public WebhookConfigInsecureSsl InsecureSsl { get; set; } + public global::GitHub.Models.WebhookConfigInsecureSsl InsecureSsl { get; set; } #endif /// 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/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -45,7 +47,7 @@ public class ConfigPatchRequestBody : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ConfigPatchRequestBody() { @@ -54,12 +56,12 @@ public ConfigPatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ConfigPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.App.Hook.Config.ConfigPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ConfigPatchRequestBody(); + return new global::GitHub.App.Hook.Config.ConfigPatchRequestBody(); } /// /// The deserialization information for the current model @@ -69,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content_type", n => { ContentType = n.GetStringValue(); } }, - {"insecure_ssl", n => { InsecureSsl = n.GetObjectValue(WebhookConfigInsecureSsl.CreateFromDiscriminatorValue); } }, - {"secret", n => { Secret = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "content_type", n => { ContentType = n.GetStringValue(); } }, + { "insecure_ssl", n => { InsecureSsl = n.GetObjectValue(global::GitHub.Models.WebhookConfigInsecureSsl.CreateFromDiscriminatorValue); } }, + { "secret", n => { Secret = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -83,7 +85,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("content_type", ContentType); - writer.WriteObjectValue("insecure_ssl", InsecureSsl); + writer.WriteObjectValue("insecure_ssl", InsecureSsl); writer.WriteStringValue("secret", Secret); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/App/Hook/Config/ConfigRequestBuilder.cs b/src/GitHub/App/Hook/Config/ConfigRequestBuilder.cs index 434f05ae..13ee3292 100644 --- a/src/GitHub/App/Hook/Config/ConfigRequestBuilder.cs +++ b/src/GitHub/App/Hook/Config/ConfigRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.App.Hook.Config { +namespace GitHub.App.Hook.Config +{ /// /// Builds and executes requests for operations under \app\hook\config /// - public class ConfigRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ConfigRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ConfigRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,41 +36,41 @@ public ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Returns the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see "[Creating a GitHub App](/developers/apps/creating-a-github-app)."You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, WebhookConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.WebhookConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Updates the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see "[Creating a GitHub App](/developers/apps/creating-a-github-app)."You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(ConfigPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.App.Hook.Config.ConfigPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(ConfigPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.App.Hook.Config.ConfigPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, WebhookConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.WebhookConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Returns the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see "[Creating a GitHub App](/developers/apps/creating-a-github-app)."You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. @@ -97,11 +99,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ConfigPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.App.Hook.Config.ConfigPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ConfigPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.App.Hook.Config.ConfigPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -114,11 +116,11 @@ public RequestInformation ToPatchRequestInformation(ConfigPatchRequestBody body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ConfigRequestBuilder WithUrl(string rawUrl) + public global::GitHub.App.Hook.Config.ConfigRequestBuilder WithUrl(string rawUrl) { - return new ConfigRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.App.Hook.Config.ConfigRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/App/Hook/Deliveries/DeliveriesRequestBuilder.cs b/src/GitHub/App/Hook/Deliveries/DeliveriesRequestBuilder.cs index 6b944c06..9c0332bd 100644 --- a/src/GitHub/App/Hook/Deliveries/DeliveriesRequestBuilder.cs +++ b/src/GitHub/App/Hook/Deliveries/DeliveriesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.App.Hook.Deliveries.Item; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.App.Hook.Deliveries { +namespace GitHub.App.Hook.Deliveries +{ /// /// Builds and executes requests for operations under \app\hook\deliveries /// - public class DeliveriesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DeliveriesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.app.hook.deliveries.item collection /// Unique identifier of the item - /// A - public WithDelivery_ItemRequestBuilder this[int position] + /// A + public global::GitHub.App.Hook.Deliveries.Item.WithDelivery_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("delivery_id", position); - return new WithDelivery_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.App.Hook.Deliveries.Item.WithDelivery_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public DeliveriesRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,28 +49,28 @@ public DeliveriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Returns a list of webhook deliveries for the webhook configured for a GitHub App.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. /// API method documentation /// - /// A List<HookDeliveryItem> + /// A List<global::GitHub.Models.HookDeliveryItem> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, HookDeliveryItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.HookDeliveryItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Returns a list of webhook deliveries for the webhook configured for a GitHub App.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. @@ -77,11 +79,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -92,16 +94,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DeliveriesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.App.Hook.Deliveries.DeliveriesRequestBuilder WithUrl(string rawUrl) { - return new DeliveriesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.App.Hook.Deliveries.DeliveriesRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns a list of webhook deliveries for the webhook configured for a GitHub App.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. /// - public class DeliveriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DeliveriesRequestBuilderGetQueryParameters { /// Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/App/Hook/Deliveries/Item/Attempts/AttemptsPostResponse.cs b/src/GitHub/App/Hook/Deliveries/Item/Attempts/AttemptsPostResponse.cs index 65e78324..f856ce29 100644 --- a/src/GitHub/App/Hook/Deliveries/Item/Attempts/AttemptsPostResponse.cs +++ b/src/GitHub/App/Hook/Deliveries/Item/Attempts/AttemptsPostResponse.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.App.Hook.Deliveries.Item.Attempts { +namespace GitHub.App.Hook.Deliveries.Item.Attempts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AttemptsPostResponse : IAdditionalDataHolder, IParsable + public partial class AttemptsPostResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AttemptsPostResponse() { @@ -21,12 +23,12 @@ public AttemptsPostResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AttemptsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.App.Hook.Deliveries.Item.Attempts.AttemptsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AttemptsPostResponse(); + return new global::GitHub.App.Hook.Deliveries.Item.Attempts.AttemptsPostResponse(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/App/Hook/Deliveries/Item/Attempts/AttemptsRequestBuilder.cs b/src/GitHub/App/Hook/Deliveries/Item/Attempts/AttemptsRequestBuilder.cs index 83e0ee95..f4ef7c08 100644 --- a/src/GitHub/App/Hook/Deliveries/Item/Attempts/AttemptsRequestBuilder.cs +++ b/src/GitHub/App/Hook/Deliveries/Item/Attempts/AttemptsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.App.Hook.Deliveries.Item.Attempts { +namespace GitHub.App.Hook.Deliveries.Item.Attempts +{ /// /// Builds and executes requests for operations under \app\hook\deliveries\{delivery_id}\attempts /// - public class AttemptsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AttemptsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AttemptsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public AttemptsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Redeliver a delivery for the webhook configured for a GitHub App.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, AttemptsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.App.Hook.Deliveries.Item.Attempts.AttemptsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Redeliver a delivery for the webhook configured for a GitHub App.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. @@ -78,11 +80,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AttemptsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.App.Hook.Deliveries.Item.Attempts.AttemptsRequestBuilder WithUrl(string rawUrl) { - return new AttemptsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.App.Hook.Deliveries.Item.Attempts.AttemptsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/App/Hook/Deliveries/Item/WithDelivery_ItemRequestBuilder.cs b/src/GitHub/App/Hook/Deliveries/Item/WithDelivery_ItemRequestBuilder.cs index c85af9d6..3d4cb341 100644 --- a/src/GitHub/App/Hook/Deliveries/Item/WithDelivery_ItemRequestBuilder.cs +++ b/src/GitHub/App/Hook/Deliveries/Item/WithDelivery_ItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.App.Hook.Deliveries.Item.Attempts; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.App.Hook.Deliveries.Item { +namespace GitHub.App.Hook.Deliveries.Item +{ /// /// Builds and executes requests for operations under \app\hook\deliveries\{delivery_id} /// - public class WithDelivery_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithDelivery_ItemRequestBuilder : BaseRequestBuilder { /// The attempts property - public AttemptsRequestBuilder Attempts + public global::GitHub.App.Hook.Deliveries.Item.Attempts.AttemptsRequestBuilder Attempts { - get => new AttemptsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.App.Hook.Deliveries.Item.Attempts.AttemptsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithDelivery_ItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -40,27 +42,27 @@ public WithDelivery_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Returns a delivery for the webhook configured for a GitHub App.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, HookDelivery.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.HookDelivery.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Returns a delivery for the webhook configured for a GitHub App.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. @@ -84,11 +86,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithDelivery_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.App.Hook.Deliveries.Item.WithDelivery_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithDelivery_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.App.Hook.Deliveries.Item.WithDelivery_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/App/Hook/HookRequestBuilder.cs b/src/GitHub/App/Hook/HookRequestBuilder.cs index 71d7464d..23079cba 100644 --- a/src/GitHub/App/Hook/HookRequestBuilder.cs +++ b/src/GitHub/App/Hook/HookRequestBuilder.cs @@ -1,30 +1,32 @@ // using GitHub.App.Hook.Config; using GitHub.App.Hook.Deliveries; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.App.Hook { +namespace GitHub.App.Hook +{ /// /// Builds and executes requests for operations under \app\hook /// - public class HookRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class HookRequestBuilder : BaseRequestBuilder { /// The config property - public ConfigRequestBuilder Config + public global::GitHub.App.Hook.Config.ConfigRequestBuilder Config { - get => new ConfigRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.App.Hook.Config.ConfigRequestBuilder(PathParameters, RequestAdapter); } /// The deliveries property - public DeliveriesRequestBuilder Deliveries + public global::GitHub.App.Hook.Deliveries.DeliveriesRequestBuilder Deliveries { - get => new DeliveriesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.App.Hook.Deliveries.DeliveriesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -32,7 +34,7 @@ public HookRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/App/InstallationRequests/InstallationRequestsRequestBuilder.cs b/src/GitHub/App/InstallationRequests/InstallationRequestsRequestBuilder.cs index 690fff6c..8122151a 100644 --- a/src/GitHub/App/InstallationRequests/InstallationRequestsRequestBuilder.cs +++ b/src/GitHub/App/InstallationRequests/InstallationRequestsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.App.InstallationRequests { +namespace GitHub.App.InstallationRequests +{ /// /// Builds and executes requests for operations under \app\installation-requests /// - public class InstallationRequestsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InstallationRequestsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public InstallationRequestsRequestBuilder(Dictionary pathParamet { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,26 +36,26 @@ public InstallationRequestsRequestBuilder(string rawUrl, IRequestAdapter request /// Lists all the pending installation requests for the authenticated GitHub App. /// API method documentation /// - /// A List<IntegrationInstallationRequest> + /// A List<global::GitHub.Models.IntegrationInstallationRequest> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code + /// When receiving a 401 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, IntegrationInstallationRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.IntegrationInstallationRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists all the pending installation requests for the authenticated GitHub App. @@ -62,11 +64,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -77,16 +79,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public InstallationRequestsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.App.InstallationRequests.InstallationRequestsRequestBuilder WithUrl(string rawUrl) { - return new InstallationRequestsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.App.InstallationRequests.InstallationRequestsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all the pending installation requests for the authenticated GitHub App. /// - public class InstallationRequestsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InstallationRequestsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/App/Installations/InstallationsRequestBuilder.cs b/src/GitHub/App/Installations/InstallationsRequestBuilder.cs index 9c533f44..5a5c0cda 100644 --- a/src/GitHub/App/Installations/InstallationsRequestBuilder.cs +++ b/src/GitHub/App/Installations/InstallationsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.App.Installations.Item; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.App.Installations { +namespace GitHub.App.Installations +{ /// /// Builds and executes requests for operations under \app\installations /// - public class InstallationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InstallationsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.app.installations.item collection /// The unique identifier of the installation. - /// A - public WithInstallation_ItemRequestBuilder this[int position] + /// A + public global::GitHub.App.Installations.Item.WithInstallation_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("installation_id", position); - return new WithInstallation_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.App.Installations.Item.WithInstallation_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public InstallationsRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public InstallationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// The permissions the installation has are included under the `permissions` key.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. /// API method documentation /// - /// A List<GitHub.Models.Installation> + /// A List<global::GitHub.Models.Installation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GitHub.Models.Installation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Installation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// The permissions the installation has are included under the `permissions` key.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. @@ -70,11 +72,11 @@ public InstallationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -85,16 +87,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public InstallationsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.App.Installations.InstallationsRequestBuilder WithUrl(string rawUrl) { - return new InstallationsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.App.Installations.InstallationsRequestBuilder(rawUrl, RequestAdapter); } /// /// The permissions the installation has are included under the `permissions` key.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. /// - public class InstallationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InstallationsRequestBuilderGetQueryParameters { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensPostRequestBody.cs b/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensPostRequestBody.cs index d0f510cb..eac49cd8 100644 --- a/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensPostRequestBody.cs +++ b/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensPostRequestBody.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.App.Installations.Item.Access_tokens { +namespace GitHub.App.Installations.Item.Access_tokens +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Access_tokensPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Access_tokensPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,10 +17,10 @@ public class Access_tokensPostRequestBody : IAdditionalDataHolder, IParsable /// The permissions granted to the user access token. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public AppPermissions? Permissions { get; set; } + public global::GitHub.Models.AppPermissions? Permissions { get; set; } #nullable restore #else - public AppPermissions Permissions { get; set; } + public global::GitHub.Models.AppPermissions Permissions { get; set; } #endif /// List of repository names that the token should have access to #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -37,7 +39,7 @@ public class Access_tokensPostRequestBody : IAdditionalDataHolder, IParsable public List RepositoryIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Access_tokensPostRequestBody() { @@ -46,12 +48,12 @@ public Access_tokensPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Access_tokensPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.App.Installations.Item.Access_tokens.Access_tokensPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Access_tokensPostRequestBody(); + return new global::GitHub.App.Installations.Item.Access_tokens.Access_tokensPostRequestBody(); } /// /// The deserialization information for the current model @@ -61,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"permissions", n => { Permissions = n.GetObjectValue(AppPermissions.CreateFromDiscriminatorValue); } }, - {"repositories", n => { Repositories = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"repository_ids", n => { RepositoryIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.AppPermissions.CreateFromDiscriminatorValue); } }, + { "repositories", n => { Repositories = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "repository_ids", n => { RepositoryIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -73,7 +75,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("permissions", Permissions); writer.WriteCollectionOfPrimitiveValues("repositories", Repositories); writer.WriteCollectionOfPrimitiveValues("repository_ids", RepositoryIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensRequestBuilder.cs b/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensRequestBuilder.cs index 75eda1ff..3bf91b8f 100644 --- a/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensRequestBuilder.cs +++ b/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.App.Installations.Item.Access_tokens { +namespace GitHub.App.Installations.Item.Access_tokens +{ /// /// Builds and executes requests for operations under \app\installations\{installation_id}\access_tokens /// - public class Access_tokensRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Access_tokensRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Access_tokensRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,33 +36,33 @@ public Access_tokensRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access.Optionally, you can use the `repositories` or `repository_ids` body parameters to specify individual repositories that the installation access token can access. If you don't use `repositories` or `repository_ids` to grant access to specific repositories, the installation access token will have access to all repositories that the installation was granted access to. The installation access token cannot be granted access to repositories that the installation was not granted access to. Up to 500 repositories can be listed in this manner.Optionally, use the `permissions` body parameter to specify the permissions that the installation access token should have. If `permissions` is not specified, the installation access token will have all of the permissions that were granted to the app. The installation access token cannot be granted permissions that the app was not granted.When using the repository or permission parameters to reduce the access of the token, the complexity of the token is increased due to both the number of permissions in the request and the number of repositories the token will have access to. If the complexity is too large, the token will fail to be issued. If this occurs, the error message will indicate the maximum number of repositories that should be requested. For the average application requesting 8 permissions, this limit is around 5000 repositories. With fewer permissions requested, more repositories are supported.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Access_tokensPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.App.Installations.Item.Access_tokens.Access_tokensPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Access_tokensPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.App.Installations.Item.Access_tokens.Access_tokensPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, InstallationToken.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.InstallationToken.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access.Optionally, you can use the `repositories` or `repository_ids` body parameters to specify individual repositories that the installation access token can access. If you don't use `repositories` or `repository_ids` to grant access to specific repositories, the installation access token will have access to all repositories that the installation was granted access to. The installation access token cannot be granted access to repositories that the installation was not granted access to. Up to 500 repositories can be listed in this manner.Optionally, use the `permissions` body parameter to specify the permissions that the installation access token should have. If `permissions` is not specified, the installation access token will have all of the permissions that were granted to the app. The installation access token cannot be granted permissions that the app was not granted.When using the repository or permission parameters to reduce the access of the token, the complexity of the token is increased due to both the number of permissions in the request and the number of repositories the token will have access to. If the complexity is too large, the token will fail to be issued. If this occurs, the error message will indicate the maximum number of repositories that should be requested. For the average application requesting 8 permissions, this limit is around 5000 repositories. With fewer permissions requested, more repositories are supported.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. @@ -70,11 +72,11 @@ public async Task PostAsync(Access_tokensPostRequestBody body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Access_tokensPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.App.Installations.Item.Access_tokens.Access_tokensPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Access_tokensPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.App.Installations.Item.Access_tokens.Access_tokensPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -87,11 +89,11 @@ public RequestInformation ToPostRequestInformation(Access_tokensPostRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Access_tokensRequestBuilder WithUrl(string rawUrl) + public global::GitHub.App.Installations.Item.Access_tokens.Access_tokensRequestBuilder WithUrl(string rawUrl) { - return new Access_tokensRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.App.Installations.Item.Access_tokens.Access_tokensRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/App/Installations/Item/Suspended/SuspendedRequestBuilder.cs b/src/GitHub/App/Installations/Item/Suspended/SuspendedRequestBuilder.cs index 2b8d28ed..26388ad5 100644 --- a/src/GitHub/App/Installations/Item/Suspended/SuspendedRequestBuilder.cs +++ b/src/GitHub/App/Installations/Item/Suspended/SuspendedRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.App.Installations.Item.Suspended { +namespace GitHub.App.Installations.Item.Suspended +{ /// /// Builds and executes requests for operations under \app\installations\{installation_id}\suspended /// - public class SuspendedRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SuspendedRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public SuspendedRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public SuspendedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -49,7 +51,7 @@ public async Task DeleteAsync(Action> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -59,7 +61,7 @@ public async Task DeleteAsync(Action /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -72,7 +74,7 @@ public async Task PutAsync(Action> var requestInfo = ToPutRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -117,11 +119,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SuspendedRequestBuilder WithUrl(string rawUrl) + public global::GitHub.App.Installations.Item.Suspended.SuspendedRequestBuilder WithUrl(string rawUrl) { - return new SuspendedRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.App.Installations.Item.Suspended.SuspendedRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/App/Installations/Item/WithInstallation_ItemRequestBuilder.cs b/src/GitHub/App/Installations/Item/WithInstallation_ItemRequestBuilder.cs index ec31556a..ee7444ae 100644 --- a/src/GitHub/App/Installations/Item/WithInstallation_ItemRequestBuilder.cs +++ b/src/GitHub/App/Installations/Item/WithInstallation_ItemRequestBuilder.cs @@ -2,32 +2,34 @@ using GitHub.App.Installations.Item.Access_tokens; using GitHub.App.Installations.Item.Suspended; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.App.Installations.Item { +namespace GitHub.App.Installations.Item +{ /// /// Builds and executes requests for operations under \app\installations\{installation_id} /// - public class WithInstallation_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithInstallation_ItemRequestBuilder : BaseRequestBuilder { /// The access_tokens property - public Access_tokensRequestBuilder Access_tokens + public global::GitHub.App.Installations.Item.Access_tokens.Access_tokensRequestBuilder Access_tokens { - get => new Access_tokensRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.App.Installations.Item.Access_tokens.Access_tokensRequestBuilder(PathParameters, RequestAdapter); } /// The suspended property - public SuspendedRequestBuilder Suspended + public global::GitHub.App.Installations.Item.Suspended.SuspendedRequestBuilder Suspended { - get => new SuspendedRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.App.Installations.Item.Suspended.SuspendedRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public WithInstallation_ItemRequestBuilder(Dictionary pathParame { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -48,7 +50,7 @@ public WithInstallation_ItemRequestBuilder(string rawUrl, IRequestAdapter reques /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -61,7 +63,7 @@ public async Task DeleteAsync(Action> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -69,25 +71,25 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.Installation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Installation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the "[Suspend an app installation](https://docs.github.com/enterprise-cloud@latest//rest/apps/apps#suspend-an-app-installation)" endpoint.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. @@ -130,11 +132,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithInstallation_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.App.Installations.Item.WithInstallation_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithInstallation_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.App.Installations.Item.WithInstallation_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/AppManifests/AppManifestsRequestBuilder.cs b/src/GitHub/AppManifests/AppManifestsRequestBuilder.cs index 5b66d0f1..da118997 100644 --- a/src/GitHub/AppManifests/AppManifestsRequestBuilder.cs +++ b/src/GitHub/AppManifests/AppManifestsRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.AppManifests.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.AppManifests { +namespace GitHub.AppManifests +{ /// /// Builds and executes requests for operations under \app-manifests /// - public class AppManifestsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AppManifestsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.appManifests.item collection /// Unique identifier of the item - /// A - public WithCodeItemRequestBuilder this[string position] + /// A + public global::GitHub.AppManifests.Item.WithCodeItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("code", position); - return new WithCodeItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.AppManifests.Item.WithCodeItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public AppManifestsRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/AppManifests/Item/Conversions/ConversionsRequestBuilder.cs b/src/GitHub/AppManifests/Item/Conversions/ConversionsRequestBuilder.cs index fbce9490..f033b1a1 100644 --- a/src/GitHub/AppManifests/Item/Conversions/ConversionsRequestBuilder.cs +++ b/src/GitHub/AppManifests/Item/Conversions/ConversionsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.AppManifests.Item.Conversions { +namespace GitHub.AppManifests.Item.Conversions +{ /// /// Builds and executes requests for operations under \app-manifests\{code}\conversions /// - public class ConversionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ConversionsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ConversionsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public ConversionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Use this endpoint to complete the handshake necessary when implementing the [GitHub App Manifest flow](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/creating-github-apps-from-a-manifest/). When you create a GitHub App with the manifest flow, you receive a temporary `code` used to retrieve the GitHub App's `id`, `pem` (private key), and `webhook_secret`. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ConversionsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.AppManifests.Item.Conversions.Integration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Use this endpoint to complete the handshake necessary when implementing the [GitHub App Manifest flow](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/creating-github-apps-from-a-manifest/). When you create a GitHub App with the manifest flow, you receive a temporary `code` used to retrieve the GitHub App's `id`, `pem` (private key), and `webhook_secret`. @@ -78,11 +80,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ConversionsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.AppManifests.Item.Conversions.ConversionsRequestBuilder WithUrl(string rawUrl) { - return new ConversionsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.AppManifests.Item.Conversions.ConversionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/AppManifests/Item/Conversions/ConversionsPostResponse.cs b/src/GitHub/AppManifests/Item/Conversions/Integration.cs similarity index 70% rename from src/GitHub/AppManifests/Item/Conversions/ConversionsPostResponse.cs rename to src/GitHub/AppManifests/Item/Conversions/Integration.cs index 06fee7f3..45e1dcc4 100644 --- a/src/GitHub/AppManifests/Item/Conversions/ConversionsPostResponse.cs +++ b/src/GitHub/AppManifests/Item/Conversions/Integration.cs @@ -1,24 +1,25 @@ // -using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.AppManifests.Item.Conversions { +namespace GitHub.AppManifests.Item.Conversions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ConversionsPostResponse : Integration, IParsable + public partial class Integration : global::GitHub.Models.Integration, IParsable #pragma warning restore CS1591 { /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new ConversionsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::GitHub.AppManifests.Item.Conversions.Integration CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ConversionsPostResponse(); + return new global::GitHub.AppManifests.Item.Conversions.Integration(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/AppManifests/Item/WithCodeItemRequestBuilder.cs b/src/GitHub/AppManifests/Item/WithCodeItemRequestBuilder.cs index 24c5c517..6102599a 100644 --- a/src/GitHub/AppManifests/Item/WithCodeItemRequestBuilder.cs +++ b/src/GitHub/AppManifests/Item/WithCodeItemRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.AppManifests.Item.Conversions; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.AppManifests.Item { +namespace GitHub.AppManifests.Item +{ /// /// Builds and executes requests for operations under \app-manifests\{code} /// - public class WithCodeItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithCodeItemRequestBuilder : BaseRequestBuilder { /// The conversions property - public ConversionsRequestBuilder Conversions + public global::GitHub.AppManifests.Item.Conversions.ConversionsRequestBuilder Conversions { - get => new ConversionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.AppManifests.Item.Conversions.ConversionsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public WithCodeItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Applications/ApplicationsRequestBuilder.cs b/src/GitHub/Applications/ApplicationsRequestBuilder.cs index b5e628ef..6e611538 100644 --- a/src/GitHub/Applications/ApplicationsRequestBuilder.cs +++ b/src/GitHub/Applications/ApplicationsRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Applications.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Applications { +namespace GitHub.Applications +{ /// /// Builds and executes requests for operations under \applications /// - public class ApplicationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ApplicationsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.applications.item collection /// The client ID of the GitHub app. - /// A - public WithClient_ItemRequestBuilder this[string position] + /// A + public global::GitHub.Applications.Item.WithClient_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("client_id", position); - return new WithClient_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Applications.Item.WithClient_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public ApplicationsRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Applications/Item/Grant/GrantDeleteRequestBody.cs b/src/GitHub/Applications/Item/Grant/GrantDeleteRequestBody.cs index 703842d6..6a4a3e61 100644 --- a/src/GitHub/Applications/Item/Grant/GrantDeleteRequestBody.cs +++ b/src/GitHub/Applications/Item/Grant/GrantDeleteRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Applications.Item.Grant { +namespace GitHub.Applications.Item.Grant +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GrantDeleteRequestBody : IAdditionalDataHolder, IParsable + public partial class GrantDeleteRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The OAuth access token used to authenticate to the GitHub API. @@ -20,7 +22,7 @@ public class GrantDeleteRequestBody : IAdditionalDataHolder, IParsable /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GrantDeleteRequestBody() { @@ -29,12 +31,12 @@ public GrantDeleteRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GrantDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Applications.Item.Grant.GrantDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GrantDeleteRequestBody(); + return new global::GitHub.Applications.Item.Grant.GrantDeleteRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"access_token", n => { AccessToken = n.GetStringValue(); } }, + { "access_token", n => { AccessToken = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Applications/Item/Grant/GrantRequestBuilder.cs b/src/GitHub/Applications/Item/Grant/GrantRequestBuilder.cs index 27a73969..1ee693f3 100644 --- a/src/GitHub/Applications/Item/Grant/GrantRequestBuilder.cs +++ b/src/GitHub/Applications/Item/Grant/GrantRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Applications.Item.Grant { +namespace GitHub.Applications.Item.Grant +{ /// /// Builds and executes requests for operations under \applications\{client_id}\grant /// - public class GrantRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GrantRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public GrantRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -37,21 +39,21 @@ public GrantRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(GrantDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(global::GitHub.Applications.Item.Grant.GrantDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(GrantDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(global::GitHub.Applications.Item.Grant.GrantDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -63,11 +65,11 @@ public async Task DeleteAsync(GrantDeleteRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(GrantDeleteRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Applications.Item.Grant.GrantDeleteRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(GrantDeleteRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Applications.Item.Grant.GrantDeleteRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -80,11 +82,11 @@ public RequestInformation ToDeleteRequestInformation(GrantDeleteRequestBody body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public GrantRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Applications.Item.Grant.GrantRequestBuilder WithUrl(string rawUrl) { - return new GrantRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Applications.Item.Grant.GrantRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Applications/Item/Token/Scoped/ScopedPostRequestBody.cs b/src/GitHub/Applications/Item/Token/Scoped/ScopedPostRequestBody.cs index c49230ec..0b26f635 100644 --- a/src/GitHub/Applications/Item/Token/Scoped/ScopedPostRequestBody.cs +++ b/src/GitHub/Applications/Item/Token/Scoped/ScopedPostRequestBody.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Applications.Item.Token.Scoped { +namespace GitHub.Applications.Item.Token.Scoped +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ScopedPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ScopedPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The access token used to authenticate to the GitHub API. @@ -23,10 +25,10 @@ public class ScopedPostRequestBody : IAdditionalDataHolder, IParsable /// The permissions granted to the user access token. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public AppPermissions? Permissions { get; set; } + public global::GitHub.Models.AppPermissions? Permissions { get; set; } #nullable restore #else - public AppPermissions Permissions { get; set; } + public global::GitHub.Models.AppPermissions Permissions { get; set; } #endif /// The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -55,7 +57,7 @@ public class ScopedPostRequestBody : IAdditionalDataHolder, IParsable /// The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified. public int? TargetId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ScopedPostRequestBody() { @@ -64,12 +66,12 @@ public ScopedPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ScopedPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Applications.Item.Token.Scoped.ScopedPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ScopedPostRequestBody(); + return new global::GitHub.Applications.Item.Token.Scoped.ScopedPostRequestBody(); } /// /// The deserialization information for the current model @@ -79,12 +81,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"access_token", n => { AccessToken = n.GetStringValue(); } }, - {"permissions", n => { Permissions = n.GetObjectValue(AppPermissions.CreateFromDiscriminatorValue); } }, - {"repositories", n => { Repositories = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"repository_ids", n => { RepositoryIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"target", n => { Target = n.GetStringValue(); } }, - {"target_id", n => { TargetId = n.GetIntValue(); } }, + { "access_token", n => { AccessToken = n.GetStringValue(); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.AppPermissions.CreateFromDiscriminatorValue); } }, + { "repositories", n => { Repositories = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "repository_ids", n => { RepositoryIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "target", n => { Target = n.GetStringValue(); } }, + { "target_id", n => { TargetId = n.GetIntValue(); } }, }; } /// @@ -95,7 +97,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("access_token", AccessToken); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("permissions", Permissions); writer.WriteCollectionOfPrimitiveValues("repositories", Repositories); writer.WriteCollectionOfPrimitiveValues("repository_ids", RepositoryIds); writer.WriteStringValue("target", Target); diff --git a/src/GitHub/Applications/Item/Token/Scoped/ScopedRequestBuilder.cs b/src/GitHub/Applications/Item/Token/Scoped/ScopedRequestBuilder.cs index 64eccfa4..f6e4c8d3 100644 --- a/src/GitHub/Applications/Item/Token/Scoped/ScopedRequestBuilder.cs +++ b/src/GitHub/Applications/Item/Token/Scoped/ScopedRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Applications.Item.Token.Scoped { +namespace GitHub.Applications.Item.Token.Scoped +{ /// /// Builds and executes requests for operations under \applications\{client_id}\token\scoped /// - public class ScopedRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ScopedRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ScopedRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,33 +36,33 @@ public ScopedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Use a non-scoped user access token to create a repository-scoped and/or permission-scoped user access token. You can specifywhich repositories the token can access and which permissions are granted to thetoken.Invalid tokens will return `404 NOT FOUND`. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ScopedPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Applications.Item.Token.Scoped.ScopedPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(ScopedPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Applications.Item.Token.Scoped.ScopedPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Authorization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Authorization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Use a non-scoped user access token to create a repository-scoped and/or permission-scoped user access token. You can specifywhich repositories the token can access and which permissions are granted to thetoken.Invalid tokens will return `404 NOT FOUND`. @@ -70,11 +72,11 @@ public async Task PostAsync(ScopedPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ScopedPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Applications.Item.Token.Scoped.ScopedPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ScopedPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Applications.Item.Token.Scoped.ScopedPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -87,11 +89,11 @@ public RequestInformation ToPostRequestInformation(ScopedPostRequestBody body, A /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ScopedRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Applications.Item.Token.Scoped.ScopedRequestBuilder WithUrl(string rawUrl) { - return new ScopedRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Applications.Item.Token.Scoped.ScopedRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Applications/Item/Token/TokenDeleteRequestBody.cs b/src/GitHub/Applications/Item/Token/TokenDeleteRequestBody.cs index e5716bbf..dc969b6e 100644 --- a/src/GitHub/Applications/Item/Token/TokenDeleteRequestBody.cs +++ b/src/GitHub/Applications/Item/Token/TokenDeleteRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Applications.Item.Token { +namespace GitHub.Applications.Item.Token +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TokenDeleteRequestBody : IAdditionalDataHolder, IParsable + public partial class TokenDeleteRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The OAuth access token used to authenticate to the GitHub API. @@ -20,7 +22,7 @@ public class TokenDeleteRequestBody : IAdditionalDataHolder, IParsable /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TokenDeleteRequestBody() { @@ -29,12 +31,12 @@ public TokenDeleteRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TokenDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Applications.Item.Token.TokenDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TokenDeleteRequestBody(); + return new global::GitHub.Applications.Item.Token.TokenDeleteRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"access_token", n => { AccessToken = n.GetStringValue(); } }, + { "access_token", n => { AccessToken = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Applications/Item/Token/TokenPatchRequestBody.cs b/src/GitHub/Applications/Item/Token/TokenPatchRequestBody.cs index 2125e586..48dde100 100644 --- a/src/GitHub/Applications/Item/Token/TokenPatchRequestBody.cs +++ b/src/GitHub/Applications/Item/Token/TokenPatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Applications.Item.Token { +namespace GitHub.Applications.Item.Token +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TokenPatchRequestBody : IAdditionalDataHolder, IParsable + public partial class TokenPatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The access_token of the OAuth or GitHub application. @@ -20,7 +22,7 @@ public class TokenPatchRequestBody : IAdditionalDataHolder, IParsable /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TokenPatchRequestBody() { @@ -29,12 +31,12 @@ public TokenPatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TokenPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Applications.Item.Token.TokenPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TokenPatchRequestBody(); + return new global::GitHub.Applications.Item.Token.TokenPatchRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"access_token", n => { AccessToken = n.GetStringValue(); } }, + { "access_token", n => { AccessToken = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Applications/Item/Token/TokenPostRequestBody.cs b/src/GitHub/Applications/Item/Token/TokenPostRequestBody.cs index 1935c755..412a277b 100644 --- a/src/GitHub/Applications/Item/Token/TokenPostRequestBody.cs +++ b/src/GitHub/Applications/Item/Token/TokenPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Applications.Item.Token { +namespace GitHub.Applications.Item.Token +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TokenPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TokenPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The access_token of the OAuth or GitHub application. @@ -20,7 +22,7 @@ public class TokenPostRequestBody : IAdditionalDataHolder, IParsable /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TokenPostRequestBody() { @@ -29,12 +31,12 @@ public TokenPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TokenPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Applications.Item.Token.TokenPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TokenPostRequestBody(); + return new global::GitHub.Applications.Item.Token.TokenPostRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"access_token", n => { AccessToken = n.GetStringValue(); } }, + { "access_token", n => { AccessToken = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Applications/Item/Token/TokenRequestBuilder.cs b/src/GitHub/Applications/Item/Token/TokenRequestBuilder.cs index ed6c258b..484fd3a1 100644 --- a/src/GitHub/Applications/Item/Token/TokenRequestBuilder.cs +++ b/src/GitHub/Applications/Item/Token/TokenRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Applications.Item.Token.Scoped; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Applications.Item.Token { +namespace GitHub.Applications.Item.Token +{ /// /// Builds and executes requests for operations under \applications\{client_id}\token /// - public class TokenRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TokenRequestBuilder : BaseRequestBuilder { /// The scoped property - public ScopedRequestBuilder Scoped + public global::GitHub.Applications.Item.Token.Scoped.ScopedRequestBuilder Scoped { - get => new ScopedRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Applications.Item.Token.Scoped.ScopedRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public TokenRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,21 +45,21 @@ public TokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(TokenDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(global::GitHub.Applications.Item.Token.TokenDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(TokenDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(global::GitHub.Applications.Item.Token.TokenDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -65,55 +67,55 @@ public async Task DeleteAsync(TokenDeleteRequestBody body, Action /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(TokenPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Applications.Item.Token.TokenPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(TokenPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Applications.Item.Token.TokenPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Authorization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Authorization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// OAuth applications and GitHub applications with OAuth authorizations can use this API method for checking OAuth token validity without exceeding the normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. Invalid tokens will return `404 NOT FOUND`. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(TokenPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Applications.Item.Token.TokenPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(TokenPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Applications.Item.Token.TokenPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Authorization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Authorization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// OAuth or GitHub application owners can revoke a single token for an OAuth application or a GitHub application with an OAuth authorization. @@ -123,11 +125,11 @@ public async Task PostAsync(TokenPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(TokenDeleteRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Applications.Item.Token.TokenDeleteRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(TokenDeleteRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Applications.Item.Token.TokenDeleteRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -145,11 +147,11 @@ public RequestInformation ToDeleteRequestInformation(TokenDeleteRequestBody body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(TokenPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Applications.Item.Token.TokenPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TokenPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Applications.Item.Token.TokenPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -167,11 +169,11 @@ public RequestInformation ToPatchRequestInformation(TokenPatchRequestBody body, /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(TokenPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Applications.Item.Token.TokenPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TokenPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Applications.Item.Token.TokenPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -184,11 +186,11 @@ public RequestInformation ToPostRequestInformation(TokenPostRequestBody body, Ac /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public TokenRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Applications.Item.Token.TokenRequestBuilder WithUrl(string rawUrl) { - return new TokenRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Applications.Item.Token.TokenRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Applications/Item/WithClient_ItemRequestBuilder.cs b/src/GitHub/Applications/Item/WithClient_ItemRequestBuilder.cs index cdba0b3d..ff90e2f5 100644 --- a/src/GitHub/Applications/Item/WithClient_ItemRequestBuilder.cs +++ b/src/GitHub/Applications/Item/WithClient_ItemRequestBuilder.cs @@ -1,30 +1,32 @@ // using GitHub.Applications.Item.Grant; using GitHub.Applications.Item.Token; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Applications.Item { +namespace GitHub.Applications.Item +{ /// /// Builds and executes requests for operations under \applications\{client_id} /// - public class WithClient_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithClient_ItemRequestBuilder : BaseRequestBuilder { /// The grant property - public GrantRequestBuilder Grant + public global::GitHub.Applications.Item.Grant.GrantRequestBuilder Grant { - get => new GrantRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Applications.Item.Grant.GrantRequestBuilder(PathParameters, RequestAdapter); } /// The token property - public TokenRequestBuilder Token + public global::GitHub.Applications.Item.Token.TokenRequestBuilder Token { - get => new TokenRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Applications.Item.Token.TokenRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -32,7 +34,7 @@ public WithClient_ItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Apps/AppsRequestBuilder.cs b/src/GitHub/Apps/AppsRequestBuilder.cs index bf5c295c..2d203308 100644 --- a/src/GitHub/Apps/AppsRequestBuilder.cs +++ b/src/GitHub/Apps/AppsRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Apps.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Apps { +namespace GitHub.Apps +{ /// /// Builds and executes requests for operations under \apps /// - public class AppsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AppsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.apps.item collection /// Unique identifier of the item - /// A - public WithApp_slugItemRequestBuilder this[string position] + /// A + public global::GitHub.Apps.Item.WithApp_slugItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("app_slug", position); - return new WithApp_slugItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Apps.Item.WithApp_slugItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public AppsRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Apps/Item/WithApp_slugItemRequestBuilder.cs b/src/GitHub/Apps/Item/WithApp_slugItemRequestBuilder.cs index 2f80ad65..e073f46a 100644 --- a/src/GitHub/Apps/Item/WithApp_slugItemRequestBuilder.cs +++ b/src/GitHub/Apps/Item/WithApp_slugItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Apps.Item { +namespace GitHub.Apps.Item +{ /// /// Builds and executes requests for operations under \apps\{app_slug} /// - public class WithApp_slugItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithApp_slugItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithApp_slugItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public WithApp_slugItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// > [!NOTE]> The `:app_slug` is just the URL-friendly name of your GitHub App. You can find this on the settings page for your GitHub App (e.g., `https://github.com/settings/apps/:app_slug`). /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Integration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Integration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// > [!NOTE]> The `:app_slug` is just the URL-friendly name of your GitHub App. You can find this on the settings page for your GitHub App (e.g., `https://github.com/settings/apps/:app_slug`). @@ -78,11 +80,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithApp_slugItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Apps.Item.WithApp_slugItemRequestBuilder WithUrl(string rawUrl) { - return new WithApp_slugItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Apps.Item.WithApp_slugItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Assignments/AssignmentsRequestBuilder.cs b/src/GitHub/Assignments/AssignmentsRequestBuilder.cs index 5c975614..8b482023 100644 --- a/src/GitHub/Assignments/AssignmentsRequestBuilder.cs +++ b/src/GitHub/Assignments/AssignmentsRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Assignments.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Assignments { +namespace GitHub.Assignments +{ /// /// Builds and executes requests for operations under \assignments /// - public class AssignmentsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AssignmentsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.assignments.item collection /// The unique identifier of the classroom assignment. - /// A - public WithAssignment_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Assignments.Item.WithAssignment_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("assignment_id", position); - return new WithAssignment_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Assignments.Item.WithAssignment_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public AssignmentsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Assignments/Item/Accepted_assignments/Accepted_assignmentsRequestBuilder.cs b/src/GitHub/Assignments/Item/Accepted_assignments/Accepted_assignmentsRequestBuilder.cs index 07c28b5f..69a468aa 100644 --- a/src/GitHub/Assignments/Item/Accepted_assignments/Accepted_assignmentsRequestBuilder.cs +++ b/src/GitHub/Assignments/Item/Accepted_assignments/Accepted_assignmentsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Assignments.Item.Accepted_assignments { +namespace GitHub.Assignments.Item.Accepted_assignments +{ /// /// Builds and executes requests for operations under \assignments\{assignment_id}\accepted_assignments /// - public class Accepted_assignmentsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Accepted_assignmentsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Accepted_assignmentsRequestBuilder(Dictionary pathParamet { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public Accepted_assignmentsRequestBuilder(string rawUrl, IRequestAdapter request /// Lists any assignment repositories that have been created by students accepting a GitHub Classroom assignment. Accepted assignments will only be returned if the current user is an administrator of the GitHub Classroom for the assignment. /// API method documentation /// - /// A List<ClassroomAcceptedAssignment> + /// A List<global::GitHub.Models.ClassroomAcceptedAssignment> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClassroomAcceptedAssignment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.ClassroomAcceptedAssignment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists any assignment repositories that have been created by students accepting a GitHub Classroom assignment. Accepted assignments will only be returned if the current user is an administrator of the GitHub Classroom for the assignment. @@ -57,11 +59,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -72,16 +74,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Accepted_assignmentsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Assignments.Item.Accepted_assignments.Accepted_assignmentsRequestBuilder WithUrl(string rawUrl) { - return new Accepted_assignmentsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Assignments.Item.Accepted_assignments.Accepted_assignmentsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists any assignment repositories that have been created by students accepting a GitHub Classroom assignment. Accepted assignments will only be returned if the current user is an administrator of the GitHub Classroom for the assignment. /// - public class Accepted_assignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Accepted_assignmentsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Assignments/Item/Grades/GradesRequestBuilder.cs b/src/GitHub/Assignments/Item/Grades/GradesRequestBuilder.cs index 634379b9..59ec23b7 100644 --- a/src/GitHub/Assignments/Item/Grades/GradesRequestBuilder.cs +++ b/src/GitHub/Assignments/Item/Grades/GradesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Assignments.Item.Grades { +namespace GitHub.Assignments.Item.Grades +{ /// /// Builds and executes requests for operations under \assignments\{assignment_id}\grades /// - public class GradesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GradesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public GradesRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,26 +36,26 @@ public GradesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Gets grades for a GitHub Classroom assignment. Grades will only be returned if the current user is an administrator of the GitHub Classroom for the assignment. /// API method documentation /// - /// A List<ClassroomAssignmentGrade> + /// A List<global::GitHub.Models.ClassroomAssignmentGrade> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClassroomAssignmentGrade.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.ClassroomAssignmentGrade.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Gets grades for a GitHub Classroom assignment. Grades will only be returned if the current user is an administrator of the GitHub Classroom for the assignment. @@ -77,11 +79,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public GradesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Assignments.Item.Grades.GradesRequestBuilder WithUrl(string rawUrl) { - return new GradesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Assignments.Item.Grades.GradesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Assignments/Item/WithAssignment_ItemRequestBuilder.cs b/src/GitHub/Assignments/Item/WithAssignment_ItemRequestBuilder.cs index 6bc2d706..3bf739c4 100644 --- a/src/GitHub/Assignments/Item/WithAssignment_ItemRequestBuilder.cs +++ b/src/GitHub/Assignments/Item/WithAssignment_ItemRequestBuilder.cs @@ -2,32 +2,34 @@ using GitHub.Assignments.Item.Accepted_assignments; using GitHub.Assignments.Item.Grades; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Assignments.Item { +namespace GitHub.Assignments.Item +{ /// /// Builds and executes requests for operations under \assignments\{assignment_id} /// - public class WithAssignment_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithAssignment_ItemRequestBuilder : BaseRequestBuilder { /// The accepted_assignments property - public Accepted_assignmentsRequestBuilder Accepted_assignments + public global::GitHub.Assignments.Item.Accepted_assignments.Accepted_assignmentsRequestBuilder Accepted_assignments { - get => new Accepted_assignmentsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Assignments.Item.Accepted_assignments.Accepted_assignmentsRequestBuilder(PathParameters, RequestAdapter); } /// The grades property - public GradesRequestBuilder Grades + public global::GitHub.Assignments.Item.Grades.GradesRequestBuilder Grades { - get => new GradesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Assignments.Item.Grades.GradesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public WithAssignment_ItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,25 +48,25 @@ public WithAssignment_ItemRequestBuilder(string rawUrl, IRequestAdapter requestA /// Gets a GitHub Classroom assignment. Assignment will only be returned if the current user is an administrator of the GitHub Classroom for the assignment. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ClassroomAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ClassroomAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets a GitHub Classroom assignment. Assignment will only be returned if the current user is an administrator of the GitHub Classroom for the assignment. @@ -88,11 +90,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithAssignment_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Assignments.Item.WithAssignment_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithAssignment_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Assignments.Item.WithAssignment_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Classrooms/ClassroomsRequestBuilder.cs b/src/GitHub/Classrooms/ClassroomsRequestBuilder.cs index 17d9e512..9c753342 100644 --- a/src/GitHub/Classrooms/ClassroomsRequestBuilder.cs +++ b/src/GitHub/Classrooms/ClassroomsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Classrooms.Item; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Classrooms { +namespace GitHub.Classrooms +{ /// /// Builds and executes requests for operations under \classrooms /// - public class ClassroomsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ClassroomsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.classrooms.item collection /// The unique identifier of the classroom. - /// A - public WithClassroom_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Classrooms.Item.WithClassroom_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("classroom_id", position); - return new WithClassroom_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Classrooms.Item.WithClassroom_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public ClassroomsRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public ClassroomsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Lists GitHub Classroom classrooms for the current user. Classrooms will only be returned if the current user is an administrator of one or more GitHub Classrooms. /// API method documentation /// - /// A List<SimpleClassroom> + /// A List<global::GitHub.Models.SimpleClassroom> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, SimpleClassroom.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.SimpleClassroom.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists GitHub Classroom classrooms for the current user. Classrooms will only be returned if the current user is an administrator of one or more GitHub Classrooms. @@ -70,11 +72,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -85,16 +87,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ClassroomsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Classrooms.ClassroomsRequestBuilder WithUrl(string rawUrl) { - return new ClassroomsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Classrooms.ClassroomsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists GitHub Classroom classrooms for the current user. Classrooms will only be returned if the current user is an administrator of one or more GitHub Classrooms. /// - public class ClassroomsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ClassroomsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Classrooms/Item/Assignments/AssignmentsRequestBuilder.cs b/src/GitHub/Classrooms/Item/Assignments/AssignmentsRequestBuilder.cs index a4ef9e4e..2a6f7bd7 100644 --- a/src/GitHub/Classrooms/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/GitHub/Classrooms/Item/Assignments/AssignmentsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Classrooms.Item.Assignments { +namespace GitHub.Classrooms.Item.Assignments +{ /// /// Builds and executes requests for operations under \classrooms\{classroom_id}\assignments /// - public class AssignmentsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AssignmentsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AssignmentsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Lists GitHub Classroom assignments for a classroom. Assignments will only be returned if the current user is an administrator of the GitHub Classroom. /// API method documentation /// - /// A List<SimpleClassroomAssignment> + /// A List<global::GitHub.Models.SimpleClassroomAssignment> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, SimpleClassroomAssignment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.SimpleClassroomAssignment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists GitHub Classroom assignments for a classroom. Assignments will only be returned if the current user is an administrator of the GitHub Classroom. @@ -57,11 +59,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -72,16 +74,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AssignmentsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Classrooms.Item.Assignments.AssignmentsRequestBuilder WithUrl(string rawUrl) { - return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Classrooms.Item.Assignments.AssignmentsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists GitHub Classroom assignments for a classroom. Assignments will only be returned if the current user is an administrator of the GitHub Classroom. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Classrooms/Item/WithClassroom_ItemRequestBuilder.cs b/src/GitHub/Classrooms/Item/WithClassroom_ItemRequestBuilder.cs index 04840242..4a96300c 100644 --- a/src/GitHub/Classrooms/Item/WithClassroom_ItemRequestBuilder.cs +++ b/src/GitHub/Classrooms/Item/WithClassroom_ItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Classrooms.Item.Assignments; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Classrooms.Item { +namespace GitHub.Classrooms.Item +{ /// /// Builds and executes requests for operations under \classrooms\{classroom_id} /// - public class WithClassroom_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithClassroom_ItemRequestBuilder : BaseRequestBuilder { /// The assignments property - public AssignmentsRequestBuilder Assignments + public global::GitHub.Classrooms.Item.Assignments.AssignmentsRequestBuilder Assignments { - get => new AssignmentsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Classrooms.Item.Assignments.AssignmentsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithClassroom_ItemRequestBuilder(Dictionary pathParameter { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -40,25 +42,25 @@ public WithClassroom_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Gets a GitHub Classroom classroom for the current user. Classroom will only be returned if the current user is an administrator of the GitHub Classroom. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Classroom.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Classroom.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets a GitHub Classroom classroom for the current user. Classroom will only be returned if the current user is an administrator of the GitHub Classroom. @@ -82,11 +84,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithClassroom_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Classrooms.Item.WithClassroom_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithClassroom_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Classrooms.Item.WithClassroom_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Codes_of_conduct/Codes_of_conductRequestBuilder.cs b/src/GitHub/Codes_of_conduct/Codes_of_conductRequestBuilder.cs index 7a6b42a0..243e9791 100644 --- a/src/GitHub/Codes_of_conduct/Codes_of_conductRequestBuilder.cs +++ b/src/GitHub/Codes_of_conduct/Codes_of_conductRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Codes_of_conduct.Item; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Codes_of_conduct { +namespace GitHub.Codes_of_conduct +{ /// /// Builds and executes requests for operations under \codes_of_conduct /// - public class Codes_of_conductRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Codes_of_conductRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.codes_of_conduct.item collection /// Unique identifier of the item - /// A - public WithKeyItemRequestBuilder this[string position] + /// A + public global::GitHub.Codes_of_conduct.Item.WithKeyItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("key", position); - return new WithKeyItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Codes_of_conduct.Item.WithKeyItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public Codes_of_conductRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public Codes_of_conductRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Returns array of all GitHub's codes of conduct. /// API method documentation /// - /// A List<CodeOfConduct> + /// A List<global::GitHub.Models.CodeOfConduct> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CodeOfConduct.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CodeOfConduct.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Returns array of all GitHub's codes of conduct. @@ -85,11 +87,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Codes_of_conductRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Codes_of_conduct.Codes_of_conductRequestBuilder WithUrl(string rawUrl) { - return new Codes_of_conductRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Codes_of_conduct.Codes_of_conductRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Codes_of_conduct/Item/WithKeyItemRequestBuilder.cs b/src/GitHub/Codes_of_conduct/Item/WithKeyItemRequestBuilder.cs index 2334258c..e184ea8f 100644 --- a/src/GitHub/Codes_of_conduct/Item/WithKeyItemRequestBuilder.cs +++ b/src/GitHub/Codes_of_conduct/Item/WithKeyItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Codes_of_conduct.Item { +namespace GitHub.Codes_of_conduct.Item +{ /// /// Builds and executes requests for operations under \codes_of_conduct\{key} /// - public class WithKeyItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithKeyItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithKeyItemRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,25 +36,25 @@ public WithKeyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Returns information about the specified GitHub code of conduct. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CodeOfConduct.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeOfConduct.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Returns information about the specified GitHub code of conduct. @@ -76,11 +78,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithKeyItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Codes_of_conduct.Item.WithKeyItemRequestBuilder WithUrl(string rawUrl) { - return new WithKeyItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Codes_of_conduct.Item.WithKeyItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Emojis/EmojisGetResponse.cs b/src/GitHub/Emojis/EmojisGetResponse.cs index c492b3ad..45ee0e37 100644 --- a/src/GitHub/Emojis/EmojisGetResponse.cs +++ b/src/GitHub/Emojis/EmojisGetResponse.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Emojis { +namespace GitHub.Emojis +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class EmojisGetResponse : IAdditionalDataHolder, IParsable + public partial class EmojisGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public EmojisGetResponse() { @@ -21,12 +23,12 @@ public EmojisGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static EmojisGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Emojis.EmojisGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EmojisGetResponse(); + return new global::GitHub.Emojis.EmojisGetResponse(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Emojis/EmojisRequestBuilder.cs b/src/GitHub/Emojis/EmojisRequestBuilder.cs index 6b3161f5..b871db36 100644 --- a/src/GitHub/Emojis/EmojisRequestBuilder.cs +++ b/src/GitHub/Emojis/EmojisRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Emojis { +namespace GitHub.Emojis +{ /// /// Builds and executes requests for operations under \emojis /// - public class EmojisRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EmojisRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public EmojisRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,20 +35,20 @@ public EmojisRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Lists all the emojis available to use on GitHub Enterprise Cloud. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, EmojisGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Emojis.EmojisGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists all the emojis available to use on GitHub Enterprise Cloud. @@ -70,11 +72,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public EmojisRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Emojis.EmojisRequestBuilder WithUrl(string rawUrl) { - return new EmojisRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Emojis.EmojisRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/EnterpriseInstallation/EnterpriseInstallationRequestBuilder.cs b/src/GitHub/EnterpriseInstallation/EnterpriseInstallationRequestBuilder.cs index b40ea9f3..8260dac7 100644 --- a/src/GitHub/EnterpriseInstallation/EnterpriseInstallationRequestBuilder.cs +++ b/src/GitHub/EnterpriseInstallation/EnterpriseInstallationRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.EnterpriseInstallation.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.EnterpriseInstallation { +namespace GitHub.EnterpriseInstallation +{ /// /// Builds and executes requests for operations under \enterprise-installation /// - public class EnterpriseInstallationRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EnterpriseInstallationRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.enterpriseInstallation.item collection /// The slug version of the enterprise name or the login of an organization. - /// A - public WithEnterprise_or_orgItemRequestBuilder this[string position] + /// A + public global::GitHub.EnterpriseInstallation.Item.WithEnterprise_or_orgItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("enterprise_or_org", position); - return new WithEnterprise_or_orgItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.EnterpriseInstallation.Item.WithEnterprise_or_orgItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public EnterpriseInstallationRequestBuilder(Dictionary pathParam { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/EnterpriseInstallation/Item/ServerStatistics/ServerStatisticsRequestBuilder.cs b/src/GitHub/EnterpriseInstallation/Item/ServerStatistics/ServerStatisticsRequestBuilder.cs index 87f87b99..d2306819 100644 --- a/src/GitHub/EnterpriseInstallation/Item/ServerStatistics/ServerStatisticsRequestBuilder.cs +++ b/src/GitHub/EnterpriseInstallation/Item/ServerStatistics/ServerStatisticsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.EnterpriseInstallation.Item.ServerStatistics { +namespace GitHub.EnterpriseInstallation.Item.ServerStatistics +{ /// /// Builds and executes requests for operations under \enterprise-installation\{enterprise_or_org}\server-statistics /// - public class ServerStatisticsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ServerStatisticsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ServerStatisticsRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public ServerStatisticsRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Returns aggregate usage metrics for your GitHub Enterprise Server 3.5+ instance for a specified time period up to 365 days.To use this endpoint, your GitHub Enterprise Server instance must be connected to GitHub Enterprise Cloud using GitHub Connect. You must enable Server Statistics, and for the API request provide your enterprise account name or organization name connected to the GitHub Enterprise Server. For more information, see "[Enabling Server Statistics for your enterprise](/admin/configuration/configuring-github-connect/enabling-server-statistics-for-your-enterprise)" in the GitHub Enterprise Server documentation.OAuth app tokens and personal access tokens (classic) need: - the `read:enterprise` scope if you connected your GitHub Enterprise Server to an enterprise account and enabled Server Statistics - the `read:org` scope if you connected your GitHub Enterprise Server to an organization account and enabled Server Statistics /// API method documentation /// - /// A List<GitHub.Models.ServerStatistics> + /// A List<global::GitHub.Models.ServerStatistics> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GitHub.Models.ServerStatistics.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.ServerStatistics.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Returns aggregate usage metrics for your GitHub Enterprise Server 3.5+ instance for a specified time period up to 365 days.To use this endpoint, your GitHub Enterprise Server instance must be connected to GitHub Enterprise Cloud using GitHub Connect. You must enable Server Statistics, and for the API request provide your enterprise account name or organization name connected to the GitHub Enterprise Server. For more information, see "[Enabling Server Statistics for your enterprise](/admin/configuration/configuring-github-connect/enabling-server-statistics-for-your-enterprise)" in the GitHub Enterprise Server documentation.OAuth app tokens and personal access tokens (classic) need: - the `read:enterprise` scope if you connected your GitHub Enterprise Server to an enterprise account and enabled Server Statistics - the `read:org` scope if you connected your GitHub Enterprise Server to an organization account and enabled Server Statistics @@ -57,11 +59,11 @@ public ServerStatisticsRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -72,16 +74,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ServerStatisticsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.EnterpriseInstallation.Item.ServerStatistics.ServerStatisticsRequestBuilder WithUrl(string rawUrl) { - return new ServerStatisticsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.EnterpriseInstallation.Item.ServerStatistics.ServerStatisticsRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns aggregate usage metrics for your GitHub Enterprise Server 3.5+ instance for a specified time period up to 365 days.To use this endpoint, your GitHub Enterprise Server instance must be connected to GitHub Enterprise Cloud using GitHub Connect. You must enable Server Statistics, and for the API request provide your enterprise account name or organization name connected to the GitHub Enterprise Server. For more information, see "[Enabling Server Statistics for your enterprise](/admin/configuration/configuring-github-connect/enabling-server-statistics-for-your-enterprise)" in the GitHub Enterprise Server documentation.OAuth app tokens and personal access tokens (classic) need: - the `read:enterprise` scope if you connected your GitHub Enterprise Server to an enterprise account and enabled Server Statistics - the `read:org` scope if you connected your GitHub Enterprise Server to an organization account and enabled Server Statistics /// - public class ServerStatisticsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ServerStatisticsRequestBuilderGetQueryParameters { /// A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/EnterpriseInstallation/Item/WithEnterprise_or_orgItemRequestBuilder.cs b/src/GitHub/EnterpriseInstallation/Item/WithEnterprise_or_orgItemRequestBuilder.cs index 1d82be99..d62a1552 100644 --- a/src/GitHub/EnterpriseInstallation/Item/WithEnterprise_or_orgItemRequestBuilder.cs +++ b/src/GitHub/EnterpriseInstallation/Item/WithEnterprise_or_orgItemRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.EnterpriseInstallation.Item.ServerStatistics; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.EnterpriseInstallation.Item { +namespace GitHub.EnterpriseInstallation.Item +{ /// /// Builds and executes requests for operations under \enterprise-installation\{enterprise_or_org} /// - public class WithEnterprise_or_orgItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithEnterprise_or_orgItemRequestBuilder : BaseRequestBuilder { /// The serverStatistics property - public ServerStatisticsRequestBuilder ServerStatistics + public global::GitHub.EnterpriseInstallation.Item.ServerStatistics.ServerStatisticsRequestBuilder ServerStatistics { - get => new ServerStatisticsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.EnterpriseInstallation.Item.ServerStatistics.ServerStatisticsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public WithEnterprise_or_orgItemRequestBuilder(Dictionary pathPa { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Enterprises/EnterprisesRequestBuilder.cs b/src/GitHub/Enterprises/EnterprisesRequestBuilder.cs index 2d30afcd..4138294a 100644 --- a/src/GitHub/Enterprises/EnterprisesRequestBuilder.cs +++ b/src/GitHub/Enterprises/EnterprisesRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Enterprises.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Enterprises { +namespace GitHub.Enterprises +{ /// /// Builds and executes requests for operations under \enterprises /// - public class EnterprisesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EnterprisesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.enterprises.item collection /// The slug version of the enterprise name. You can also substitute this value with the enterprise id. - /// A - public WithEnterpriseItemRequestBuilder this[string position] + /// A + public global::GitHub.Enterprises.Item.WithEnterpriseItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("enterprise", position); - return new WithEnterpriseItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Enterprises.Item.WithEnterpriseItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public EnterprisesRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Enterprises/Item/Actions/ActionsRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/ActionsRequestBuilder.cs index 3b3c672b..e06d5ba9 100644 --- a/src/GitHub/Enterprises/Item/Actions/ActionsRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/ActionsRequestBuilder.cs @@ -4,45 +4,47 @@ using GitHub.Enterprises.Item.Actions.Permissions; using GitHub.Enterprises.Item.Actions.RunnerGroups; using GitHub.Enterprises.Item.Actions.Runners; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Enterprises.Item.Actions { +namespace GitHub.Enterprises.Item.Actions +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions /// - public class ActionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ActionsRequestBuilder : BaseRequestBuilder { /// The cache property - public CacheRequestBuilder Cache + public global::GitHub.Enterprises.Item.Actions.Cache.CacheRequestBuilder Cache { - get => new CacheRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Actions.Cache.CacheRequestBuilder(PathParameters, RequestAdapter); } /// The oidc property - public OidcRequestBuilder Oidc + public global::GitHub.Enterprises.Item.Actions.Oidc.OidcRequestBuilder Oidc { - get => new OidcRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Actions.Oidc.OidcRequestBuilder(PathParameters, RequestAdapter); } /// The permissions property - public PermissionsRequestBuilder Permissions + public global::GitHub.Enterprises.Item.Actions.Permissions.PermissionsRequestBuilder Permissions { - get => new PermissionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Actions.Permissions.PermissionsRequestBuilder(PathParameters, RequestAdapter); } /// The runnerGroups property - public RunnerGroupsRequestBuilder RunnerGroups + public global::GitHub.Enterprises.Item.Actions.RunnerGroups.RunnerGroupsRequestBuilder RunnerGroups { - get => new RunnerGroupsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Actions.RunnerGroups.RunnerGroupsRequestBuilder(PathParameters, RequestAdapter); } /// The runners property - public RunnersRequestBuilder Runners + public global::GitHub.Enterprises.Item.Actions.Runners.RunnersRequestBuilder Runners { - get => new RunnersRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Actions.Runners.RunnersRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -50,7 +52,7 @@ public ActionsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Enterprises/Item/Actions/Cache/CacheRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Cache/CacheRequestBuilder.cs index 4c441837..eafada3c 100644 --- a/src/GitHub/Enterprises/Item/Actions/Cache/CacheRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/Cache/CacheRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Enterprises.Item.Actions.Cache.Usage; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Enterprises.Item.Actions.Cache { +namespace GitHub.Enterprises.Item.Actions.Cache +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\cache /// - public class CacheRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CacheRequestBuilder : BaseRequestBuilder { /// The usage property - public UsageRequestBuilder Usage + public global::GitHub.Enterprises.Item.Actions.Cache.Usage.UsageRequestBuilder Usage { - get => new UsageRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Actions.Cache.Usage.UsageRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public CacheRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Enterprises/Item/Actions/Cache/Usage/UsageRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Cache/Usage/UsageRequestBuilder.cs index b99f3aba..eaa7bc71 100644 --- a/src/GitHub/Enterprises/Item/Actions/Cache/Usage/UsageRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/Cache/Usage/UsageRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Actions.Cache.Usage { +namespace GitHub.Enterprises.Item.Actions.Cache.Usage +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\cache\usage /// - public class UsageRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsageRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public UsageRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public UsageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Gets the total GitHub Actions cache usage for an enterprise.The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated.OAuth tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ActionsCacheUsageOrgEnterprise.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsCacheUsageOrgEnterprise.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets the total GitHub Actions cache usage for an enterprise.The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated.OAuth tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UsageRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Actions.Cache.Usage.UsageRequestBuilder WithUrl(string rawUrl) { - return new UsageRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.Cache.Usage.UsageRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Actions/Oidc/Customization/CustomizationRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Oidc/Customization/CustomizationRequestBuilder.cs index 4c1842c3..72274326 100644 --- a/src/GitHub/Enterprises/Item/Actions/Oidc/Customization/CustomizationRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/Oidc/Customization/CustomizationRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Enterprises.Item.Actions.Oidc.Customization.Issuer; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Enterprises.Item.Actions.Oidc.Customization { +namespace GitHub.Enterprises.Item.Actions.Oidc.Customization +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\oidc\customization /// - public class CustomizationRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CustomizationRequestBuilder : BaseRequestBuilder { /// The issuer property - public IssuerRequestBuilder Issuer + public global::GitHub.Enterprises.Item.Actions.Oidc.Customization.Issuer.IssuerRequestBuilder Issuer { - get => new IssuerRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Actions.Oidc.Customization.Issuer.IssuerRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public CustomizationRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Enterprises/Item/Actions/Oidc/Customization/Issuer/IssuerRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Oidc/Customization/Issuer/IssuerRequestBuilder.cs index 55dd67ac..d9975783 100644 --- a/src/GitHub/Enterprises/Item/Actions/Oidc/Customization/Issuer/IssuerRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/Oidc/Customization/Issuer/IssuerRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Actions.Oidc.Customization.Issuer { +namespace GitHub.Enterprises.Item.Actions.Oidc.Customization.Issuer +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\oidc\customization\issuer /// - public class IssuerRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class IssuerRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public IssuerRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -39,11 +41,11 @@ public IssuerRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ActionsOidcCustomIssuerPolicyForEnterprise body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.ActionsOidcCustomIssuerPolicyForEnterprise body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(ActionsOidcCustomIssuerPolicyForEnterprise body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.ActionsOidcCustomIssuerPolicyForEnterprise body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -58,11 +60,11 @@ public async Task PutAsync(ActionsOidcCustomIssuerPolicyForEnterprise body, Acti /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ActionsOidcCustomIssuerPolicyForEnterprise body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.ActionsOidcCustomIssuerPolicyForEnterprise body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(ActionsOidcCustomIssuerPolicyForEnterprise body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.ActionsOidcCustomIssuerPolicyForEnterprise body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -74,11 +76,11 @@ public RequestInformation ToPutRequestInformation(ActionsOidcCustomIssuerPolicyF /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public IssuerRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Actions.Oidc.Customization.Issuer.IssuerRequestBuilder WithUrl(string rawUrl) { - return new IssuerRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.Oidc.Customization.Issuer.IssuerRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Actions/Oidc/OidcRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Oidc/OidcRequestBuilder.cs index badfeed9..88b67987 100644 --- a/src/GitHub/Enterprises/Item/Actions/Oidc/OidcRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/Oidc/OidcRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Enterprises.Item.Actions.Oidc.Customization; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Enterprises.Item.Actions.Oidc { +namespace GitHub.Enterprises.Item.Actions.Oidc +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\oidc /// - public class OidcRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OidcRequestBuilder : BaseRequestBuilder { /// The customization property - public CustomizationRequestBuilder Customization + public global::GitHub.Enterprises.Item.Actions.Oidc.Customization.CustomizationRequestBuilder Customization { - get => new CustomizationRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Actions.Oidc.Customization.CustomizationRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public OidcRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/Item/WithOrg_ItemRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/Item/WithOrg_ItemRequestBuilder.cs index 071348d8..f0810ec8 100644 --- a/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/Item/WithOrg_ItemRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/Item/WithOrg_ItemRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Actions.Permissions.Organizations.Item { +namespace GitHub.Enterprises.Item.Actions.Permissions.Organizations.Item +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\permissions\organizations\{org_id} /// - public class WithOrg_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithOrg_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public WithOrg_ItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -104,11 +106,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithOrg_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.Item.WithOrg_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithOrg_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.Item.WithOrg_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsGetResponse.cs b/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsGetResponse.cs index 9d538c9a..eaabc862 100644 --- a/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsGetResponse.cs +++ b/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Actions.Permissions.Organizations { +namespace GitHub.Enterprises.Item.Actions.Permissions.Organizations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class OrganizationsGetResponse : IAdditionalDataHolder, IParsable + public partial class OrganizationsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class OrganizationsGetResponse : IAdditionalDataHolder, IParsable /// The organizations property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Organizations { get; set; } + public List? Organizations { get; set; } #nullable restore #else - public List Organizations { get; set; } + public List Organizations { get; set; } #endif /// The total_count property public double? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationsGetResponse() { @@ -32,12 +34,12 @@ public OrganizationsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationsGetResponse(); + return new global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"organizations", n => { Organizations = n.GetCollectionOfObjectValues(OrganizationSimple.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetDoubleValue(); } }, + { "organizations", n => { Organizations = n.GetCollectionOfObjectValues(global::GitHub.Models.OrganizationSimple.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetDoubleValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("organizations", Organizations); + writer.WriteCollectionOfObjectValues("organizations", Organizations); writer.WriteDoubleValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsPutRequestBody.cs b/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsPutRequestBody.cs index a229f949..b306a362 100644 --- a/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsPutRequestBody.cs +++ b/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsPutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Actions.Permissions.Organizations { +namespace GitHub.Enterprises.Item.Actions.Permissions.Organizations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class OrganizationsPutRequestBody : IAdditionalDataHolder, IParsable + public partial class OrganizationsPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class OrganizationsPutRequestBody : IAdditionalDataHolder, IParsable public List SelectedOrganizationIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationsPutRequestBody() { @@ -29,12 +31,12 @@ public OrganizationsPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationsPutRequestBody(); + return new global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsPutRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"selected_organization_ids", n => { SelectedOrganizationIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "selected_organization_ids", n => { SelectedOrganizationIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsRequestBuilder.cs index fdd856e5..cd58bfdc 100644 --- a/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsRequestBuilder.cs @@ -1,33 +1,35 @@ // using GitHub.Enterprises.Item.Actions.Permissions.Organizations.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Actions.Permissions.Organizations { +namespace GitHub.Enterprises.Item.Actions.Permissions.Organizations +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\permissions\organizations /// - public class OrganizationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.enterprises.item.actions.permissions.organizations.item collection /// The unique identifier of the organization. - /// A - public WithOrg_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.Item.WithOrg_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("org_id", position); - return new WithOrg_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.Item.WithOrg_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public OrganizationsRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,20 +48,20 @@ public OrganizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Lists the organizations that are selected to have GitHub Actions enabled in an enterprise. To use this endpoint, the enterprise permission policy for `enabled_organizations` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)."OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, OrganizationsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Replaces the list of selected organizations that are enabled for GitHub Actions in an enterprise. To use this endpoint, the enterprise permission policy for `enabled_organizations` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)."OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint. @@ -70,11 +72,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(OrganizationsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(OrganizationsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -88,11 +90,11 @@ public async Task PutAsync(OrganizationsPutRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -108,11 +110,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(OrganizationsPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(OrganizationsPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -124,16 +126,17 @@ public RequestInformation ToPutRequestInformation(OrganizationsPutRequestBody bo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public OrganizationsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsRequestBuilder WithUrl(string rawUrl) { - return new OrganizationsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the organizations that are selected to have GitHub Actions enabled in an enterprise. To use this endpoint, the enterprise permission policy for `enabled_organizations` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)."OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint. /// - public class OrganizationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Enterprises/Item/Actions/Permissions/PermissionsPutRequestBody.cs b/src/GitHub/Enterprises/Item/Actions/Permissions/PermissionsPutRequestBody.cs index efad6311..5e6ae1f9 100644 --- a/src/GitHub/Enterprises/Item/Actions/Permissions/PermissionsPutRequestBody.cs +++ b/src/GitHub/Enterprises/Item/Actions/Permissions/PermissionsPutRequestBody.cs @@ -1,23 +1,25 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Actions.Permissions { +namespace GitHub.Enterprises.Item.Actions.Permissions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PermissionsPutRequestBody : IAdditionalDataHolder, IParsable + public partial class PermissionsPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The permissions policy that controls the actions and reusable workflows that are allowed to run. - public GitHub.Models.AllowedActions? AllowedActions { get; set; } + public global::GitHub.Models.AllowedActions? AllowedActions { get; set; } /// The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions. - public GitHub.Models.EnabledOrganizations? EnabledOrganizations { get; set; } + public global::GitHub.Models.EnabledOrganizations? EnabledOrganizations { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PermissionsPutRequestBody() { @@ -26,12 +28,12 @@ public PermissionsPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PermissionsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Actions.Permissions.PermissionsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PermissionsPutRequestBody(); + return new global::GitHub.Enterprises.Item.Actions.Permissions.PermissionsPutRequestBody(); } /// /// The deserialization information for the current model @@ -41,8 +43,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allowed_actions", n => { AllowedActions = n.GetEnumValue(); } }, - {"enabled_organizations", n => { EnabledOrganizations = n.GetEnumValue(); } }, + { "allowed_actions", n => { AllowedActions = n.GetEnumValue(); } }, + { "enabled_organizations", n => { EnabledOrganizations = n.GetEnumValue(); } }, }; } /// @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("allowed_actions", AllowedActions); - writer.WriteEnumValue("enabled_organizations", EnabledOrganizations); + writer.WriteEnumValue("allowed_actions", AllowedActions); + writer.WriteEnumValue("enabled_organizations", EnabledOrganizations); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Enterprises/Item/Actions/Permissions/PermissionsRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Permissions/PermissionsRequestBuilder.cs index 710dd1b0..211287fe 100644 --- a/src/GitHub/Enterprises/Item/Actions/Permissions/PermissionsRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/Permissions/PermissionsRequestBuilder.cs @@ -3,37 +3,39 @@ using GitHub.Enterprises.Item.Actions.Permissions.SelectedActions; using GitHub.Enterprises.Item.Actions.Permissions.Workflow; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Actions.Permissions { +namespace GitHub.Enterprises.Item.Actions.Permissions +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\permissions /// - public class PermissionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PermissionsRequestBuilder : BaseRequestBuilder { /// The organizations property - public OrganizationsRequestBuilder Organizations + public global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsRequestBuilder Organizations { - get => new OrganizationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsRequestBuilder(PathParameters, RequestAdapter); } /// The selectedActions property - public SelectedActionsRequestBuilder SelectedActions + public global::GitHub.Enterprises.Item.Actions.Permissions.SelectedActions.SelectedActionsRequestBuilder SelectedActions { - get => new SelectedActionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Actions.Permissions.SelectedActions.SelectedActionsRequestBuilder(PathParameters, RequestAdapter); } /// The workflow property - public WorkflowRequestBuilder Workflow + public global::GitHub.Enterprises.Item.Actions.Permissions.Workflow.WorkflowRequestBuilder Workflow { - get => new WorkflowRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Actions.Permissions.Workflow.WorkflowRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -41,7 +43,7 @@ public PermissionsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,20 +54,20 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Gets the GitHub Actions permissions policy for organizations and allowed actions and reusable workflows in an enterprise.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ActionsEnterprisePermissions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsEnterprisePermissions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Sets the GitHub Actions permissions policy for organizations and allowed actions and reusable workflows in an enterprise.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint. @@ -76,11 +78,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(PermissionsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Enterprises.Item.Actions.Permissions.PermissionsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(PermissionsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Enterprises.Item.Actions.Permissions.PermissionsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -114,11 +116,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(PermissionsPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Enterprises.Item.Actions.Permissions.PermissionsPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(PermissionsPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Enterprises.Item.Actions.Permissions.PermissionsPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -130,11 +132,11 @@ public RequestInformation ToPutRequestInformation(PermissionsPutRequestBody body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PermissionsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Actions.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) { - return new PermissionsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Actions/Permissions/SelectedActions/SelectedActionsRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Permissions/SelectedActions/SelectedActionsRequestBuilder.cs index 44f27161..58cf42b8 100644 --- a/src/GitHub/Enterprises/Item/Actions/Permissions/SelectedActions/SelectedActionsRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/Permissions/SelectedActions/SelectedActionsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Actions.Permissions.SelectedActions { +namespace GitHub.Enterprises.Item.Actions.Permissions.SelectedActions +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\permissions\selected-actions /// - public class SelectedActionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SelectedActionsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public SelectedActionsRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public SelectedActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Gets the selected actions and reusable workflows that are allowed in an enterprise. To use this endpoint, the enterprise permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)."OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.SelectedActions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.SelectedActions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Sets the actions and reusable workflows that are allowed in an enterprise. To use this endpoint, the enterprise permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)."OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint. @@ -58,11 +60,11 @@ public SelectedActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(GitHub.Models.SelectedActions body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.SelectedActions body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(GitHub.Models.SelectedActions body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.SelectedActions body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -96,11 +98,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(GitHub.Models.SelectedActions body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.SelectedActions body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(GitHub.Models.SelectedActions body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.SelectedActions body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -112,11 +114,11 @@ public RequestInformation ToPutRequestInformation(GitHub.Models.SelectedActions /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SelectedActionsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Actions.Permissions.SelectedActions.SelectedActionsRequestBuilder WithUrl(string rawUrl) { - return new SelectedActionsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.Permissions.SelectedActions.SelectedActionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Actions/Permissions/Workflow/WorkflowRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Permissions/Workflow/WorkflowRequestBuilder.cs index 98ac115d..1712e174 100644 --- a/src/GitHub/Enterprises/Item/Actions/Permissions/Workflow/WorkflowRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/Permissions/Workflow/WorkflowRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Actions.Permissions.Workflow { +namespace GitHub.Enterprises.Item.Actions.Permissions.Workflow +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\permissions\workflow /// - public class WorkflowRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WorkflowRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WorkflowRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public WorkflowRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Gets the default workflow permissions granted to the `GITHUB_TOKEN` when running workflows in an enterprise,as well as whether GitHub Actions can submit approving pull request reviews. For more information, see"[Enforcing a policy for workflow permissions in your enterprise](https://docs.github.com/enterprise-cloud@latest//admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-github-actions-in-your-enterprise#enforcing-a-policy-for-workflow-permissions-in-your-enterprise)."OAuth tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ActionsGetDefaultWorkflowPermissions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsGetDefaultWorkflowPermissions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Sets the default workflow permissions granted to the `GITHUB_TOKEN` when running workflows in an enterprise, and setswhether GitHub Actions can submit approving pull request reviews. For more information, see"[Enforcing a policy for workflow permissions in your enterprise](https://docs.github.com/enterprise-cloud@latest//admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-github-actions-in-your-enterprise#enforcing-a-policy-for-workflow-permissions-in-your-enterprise)."OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint. @@ -58,11 +60,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ActionsSetDefaultWorkflowPermissions body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.ActionsSetDefaultWorkflowPermissions body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(ActionsSetDefaultWorkflowPermissions body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.ActionsSetDefaultWorkflowPermissions body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -96,11 +98,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ActionsSetDefaultWorkflowPermissions body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.ActionsSetDefaultWorkflowPermissions body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(ActionsSetDefaultWorkflowPermissions body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.ActionsSetDefaultWorkflowPermissions body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -112,11 +114,11 @@ public RequestInformation ToPutRequestInformation(ActionsSetDefaultWorkflowPermi /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WorkflowRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Actions.Permissions.Workflow.WorkflowRequestBuilder WithUrl(string rawUrl) { - return new WorkflowRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.Permissions.Workflow.WorkflowRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/Item/WithOrg_ItemRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/Item/WithOrg_ItemRequestBuilder.cs index d5a98cae..eb30bc7c 100644 --- a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/Item/WithOrg_ItemRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/Item/WithOrg_ItemRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.Item { +namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.Item +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\runner-groups\{runner_group_id}\organizations\{org_id} /// - public class WithOrg_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithOrg_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public WithOrg_ItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -104,11 +106,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithOrg_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.Item.WithOrg_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithOrg_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.Item.WithOrg_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsGetResponse.cs b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsGetResponse.cs index 356d9fe6..2af24d68 100644 --- a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsGetResponse.cs +++ b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations { +namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class OrganizationsGetResponse : IAdditionalDataHolder, IParsable + public partial class OrganizationsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class OrganizationsGetResponse : IAdditionalDataHolder, IParsable /// The organizations property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Organizations { get; set; } + public List? Organizations { get; set; } #nullable restore #else - public List Organizations { get; set; } + public List Organizations { get; set; } #endif /// The total_count property public double? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationsGetResponse() { @@ -32,12 +34,12 @@ public OrganizationsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationsGetResponse(); + return new global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"organizations", n => { Organizations = n.GetCollectionOfObjectValues(OrganizationSimple.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetDoubleValue(); } }, + { "organizations", n => { Organizations = n.GetCollectionOfObjectValues(global::GitHub.Models.OrganizationSimple.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetDoubleValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("organizations", Organizations); + writer.WriteCollectionOfObjectValues("organizations", Organizations); writer.WriteDoubleValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsPutRequestBody.cs b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsPutRequestBody.cs index 8bfd4fe2..178eb20f 100644 --- a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsPutRequestBody.cs +++ b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsPutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations { +namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class OrganizationsPutRequestBody : IAdditionalDataHolder, IParsable + public partial class OrganizationsPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class OrganizationsPutRequestBody : IAdditionalDataHolder, IParsable public List SelectedOrganizationIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationsPutRequestBody() { @@ -29,12 +31,12 @@ public OrganizationsPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationsPutRequestBody(); + return new global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsPutRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"selected_organization_ids", n => { SelectedOrganizationIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "selected_organization_ids", n => { SelectedOrganizationIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsRequestBuilder.cs index a83e6b2c..3895fdaa 100644 --- a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsRequestBuilder.cs @@ -1,33 +1,35 @@ // using GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations { +namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\runner-groups\{runner_group_id}\organizations /// - public class OrganizationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.enterprises.item.actions.runnerGroups.item.organizations.item collection /// The unique identifier of the organization. - /// A - public WithOrg_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.Item.WithOrg_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("org_id", position); - return new WithOrg_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.Item.WithOrg_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public OrganizationsRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,20 +48,20 @@ public OrganizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Lists the organizations with access to a self-hosted runner group.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, OrganizationsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. @@ -70,11 +72,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(OrganizationsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(OrganizationsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -88,11 +90,11 @@ public async Task PutAsync(OrganizationsPutRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -108,11 +110,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(OrganizationsPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(OrganizationsPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -124,16 +126,17 @@ public RequestInformation ToPutRequestInformation(OrganizationsPutRequestBody bo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public OrganizationsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsRequestBuilder WithUrl(string rawUrl) { - return new OrganizationsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the organizations with access to a self-hosted runner group.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. /// - public class OrganizationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Runners/Item/WithRunner_ItemRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Runners/Item/WithRunner_ItemRequestBuilder.cs index 5ae03837..5ffd90fc 100644 --- a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Runners/Item/WithRunner_ItemRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Runners/Item/WithRunner_ItemRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners.Item { +namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners.Item +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\runner-groups\{runner_group_id}\runners\{runner_id} /// - public class WithRunner_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRunner_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public WithRunner_ItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -104,11 +106,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRunner_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners.Item.WithRunner_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithRunner_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners.Item.WithRunner_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Runners/RunnersGetResponse.cs b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Runners/RunnersGetResponse.cs index 24afba70..c73063f2 100644 --- a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Runners/RunnersGetResponse.cs +++ b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Runners/RunnersGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners { +namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RunnersGetResponse : IAdditionalDataHolder, IParsable + public partial class RunnersGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class RunnersGetResponse : IAdditionalDataHolder, IParsable /// The runners property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Runners { get; set; } + public List? Runners { get; set; } #nullable restore #else - public List Runners { get; set; } + public List Runners { get; set; } #endif /// The total_count property public double? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RunnersGetResponse() { @@ -32,12 +34,12 @@ public RunnersGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RunnersGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners.RunnersGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RunnersGetResponse(); + return new global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners.RunnersGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"runners", n => { Runners = n.GetCollectionOfObjectValues(Runner.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetDoubleValue(); } }, + { "runners", n => { Runners = n.GetCollectionOfObjectValues(global::GitHub.Models.Runner.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetDoubleValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("runners", Runners); + writer.WriteCollectionOfObjectValues("runners", Runners); writer.WriteDoubleValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Runners/RunnersPutRequestBody.cs b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Runners/RunnersPutRequestBody.cs index dfde1243..5e79a616 100644 --- a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Runners/RunnersPutRequestBody.cs +++ b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Runners/RunnersPutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners { +namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RunnersPutRequestBody : IAdditionalDataHolder, IParsable + public partial class RunnersPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class RunnersPutRequestBody : IAdditionalDataHolder, IParsable public List Runners { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RunnersPutRequestBody() { @@ -29,12 +31,12 @@ public RunnersPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RunnersPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners.RunnersPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RunnersPutRequestBody(); + return new global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners.RunnersPutRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"runners", n => { Runners = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "runners", n => { Runners = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Runners/RunnersRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Runners/RunnersRequestBuilder.cs index 5d1562cd..8263dd08 100644 --- a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Runners/RunnersRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Runners/RunnersRequestBuilder.cs @@ -1,33 +1,35 @@ // using GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners { +namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\runner-groups\{runner_group_id}\runners /// - public class RunnersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RunnersRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.enterprises.item.actions.runnerGroups.item.runners.item collection /// Unique identifier of the self-hosted runner. - /// A - public WithRunner_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners.Item.WithRunner_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("runner_id", position); - return new WithRunner_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners.Item.WithRunner_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public RunnersRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,20 +48,20 @@ public RunnersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Lists the self-hosted runners that are in a specific enterprise group.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RunnersGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners.RunnersGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Replaces the list of self-hosted runners that are part of an enterprise runner group.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. @@ -70,11 +72,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(RunnersPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners.RunnersPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(RunnersPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners.RunnersPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -88,11 +90,11 @@ public async Task PutAsync(RunnersPutRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -108,11 +110,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(RunnersPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners.RunnersPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(RunnersPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners.RunnersPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -124,16 +126,17 @@ public RequestInformation ToPutRequestInformation(RunnersPutRequestBody body, Ac /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RunnersRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners.RunnersRequestBuilder WithUrl(string rawUrl) { - return new RunnersRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners.RunnersRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the self-hosted runners that are in a specific enterprise group.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. /// - public class RunnersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RunnersRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/WithRunner_group_ItemRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/WithRunner_group_ItemRequestBuilder.cs index 6648e471..79e68ae5 100644 --- a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/WithRunner_group_ItemRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/WithRunner_group_ItemRequestBuilder.cs @@ -2,32 +2,34 @@ using GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations; using GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item { +namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\runner-groups\{runner_group_id} /// - public class WithRunner_group_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRunner_group_ItemRequestBuilder : BaseRequestBuilder { /// The organizations property - public OrganizationsRequestBuilder Organizations + public global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsRequestBuilder Organizations { - get => new OrganizationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsRequestBuilder(PathParameters, RequestAdapter); } /// The runners property - public RunnersRequestBuilder Runners + public global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners.RunnersRequestBuilder Runners { - get => new RunnersRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Runners.RunnersRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public WithRunner_group_ItemRequestBuilder(Dictionary pathParame { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -64,41 +66,41 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RunnerGroupsEnterprise.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.RunnerGroupsEnterprise.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Updates the `name` and `visibility` of a self-hosted runner group in an enterprise.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithRunner_group_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.WithRunner_group_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithRunner_group_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.WithRunner_group_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RunnerGroupsEnterprise.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.RunnerGroupsEnterprise.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Deletes a self-hosted runner group for an enterprise.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. @@ -145,11 +147,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithRunner_group_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.WithRunner_group_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithRunner_group_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.WithRunner_group_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -162,11 +164,11 @@ public RequestInformation ToPatchRequestInformation(WithRunner_group_PatchReques /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRunner_group_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.WithRunner_group_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithRunner_group_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.WithRunner_group_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/WithRunner_group_PatchRequestBody.cs b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/WithRunner_group_PatchRequestBody.cs index feffd607..82d6fe07 100644 --- a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/WithRunner_group_PatchRequestBody.cs +++ b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/WithRunner_group_PatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item { +namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithRunner_group_PatchRequestBody : IAdditionalDataHolder, IParsable + public partial class WithRunner_group_PatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -32,24 +34,24 @@ public class WithRunner_group_PatchRequestBody : IAdditionalDataHolder, IParsabl public List SelectedWorkflows { get; set; } #endif /// Visibility of a runner group. You can select all organizations or select individual organizations. - public WithRunner_group_PatchRequestBody_visibility? Visibility { get; set; } + public global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.WithRunner_group_PatchRequestBody_visibility? Visibility { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithRunner_group_PatchRequestBody() { AdditionalData = new Dictionary(); - Visibility = WithRunner_group_PatchRequestBody_visibility.All; + Visibility = global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.WithRunner_group_PatchRequestBody_visibility.All; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithRunner_group_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.WithRunner_group_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithRunner_group_PatchRequestBody(); + return new global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.WithRunner_group_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -59,11 +61,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allows_public_repositories", n => { AllowsPublicRepositories = n.GetBoolValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"restricted_to_workflows", n => { RestrictedToWorkflows = n.GetBoolValue(); } }, - {"selected_workflows", n => { SelectedWorkflows = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, + { "allows_public_repositories", n => { AllowsPublicRepositories = n.GetBoolValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "restricted_to_workflows", n => { RestrictedToWorkflows = n.GetBoolValue(); } }, + { "selected_workflows", n => { SelectedWorkflows = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "visibility", n => { Visibility = n.GetEnumValue(); } }, }; } /// @@ -77,7 +79,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteBoolValue("restricted_to_workflows", RestrictedToWorkflows); writer.WriteCollectionOfPrimitiveValues("selected_workflows", SelectedWorkflows); - writer.WriteEnumValue("visibility", Visibility); + writer.WriteEnumValue("visibility", Visibility); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/WithRunner_group_PatchRequestBody_visibility.cs b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/WithRunner_group_PatchRequestBody_visibility.cs index 241df400..336f7d29 100644 --- a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/WithRunner_group_PatchRequestBody_visibility.cs +++ b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/WithRunner_group_PatchRequestBody_visibility.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item { +namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item +{ /// Visibility of a runner group. You can select all organizations or select individual organizations. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithRunner_group_PatchRequestBody_visibility { [EnumMember(Value = "selected")] diff --git a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/RunnerGroupsGetResponse.cs b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/RunnerGroupsGetResponse.cs index d3c6a2fd..42440f75 100644 --- a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/RunnerGroupsGetResponse.cs +++ b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/RunnerGroupsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Actions.RunnerGroups { +namespace GitHub.Enterprises.Item.Actions.RunnerGroups +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RunnerGroupsGetResponse : IAdditionalDataHolder, IParsable + public partial class RunnerGroupsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class RunnerGroupsGetResponse : IAdditionalDataHolder, IParsable /// The runner_groups property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? RunnerGroups { get; set; } + public List? RunnerGroups { get; set; } #nullable restore #else - public List RunnerGroups { get; set; } + public List RunnerGroups { get; set; } #endif /// The total_count property public double? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RunnerGroupsGetResponse() { @@ -32,12 +34,12 @@ public RunnerGroupsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RunnerGroupsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Actions.RunnerGroups.RunnerGroupsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RunnerGroupsGetResponse(); + return new global::GitHub.Enterprises.Item.Actions.RunnerGroups.RunnerGroupsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"runner_groups", n => { RunnerGroups = n.GetCollectionOfObjectValues(RunnerGroupsEnterprise.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetDoubleValue(); } }, + { "runner_groups", n => { RunnerGroups = n.GetCollectionOfObjectValues(global::GitHub.Models.RunnerGroupsEnterprise.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetDoubleValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("runner_groups", RunnerGroups); + writer.WriteCollectionOfObjectValues("runner_groups", RunnerGroups); writer.WriteDoubleValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/RunnerGroupsPostRequestBody.cs b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/RunnerGroupsPostRequestBody.cs index 9bd4dad3..e28fdf30 100644 --- a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/RunnerGroupsPostRequestBody.cs +++ b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/RunnerGroupsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Actions.RunnerGroups { +namespace GitHub.Enterprises.Item.Actions.RunnerGroups +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RunnerGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RunnerGroupsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -48,9 +50,9 @@ public class RunnerGroupsPostRequestBody : IAdditionalDataHolder, IParsable public List SelectedWorkflows { get; set; } #endif /// Visibility of a runner group. You can select all organizations or select individual organization. - public RunnerGroupsPostRequestBody_visibility? Visibility { get; set; } + public global::GitHub.Enterprises.Item.Actions.RunnerGroups.RunnerGroupsPostRequestBody_visibility? Visibility { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RunnerGroupsPostRequestBody() { @@ -59,12 +61,12 @@ public RunnerGroupsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RunnerGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Actions.RunnerGroups.RunnerGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RunnerGroupsPostRequestBody(); + return new global::GitHub.Enterprises.Item.Actions.RunnerGroups.RunnerGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -74,13 +76,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allows_public_repositories", n => { AllowsPublicRepositories = n.GetBoolValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"restricted_to_workflows", n => { RestrictedToWorkflows = n.GetBoolValue(); } }, - {"runners", n => { Runners = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"selected_organization_ids", n => { SelectedOrganizationIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"selected_workflows", n => { SelectedWorkflows = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, + { "allows_public_repositories", n => { AllowsPublicRepositories = n.GetBoolValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "restricted_to_workflows", n => { RestrictedToWorkflows = n.GetBoolValue(); } }, + { "runners", n => { Runners = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "selected_organization_ids", n => { SelectedOrganizationIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "selected_workflows", n => { SelectedWorkflows = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "visibility", n => { Visibility = n.GetEnumValue(); } }, }; } /// @@ -96,7 +98,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteCollectionOfPrimitiveValues("runners", Runners); writer.WriteCollectionOfPrimitiveValues("selected_organization_ids", SelectedOrganizationIds); writer.WriteCollectionOfPrimitiveValues("selected_workflows", SelectedWorkflows); - writer.WriteEnumValue("visibility", Visibility); + writer.WriteEnumValue("visibility", Visibility); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/RunnerGroupsPostRequestBody_visibility.cs b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/RunnerGroupsPostRequestBody_visibility.cs index 03a612ee..52674290 100644 --- a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/RunnerGroupsPostRequestBody_visibility.cs +++ b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/RunnerGroupsPostRequestBody_visibility.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Enterprises.Item.Actions.RunnerGroups { +namespace GitHub.Enterprises.Item.Actions.RunnerGroups +{ /// Visibility of a runner group. You can select all organizations or select individual organization. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RunnerGroupsPostRequestBody_visibility { [EnumMember(Value = "selected")] diff --git a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/RunnerGroupsRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/RunnerGroupsRequestBuilder.cs index a64da056..1cfd0d95 100644 --- a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/RunnerGroupsRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/RunnerGroupsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Enterprises.Item.Actions.RunnerGroups.Item; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Actions.RunnerGroups { +namespace GitHub.Enterprises.Item.Actions.RunnerGroups +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\runner-groups /// - public class RunnerGroupsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RunnerGroupsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.enterprises.item.actions.runnerGroups.item collection /// Unique identifier of the self-hosted runner group. - /// A - public WithRunner_group_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.WithRunner_group_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("runner_group_id", position); - return new WithRunner_group_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.WithRunner_group_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public RunnerGroupsRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,41 +49,41 @@ public RunnerGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Lists all self-hosted runner groups for an enterprise.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RunnerGroupsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Enterprises.Item.Actions.RunnerGroups.RunnerGroupsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Creates a new self-hosted runner group for an enterprise.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(RunnerGroupsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Enterprises.Item.Actions.RunnerGroups.RunnerGroupsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(RunnerGroupsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Enterprises.Item.Actions.RunnerGroups.RunnerGroupsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RunnerGroupsEnterprise.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.RunnerGroupsEnterprise.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists all self-hosted runner groups for an enterprise.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. @@ -90,11 +92,11 @@ public async Task PostAsync(RunnerGroupsPostRequestBody /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -110,11 +112,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(RunnerGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Enterprises.Item.Actions.RunnerGroups.RunnerGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RunnerGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Enterprises.Item.Actions.RunnerGroups.RunnerGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -127,16 +129,17 @@ public RequestInformation ToPostRequestInformation(RunnerGroupsPostRequestBody b /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RunnerGroupsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Actions.RunnerGroups.RunnerGroupsRequestBuilder WithUrl(string rawUrl) { - return new RunnerGroupsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.RunnerGroups.RunnerGroupsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all self-hosted runner groups for an enterprise.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. /// - public class RunnerGroupsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RunnerGroupsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Enterprises/Item/Actions/Runners/Downloads/DownloadsRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Runners/Downloads/DownloadsRequestBuilder.cs index b4ef2ee1..59e80161 100644 --- a/src/GitHub/Enterprises/Item/Actions/Runners/Downloads/DownloadsRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/Runners/Downloads/DownloadsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Actions.Runners.Downloads { +namespace GitHub.Enterprises.Item.Actions.Runners.Downloads +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\runners\downloads /// - public class DownloadsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DownloadsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public DownloadsRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public DownloadsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Lists binaries for the runner application that you can download and run.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. /// API method documentation /// - /// A List<RunnerApplication> + /// A List<global::GitHub.Models.RunnerApplication> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RunnerApplication.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.RunnerApplication.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists binaries for the runner application that you can download and run.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. @@ -72,11 +74,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DownloadsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Actions.Runners.Downloads.DownloadsRequestBuilder WithUrl(string rawUrl) { - return new DownloadsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.Runners.Downloads.DownloadsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostRequestBody.cs b/src/GitHub/Enterprises/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostRequestBody.cs index 0b9d3a3f..c5ea263c 100644 --- a/src/GitHub/Enterprises/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostRequestBody.cs +++ b/src/GitHub/Enterprises/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Actions.Runners.GenerateJitconfig { +namespace GitHub.Enterprises.Item.Actions.Runners.GenerateJitconfig +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GenerateJitconfigPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GenerateJitconfigPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -38,7 +40,7 @@ public class GenerateJitconfigPostRequestBody : IAdditionalDataHolder, IParsable public string WorkFolder { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GenerateJitconfigPostRequestBody() { @@ -48,12 +50,12 @@ public GenerateJitconfigPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GenerateJitconfigPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GenerateJitconfigPostRequestBody(); + return new global::GitHub.Enterprises.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostRequestBody(); } /// /// The deserialization information for the current model @@ -63,10 +65,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"runner_group_id", n => { RunnerGroupId = n.GetIntValue(); } }, - {"work_folder", n => { WorkFolder = n.GetStringValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "runner_group_id", n => { RunnerGroupId = n.GetIntValue(); } }, + { "work_folder", n => { WorkFolder = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Enterprises/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostResponse.cs b/src/GitHub/Enterprises/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostResponse.cs index 45b79a06..76a3a2fd 100644 --- a/src/GitHub/Enterprises/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostResponse.cs +++ b/src/GitHub/Enterprises/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Actions.Runners.GenerateJitconfig { +namespace GitHub.Enterprises.Item.Actions.Runners.GenerateJitconfig +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GenerateJitconfigPostResponse : IAdditionalDataHolder, IParsable + public partial class GenerateJitconfigPostResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -23,13 +25,13 @@ public class GenerateJitconfigPostResponse : IAdditionalDataHolder, IParsable /// A self hosted runner #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Runner? Runner { get; set; } + public global::GitHub.Models.Runner? Runner { get; set; } #nullable restore #else - public GitHub.Models.Runner Runner { get; set; } + public global::GitHub.Models.Runner Runner { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GenerateJitconfigPostResponse() { @@ -38,12 +40,12 @@ public GenerateJitconfigPostResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GenerateJitconfigPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GenerateJitconfigPostResponse(); + return new global::GitHub.Enterprises.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostResponse(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"encoded_jit_config", n => { EncodedJitConfig = n.GetStringValue(); } }, - {"runner", n => { Runner = n.GetObjectValue(GitHub.Models.Runner.CreateFromDiscriminatorValue); } }, + { "encoded_jit_config", n => { EncodedJitConfig = n.GetStringValue(); } }, + { "runner", n => { Runner = n.GetObjectValue(global::GitHub.Models.Runner.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,7 +67,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("encoded_jit_config", EncodedJitConfig); - writer.WriteObjectValue("runner", Runner); + writer.WriteObjectValue("runner", Runner); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Enterprises/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigRequestBuilder.cs index 280a4287..9607445f 100644 --- a/src/GitHub/Enterprises/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Actions.Runners.GenerateJitconfig { +namespace GitHub.Enterprises.Item.Actions.Runners.GenerateJitconfig +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\runners\generate-jitconfig /// - public class GenerateJitconfigRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GenerateJitconfigRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public GenerateJitconfigRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,29 +36,29 @@ public GenerateJitconfigRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Generates a configuration that can be passed to the runner application at startup.OAuth tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(GenerateJitconfigPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Enterprises.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(GenerateJitconfigPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Enterprises.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GenerateJitconfigPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Enterprises.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Generates a configuration that can be passed to the runner application at startup.OAuth tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. @@ -66,11 +68,11 @@ public async Task PostAsync(GenerateJitconfigPost /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(GenerateJitconfigPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Enterprises.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GenerateJitconfigPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Enterprises.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -83,11 +85,11 @@ public RequestInformation ToPostRequestInformation(GenerateJitconfigPostRequestB /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public GenerateJitconfigRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigRequestBuilder WithUrl(string rawUrl) { - return new GenerateJitconfigRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/Item/WithNameDeleteResponse.cs b/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/Item/WithNameDeleteResponse.cs index 1df26fac..f88de8b3 100644 --- a/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/Item/WithNameDeleteResponse.cs +++ b/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/Item/WithNameDeleteResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Actions.Runners.Item.Labels.Item { +namespace GitHub.Enterprises.Item.Actions.Runners.Item.Labels.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithNameDeleteResponse : IAdditionalDataHolder, IParsable + public partial class WithNameDeleteResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class WithNameDeleteResponse : IAdditionalDataHolder, IParsable /// The labels property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Labels { get; set; } + public List? Labels { get; set; } #nullable restore #else - public List Labels { get; set; } + public List Labels { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithNameDeleteResponse() { @@ -32,12 +34,12 @@ public WithNameDeleteResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithNameDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.Item.WithNameDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithNameDeleteResponse(); + return new global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.Item.WithNameDeleteResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfObjectValues(RunnerLabel.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfObjectValues(global::GitHub.Models.RunnerLabel.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("labels", Labels); + writer.WriteCollectionOfObjectValues("labels", Labels); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/Item/WithNameItemRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/Item/WithNameItemRequestBuilder.cs index 6de7ddad..8802d0f3 100644 --- a/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/Item/WithNameItemRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/Item/WithNameItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Actions.Runners.Item.Labels.Item { +namespace GitHub.Enterprises.Item.Actions.Runners.Item.Labels.Item +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\runners\{runner_id}\labels\{name} /// - public class WithNameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithNameItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithNameItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public WithNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Remove a custom label from a self-hosted runner configuredin an enterprise. Returns the remaining labels from the runner.This endpoint returns a `404 Not Found` status if the custom label is notpresent on the runner.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, WithNameDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.Item.WithNameDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Remove a custom label from a self-hosted runner configuredin an enterprise. Returns the remaining labels from the runner.This endpoint returns a `404 Not Found` status if the custom label is notpresent on the runner.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. @@ -78,11 +80,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithNameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.Item.WithNameItemRequestBuilder WithUrl(string rawUrl) { - return new WithNameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.Item.WithNameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsDeleteResponse.cs b/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsDeleteResponse.cs index cd85933d..de395669 100644 --- a/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsDeleteResponse.cs +++ b/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsDeleteResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Actions.Runners.Item.Labels { +namespace GitHub.Enterprises.Item.Actions.Runners.Item.Labels +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class LabelsDeleteResponse : IAdditionalDataHolder, IParsable + public partial class LabelsDeleteResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class LabelsDeleteResponse : IAdditionalDataHolder, IParsable /// The labels property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Labels { get; set; } + public List? Labels { get; set; } #nullable restore #else - public List Labels { get; set; } + public List Labels { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LabelsDeleteResponse() { @@ -32,12 +34,12 @@ public LabelsDeleteResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LabelsDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LabelsDeleteResponse(); + return new global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsDeleteResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfObjectValues(RunnerLabel.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfObjectValues(global::GitHub.Models.RunnerLabel.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("labels", Labels); + writer.WriteCollectionOfObjectValues("labels", Labels); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsGetResponse.cs b/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsGetResponse.cs index 809727eb..95cd3c61 100644 --- a/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsGetResponse.cs +++ b/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Actions.Runners.Item.Labels { +namespace GitHub.Enterprises.Item.Actions.Runners.Item.Labels +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class LabelsGetResponse : IAdditionalDataHolder, IParsable + public partial class LabelsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class LabelsGetResponse : IAdditionalDataHolder, IParsable /// The labels property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Labels { get; set; } + public List? Labels { get; set; } #nullable restore #else - public List Labels { get; set; } + public List Labels { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LabelsGetResponse() { @@ -32,12 +34,12 @@ public LabelsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LabelsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LabelsGetResponse(); + return new global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfObjectValues(RunnerLabel.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfObjectValues(global::GitHub.Models.RunnerLabel.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("labels", Labels); + writer.WriteCollectionOfObjectValues("labels", Labels); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsPostRequestBody.cs b/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsPostRequestBody.cs index d477b71a..fc99df35 100644 --- a/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsPostRequestBody.cs +++ b/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Actions.Runners.Item.Labels { +namespace GitHub.Enterprises.Item.Actions.Runners.Item.Labels +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class LabelsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class LabelsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class LabelsPostRequestBody : IAdditionalDataHolder, IParsable public List Labels { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LabelsPostRequestBody() { @@ -29,12 +31,12 @@ public LabelsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LabelsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LabelsPostRequestBody(); + return new global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsPostRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsPostResponse.cs b/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsPostResponse.cs index a703717b..985b7b0c 100644 --- a/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsPostResponse.cs +++ b/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsPostResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Actions.Runners.Item.Labels { +namespace GitHub.Enterprises.Item.Actions.Runners.Item.Labels +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class LabelsPostResponse : IAdditionalDataHolder, IParsable + public partial class LabelsPostResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class LabelsPostResponse : IAdditionalDataHolder, IParsable /// The labels property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Labels { get; set; } + public List? Labels { get; set; } #nullable restore #else - public List Labels { get; set; } + public List Labels { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LabelsPostResponse() { @@ -32,12 +34,12 @@ public LabelsPostResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LabelsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LabelsPostResponse(); + return new global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsPostResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfObjectValues(RunnerLabel.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfObjectValues(global::GitHub.Models.RunnerLabel.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("labels", Labels); + writer.WriteCollectionOfObjectValues("labels", Labels); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsPutRequestBody.cs b/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsPutRequestBody.cs index 3340a6ea..1b2daf0e 100644 --- a/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsPutRequestBody.cs +++ b/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsPutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Actions.Runners.Item.Labels { +namespace GitHub.Enterprises.Item.Actions.Runners.Item.Labels +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class LabelsPutRequestBody : IAdditionalDataHolder, IParsable + public partial class LabelsPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class LabelsPutRequestBody : IAdditionalDataHolder, IParsable public List Labels { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LabelsPutRequestBody() { @@ -29,12 +31,12 @@ public LabelsPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LabelsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LabelsPutRequestBody(); + return new global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsPutRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsPutResponse.cs b/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsPutResponse.cs index 5d27fe8f..de615cfb 100644 --- a/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsPutResponse.cs +++ b/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsPutResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Actions.Runners.Item.Labels { +namespace GitHub.Enterprises.Item.Actions.Runners.Item.Labels +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class LabelsPutResponse : IAdditionalDataHolder, IParsable + public partial class LabelsPutResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class LabelsPutResponse : IAdditionalDataHolder, IParsable /// The labels property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Labels { get; set; } + public List? Labels { get; set; } #nullable restore #else - public List Labels { get; set; } + public List Labels { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LabelsPutResponse() { @@ -32,12 +34,12 @@ public LabelsPutResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LabelsPutResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsPutResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LabelsPutResponse(); + return new global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsPutResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfObjectValues(RunnerLabel.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfObjectValues(global::GitHub.Models.RunnerLabel.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("labels", Labels); + writer.WriteCollectionOfObjectValues("labels", Labels); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsRequestBuilder.cs index 076116a3..afdf0b8a 100644 --- a/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/Runners/Item/Labels/LabelsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Enterprises.Item.Actions.Runners.Item.Labels.Item; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Actions.Runners.Item.Labels { +namespace GitHub.Enterprises.Item.Actions.Runners.Item.Labels +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\runners\{runner_id}\labels /// - public class LabelsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class LabelsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.enterprises.item.actions.runners.item.labels.item collection /// The name of a self-hosted runner's custom label. - /// A - public WithNameItemRequestBuilder this[string position] + /// A + public global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.Item.WithNameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("name", position); - return new WithNameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.Item.WithNameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public LabelsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,107 +49,107 @@ public LabelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Remove all custom labels from a self-hosted runner configured in anenterprise. Returns the remaining read-only labels from the runner.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, LabelsDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists all labels for a self-hosted runner configured in an enterprise.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, LabelsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Add custom labels to a self-hosted runner configured in an enterprise.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(LabelsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(LabelsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, LabelsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Remove all previous custom labels and set the new custom labels for a specificself-hosted runner configured in an enterprise.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(LabelsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(LabelsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, LabelsPutResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsPutResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Remove all custom labels from a self-hosted runner configured in anenterprise. Returns the remaining read-only labels from the runner.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. @@ -195,11 +197,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(LabelsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(LabelsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -217,11 +219,11 @@ public RequestInformation ToPostRequestInformation(LabelsPostRequestBody body, A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(LabelsPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(LabelsPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -234,11 +236,11 @@ public RequestInformation ToPutRequestInformation(LabelsPutRequestBody body, Act /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public LabelsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsRequestBuilder WithUrl(string rawUrl) { - return new LabelsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Actions/Runners/Item/WithRunner_ItemRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Runners/Item/WithRunner_ItemRequestBuilder.cs index 97013d83..b227576f 100644 --- a/src/GitHub/Enterprises/Item/Actions/Runners/Item/WithRunner_ItemRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/Runners/Item/WithRunner_ItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Enterprises.Item.Actions.Runners.Item.Labels; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Actions.Runners.Item { +namespace GitHub.Enterprises.Item.Actions.Runners.Item +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\runners\{runner_id} /// - public class WithRunner_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRunner_ItemRequestBuilder : BaseRequestBuilder { /// The labels property - public LabelsRequestBuilder Labels + public global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsRequestBuilder Labels { - get => new LabelsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Actions.Runners.Item.Labels.LabelsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithRunner_ItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -58,20 +60,20 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, Runner.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Runner.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Forces the removal of a self-hosted runner from an enterprise. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. @@ -113,11 +115,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRunner_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Actions.Runners.Item.WithRunner_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithRunner_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.Runners.Item.WithRunner_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Actions/Runners/RegistrationToken/RegistrationTokenRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Runners/RegistrationToken/RegistrationTokenRequestBuilder.cs index 9ff3b36f..fc38d4a9 100644 --- a/src/GitHub/Enterprises/Item/Actions/Runners/RegistrationToken/RegistrationTokenRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/Runners/RegistrationToken/RegistrationTokenRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Actions.Runners.RegistrationToken { +namespace GitHub.Enterprises.Item.Actions.Runners.RegistrationToken +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\runners\registration-token /// - public class RegistrationTokenRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RegistrationTokenRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RegistrationTokenRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public RegistrationTokenRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Returns a token that you can pass to the `config` script. The token expires after one hour.Example using registration token:Configure your self-hosted runner, replacing `TOKEN` with the registration token provided by this endpoint.```./config.sh --url https://github.com/enterprises/octo-enterprise --token TOKEN```OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, AuthenticationToken.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.AuthenticationToken.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Returns a token that you can pass to the `config` script. The token expires after one hour.Example using registration token:Configure your self-hosted runner, replacing `TOKEN` with the registration token provided by this endpoint.```./config.sh --url https://github.com/enterprises/octo-enterprise --token TOKEN```OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. @@ -71,11 +73,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RegistrationTokenRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Actions.Runners.RegistrationToken.RegistrationTokenRequestBuilder WithUrl(string rawUrl) { - return new RegistrationTokenRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.Runners.RegistrationToken.RegistrationTokenRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Actions/Runners/RemoveToken/RemoveTokenRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Runners/RemoveToken/RemoveTokenRequestBuilder.cs index 1f58bca3..be0f55bf 100644 --- a/src/GitHub/Enterprises/Item/Actions/Runners/RemoveToken/RemoveTokenRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/Runners/RemoveToken/RemoveTokenRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Actions.Runners.RemoveToken { +namespace GitHub.Enterprises.Item.Actions.Runners.RemoveToken +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\runners\remove-token /// - public class RemoveTokenRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RemoveTokenRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RemoveTokenRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public RemoveTokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Returns a token that you can pass to the `config` script to remove a self-hosted runner from an enterprise. The token expires after one hour.Example using remove token:To remove your self-hosted runner from an enterprise, replace `TOKEN` with the remove token provided by thisendpoint.```./config.sh remove --token TOKEN```OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, AuthenticationToken.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.AuthenticationToken.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Returns a token that you can pass to the `config` script to remove a self-hosted runner from an enterprise. The token expires after one hour.Example using remove token:To remove your self-hosted runner from an enterprise, replace `TOKEN` with the remove token provided by thisendpoint.```./config.sh remove --token TOKEN```OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. @@ -71,11 +73,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RemoveTokenRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Actions.Runners.RemoveToken.RemoveTokenRequestBuilder WithUrl(string rawUrl) { - return new RemoveTokenRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.Runners.RemoveToken.RemoveTokenRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Actions/Runners/RunnersGetResponse.cs b/src/GitHub/Enterprises/Item/Actions/Runners/RunnersGetResponse.cs index dd156823..b522a75f 100644 --- a/src/GitHub/Enterprises/Item/Actions/Runners/RunnersGetResponse.cs +++ b/src/GitHub/Enterprises/Item/Actions/Runners/RunnersGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Actions.Runners { +namespace GitHub.Enterprises.Item.Actions.Runners +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RunnersGetResponse : IAdditionalDataHolder, IParsable + public partial class RunnersGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class RunnersGetResponse : IAdditionalDataHolder, IParsable /// The runners property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Runners { get; set; } + public List? Runners { get; set; } #nullable restore #else - public List Runners { get; set; } + public List Runners { get; set; } #endif /// The total_count property public double? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RunnersGetResponse() { @@ -32,12 +34,12 @@ public RunnersGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RunnersGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Actions.Runners.RunnersGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RunnersGetResponse(); + return new global::GitHub.Enterprises.Item.Actions.Runners.RunnersGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"runners", n => { Runners = n.GetCollectionOfObjectValues(Runner.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetDoubleValue(); } }, + { "runners", n => { Runners = n.GetCollectionOfObjectValues(global::GitHub.Models.Runner.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetDoubleValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("runners", Runners); + writer.WriteCollectionOfObjectValues("runners", Runners); writer.WriteDoubleValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Enterprises/Item/Actions/Runners/RunnersRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Runners/RunnersRequestBuilder.cs index b2aca29d..5ffd945b 100644 --- a/src/GitHub/Enterprises/Item/Actions/Runners/RunnersRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Actions/Runners/RunnersRequestBuilder.cs @@ -4,54 +4,56 @@ using GitHub.Enterprises.Item.Actions.Runners.Item; using GitHub.Enterprises.Item.Actions.Runners.RegistrationToken; using GitHub.Enterprises.Item.Actions.Runners.RemoveToken; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Actions.Runners { +namespace GitHub.Enterprises.Item.Actions.Runners +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\actions\runners /// - public class RunnersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RunnersRequestBuilder : BaseRequestBuilder { /// The downloads property - public DownloadsRequestBuilder Downloads + public global::GitHub.Enterprises.Item.Actions.Runners.Downloads.DownloadsRequestBuilder Downloads { - get => new DownloadsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Actions.Runners.Downloads.DownloadsRequestBuilder(PathParameters, RequestAdapter); } /// The generateJitconfig property - public GenerateJitconfigRequestBuilder GenerateJitconfig + public global::GitHub.Enterprises.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigRequestBuilder GenerateJitconfig { - get => new GenerateJitconfigRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigRequestBuilder(PathParameters, RequestAdapter); } /// The registrationToken property - public RegistrationTokenRequestBuilder RegistrationToken + public global::GitHub.Enterprises.Item.Actions.Runners.RegistrationToken.RegistrationTokenRequestBuilder RegistrationToken { - get => new RegistrationTokenRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Actions.Runners.RegistrationToken.RegistrationTokenRequestBuilder(PathParameters, RequestAdapter); } /// The removeToken property - public RemoveTokenRequestBuilder RemoveToken + public global::GitHub.Enterprises.Item.Actions.Runners.RemoveToken.RemoveTokenRequestBuilder RemoveToken { - get => new RemoveTokenRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Actions.Runners.RemoveToken.RemoveTokenRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.enterprises.item.actions.runners.item collection /// Unique identifier of the self-hosted runner. - /// A - public WithRunner_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Enterprises.Item.Actions.Runners.Item.WithRunner_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("runner_id", position); - return new WithRunner_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.Runners.Item.WithRunner_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -59,7 +61,7 @@ public RunnersRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -70,20 +72,20 @@ public RunnersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Lists all self-hosted runners configured for an enterprise.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RunnersGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Enterprises.Item.Actions.Runners.RunnersGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists all self-hosted runners configured for an enterprise.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. @@ -92,11 +94,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -107,16 +109,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RunnersRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Actions.Runners.RunnersRequestBuilder WithUrl(string rawUrl) { - return new RunnersRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Actions.Runners.RunnersRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all self-hosted runners configured for an enterprise.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. /// - public class RunnersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RunnersRequestBuilderGetQueryParameters { /// The name of a self-hosted runner. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Enterprises/Item/Announcement/AnnouncementRequestBuilder.cs b/src/GitHub/Enterprises/Item/Announcement/AnnouncementRequestBuilder.cs index d19b0191..d4904a0c 100644 --- a/src/GitHub/Enterprises/Item/Announcement/AnnouncementRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Announcement/AnnouncementRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Announcement { +namespace GitHub.Enterprises.Item.Announcement +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\announcement /// - public class AnnouncementRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AnnouncementRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AnnouncementRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,41 +54,41 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, AnnouncementBanner.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.AnnouncementBanner.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Sets the announcement banner to display for the enterprise. /// API method documentation /// - /// A + /// A /// Enterprise global announcement /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(GitHub.Models.Announcement body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Models.Announcement body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(GitHub.Models.Announcement body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Models.Announcement body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, AnnouncementBanner.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.AnnouncementBanner.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Removes the announcement banner currently set for the enterprise. @@ -133,11 +135,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(GitHub.Models.Announcement body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Models.Announcement body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(GitHub.Models.Announcement body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Models.Announcement body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -150,11 +152,11 @@ public RequestInformation ToPatchRequestInformation(GitHub.Models.Announcement b /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AnnouncementRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Announcement.AnnouncementRequestBuilder WithUrl(string rawUrl) { - return new AnnouncementRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Announcement.AnnouncementRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/AuditLog/AuditLogRequestBuilder.cs b/src/GitHub/Enterprises/Item/AuditLog/AuditLogRequestBuilder.cs index 59f3a3ed..7f67e8b2 100644 --- a/src/GitHub/Enterprises/Item/AuditLog/AuditLogRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/AuditLog/AuditLogRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.AuditLog { +namespace GitHub.Enterprises.Item.AuditLog +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\audit-log /// - public class AuditLogRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AuditLogRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AuditLogRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public AuditLogRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Gets the audit log for an enterprise.This endpoint has a rate limit of 1,750 queries per hour per user and IP address. If your integration receives a rate limit error (typically a 403 or 429 response), it should wait before making another request to the GitHub API. For more information, see "[Rate limits for the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api)" and "[Best practices for integrators](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-integrators)."The authenticated user must be an enterprise admin to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:audit_log` scope to use this endpoint. /// API method documentation /// - /// A List<AuditLogEvent> + /// A List<global::GitHub.Models.AuditLogEvent> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, AuditLogEvent.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.AuditLogEvent.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Gets the audit log for an enterprise.This endpoint has a rate limit of 1,750 queries per hour per user and IP address. If your integration receives a rate limit error (typically a 403 or 429 response), it should wait before making another request to the GitHub API. For more information, see "[Rate limits for the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api)" and "[Best practices for integrators](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-integrators)."The authenticated user must be an enterprise admin to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:audit_log` scope to use this endpoint. @@ -57,11 +59,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -72,16 +74,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AuditLogRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.AuditLog.AuditLogRequestBuilder WithUrl(string rawUrl) { - return new AuditLogRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.AuditLog.AuditLogRequestBuilder(rawUrl, RequestAdapter); } /// /// Gets the audit log for an enterprise.This endpoint has a rate limit of 1,750 queries per hour per user and IP address. If your integration receives a rate limit error (typically a 403 or 429 response), it should wait before making another request to the GitHub API. For more information, see "[Rate limits for the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api)" and "[Best practices for integrators](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-integrators)."The authenticated user must be an enterprise admin to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:audit_log` scope to use this endpoint. /// - public class AuditLogRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AuditLogRequestBuilderGetQueryParameters { /// A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events after this cursor. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,10 +108,10 @@ public class AuditLogRequestBuilderGetQueryParameters #endif /// The event types to include:- `web` - returns web (non-Git) events.- `git` - returns Git events.- `all` - returns both web and Git events.The default is `web`. [QueryParameter("include")] - public GetIncludeQueryParameterType? Include { get; set; } + public global::GitHub.Enterprises.Item.AuditLog.GetIncludeQueryParameterType? Include { get; set; } /// The order of audit log events. To list newest events first, specify `desc`. To list oldest events first, specify `asc`.The default is `desc`. [QueryParameter("order")] - public GetOrderQueryParameterType? Order { get; set; } + public global::GitHub.Enterprises.Item.AuditLog.GetOrderQueryParameterType? Order { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } diff --git a/src/GitHub/Enterprises/Item/AuditLog/GetIncludeQueryParameterType.cs b/src/GitHub/Enterprises/Item/AuditLog/GetIncludeQueryParameterType.cs index c5fbeb4f..87546b27 100644 --- a/src/GitHub/Enterprises/Item/AuditLog/GetIncludeQueryParameterType.cs +++ b/src/GitHub/Enterprises/Item/AuditLog/GetIncludeQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Enterprises.Item.AuditLog { +namespace GitHub.Enterprises.Item.AuditLog +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetIncludeQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Enterprises/Item/AuditLog/GetOrderQueryParameterType.cs b/src/GitHub/Enterprises/Item/AuditLog/GetOrderQueryParameterType.cs index 485ca9ea..0a948b5d 100644 --- a/src/GitHub/Enterprises/Item/AuditLog/GetOrderQueryParameterType.cs +++ b/src/GitHub/Enterprises/Item/AuditLog/GetOrderQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Enterprises.Item.AuditLog { +namespace GitHub.Enterprises.Item.AuditLog +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetOrderQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Enterprises/Item/CodeScanning/Alerts/AlertsRequestBuilder.cs b/src/GitHub/Enterprises/Item/CodeScanning/Alerts/AlertsRequestBuilder.cs index 9e060839..07b04ea0 100644 --- a/src/GitHub/Enterprises/Item/CodeScanning/Alerts/AlertsRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/CodeScanning/Alerts/AlertsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.CodeScanning.Alerts { +namespace GitHub.Enterprises.Item.CodeScanning.Alerts +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\code-scanning\alerts /// - public class AlertsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AlertsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AlertsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,28 +36,28 @@ public AlertsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Lists code scanning alerts for the default branch for all eligible repositories in an enterprise. Eligible repositories are repositories that are owned by organizations that you own or for which you are a security manager. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."The authenticated user must be a member of the enterprise to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `security_events` or `repo` scope to use this endpoint. /// API method documentation /// - /// A List<CodeScanningOrganizationAlertItems> + /// A List<global::GitHub.Models.CodeScanningOrganizationAlertItems> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 503 status code + /// When receiving a 404 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"503", Alerts503Error.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.Alerts503Error.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CodeScanningOrganizationAlertItems.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CodeScanningOrganizationAlertItems.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists code scanning alerts for the default branch for all eligible repositories in an enterprise. Eligible repositories are repositories that are owned by organizations that you own or for which you are a security manager. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."The authenticated user must be a member of the enterprise to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `security_events` or `repo` scope to use this endpoint. @@ -64,11 +66,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -79,16 +81,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AlertsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.CodeScanning.Alerts.AlertsRequestBuilder WithUrl(string rawUrl) { - return new AlertsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.CodeScanning.Alerts.AlertsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists code scanning alerts for the default branch for all eligible repositories in an enterprise. Eligible repositories are repositories that are owned by organizations that you own or for which you are a security manager. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."The authenticated user must be a member of the enterprise to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `security_events` or `repo` scope to use this endpoint. /// - public class AlertsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AlertsRequestBuilderGetQueryParameters { /// A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -112,7 +115,7 @@ public class AlertsRequestBuilderGetQueryParameters #endif /// The direction to sort the results by. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Enterprises.Item.CodeScanning.Alerts.GetDirectionQueryParameterType? Direction { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } @@ -121,10 +124,10 @@ public class AlertsRequestBuilderGetQueryParameters public int? PerPage { get; set; } /// The property by which to sort the results. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Enterprises.Item.CodeScanning.Alerts.GetSortQueryParameterType? Sort { get; set; } /// If specified, only code scanning alerts with this state will be returned. [QueryParameter("state")] - public CodeScanningAlertStateQuery? State { get; set; } + public global::GitHub.Models.CodeScanningAlertStateQuery? State { get; set; } /// The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/GitHub/Enterprises/Item/CodeScanning/Alerts/GetDirectionQueryParameterType.cs b/src/GitHub/Enterprises/Item/CodeScanning/Alerts/GetDirectionQueryParameterType.cs index 6044812d..163dc85b 100644 --- a/src/GitHub/Enterprises/Item/CodeScanning/Alerts/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Enterprises/Item/CodeScanning/Alerts/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Enterprises.Item.CodeScanning.Alerts { +namespace GitHub.Enterprises.Item.CodeScanning.Alerts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Enterprises/Item/CodeScanning/Alerts/GetSortQueryParameterType.cs b/src/GitHub/Enterprises/Item/CodeScanning/Alerts/GetSortQueryParameterType.cs index d6cc1476..f2b3b9c0 100644 --- a/src/GitHub/Enterprises/Item/CodeScanning/Alerts/GetSortQueryParameterType.cs +++ b/src/GitHub/Enterprises/Item/CodeScanning/Alerts/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Enterprises.Item.CodeScanning.Alerts { +namespace GitHub.Enterprises.Item.CodeScanning.Alerts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Enterprises/Item/CodeScanning/CodeScanningRequestBuilder.cs b/src/GitHub/Enterprises/Item/CodeScanning/CodeScanningRequestBuilder.cs index c4af032f..47f49298 100644 --- a/src/GitHub/Enterprises/Item/CodeScanning/CodeScanningRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/CodeScanning/CodeScanningRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Enterprises.Item.CodeScanning.Alerts; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Enterprises.Item.CodeScanning { +namespace GitHub.Enterprises.Item.CodeScanning +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\code-scanning /// - public class CodeScanningRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeScanningRequestBuilder : BaseRequestBuilder { /// The alerts property - public AlertsRequestBuilder Alerts + public global::GitHub.Enterprises.Item.CodeScanning.Alerts.AlertsRequestBuilder Alerts { - get => new AlertsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.CodeScanning.Alerts.AlertsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public CodeScanningRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Enterprises/Item/Code_security_and_analysis/Code_security_and_analysisPatchRequestBody.cs b/src/GitHub/Enterprises/Item/Code_security_and_analysis/Code_security_and_analysisPatchRequestBody.cs index 6b6133ac..44adf654 100644 --- a/src/GitHub/Enterprises/Item/Code_security_and_analysis/Code_security_and_analysisPatchRequestBody.cs +++ b/src/GitHub/Enterprises/Item/Code_security_and_analysis/Code_security_and_analysisPatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Code_security_and_analysis { +namespace GitHub.Enterprises.Item.Code_security_and_analysis +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Code_security_and_analysisPatchRequestBody : IAdditionalDataHolder, IParsable + public partial class Code_security_and_analysisPatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,7 +32,7 @@ public class Code_security_and_analysisPatchRequestBody : IAdditionalDataHolder, /// Whether secret scanning push protection is automatically enabled for new repositories. For more information, see "[Protecting pushes with secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/protecting-pushes-with-secret-scanning)." public bool? SecretScanningPushProtectionEnabledForNewRepositories { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Code_security_and_analysisPatchRequestBody() { @@ -39,12 +41,12 @@ public Code_security_and_analysisPatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Code_security_and_analysisPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Code_security_and_analysis.Code_security_and_analysisPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Code_security_and_analysisPatchRequestBody(); + return new global::GitHub.Enterprises.Item.Code_security_and_analysis.Code_security_and_analysisPatchRequestBody(); } /// /// The deserialization information for the current model @@ -54,12 +56,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"advanced_security_enabled_for_new_repositories", n => { AdvancedSecurityEnabledForNewRepositories = n.GetBoolValue(); } }, - {"advanced_security_enabled_new_user_namespace_repos", n => { AdvancedSecurityEnabledNewUserNamespaceRepos = n.GetBoolValue(); } }, - {"dependabot_alerts_enabled_for_new_repositories", n => { DependabotAlertsEnabledForNewRepositories = n.GetBoolValue(); } }, - {"secret_scanning_enabled_for_new_repositories", n => { SecretScanningEnabledForNewRepositories = n.GetBoolValue(); } }, - {"secret_scanning_push_protection_custom_link", n => { SecretScanningPushProtectionCustomLink = n.GetStringValue(); } }, - {"secret_scanning_push_protection_enabled_for_new_repositories", n => { SecretScanningPushProtectionEnabledForNewRepositories = n.GetBoolValue(); } }, + { "advanced_security_enabled_for_new_repositories", n => { AdvancedSecurityEnabledForNewRepositories = n.GetBoolValue(); } }, + { "advanced_security_enabled_new_user_namespace_repos", n => { AdvancedSecurityEnabledNewUserNamespaceRepos = n.GetBoolValue(); } }, + { "dependabot_alerts_enabled_for_new_repositories", n => { DependabotAlertsEnabledForNewRepositories = n.GetBoolValue(); } }, + { "secret_scanning_enabled_for_new_repositories", n => { SecretScanningEnabledForNewRepositories = n.GetBoolValue(); } }, + { "secret_scanning_push_protection_custom_link", n => { SecretScanningPushProtectionCustomLink = n.GetStringValue(); } }, + { "secret_scanning_push_protection_enabled_for_new_repositories", n => { SecretScanningPushProtectionEnabledForNewRepositories = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Enterprises/Item/Code_security_and_analysis/Code_security_and_analysisRequestBuilder.cs b/src/GitHub/Enterprises/Item/Code_security_and_analysis/Code_security_and_analysisRequestBuilder.cs index f8cb28b5..1870a3c3 100644 --- a/src/GitHub/Enterprises/Item/Code_security_and_analysis/Code_security_and_analysisRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Code_security_and_analysis/Code_security_and_analysisRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Code_security_and_analysis { +namespace GitHub.Enterprises.Item.Code_security_and_analysis +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\code_security_and_analysis /// - public class Code_security_and_analysisRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Code_security_and_analysisRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Code_security_and_analysisRequestBuilder(Dictionary pathP { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,25 +36,25 @@ public Code_security_and_analysisRequestBuilder(string rawUrl, IRequestAdapter r /// Gets code security and analysis settings for the specified enterprise.The authenticated user must be an administrator of the enterprise in order to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, EnterpriseSecurityAnalysisSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EnterpriseSecurityAnalysisSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Updates the settings for advanced security, Dependabot alerts, secret scanning, and push protection for new repositories in an enterprise.The authenticated user must be an administrator of the enterprise to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint. @@ -61,21 +63,21 @@ public async Task GetAsync(ActionThe request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(Code_security_and_analysisPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Enterprises.Item.Code_security_and_analysis.Code_security_and_analysisPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Code_security_and_analysisPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Enterprises.Item.Code_security_and_analysis.Code_security_and_analysisPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -106,11 +108,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Code_security_and_analysisPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Enterprises.Item.Code_security_and_analysis.Code_security_and_analysisPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Code_security_and_analysisPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Enterprises.Item.Code_security_and_analysis.Code_security_and_analysisPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -123,11 +125,11 @@ public RequestInformation ToPatchRequestInformation(Code_security_and_analysisPa /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Code_security_and_analysisRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Code_security_and_analysis.Code_security_and_analysisRequestBuilder WithUrl(string rawUrl) { - return new Code_security_and_analysisRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Code_security_and_analysis.Code_security_and_analysisRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/ConsumedLicenses/ConsumedLicensesRequestBuilder.cs b/src/GitHub/Enterprises/Item/ConsumedLicenses/ConsumedLicensesRequestBuilder.cs index 24cfd70f..a7cee801 100644 --- a/src/GitHub/Enterprises/Item/ConsumedLicenses/ConsumedLicensesRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/ConsumedLicenses/ConsumedLicensesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.ConsumedLicenses { +namespace GitHub.Enterprises.Item.ConsumedLicenses +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\consumed-licenses /// - public class ConsumedLicensesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ConsumedLicensesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ConsumedLicensesRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public ConsumedLicensesRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Lists the license consumption information for all users, including those from connected servers, associated with an enterprise.The authenticated user must be an enterprise admin to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GetConsumedLicenses.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GetConsumedLicenses.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists the license consumption information for all users, including those from connected servers, associated with an enterprise.The authenticated user must be an enterprise admin to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:enterprise` scope to use this endpoint. @@ -56,11 +58,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -71,16 +73,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ConsumedLicensesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.ConsumedLicenses.ConsumedLicensesRequestBuilder WithUrl(string rawUrl) { - return new ConsumedLicensesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.ConsumedLicenses.ConsumedLicensesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the license consumption information for all users, including those from connected servers, associated with an enterprise.The authenticated user must be an enterprise admin to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:enterprise` scope to use this endpoint. /// - public class ConsumedLicensesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ConsumedLicensesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Enterprises/Item/Copilot/Billing/BillingRequestBuilder.cs b/src/GitHub/Enterprises/Item/Copilot/Billing/BillingRequestBuilder.cs index 66f12e8a..6d25052d 100644 --- a/src/GitHub/Enterprises/Item/Copilot/Billing/BillingRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Copilot/Billing/BillingRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Enterprises.Item.Copilot.Billing.Seats; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Enterprises.Item.Copilot.Billing { +namespace GitHub.Enterprises.Item.Copilot.Billing +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\copilot\billing /// - public class BillingRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class BillingRequestBuilder : BaseRequestBuilder { /// The seats property - public SeatsRequestBuilder Seats + public global::GitHub.Enterprises.Item.Copilot.Billing.Seats.SeatsRequestBuilder Seats { - get => new SeatsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Copilot.Billing.Seats.SeatsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public BillingRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Enterprises/Item/Copilot/Billing/Seats/SeatsGetResponse.cs b/src/GitHub/Enterprises/Item/Copilot/Billing/Seats/SeatsGetResponse.cs index dc342110..f97d479f 100644 --- a/src/GitHub/Enterprises/Item/Copilot/Billing/Seats/SeatsGetResponse.cs +++ b/src/GitHub/Enterprises/Item/Copilot/Billing/Seats/SeatsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Copilot.Billing.Seats { +namespace GitHub.Enterprises.Item.Copilot.Billing.Seats +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SeatsGetResponse : IAdditionalDataHolder, IParsable + public partial class SeatsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class SeatsGetResponse : IAdditionalDataHolder, IParsable /// The seats property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Seats { get; set; } + public List? Seats { get; set; } #nullable restore #else - public List Seats { get; set; } + public List Seats { get; set; } #endif /// The total number of Copilot seats the enterprise is being billed for. Users with access through multiple organizations or enterprise teams are only counted once. public int? TotalSeats { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SeatsGetResponse() { @@ -32,12 +34,12 @@ public SeatsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SeatsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Copilot.Billing.Seats.SeatsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SeatsGetResponse(); + return new global::GitHub.Enterprises.Item.Copilot.Billing.Seats.SeatsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"seats", n => { Seats = n.GetCollectionOfObjectValues(CopilotSeatDetails.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_seats", n => { TotalSeats = n.GetIntValue(); } }, + { "seats", n => { Seats = n.GetCollectionOfObjectValues(global::GitHub.Models.CopilotSeatDetails.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_seats", n => { TotalSeats = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("seats", Seats); + writer.WriteCollectionOfObjectValues("seats", Seats); writer.WriteIntValue("total_seats", TotalSeats); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Enterprises/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs b/src/GitHub/Enterprises/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs index eac01b65..7b1ad3d1 100644 --- a/src/GitHub/Enterprises/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Copilot.Billing.Seats { +namespace GitHub.Enterprises.Item.Copilot.Billing.Seats +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\copilot\billing\seats /// - public class SeatsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SeatsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public SeatsRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,31 +36,31 @@ public SeatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// > [!NOTE]> This endpoint is in beta and is subject to change.Lists all active Copilot seats across organizations or enterprise teams for an enterprise with a Copilot Business or Copilot Enterprise subscription.Users with access through multiple organizations or enterprise teams will only be counted toward `total_seats` once.For each organization or enterprise team which grants Copilot access to a user, a seat detail object will appear in the `seats` array.Only enterprise owners and billing managers can view assigned Copilot seats across their child organizations or enterprise teams.Personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, SeatsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Enterprises.Item.Copilot.Billing.Seats.SeatsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// > [!NOTE]> This endpoint is in beta and is subject to change.Lists all active Copilot seats across organizations or enterprise teams for an enterprise with a Copilot Business or Copilot Enterprise subscription.Users with access through multiple organizations or enterprise teams will only be counted toward `total_seats` once.For each organization or enterprise team which grants Copilot access to a user, a seat detail object will appear in the `seats` array.Only enterprise owners and billing managers can view assigned Copilot seats across their child organizations or enterprise teams.Personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. @@ -67,11 +69,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -82,16 +84,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SeatsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Copilot.Billing.Seats.SeatsRequestBuilder WithUrl(string rawUrl) { - return new SeatsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Copilot.Billing.Seats.SeatsRequestBuilder(rawUrl, RequestAdapter); } /// /// > [!NOTE]> This endpoint is in beta and is subject to change.Lists all active Copilot seats across organizations or enterprise teams for an enterprise with a Copilot Business or Copilot Enterprise subscription.Users with access through multiple organizations or enterprise teams will only be counted toward `total_seats` once.For each organization or enterprise team which grants Copilot access to a user, a seat detail object will appear in the `seats` array.Only enterprise owners and billing managers can view assigned Copilot seats across their child organizations or enterprise teams.Personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. /// - public class SeatsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SeatsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Enterprises/Item/Copilot/CopilotRequestBuilder.cs b/src/GitHub/Enterprises/Item/Copilot/CopilotRequestBuilder.cs index a2cd2fae..eba11fe3 100644 --- a/src/GitHub/Enterprises/Item/Copilot/CopilotRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Copilot/CopilotRequestBuilder.cs @@ -1,30 +1,32 @@ // using GitHub.Enterprises.Item.Copilot.Billing; using GitHub.Enterprises.Item.Copilot.Usage; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Enterprises.Item.Copilot { +namespace GitHub.Enterprises.Item.Copilot +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\copilot /// - public class CopilotRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CopilotRequestBuilder : BaseRequestBuilder { /// The billing property - public BillingRequestBuilder Billing + public global::GitHub.Enterprises.Item.Copilot.Billing.BillingRequestBuilder Billing { - get => new BillingRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Copilot.Billing.BillingRequestBuilder(PathParameters, RequestAdapter); } /// The usage property - public UsageRequestBuilder Usage + public global::GitHub.Enterprises.Item.Copilot.Usage.UsageRequestBuilder Usage { - get => new UsageRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Copilot.Usage.UsageRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -32,7 +34,7 @@ public CopilotRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Enterprises/Item/Copilot/Usage/UsageRequestBuilder.cs b/src/GitHub/Enterprises/Item/Copilot/Usage/UsageRequestBuilder.cs index 4a4b59de..5130d334 100644 --- a/src/GitHub/Enterprises/Item/Copilot/Usage/UsageRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Copilot/Usage/UsageRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Copilot.Usage { +namespace GitHub.Enterprises.Item.Copilot.Usage +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\copilot\usage /// - public class UsageRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsageRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public UsageRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,32 +36,32 @@ public UsageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// > [!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 all users across organizations with access to Copilot within your enterprise, 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 up to 28 days prior. 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.Only owners and billing managers can view Copilot usage metrics for the enterprise.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. /// API method documentation /// - /// A List<CopilotUsageMetrics> + /// A List<global::GitHub.Models.CopilotUsageMetrics> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CopilotUsageMetrics.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CopilotUsageMetrics.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// > [!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 all users across organizations with access to Copilot within your enterprise, 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 up to 28 days prior. 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.Only owners and billing managers can view Copilot usage metrics for the enterprise.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. @@ -68,11 +70,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -83,16 +85,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UsageRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Copilot.Usage.UsageRequestBuilder WithUrl(string rawUrl) { - return new UsageRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Copilot.Usage.UsageRequestBuilder(rawUrl, RequestAdapter); } /// /// > [!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 all users across organizations with access to Copilot within your enterprise, 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 up to 28 days prior. 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.Only owners and billing managers can view Copilot usage metrics for the enterprise.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. /// - public class UsageRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsageRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Enterprises/Item/Dependabot/Alerts/AlertsRequestBuilder.cs b/src/GitHub/Enterprises/Item/Dependabot/Alerts/AlertsRequestBuilder.cs index 02992895..a2e3d633 100644 --- a/src/GitHub/Enterprises/Item/Dependabot/Alerts/AlertsRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Dependabot/Alerts/AlertsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Dependabot.Alerts { +namespace GitHub.Enterprises.Item.Dependabot.Alerts +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\dependabot\alerts /// - public class AlertsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AlertsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AlertsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,30 +36,30 @@ public AlertsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Lists Dependabot alerts for repositories that are owned by the specified enterprise.The authenticated user must be a member of the enterprise to use this endpoint.Alerts are only returned for organizations in the enterprise for which you are an organization owner or a security manager. For more information about security managers, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. /// API method documentation /// - /// A List<DependabotAlertWithRepository> + /// A List<global::GitHub.Models.DependabotAlertWithRepository> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, DependabotAlertWithRepository.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.DependabotAlertWithRepository.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists Dependabot alerts for repositories that are owned by the specified enterprise.The authenticated user must be a member of the enterprise to use this endpoint.Alerts are only returned for organizations in the enterprise for which you are an organization owner or a security manager. For more information about security managers, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. @@ -66,11 +68,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -81,16 +83,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AlertsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Dependabot.Alerts.AlertsRequestBuilder WithUrl(string rawUrl) { - return new AlertsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Dependabot.Alerts.AlertsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists Dependabot alerts for repositories that are owned by the specified enterprise.The authenticated user must be a member of the enterprise to use this endpoint.Alerts are only returned for organizations in the enterprise for which you are an organization owner or a security manager. For more information about security managers, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. /// - public class AlertsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AlertsRequestBuilderGetQueryParameters { /// A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +117,7 @@ public class AlertsRequestBuilderGetQueryParameters #endif /// The direction to sort the results by. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Enterprises.Item.Dependabot.Alerts.GetDirectionQueryParameterType? Direction { get; set; } /// A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned.Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -146,7 +149,7 @@ public class AlertsRequestBuilderGetQueryParameters public int? PerPage { get; set; } /// The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. [QueryParameter("scope")] - public GetScopeQueryParameterType? Scope { get; set; } + public global::GitHub.Enterprises.Item.Dependabot.Alerts.GetScopeQueryParameterType? Scope { get; set; } /// A comma-separated list of severities. If specified, only alerts with these severities will be returned.Can be: `low`, `medium`, `high`, `critical` #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -159,7 +162,7 @@ public class AlertsRequestBuilderGetQueryParameters #endif /// The property by which to sort the results.`created` means when the alert was created.`updated` means when the alert's state last changed. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Enterprises.Item.Dependabot.Alerts.GetSortQueryParameterType? Sort { get; set; } /// A comma-separated list of states. If specified, only alerts with these states will be returned.Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/GitHub/Enterprises/Item/Dependabot/Alerts/GetDirectionQueryParameterType.cs b/src/GitHub/Enterprises/Item/Dependabot/Alerts/GetDirectionQueryParameterType.cs index 6e80f1f6..177d4d69 100644 --- a/src/GitHub/Enterprises/Item/Dependabot/Alerts/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Enterprises/Item/Dependabot/Alerts/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Enterprises.Item.Dependabot.Alerts { +namespace GitHub.Enterprises.Item.Dependabot.Alerts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Enterprises/Item/Dependabot/Alerts/GetScopeQueryParameterType.cs b/src/GitHub/Enterprises/Item/Dependabot/Alerts/GetScopeQueryParameterType.cs index 47b03479..b29d58ab 100644 --- a/src/GitHub/Enterprises/Item/Dependabot/Alerts/GetScopeQueryParameterType.cs +++ b/src/GitHub/Enterprises/Item/Dependabot/Alerts/GetScopeQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Enterprises.Item.Dependabot.Alerts { +namespace GitHub.Enterprises.Item.Dependabot.Alerts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetScopeQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Enterprises/Item/Dependabot/Alerts/GetSortQueryParameterType.cs b/src/GitHub/Enterprises/Item/Dependabot/Alerts/GetSortQueryParameterType.cs index f0eb9ec3..17950afb 100644 --- a/src/GitHub/Enterprises/Item/Dependabot/Alerts/GetSortQueryParameterType.cs +++ b/src/GitHub/Enterprises/Item/Dependabot/Alerts/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Enterprises.Item.Dependabot.Alerts { +namespace GitHub.Enterprises.Item.Dependabot.Alerts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Enterprises/Item/Dependabot/DependabotRequestBuilder.cs b/src/GitHub/Enterprises/Item/Dependabot/DependabotRequestBuilder.cs index 6cf75552..61a67177 100644 --- a/src/GitHub/Enterprises/Item/Dependabot/DependabotRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Dependabot/DependabotRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Enterprises.Item.Dependabot.Alerts; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Enterprises.Item.Dependabot { +namespace GitHub.Enterprises.Item.Dependabot +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\dependabot /// - public class DependabotRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DependabotRequestBuilder : BaseRequestBuilder { /// The alerts property - public AlertsRequestBuilder Alerts + public global::GitHub.Enterprises.Item.Dependabot.Alerts.AlertsRequestBuilder Alerts { - get => new AlertsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Dependabot.Alerts.AlertsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public DependabotRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Enterprises/Item/Item/Item/WithEnablementItemRequestBuilder.cs b/src/GitHub/Enterprises/Item/Item/Item/WithEnablementItemRequestBuilder.cs index a677c5bb..6bb3502b 100644 --- a/src/GitHub/Enterprises/Item/Item/Item/WithEnablementItemRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Item/Item/WithEnablementItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Item.Item { +namespace GitHub.Enterprises.Item.Item.Item +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\{security_product}\{enablement} /// - public class WithEnablementItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithEnablementItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithEnablementItemRequestBuilder(Dictionary pathParameter { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public WithEnablementItemRequestBuilder(string rawUrl, IRequestAdapter requestAd /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -49,7 +51,7 @@ public async Task PostAsync(Action> var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -75,11 +77,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithEnablementItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Item.Item.WithEnablementItemRequestBuilder WithUrl(string rawUrl) { - return new WithEnablementItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Item.Item.WithEnablementItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Item/WithSecurity_productItemRequestBuilder.cs b/src/GitHub/Enterprises/Item/Item/WithSecurity_productItemRequestBuilder.cs index 1403df49..0f450718 100644 --- a/src/GitHub/Enterprises/Item/Item/WithSecurity_productItemRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Item/WithSecurity_productItemRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Enterprises.Item.Item.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Enterprises.Item.Item { +namespace GitHub.Enterprises.Item.Item +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\{security_product} /// - public class WithSecurity_productItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithSecurity_productItemRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.enterprises.item.item.item collection /// The action to take.`enable_all` means to enable the specified security feature for all repositories in the enterprise.`disable_all` means to disable the specified security feature for all repositories in the enterprise. - /// A - public WithEnablementItemRequestBuilder this[string position] + /// A + public global::GitHub.Enterprises.Item.Item.Item.WithEnablementItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("enablement", position); - return new WithEnablementItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Enterprises.Item.Item.Item.WithEnablementItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public WithSecurity_productItemRequestBuilder(Dictionary pathPar { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Enterprises/Item/LicenseSyncStatus/LicenseSyncStatusRequestBuilder.cs b/src/GitHub/Enterprises/Item/LicenseSyncStatus/LicenseSyncStatusRequestBuilder.cs index 3767db30..325ef2cf 100644 --- a/src/GitHub/Enterprises/Item/LicenseSyncStatus/LicenseSyncStatusRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/LicenseSyncStatus/LicenseSyncStatusRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.LicenseSyncStatus { +namespace GitHub.Enterprises.Item.LicenseSyncStatus +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\license-sync-status /// - public class LicenseSyncStatusRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class LicenseSyncStatusRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public LicenseSyncStatusRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public LicenseSyncStatusRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Gets information about the status of a license sync job for an enterprise.The authenticated user must be an enterprise admin to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:enterprise` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GetLicenseSyncStatus.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GetLicenseSyncStatus.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets information about the status of a license sync job for an enterprise.The authenticated user must be an enterprise admin to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:enterprise` scope to use this endpoint. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public LicenseSyncStatusRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.LicenseSyncStatus.LicenseSyncStatusRequestBuilder WithUrl(string rawUrl) { - return new LicenseSyncStatusRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.LicenseSyncStatus.LicenseSyncStatusRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs b/src/GitHub/Enterprises/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs index 2d15dd74..01d00ecf 100644 --- a/src/GitHub/Enterprises/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.SecretScanning.Alerts { +namespace GitHub.Enterprises.Item.SecretScanning.Alerts +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\secret-scanning\alerts /// - public class AlertsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AlertsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AlertsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,28 +36,28 @@ public AlertsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Lists secret scanning alerts for eligible repositories in an enterprise, from newest to oldest.To use this endpoint, you must be a member of the enterprise, and you must use an access token with the `repo` scope or `security_events` scope. Alerts are only returned for organizations in the enterprise for which you are an organization owner or a [security manager](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization), or for repositories owned by enterprise managed users. /// API method documentation /// - /// A List<OrganizationSecretScanningAlert> + /// A List<global::GitHub.Models.OrganizationSecretScanningAlert> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 503 status code + /// When receiving a 404 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"503", Alerts503Error.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.Alerts503Error.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, OrganizationSecretScanningAlert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.OrganizationSecretScanningAlert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists secret scanning alerts for eligible repositories in an enterprise, from newest to oldest.To use this endpoint, you must be a member of the enterprise, and you must use an access token with the `repo` scope or `security_events` scope. Alerts are only returned for organizations in the enterprise for which you are an organization owner or a [security manager](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization), or for repositories owned by enterprise managed users. @@ -64,11 +66,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -79,16 +81,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AlertsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.SecretScanning.Alerts.AlertsRequestBuilder WithUrl(string rawUrl) { - return new AlertsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.SecretScanning.Alerts.AlertsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists secret scanning alerts for eligible repositories in an enterprise, from newest to oldest.To use this endpoint, you must be a member of the enterprise, and you must use an access token with the `repo` scope or `security_events` scope. Alerts are only returned for organizations in the enterprise for which you are an organization owner or a [security manager](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization), or for repositories owned by enterprise managed users. /// - public class AlertsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AlertsRequestBuilderGetQueryParameters { /// A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -112,7 +115,7 @@ public class AlertsRequestBuilderGetQueryParameters #endif /// The direction to sort the results by. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Enterprises.Item.SecretScanning.Alerts.GetDirectionQueryParameterType? Direction { get; set; } /// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("per_page")] public int? PerPage { get; set; } @@ -138,10 +141,10 @@ public class AlertsRequestBuilderGetQueryParameters #endif /// The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Enterprises.Item.SecretScanning.Alerts.GetSortQueryParameterType? Sort { get; set; } /// Set to `open` or `resolved` to only list secret scanning alerts in a specific state. [QueryParameter("state")] - public GetStateQueryParameterType? State { get; set; } + public global::GitHub.Enterprises.Item.SecretScanning.Alerts.GetStateQueryParameterType? State { get; set; } /// A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are `active`, `inactive`, and `unknown`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/GitHub/Enterprises/Item/SecretScanning/Alerts/GetDirectionQueryParameterType.cs b/src/GitHub/Enterprises/Item/SecretScanning/Alerts/GetDirectionQueryParameterType.cs index 713905fc..65d3a63f 100644 --- a/src/GitHub/Enterprises/Item/SecretScanning/Alerts/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Enterprises/Item/SecretScanning/Alerts/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Enterprises.Item.SecretScanning.Alerts { +namespace GitHub.Enterprises.Item.SecretScanning.Alerts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Enterprises/Item/SecretScanning/Alerts/GetSortQueryParameterType.cs b/src/GitHub/Enterprises/Item/SecretScanning/Alerts/GetSortQueryParameterType.cs index ea693796..8902f94d 100644 --- a/src/GitHub/Enterprises/Item/SecretScanning/Alerts/GetSortQueryParameterType.cs +++ b/src/GitHub/Enterprises/Item/SecretScanning/Alerts/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Enterprises.Item.SecretScanning.Alerts { +namespace GitHub.Enterprises.Item.SecretScanning.Alerts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Enterprises/Item/SecretScanning/Alerts/GetStateQueryParameterType.cs b/src/GitHub/Enterprises/Item/SecretScanning/Alerts/GetStateQueryParameterType.cs index 5849e8aa..00be4252 100644 --- a/src/GitHub/Enterprises/Item/SecretScanning/Alerts/GetStateQueryParameterType.cs +++ b/src/GitHub/Enterprises/Item/SecretScanning/Alerts/GetStateQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Enterprises.Item.SecretScanning.Alerts { +namespace GitHub.Enterprises.Item.SecretScanning.Alerts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetStateQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Enterprises/Item/SecretScanning/SecretScanningRequestBuilder.cs b/src/GitHub/Enterprises/Item/SecretScanning/SecretScanningRequestBuilder.cs index e9ea24e0..1e4a04bf 100644 --- a/src/GitHub/Enterprises/Item/SecretScanning/SecretScanningRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/SecretScanning/SecretScanningRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Enterprises.Item.SecretScanning.Alerts; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Enterprises.Item.SecretScanning { +namespace GitHub.Enterprises.Item.SecretScanning +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\secret-scanning /// - public class SecretScanningRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretScanningRequestBuilder : BaseRequestBuilder { /// The alerts property - public AlertsRequestBuilder Alerts + public global::GitHub.Enterprises.Item.SecretScanning.Alerts.AlertsRequestBuilder Alerts { - get => new AlertsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.SecretScanning.Alerts.AlertsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public SecretScanningRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Enterprises/Item/Settings/Billing/Actions/ActionsRequestBuilder.cs b/src/GitHub/Enterprises/Item/Settings/Billing/Actions/ActionsRequestBuilder.cs index 79238422..81513d5f 100644 --- a/src/GitHub/Enterprises/Item/Settings/Billing/Actions/ActionsRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Settings/Billing/Actions/ActionsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Settings.Billing.Actions { +namespace GitHub.Enterprises.Item.Settings.Billing.Actions +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\settings\billing\actions /// - public class ActionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ActionsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ActionsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public ActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Gets the summary of the free and paid GitHub Actions minutes used.Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)".The authenticated user must be an enterprise admin. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ActionsBillingUsage.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsBillingUsage.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets the summary of the free and paid GitHub Actions minutes used.Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)".The authenticated user must be an enterprise admin. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ActionsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Settings.Billing.Actions.ActionsRequestBuilder WithUrl(string rawUrl) { - return new ActionsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Settings.Billing.Actions.ActionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Settings/Billing/AdvancedSecurity/AdvancedSecurityRequestBuilder.cs b/src/GitHub/Enterprises/Item/Settings/Billing/AdvancedSecurity/AdvancedSecurityRequestBuilder.cs index 137f613e..ddaa4fef 100644 --- a/src/GitHub/Enterprises/Item/Settings/Billing/AdvancedSecurity/AdvancedSecurityRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Settings/Billing/AdvancedSecurity/AdvancedSecurityRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Settings.Billing.AdvancedSecurity { +namespace GitHub.Enterprises.Item.Settings.Billing.AdvancedSecurity +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\settings\billing\advanced-security /// - public class AdvancedSecurityRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AdvancedSecurityRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AdvancedSecurityRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public AdvancedSecurityRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Gets the GitHub Advanced Security active committers for an enterprise per repository.Each distinct user login across all repositories is counted as a single Advanced Security seat, so the `total_advanced_security_committers` is not the sum of active_users for each repository.The total number of repositories with committer information is tracked by the `total_count` field. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, AdvancedSecurityActiveCommitters.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.AdvancedSecurityActiveCommitters.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets the GitHub Advanced Security active committers for an enterprise per repository.Each distinct user login across all repositories is counted as a single Advanced Security seat, so the `total_advanced_security_committers` is not the sum of active_users for each repository.The total number of repositories with committer information is tracked by the `total_count` field. @@ -56,11 +58,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -71,16 +73,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AdvancedSecurityRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Settings.Billing.AdvancedSecurity.AdvancedSecurityRequestBuilder WithUrl(string rawUrl) { - return new AdvancedSecurityRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Settings.Billing.AdvancedSecurity.AdvancedSecurityRequestBuilder(rawUrl, RequestAdapter); } /// /// Gets the GitHub Advanced Security active committers for an enterprise per repository.Each distinct user login across all repositories is counted as a single Advanced Security seat, so the `total_advanced_security_committers` is not the sum of active_users for each repository.The total number of repositories with committer information is tracked by the `total_count` field. /// - public class AdvancedSecurityRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AdvancedSecurityRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Enterprises/Item/Settings/Billing/BillingRequestBuilder.cs b/src/GitHub/Enterprises/Item/Settings/Billing/BillingRequestBuilder.cs index 58ca975e..d875c0d5 100644 --- a/src/GitHub/Enterprises/Item/Settings/Billing/BillingRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Settings/Billing/BillingRequestBuilder.cs @@ -5,50 +5,52 @@ using GitHub.Enterprises.Item.Settings.Billing.Packages; using GitHub.Enterprises.Item.Settings.Billing.SharedStorage; using GitHub.Enterprises.Item.Settings.Billing.Usage; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Enterprises.Item.Settings.Billing { +namespace GitHub.Enterprises.Item.Settings.Billing +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\settings\billing /// - public class BillingRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class BillingRequestBuilder : BaseRequestBuilder { /// The actions property - public ActionsRequestBuilder Actions + public global::GitHub.Enterprises.Item.Settings.Billing.Actions.ActionsRequestBuilder Actions { - get => new ActionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Settings.Billing.Actions.ActionsRequestBuilder(PathParameters, RequestAdapter); } /// The advancedSecurity property - public AdvancedSecurityRequestBuilder AdvancedSecurity + public global::GitHub.Enterprises.Item.Settings.Billing.AdvancedSecurity.AdvancedSecurityRequestBuilder AdvancedSecurity { - get => new AdvancedSecurityRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Settings.Billing.AdvancedSecurity.AdvancedSecurityRequestBuilder(PathParameters, RequestAdapter); } /// The costCenters property - public CostCentersRequestBuilder CostCenters + public global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.CostCentersRequestBuilder CostCenters { - get => new CostCentersRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.CostCentersRequestBuilder(PathParameters, RequestAdapter); } /// The packages property - public PackagesRequestBuilder Packages + public global::GitHub.Enterprises.Item.Settings.Billing.Packages.PackagesRequestBuilder Packages { - get => new PackagesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Settings.Billing.Packages.PackagesRequestBuilder(PathParameters, RequestAdapter); } /// The sharedStorage property - public SharedStorageRequestBuilder SharedStorage + public global::GitHub.Enterprises.Item.Settings.Billing.SharedStorage.SharedStorageRequestBuilder SharedStorage { - get => new SharedStorageRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Settings.Billing.SharedStorage.SharedStorageRequestBuilder(PathParameters, RequestAdapter); } /// The usage property - public UsageRequestBuilder Usage + public global::GitHub.Enterprises.Item.Settings.Billing.Usage.UsageRequestBuilder Usage { - get => new UsageRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Settings.Billing.Usage.UsageRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -56,7 +58,7 @@ public BillingRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/CostCentersRequestBuilder.cs b/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/CostCentersRequestBuilder.cs index 4be1d114..348056a9 100644 --- a/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/CostCentersRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/CostCentersRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Settings.Billing.CostCenters { +namespace GitHub.Enterprises.Item.Settings.Billing.CostCenters +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\settings\billing\cost-centers /// - public class CostCentersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CostCentersRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.enterprises.item.settings.billing.costCenters.item collection /// The ID corresponding to the cost center. - /// A - public WithCost_center_ItemRequestBuilder this[string position] + /// A + public global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.WithCost_center_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("cost_center_id", position); - return new WithCost_center_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.WithCost_center_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public CostCentersRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,31 +49,31 @@ public CostCentersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Gets a list of all the cost centers for an enterprise. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 500 status code - /// When receiving a 503 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 500 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, - {"503", GetAllCostCenters503Error.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.GetAllCostCenters503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GetAllCostCenters.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GetAllCostCenters.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets a list of all the cost centers for an enterprise. @@ -95,11 +97,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CostCentersRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.CostCentersRequestBuilder WithUrl(string rawUrl) { - return new CostCentersRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.CostCentersRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/Resource/ResourceDeleteRequestBody.cs b/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/Resource/ResourceDeleteRequestBody.cs index b65f0d08..96bb4c05 100644 --- a/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/Resource/ResourceDeleteRequestBody.cs +++ b/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/Resource/ResourceDeleteRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource { +namespace GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ResourceDeleteRequestBody : IAdditionalDataHolder, IParsable + public partial class ResourceDeleteRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class ResourceDeleteRequestBody : IAdditionalDataHolder, IParsable public List Users { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ResourceDeleteRequestBody() { @@ -29,12 +31,12 @@ public ResourceDeleteRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ResourceDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourceDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ResourceDeleteRequestBody(); + return new global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourceDeleteRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"users", n => { Users = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "users", n => { Users = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/Resource/ResourceDeleteResponse.cs b/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/Resource/ResourceDeleteResponse.cs index 164c0f0a..836a8402 100644 --- a/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/Resource/ResourceDeleteResponse.cs +++ b/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/Resource/ResourceDeleteResponse.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource { +namespace GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ResourceDeleteResponse : IAdditionalDataHolder, IParsable + public partial class ResourceDeleteResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class ResourceDeleteResponse : IAdditionalDataHolder, IParsable public string Message { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ResourceDeleteResponse() { @@ -29,12 +31,12 @@ public ResourceDeleteResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ResourceDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourceDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ResourceDeleteResponse(); + return new global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourceDeleteResponse(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"message", n => { Message = n.GetStringValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/Resource/ResourcePostRequestBody.cs b/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/Resource/ResourcePostRequestBody.cs index 54fc739b..dc6009cd 100644 --- a/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/Resource/ResourcePostRequestBody.cs +++ b/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/Resource/ResourcePostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource { +namespace GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ResourcePostRequestBody : IAdditionalDataHolder, IParsable + public partial class ResourcePostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class ResourcePostRequestBody : IAdditionalDataHolder, IParsable public List Users { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ResourcePostRequestBody() { @@ -29,12 +31,12 @@ public ResourcePostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ResourcePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourcePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ResourcePostRequestBody(); + return new global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourcePostRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"users", n => { Users = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "users", n => { Users = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/Resource/ResourcePostResponse.cs b/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/Resource/ResourcePostResponse.cs index 8a968432..868a3b8e 100644 --- a/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/Resource/ResourcePostResponse.cs +++ b/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/Resource/ResourcePostResponse.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource { +namespace GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ResourcePostResponse : IAdditionalDataHolder, IParsable + public partial class ResourcePostResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class ResourcePostResponse : IAdditionalDataHolder, IParsable public string Message { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ResourcePostResponse() { @@ -29,12 +31,12 @@ public ResourcePostResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ResourcePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourcePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ResourcePostResponse(); + return new global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourcePostResponse(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"message", n => { Message = n.GetStringValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/Resource/ResourceRequestBuilder.cs b/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/Resource/ResourceRequestBuilder.cs index 26756a90..b58ba140 100644 --- a/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/Resource/ResourceRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/Resource/ResourceRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource { +namespace GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\settings\billing\cost-centers\{cost_center_id}\resource /// - public class ResourceRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ResourceRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ResourceRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,67 +36,67 @@ public ResourceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Remove users from a cost center.The usage for the users will no longer be charged to the cost center's budget. The authenticated user must be an enterprise admin in order to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 500 status code - /// When receiving a 503 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 500 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(ResourceDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourceDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(ResourceDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourceDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, - {"503", Resource503Error.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.Resource503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ResourceDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourceDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Adds users to a cost center.The usage for the users will be charged to the cost center's budget. The authenticated user must be an enterprise admin in order to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 409 status code - /// When receiving a 500 status code - /// When receiving a 503 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 409 status code + /// When receiving a 500 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ResourcePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourcePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(ResourcePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourcePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"409", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, - {"503", Resource503Error.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.Resource503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ResourcePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourcePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Remove users from a cost center.The usage for the users will no longer be charged to the cost center's budget. The authenticated user must be an enterprise admin in order to use this endpoint. @@ -104,11 +106,11 @@ public async Task PostAsync(ResourcePostRequestBody body, /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(ResourceDeleteRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourceDeleteRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(ResourceDeleteRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourceDeleteRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -126,11 +128,11 @@ public RequestInformation ToDeleteRequestInformation(ResourceDeleteRequestBody b /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ResourcePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourcePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ResourcePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourcePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -143,11 +145,11 @@ public RequestInformation ToPostRequestInformation(ResourcePostRequestBody body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ResourceRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourceRequestBuilder WithUrl(string rawUrl) { - return new ResourceRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourceRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/WithCost_center_ItemRequestBuilder.cs b/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/WithCost_center_ItemRequestBuilder.cs index f5b2059e..4fce35b5 100644 --- a/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/WithCost_center_ItemRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Settings/Billing/CostCenters/Item/WithCost_center_ItemRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item { +namespace GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\settings\billing\cost-centers\{cost_center_id} /// - public class WithCost_center_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithCost_center_ItemRequestBuilder : BaseRequestBuilder { /// The resource property - public ResourceRequestBuilder Resource + public global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourceRequestBuilder Resource { - get => new ResourceRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Settings.Billing.CostCenters.Item.Resource.ResourceRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public WithCost_center_ItemRequestBuilder(Dictionary pathParamet { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Enterprises/Item/Settings/Billing/Packages/PackagesRequestBuilder.cs b/src/GitHub/Enterprises/Item/Settings/Billing/Packages/PackagesRequestBuilder.cs index 9f56519a..32d0d6b1 100644 --- a/src/GitHub/Enterprises/Item/Settings/Billing/Packages/PackagesRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Settings/Billing/Packages/PackagesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Settings.Billing.Packages { +namespace GitHub.Enterprises.Item.Settings.Billing.Packages +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\settings\billing\packages /// - public class PackagesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PackagesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public PackagesRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public PackagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Gets the free and paid storage used for GitHub Packages in gigabytes.Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)."The authenticated user must be an enterprise admin. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, PackagesBillingUsage.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.PackagesBillingUsage.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets the free and paid storage used for GitHub Packages in gigabytes.Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)."The authenticated user must be an enterprise admin. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PackagesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Settings.Billing.Packages.PackagesRequestBuilder WithUrl(string rawUrl) { - return new PackagesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Settings.Billing.Packages.PackagesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Settings/Billing/SharedStorage/SharedStorageRequestBuilder.cs b/src/GitHub/Enterprises/Item/Settings/Billing/SharedStorage/SharedStorageRequestBuilder.cs index 862f477e..f4153b82 100644 --- a/src/GitHub/Enterprises/Item/Settings/Billing/SharedStorage/SharedStorageRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Settings/Billing/SharedStorage/SharedStorageRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Settings.Billing.SharedStorage { +namespace GitHub.Enterprises.Item.Settings.Billing.SharedStorage +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\settings\billing\shared-storage /// - public class SharedStorageRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SharedStorageRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public SharedStorageRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public SharedStorageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Gets the estimated paid and estimated total storage used for GitHub Actions and GitHub Packages.Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)."The authenticated user must be an enterprise admin. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CombinedBillingUsage.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CombinedBillingUsage.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets the estimated paid and estimated total storage used for GitHub Actions and GitHub Packages.Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)."The authenticated user must be an enterprise admin. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SharedStorageRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Settings.Billing.SharedStorage.SharedStorageRequestBuilder WithUrl(string rawUrl) { - return new SharedStorageRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Settings.Billing.SharedStorage.SharedStorageRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Enterprises/Item/Settings/Billing/Usage/UsageRequestBuilder.cs b/src/GitHub/Enterprises/Item/Settings/Billing/Usage/UsageRequestBuilder.cs index 3d214896..de598bee 100644 --- a/src/GitHub/Enterprises/Item/Settings/Billing/Usage/UsageRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Settings/Billing/Usage/UsageRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Settings.Billing.Usage { +namespace GitHub.Enterprises.Item.Settings.Billing.Usage +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\settings\billing\usage /// - public class UsageRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsageRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public UsageRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,31 +36,31 @@ public UsageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Gets a report of the total usage for an enterprise. To use this endpoint, you must be an administrator or billing manager of the enterprise.**Note:** This endpoint is only available to enterprises with access to the enhanced billing platform. For more information, see "[About the enhanced billing platform for enterprises](https://docs.github.com/enterprise-cloud@latest//billing/using-the-enhanced-billing-platform-for-enterprises/about-the-enhanced-billing-platform-for-enterprises#how-do-i-know-if-i-can-access-the-enhanced-billing-platform)." /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 500 status code - /// When receiving a 503 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 500 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, - {"503", BillingUsageReport503Error.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.BillingUsageReport503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, BillingUsageReport.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.BillingUsageReport.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets a report of the total usage for an enterprise. To use this endpoint, you must be an administrator or billing manager of the enterprise.**Note:** This endpoint is only available to enterprises with access to the enhanced billing platform. For more information, see "[About the enhanced billing platform for enterprises](https://docs.github.com/enterprise-cloud@latest//billing/using-the-enhanced-billing-platform-for-enterprises/about-the-enhanced-billing-platform-for-enterprises#how-do-i-know-if-i-can-access-the-enhanced-billing-platform)." @@ -67,11 +69,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -82,16 +84,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UsageRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Settings.Billing.Usage.UsageRequestBuilder WithUrl(string rawUrl) { - return new UsageRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Settings.Billing.Usage.UsageRequestBuilder(rawUrl, RequestAdapter); } /// /// Gets a report of the total usage for an enterprise. To use this endpoint, you must be an administrator or billing manager of the enterprise.**Note:** This endpoint is only available to enterprises with access to the enhanced billing platform. For more information, see "[About the enhanced billing platform for enterprises](https://docs.github.com/enterprise-cloud@latest//billing/using-the-enhanced-billing-platform-for-enterprises/about-the-enhanced-billing-platform-for-enterprises#how-do-i-know-if-i-can-access-the-enhanced-billing-platform)." /// - public class UsageRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsageRequestBuilderGetQueryParameters { /// The ID corresponding to a cost center. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Enterprises/Item/Settings/SettingsRequestBuilder.cs b/src/GitHub/Enterprises/Item/Settings/SettingsRequestBuilder.cs index bdf383d7..b5832145 100644 --- a/src/GitHub/Enterprises/Item/Settings/SettingsRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Settings/SettingsRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Enterprises.Item.Settings.Billing; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Enterprises.Item.Settings { +namespace GitHub.Enterprises.Item.Settings +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\settings /// - public class SettingsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SettingsRequestBuilder : BaseRequestBuilder { /// The billing property - public BillingRequestBuilder Billing + public global::GitHub.Enterprises.Item.Settings.Billing.BillingRequestBuilder Billing { - get => new BillingRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Settings.Billing.BillingRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public SettingsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Enterprises/Item/Team/Item/Copilot/CopilotRequestBuilder.cs b/src/GitHub/Enterprises/Item/Team/Item/Copilot/CopilotRequestBuilder.cs index e0d9e97d..1c1ab432 100644 --- a/src/GitHub/Enterprises/Item/Team/Item/Copilot/CopilotRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Team/Item/Copilot/CopilotRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Enterprises.Item.Team.Item.Copilot.Usage; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Enterprises.Item.Team.Item.Copilot { +namespace GitHub.Enterprises.Item.Team.Item.Copilot +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\team\{team_slug}\copilot /// - public class CopilotRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CopilotRequestBuilder : BaseRequestBuilder { /// The usage property - public UsageRequestBuilder Usage + public global::GitHub.Enterprises.Item.Team.Item.Copilot.Usage.UsageRequestBuilder Usage { - get => new UsageRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Team.Item.Copilot.Usage.UsageRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public CopilotRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Enterprises/Item/Team/Item/Copilot/Usage/UsageRequestBuilder.cs b/src/GitHub/Enterprises/Item/Team/Item/Copilot/Usage/UsageRequestBuilder.cs index 90d219bd..6ff3676d 100644 --- a/src/GitHub/Enterprises/Item/Team/Item/Copilot/Usage/UsageRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Team/Item/Copilot/Usage/UsageRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Enterprises.Item.Team.Item.Copilot.Usage { +namespace GitHub.Enterprises.Item.Team.Item.Copilot.Usage +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\team\{team_slug}\copilot\usage /// - public class UsageRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsageRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public UsageRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,32 +36,32 @@ public UsageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// > [!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 an enterprise 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 up to 28 days prior. 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 enterprise team had five or more members with active Copilot licenses, as evaluated at the end of that day.Owners and billing managers for the enterprise that contains the enterprise team can view Copilot usage metrics for the enterprise team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. /// API method documentation /// - /// A List<CopilotUsageMetrics> + /// A List<global::GitHub.Models.CopilotUsageMetrics> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CopilotUsageMetrics.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CopilotUsageMetrics.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// > [!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 an enterprise 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 up to 28 days prior. 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 enterprise team had five or more members with active Copilot licenses, as evaluated at the end of that day.Owners and billing managers for the enterprise that contains the enterprise team can view Copilot usage metrics for the enterprise team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. @@ -68,11 +70,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -83,16 +85,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UsageRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Enterprises.Item.Team.Item.Copilot.Usage.UsageRequestBuilder WithUrl(string rawUrl) { - return new UsageRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Enterprises.Item.Team.Item.Copilot.Usage.UsageRequestBuilder(rawUrl, RequestAdapter); } /// /// > [!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 an enterprise 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 up to 28 days prior. 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 enterprise team had five or more members with active Copilot licenses, as evaluated at the end of that day.Owners and billing managers for the enterprise that contains the enterprise team can view Copilot usage metrics for the enterprise team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. /// - public class UsageRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsageRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Enterprises/Item/Team/Item/WithTeam_slugItemRequestBuilder.cs b/src/GitHub/Enterprises/Item/Team/Item/WithTeam_slugItemRequestBuilder.cs index 2f3728a0..9f80652d 100644 --- a/src/GitHub/Enterprises/Item/Team/Item/WithTeam_slugItemRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Team/Item/WithTeam_slugItemRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Enterprises.Item.Team.Item.Copilot; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Enterprises.Item.Team.Item { +namespace GitHub.Enterprises.Item.Team.Item +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\team\{team_slug} /// - public class WithTeam_slugItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithTeam_slugItemRequestBuilder : BaseRequestBuilder { /// The copilot property - public CopilotRequestBuilder Copilot + public global::GitHub.Enterprises.Item.Team.Item.Copilot.CopilotRequestBuilder Copilot { - get => new CopilotRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Team.Item.Copilot.CopilotRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public WithTeam_slugItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Enterprises/Item/Team/TeamRequestBuilder.cs b/src/GitHub/Enterprises/Item/Team/TeamRequestBuilder.cs index 3b939a79..02577b20 100644 --- a/src/GitHub/Enterprises/Item/Team/TeamRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Team/TeamRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Enterprises.Item.Team.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Enterprises.Item.Team { +namespace GitHub.Enterprises.Item.Team +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise}\team /// - public class TeamRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.enterprises.item.team.item collection /// The slug of the team name. - /// A - public WithTeam_slugItemRequestBuilder this[string position] + /// A + public global::GitHub.Enterprises.Item.Team.Item.WithTeam_slugItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("team_slug", position); - return new WithTeam_slugItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Enterprises.Item.Team.Item.WithTeam_slugItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public TeamRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Enterprises/Item/WithEnterpriseItemRequestBuilder.cs b/src/GitHub/Enterprises/Item/WithEnterpriseItemRequestBuilder.cs index 085cfd50..72ee6d82 100644 --- a/src/GitHub/Enterprises/Item/WithEnterpriseItemRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/WithEnterpriseItemRequestBuilder.cs @@ -12,92 +12,94 @@ using GitHub.Enterprises.Item.SecretScanning; using GitHub.Enterprises.Item.Settings; using GitHub.Enterprises.Item.Team; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Enterprises.Item { +namespace GitHub.Enterprises.Item +{ /// /// Builds and executes requests for operations under \enterprises\{enterprise} /// - public class WithEnterpriseItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithEnterpriseItemRequestBuilder : BaseRequestBuilder { /// The actions property - public ActionsRequestBuilder Actions + public global::GitHub.Enterprises.Item.Actions.ActionsRequestBuilder Actions { - get => new ActionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Actions.ActionsRequestBuilder(PathParameters, RequestAdapter); } /// The announcement property - public AnnouncementRequestBuilder Announcement + public global::GitHub.Enterprises.Item.Announcement.AnnouncementRequestBuilder Announcement { - get => new AnnouncementRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Announcement.AnnouncementRequestBuilder(PathParameters, RequestAdapter); } /// The auditLog property - public AuditLogRequestBuilder AuditLog + public global::GitHub.Enterprises.Item.AuditLog.AuditLogRequestBuilder AuditLog { - get => new AuditLogRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.AuditLog.AuditLogRequestBuilder(PathParameters, RequestAdapter); } /// The code_security_and_analysis property - public Code_security_and_analysisRequestBuilder Code_security_and_analysis + public global::GitHub.Enterprises.Item.Code_security_and_analysis.Code_security_and_analysisRequestBuilder Code_security_and_analysis { - get => new Code_security_and_analysisRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Code_security_and_analysis.Code_security_and_analysisRequestBuilder(PathParameters, RequestAdapter); } /// The codeScanning property - public CodeScanningRequestBuilder CodeScanning + public global::GitHub.Enterprises.Item.CodeScanning.CodeScanningRequestBuilder CodeScanning { - get => new CodeScanningRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.CodeScanning.CodeScanningRequestBuilder(PathParameters, RequestAdapter); } /// The consumedLicenses property - public ConsumedLicensesRequestBuilder ConsumedLicenses + public global::GitHub.Enterprises.Item.ConsumedLicenses.ConsumedLicensesRequestBuilder ConsumedLicenses { - get => new ConsumedLicensesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.ConsumedLicenses.ConsumedLicensesRequestBuilder(PathParameters, RequestAdapter); } /// The copilot property - public CopilotRequestBuilder Copilot + public global::GitHub.Enterprises.Item.Copilot.CopilotRequestBuilder Copilot { - get => new CopilotRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Copilot.CopilotRequestBuilder(PathParameters, RequestAdapter); } /// The dependabot property - public DependabotRequestBuilder Dependabot + public global::GitHub.Enterprises.Item.Dependabot.DependabotRequestBuilder Dependabot { - get => new DependabotRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Dependabot.DependabotRequestBuilder(PathParameters, RequestAdapter); } /// The licenseSyncStatus property - public LicenseSyncStatusRequestBuilder LicenseSyncStatus + public global::GitHub.Enterprises.Item.LicenseSyncStatus.LicenseSyncStatusRequestBuilder LicenseSyncStatus { - get => new LicenseSyncStatusRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.LicenseSyncStatus.LicenseSyncStatusRequestBuilder(PathParameters, RequestAdapter); } /// The secretScanning property - public SecretScanningRequestBuilder SecretScanning + public global::GitHub.Enterprises.Item.SecretScanning.SecretScanningRequestBuilder SecretScanning { - get => new SecretScanningRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.SecretScanning.SecretScanningRequestBuilder(PathParameters, RequestAdapter); } /// The settings property - public SettingsRequestBuilder Settings + public global::GitHub.Enterprises.Item.Settings.SettingsRequestBuilder Settings { - get => new SettingsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Settings.SettingsRequestBuilder(PathParameters, RequestAdapter); } /// The team property - public TeamRequestBuilder Team + public global::GitHub.Enterprises.Item.Team.TeamRequestBuilder Team { - get => new TeamRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.Item.Team.TeamRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.enterprises.item.item collection /// The security feature to enable or disable. - /// A - public WithSecurity_productItemRequestBuilder this[string position] + /// A + public global::GitHub.Enterprises.Item.Item.WithSecurity_productItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("security_product", position); - return new WithSecurity_productItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Enterprises.Item.Item.WithSecurity_productItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -105,7 +107,7 @@ public WithEnterpriseItemRequestBuilder(Dictionary pathParameter { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Events/EventsRequestBuilder.cs b/src/GitHub/Events/EventsRequestBuilder.cs index c9b33189..0ebd0f66 100644 --- a/src/GitHub/Events/EventsRequestBuilder.cs +++ b/src/GitHub/Events/EventsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Events { +namespace GitHub.Events +{ /// /// Builds and executes requests for operations under \events /// - public class EventsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EventsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public EventsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,28 +36,28 @@ public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. /// API method documentation /// - /// A List<Event> + /// A List<global::GitHub.Models.Event> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 503 status code + /// When receiving a 403 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"503", Events503Error.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.Events503Error.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. @@ -64,11 +66,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -79,16 +81,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public EventsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Events.EventsRequestBuilder WithUrl(string rawUrl) { - return new EventsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Events.EventsRequestBuilder(rawUrl, RequestAdapter); } /// /// > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. /// - public class EventsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EventsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Feeds/FeedsRequestBuilder.cs b/src/GitHub/Feeds/FeedsRequestBuilder.cs index 3b076800..339486f3 100644 --- a/src/GitHub/Feeds/FeedsRequestBuilder.cs +++ b/src/GitHub/Feeds/FeedsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Feeds { +namespace GitHub.Feeds +{ /// /// Builds and executes requests for operations under \feeds /// - public class FeedsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class FeedsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public FeedsRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public FeedsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Lists the feeds available to the authenticated user. The response provides a URL for each feed. You can then get a specific feed by sending a request to one of the feed URLs.* **Timeline**: The GitHub Enterprise Cloud global public timeline* **User**: The public timeline for any user, using `uri_template`. For more information, see "[Hypermedia](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia)."* **Current user public**: The public timeline for the authenticated user* **Current user**: The private timeline for the authenticated user* **Current user actor**: The private timeline for activity created by the authenticated user* **Current user organizations**: The private timeline for the organizations the authenticated user is a member of.* **Security advisories**: A collection of public announcements that provide information about security-related vulnerabilities in software on GitHub Enterprise Cloud.By default, timeline resources are returned in JSON. You can specify the `application/atom+xml` type in the `Accept` header to return timeline resources in Atom format. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."> [!NOTE]> Private feeds are only returned when [authenticating via Basic Auth](https://docs.github.com/enterprise-cloud@latest//rest/authentication/authenticating-to-the-rest-api#using-basic-authentication) since current feed URIs use the older, non revocable auth tokens. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, Feed.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Feed.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists the feeds available to the authenticated user. The response provides a URL for each feed. You can then get a specific feed by sending a request to one of the feed URLs.* **Timeline**: The GitHub Enterprise Cloud global public timeline* **User**: The public timeline for any user, using `uri_template`. For more information, see "[Hypermedia](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia)."* **Current user public**: The public timeline for the authenticated user* **Current user**: The private timeline for the authenticated user* **Current user actor**: The private timeline for activity created by the authenticated user* **Current user organizations**: The private timeline for the organizations the authenticated user is a member of.* **Security advisories**: A collection of public announcements that provide information about security-related vulnerabilities in software on GitHub Enterprise Cloud.By default, timeline resources are returned in JSON. You can specify the `application/atom+xml` type in the `Accept` header to return timeline resources in Atom format. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."> [!NOTE]> Private feeds are only returned when [authenticating via Basic Auth](https://docs.github.com/enterprise-cloud@latest//rest/authentication/authenticating-to-the-rest-api#using-basic-authentication) since current feed URIs use the older, non revocable auth tokens. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public FeedsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Feeds.FeedsRequestBuilder WithUrl(string rawUrl) { - return new FeedsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Feeds.FeedsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Gists/GistsPostRequestBody.cs b/src/GitHub/Gists/GistsPostRequestBody.cs index ea00e82e..e3bf2277 100644 --- a/src/GitHub/Gists/GistsPostRequestBody.cs +++ b/src/GitHub/Gists/GistsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Gists { +namespace GitHub.Gists +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GistsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GistsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,21 +24,21 @@ public class GistsPostRequestBody : IAdditionalDataHolder, IParsable /// Names and content for the files that make up the gist #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GistsPostRequestBody_files? Files { get; set; } + public global::GitHub.Gists.GistsPostRequestBody_files? Files { get; set; } #nullable restore #else - public GistsPostRequestBody_files Files { get; set; } + public global::GitHub.Gists.GistsPostRequestBody_files Files { get; set; } #endif /// The public property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GistsPostRequestBody_public? Public { get; set; } + public global::GitHub.Gists.GistsPostRequestBody.GistsPostRequestBody_public? Public { get; set; } #nullable restore #else - public GistsPostRequestBody_public Public { get; set; } + public global::GitHub.Gists.GistsPostRequestBody.GistsPostRequestBody_public Public { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GistsPostRequestBody() { @@ -45,12 +47,12 @@ public GistsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GistsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Gists.GistsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GistsPostRequestBody(); + return new global::GitHub.Gists.GistsPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"files", n => { Files = n.GetObjectValue(GistsPostRequestBody_files.CreateFromDiscriminatorValue); } }, - {"public", n => { Public = n.GetObjectValue(GistsPostRequestBody_public.CreateFromDiscriminatorValue); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "files", n => { Files = n.GetObjectValue(global::GitHub.Gists.GistsPostRequestBody_files.CreateFromDiscriminatorValue); } }, + { "public", n => { Public = n.GetObjectValue(global::GitHub.Gists.GistsPostRequestBody.GistsPostRequestBody_public.CreateFromDiscriminatorValue); } }, }; } /// @@ -73,14 +75,15 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("description", Description); - writer.WriteObjectValue("files", Files); - writer.WriteObjectValue("public", Public); + writer.WriteObjectValue("files", Files); + writer.WriteObjectValue("public", Public); writer.WriteAdditionalData(AdditionalData); } /// /// Composed type wrapper for classes , /// - public class GistsPostRequestBody_public : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GistsPostRequestBody_public : IComposedTypeWrapper, IParsable { /// Composed type representation for type public bool? Boolean { get; set; } @@ -95,13 +98,13 @@ public class GistsPostRequestBody_public : IComposedTypeWrapper, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GistsPostRequestBody_public CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Gists.GistsPostRequestBody.GistsPostRequestBody_public CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new GistsPostRequestBody_public(); + var result = new global::GitHub.Gists.GistsPostRequestBody.GistsPostRequestBody_public(); if(parseNode.GetBoolValue() is bool booleanValue) { result.Boolean = booleanValue; diff --git a/src/GitHub/Gists/GistsPostRequestBody_files.cs b/src/GitHub/Gists/GistsPostRequestBody_files.cs index 154fd3d4..149dbbf7 100644 --- a/src/GitHub/Gists/GistsPostRequestBody_files.cs +++ b/src/GitHub/Gists/GistsPostRequestBody_files.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Gists { +namespace GitHub.Gists +{ /// /// Names and content for the files that make up the gist /// - public class GistsPostRequestBody_files : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GistsPostRequestBody_files : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GistsPostRequestBody_files() { @@ -22,12 +24,12 @@ public GistsPostRequestBody_files() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GistsPostRequestBody_files CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Gists.GistsPostRequestBody_files CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GistsPostRequestBody_files(); + return new global::GitHub.Gists.GistsPostRequestBody_files(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Gists/GistsRequestBuilder.cs b/src/GitHub/Gists/GistsRequestBuilder.cs index 3da284a8..24caa0f0 100644 --- a/src/GitHub/Gists/GistsRequestBuilder.cs +++ b/src/GitHub/Gists/GistsRequestBuilder.cs @@ -3,44 +3,46 @@ using GitHub.Gists.Public; using GitHub.Gists.Starred; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Gists { +namespace GitHub.Gists +{ /// /// Builds and executes requests for operations under \gists /// - public class GistsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GistsRequestBuilder : BaseRequestBuilder { /// The public property - public PublicRequestBuilder Public + public global::GitHub.Gists.Public.PublicRequestBuilder Public { - get => new PublicRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Gists.Public.PublicRequestBuilder(PathParameters, RequestAdapter); } /// The starred property - public StarredRequestBuilder Starred + public global::GitHub.Gists.Starred.StarredRequestBuilder Starred { - get => new StarredRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Gists.Starred.StarredRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.gists.item collection /// The unique identifier of the gist. - /// A - public WithGist_ItemRequestBuilder this[string position] + /// A + public global::GitHub.Gists.Item.WithGist_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("gist_id", position); - return new WithGist_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Gists.Item.WithGist_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -48,7 +50,7 @@ public GistsRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -59,56 +61,56 @@ public GistsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Lists the authenticated user's gists or if called anonymously, this endpoint returns all public gists: /// API method documentation /// - /// A List<BaseGist> + /// A List<global::GitHub.Models.BaseGist> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, BaseGist.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.BaseGist.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Allows you to add a new gist with one or more files.> [!NOTE]> Don't name your files "gistfile" with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(GistsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Gists.GistsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(GistsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Gists.GistsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GistSimple.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GistSimple.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists the authenticated user's gists or if called anonymously, this endpoint returns all public gists: @@ -117,11 +119,11 @@ public async Task PostAsync(GistsPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -137,11 +139,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(GistsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Gists.GistsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GistsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Gists.GistsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -154,16 +156,17 @@ public RequestInformation ToPostRequestInformation(GistsPostRequestBody body, Ac /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public GistsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Gists.GistsRequestBuilder WithUrl(string rawUrl) { - return new GistsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Gists.GistsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the authenticated user's gists or if called anonymously, this endpoint returns all public gists: /// - public class GistsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GistsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Gists/Item/Comments/CommentsPostRequestBody.cs b/src/GitHub/Gists/Item/Comments/CommentsPostRequestBody.cs index cb151100..2f5f2b86 100644 --- a/src/GitHub/Gists/Item/Comments/CommentsPostRequestBody.cs +++ b/src/GitHub/Gists/Item/Comments/CommentsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Gists.Item.Comments { +namespace GitHub.Gists.Item.Comments +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CommentsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CommentsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class CommentsPostRequestBody : IAdditionalDataHolder, IParsable public string Body { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommentsPostRequestBody() { @@ -29,12 +31,12 @@ public CommentsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CommentsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Gists.Item.Comments.CommentsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommentsPostRequestBody(); + return new global::GitHub.Gists.Item.Comments.CommentsPostRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"body", n => { Body = n.GetStringValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Gists/Item/Comments/CommentsRequestBuilder.cs b/src/GitHub/Gists/Item/Comments/CommentsRequestBuilder.cs index 77c2365f..20b84b98 100644 --- a/src/GitHub/Gists/Item/Comments/CommentsRequestBuilder.cs +++ b/src/GitHub/Gists/Item/Comments/CommentsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Gists.Item.Comments.Item; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Gists.Item.Comments { +namespace GitHub.Gists.Item.Comments +{ /// /// Builds and executes requests for operations under \gists\{gist_id}\comments /// - public class CommentsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommentsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.gists.item.comments.item collection /// The unique identifier of the comment. - /// A - public WithComment_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Gists.Item.Comments.Item.WithComment_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("comment_id", position); - return new WithComment_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Gists.Item.Comments.Item.WithComment_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public CommentsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,56 +49,56 @@ public CommentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Lists the comments on a gist.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// API method documentation /// - /// A List<GistComment> + /// A List<global::GitHub.Models.GistComment> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GistComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.GistComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Creates a comment on a gist.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(CommentsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Gists.Item.Comments.CommentsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(CommentsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Gists.Item.Comments.CommentsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GistComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GistComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists the comments on a gist.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. @@ -105,11 +107,11 @@ public async Task PostAsync(CommentsPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -125,11 +127,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(CommentsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Gists.Item.Comments.CommentsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CommentsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Gists.Item.Comments.CommentsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -142,16 +144,17 @@ public RequestInformation ToPostRequestInformation(CommentsPostRequestBody body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CommentsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Gists.Item.Comments.CommentsRequestBuilder WithUrl(string rawUrl) { - return new CommentsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Gists.Item.Comments.CommentsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the comments on a gist.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// - public class CommentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommentsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Gists/Item/Comments/Item/WithComment_ItemRequestBuilder.cs b/src/GitHub/Gists/Item/Comments/Item/WithComment_ItemRequestBuilder.cs index ec60c879..21ad2682 100644 --- a/src/GitHub/Gists/Item/Comments/Item/WithComment_ItemRequestBuilder.cs +++ b/src/GitHub/Gists/Item/Comments/Item/WithComment_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Gists.Item.Comments.Item { +namespace GitHub.Gists.Item.Comments.Item +{ /// /// Builds and executes requests for operations under \gists\{gist_id}\comments\{comment_id} /// - public class WithComment_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithComment_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithComment_ItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,8 +38,8 @@ public WithComment_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -50,8 +52,8 @@ public async Task DeleteAsync(Action> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -59,53 +61,53 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", GistComment403Error.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.GistComment403Error.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GistComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GistComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Updates a comment on a gist.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithComment_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Gists.Item.Comments.Item.WithComment_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithComment_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Gists.Item.Comments.Item.WithComment_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GistComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GistComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,11 +152,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithComment_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Gists.Item.Comments.Item.WithComment_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithComment_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Gists.Item.Comments.Item.WithComment_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -167,11 +169,11 @@ public RequestInformation ToPatchRequestInformation(WithComment_PatchRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithComment_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Gists.Item.Comments.Item.WithComment_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithComment_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Gists.Item.Comments.Item.WithComment_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Gists/Item/Comments/Item/WithComment_PatchRequestBody.cs b/src/GitHub/Gists/Item/Comments/Item/WithComment_PatchRequestBody.cs index c5d59f8a..59d9e26c 100644 --- a/src/GitHub/Gists/Item/Comments/Item/WithComment_PatchRequestBody.cs +++ b/src/GitHub/Gists/Item/Comments/Item/WithComment_PatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Gists.Item.Comments.Item { +namespace GitHub.Gists.Item.Comments.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithComment_PatchRequestBody : IAdditionalDataHolder, IParsable + public partial class WithComment_PatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class WithComment_PatchRequestBody : IAdditionalDataHolder, IParsable public string Body { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithComment_PatchRequestBody() { @@ -29,12 +31,12 @@ public WithComment_PatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithComment_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Gists.Item.Comments.Item.WithComment_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithComment_PatchRequestBody(); + return new global::GitHub.Gists.Item.Comments.Item.WithComment_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"body", n => { Body = n.GetStringValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Gists/Item/Commits/CommitsRequestBuilder.cs b/src/GitHub/Gists/Item/Commits/CommitsRequestBuilder.cs index 7fc9c834..572f751a 100644 --- a/src/GitHub/Gists/Item/Commits/CommitsRequestBuilder.cs +++ b/src/GitHub/Gists/Item/Commits/CommitsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Gists.Item.Commits { +namespace GitHub.Gists.Item.Commits +{ /// /// Builds and executes requests for operations under \gists\{gist_id}\commits /// - public class CommitsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommitsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public CommitsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,38 +36,38 @@ public CommitsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// List gist commits /// API method documentation /// - /// A List<GistCommit> + /// A List<global::GitHub.Models.GistCommit> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GistCommit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.GistCommit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -76,16 +78,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CommitsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Gists.Item.Commits.CommitsRequestBuilder WithUrl(string rawUrl) { - return new CommitsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Gists.Item.Commits.CommitsRequestBuilder(rawUrl, RequestAdapter); } /// /// List gist commits /// - public class CommitsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommitsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Gists/Item/Forks/ForksRequestBuilder.cs b/src/GitHub/Gists/Item/Forks/ForksRequestBuilder.cs index 1b8aa0d7..fe5dd09f 100644 --- a/src/GitHub/Gists/Item/Forks/ForksRequestBuilder.cs +++ b/src/GitHub/Gists/Item/Forks/ForksRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Gists.Item.Forks { +namespace GitHub.Gists.Item.Forks +{ /// /// Builds and executes requests for operations under \gists\{gist_id}\forks /// - public class ForksRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ForksRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ForksRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,66 +36,66 @@ public ForksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// List gist forks /// API method documentation /// - /// A List<GistSimple> + /// A List<global::GitHub.Models.GistSimple> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GistSimple.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.GistSimple.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Fork a gist /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, BaseGist.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.BaseGist.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -120,16 +122,17 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ForksRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Gists.Item.Forks.ForksRequestBuilder WithUrl(string rawUrl) { - return new ForksRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Gists.Item.Forks.ForksRequestBuilder(rawUrl, RequestAdapter); } /// /// List gist forks /// - public class ForksRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ForksRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Gists/Item/Item/WithShaItemRequestBuilder.cs b/src/GitHub/Gists/Item/Item/WithShaItemRequestBuilder.cs index b622b66b..ffdf30d9 100644 --- a/src/GitHub/Gists/Item/Item/WithShaItemRequestBuilder.cs +++ b/src/GitHub/Gists/Item/Item/WithShaItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Gists.Item.Item { +namespace GitHub.Gists.Item.Item +{ /// /// Builds and executes requests for operations under \gists\{gist_id}\{sha} /// - public class WithShaItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithShaItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithShaItemRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,29 +36,29 @@ public WithShaItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Gets a specified gist revision.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GistSimple.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GistSimple.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets a specified gist revision.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. @@ -80,11 +82,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithShaItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Gists.Item.Item.WithShaItemRequestBuilder WithUrl(string rawUrl) { - return new WithShaItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Gists.Item.Item.WithShaItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Gists/Item/Star/Star404Error.cs b/src/GitHub/Gists/Item/Star/Star404Error.cs index b6e2d5fe..be323c9b 100644 --- a/src/GitHub/Gists/Item/Star/Star404Error.cs +++ b/src/GitHub/Gists/Item/Star/Star404Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Gists.Item.Star { +namespace GitHub.Gists.Item.Star +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Star404Error : ApiException, IParsable + public partial class Star404Error : ApiException, IParsable #pragma warning restore CS1591 { /// The primary error message. @@ -15,12 +17,12 @@ public class Star404Error : ApiException, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Star404Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Gists.Item.Star.Star404Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Star404Error(); + return new global::GitHub.Gists.Item.Star.Star404Error(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Gists/Item/Star/StarRequestBuilder.cs b/src/GitHub/Gists/Item/Star/StarRequestBuilder.cs index 604356e5..d89b270b 100644 --- a/src/GitHub/Gists/Item/Star/StarRequestBuilder.cs +++ b/src/GitHub/Gists/Item/Star/StarRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Gists.Item.Star { +namespace GitHub.Gists.Item.Star +{ /// /// Builds and executes requests for operations under \gists\{gist_id}\star /// - public class StarRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class StarRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public StarRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,8 +38,8 @@ public StarRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -50,8 +52,8 @@ public async Task DeleteAsync(Action> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -61,8 +63,8 @@ public async Task DeleteAsync(Action /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -75,8 +77,8 @@ public async Task GetAsync(Action> var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", Star404Error.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Gists.Item.Star.Star404Error.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -86,8 +88,8 @@ public async Task GetAsync(Action> /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -100,8 +102,8 @@ public async Task PutAsync(Action> var requestInfo = ToPutRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -159,11 +161,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public StarRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Gists.Item.Star.StarRequestBuilder WithUrl(string rawUrl) { - return new StarRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Gists.Item.Star.StarRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Gists/Item/WithGist_ItemRequestBuilder.cs b/src/GitHub/Gists/Item/WithGist_ItemRequestBuilder.cs index 374bb6dd..75a2e881 100644 --- a/src/GitHub/Gists/Item/WithGist_ItemRequestBuilder.cs +++ b/src/GitHub/Gists/Item/WithGist_ItemRequestBuilder.cs @@ -5,54 +5,56 @@ using GitHub.Gists.Item.Item; using GitHub.Gists.Item.Star; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Gists.Item { +namespace GitHub.Gists.Item +{ /// /// Builds and executes requests for operations under \gists\{gist_id} /// - public class WithGist_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithGist_ItemRequestBuilder : BaseRequestBuilder { /// The comments property - public CommentsRequestBuilder Comments + public global::GitHub.Gists.Item.Comments.CommentsRequestBuilder Comments { - get => new CommentsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Gists.Item.Comments.CommentsRequestBuilder(PathParameters, RequestAdapter); } /// The commits property - public CommitsRequestBuilder Commits + public global::GitHub.Gists.Item.Commits.CommitsRequestBuilder Commits { - get => new CommitsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Gists.Item.Commits.CommitsRequestBuilder(PathParameters, RequestAdapter); } /// The forks property - public ForksRequestBuilder Forks + public global::GitHub.Gists.Item.Forks.ForksRequestBuilder Forks { - get => new ForksRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Gists.Item.Forks.ForksRequestBuilder(PathParameters, RequestAdapter); } /// The star property - public StarRequestBuilder Star + public global::GitHub.Gists.Item.Star.StarRequestBuilder Star { - get => new StarRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Gists.Item.Star.StarRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.gists.item.item collection /// Unique identifier of the item - /// A - public WithShaItemRequestBuilder this[string position] + /// A + public global::GitHub.Gists.Item.Item.WithShaItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("sha", position); - return new WithShaItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Gists.Item.Item.WithShaItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -60,7 +62,7 @@ public WithGist_ItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -73,8 +75,8 @@ public WithGist_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -87,8 +89,8 @@ public async Task DeleteAsync(Action> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -96,55 +98,55 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", GistSimple403Error.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.GistSimple403Error.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GistSimple.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GistSimple.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Allows you to update a gist's description and to update, delete, or rename gist files. Filesfrom the previous version of the gist that aren't explicitly changed during an editare unchanged.At least one of `description` or `files` is required.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithGist_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Gists.Item.WithGist_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithGist_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Gists.Item.WithGist_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GistSimple.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GistSimple.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -189,11 +191,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithGist_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Gists.Item.WithGist_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithGist_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Gists.Item.WithGist_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -206,11 +208,11 @@ public RequestInformation ToPatchRequestInformation(WithGist_PatchRequestBody bo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithGist_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Gists.Item.WithGist_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithGist_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Gists.Item.WithGist_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Gists/Item/WithGist_PatchRequestBody.cs b/src/GitHub/Gists/Item/WithGist_PatchRequestBody.cs index cd1e964c..ffe50491 100644 --- a/src/GitHub/Gists/Item/WithGist_PatchRequestBody.cs +++ b/src/GitHub/Gists/Item/WithGist_PatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Gists.Item { +namespace GitHub.Gists.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithGist_PatchRequestBody : IAdditionalDataHolder, IParsable + public partial class WithGist_PatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,13 +24,13 @@ public class WithGist_PatchRequestBody : IAdditionalDataHolder, IParsable /// The gist files to be updated, renamed, or deleted. Each `key` must match the current filename(including extension) of the targeted gist file. For example: `hello.py`.To delete a file, set the whole file to null. For example: `hello.py : null`. The file will also bedeleted if the specified object does not contain at least one of `content` or `filename`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithGist_PatchRequestBody_files? Files { get; set; } + public global::GitHub.Gists.Item.WithGist_PatchRequestBody_files? Files { get; set; } #nullable restore #else - public WithGist_PatchRequestBody_files Files { get; set; } + public global::GitHub.Gists.Item.WithGist_PatchRequestBody_files Files { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithGist_PatchRequestBody() { @@ -37,12 +39,12 @@ public WithGist_PatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithGist_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Gists.Item.WithGist_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithGist_PatchRequestBody(); + return new global::GitHub.Gists.Item.WithGist_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"files", n => { Files = n.GetObjectValue(WithGist_PatchRequestBody_files.CreateFromDiscriminatorValue); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "files", n => { Files = n.GetObjectValue(global::GitHub.Gists.Item.WithGist_PatchRequestBody_files.CreateFromDiscriminatorValue); } }, }; } /// @@ -64,7 +66,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("description", Description); - writer.WriteObjectValue("files", Files); + writer.WriteObjectValue("files", Files); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Gists/Item/WithGist_PatchRequestBody_files.cs b/src/GitHub/Gists/Item/WithGist_PatchRequestBody_files.cs index db35fc8b..68014958 100644 --- a/src/GitHub/Gists/Item/WithGist_PatchRequestBody_files.cs +++ b/src/GitHub/Gists/Item/WithGist_PatchRequestBody_files.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Gists.Item { +namespace GitHub.Gists.Item +{ /// /// The gist files to be updated, renamed, or deleted. Each `key` must match the current filename(including extension) of the targeted gist file. For example: `hello.py`.To delete a file, set the whole file to null. For example: `hello.py : null`. The file will also bedeleted if the specified object does not contain at least one of `content` or `filename`. /// - public class WithGist_PatchRequestBody_files : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithGist_PatchRequestBody_files : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithGist_PatchRequestBody_files() { @@ -22,12 +24,12 @@ public WithGist_PatchRequestBody_files() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithGist_PatchRequestBody_files CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Gists.Item.WithGist_PatchRequestBody_files CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithGist_PatchRequestBody_files(); + return new global::GitHub.Gists.Item.WithGist_PatchRequestBody_files(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Gists/Public/PublicRequestBuilder.cs b/src/GitHub/Gists/Public/PublicRequestBuilder.cs index 9609a28c..cebfa8c2 100644 --- a/src/GitHub/Gists/Public/PublicRequestBuilder.cs +++ b/src/GitHub/Gists/Public/PublicRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Gists.Public { +namespace GitHub.Gists.Public +{ /// /// Builds and executes requests for operations under \gists\public /// - public class PublicRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PublicRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public PublicRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,28 +36,28 @@ public PublicRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// List public gists sorted by most recently updated to least recently updated.Note: With [pagination](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page. /// API method documentation /// - /// A List<BaseGist> + /// A List<global::GitHub.Models.BaseGist> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, BaseGist.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.BaseGist.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// List public gists sorted by most recently updated to least recently updated.Note: With [pagination](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page. @@ -64,11 +66,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -79,16 +81,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PublicRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Gists.Public.PublicRequestBuilder WithUrl(string rawUrl) { - return new PublicRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Gists.Public.PublicRequestBuilder(rawUrl, RequestAdapter); } /// /// List public gists sorted by most recently updated to least recently updated.Note: With [pagination](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page. /// - public class PublicRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PublicRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Gists/Starred/StarredRequestBuilder.cs b/src/GitHub/Gists/Starred/StarredRequestBuilder.cs index e228adcb..12aa2255 100644 --- a/src/GitHub/Gists/Starred/StarredRequestBuilder.cs +++ b/src/GitHub/Gists/Starred/StarredRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Gists.Starred { +namespace GitHub.Gists.Starred +{ /// /// Builds and executes requests for operations under \gists\starred /// - public class StarredRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class StarredRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public StarredRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,28 +36,28 @@ public StarredRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// List the authenticated user's starred gists: /// API method documentation /// - /// A List<BaseGist> + /// A List<global::GitHub.Models.BaseGist> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code + /// When receiving a 401 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, BaseGist.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.BaseGist.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// List the authenticated user's starred gists: @@ -64,11 +66,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -79,16 +81,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public StarredRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Gists.Starred.StarredRequestBuilder WithUrl(string rawUrl) { - return new StarredRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Gists.Starred.StarredRequestBuilder(rawUrl, RequestAdapter); } /// /// List the authenticated user's starred gists: /// - public class StarredRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class StarredRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/GitHubClient.cs b/src/GitHub/GitHubClient.cs index 7f253c69..f7ac0b55 100644 --- a/src/GitHub/GitHubClient.cs +++ b/src/GitHub/GitHubClient.cs @@ -46,203 +46,204 @@ using Microsoft.Kiota.Serialization.Text; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub { +namespace GitHub +{ /// /// The main entry point of the SDK, exposes the configuration and the fluent API. /// - public class GitHubClient : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GitHubClient : BaseRequestBuilder { /// The advisories property - public AdvisoriesRequestBuilder Advisories + public global::GitHub.Advisories.AdvisoriesRequestBuilder Advisories { - get => new AdvisoriesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Advisories.AdvisoriesRequestBuilder(PathParameters, RequestAdapter); } /// The app property - public AppRequestBuilder App + public global::GitHub.App.AppRequestBuilder App { - get => new AppRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.App.AppRequestBuilder(PathParameters, RequestAdapter); } /// The applications property - public ApplicationsRequestBuilder Applications + public global::GitHub.Applications.ApplicationsRequestBuilder Applications { - get => new ApplicationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Applications.ApplicationsRequestBuilder(PathParameters, RequestAdapter); } /// The appManifests property - public AppManifestsRequestBuilder AppManifests + public global::GitHub.AppManifests.AppManifestsRequestBuilder AppManifests { - get => new AppManifestsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.AppManifests.AppManifestsRequestBuilder(PathParameters, RequestAdapter); } /// The apps property - public AppsRequestBuilder Apps + public global::GitHub.Apps.AppsRequestBuilder Apps { - get => new AppsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Apps.AppsRequestBuilder(PathParameters, RequestAdapter); } /// The assignments property - public AssignmentsRequestBuilder Assignments + public global::GitHub.Assignments.AssignmentsRequestBuilder Assignments { - get => new AssignmentsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Assignments.AssignmentsRequestBuilder(PathParameters, RequestAdapter); } /// The classrooms property - public ClassroomsRequestBuilder Classrooms + public global::GitHub.Classrooms.ClassroomsRequestBuilder Classrooms { - get => new ClassroomsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Classrooms.ClassroomsRequestBuilder(PathParameters, RequestAdapter); } /// The codes_of_conduct property - public Codes_of_conductRequestBuilder Codes_of_conduct + public global::GitHub.Codes_of_conduct.Codes_of_conductRequestBuilder Codes_of_conduct { - get => new Codes_of_conductRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Codes_of_conduct.Codes_of_conductRequestBuilder(PathParameters, RequestAdapter); } /// The emojis property - public EmojisRequestBuilder Emojis + public global::GitHub.Emojis.EmojisRequestBuilder Emojis { - get => new EmojisRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Emojis.EmojisRequestBuilder(PathParameters, RequestAdapter); } /// The enterpriseInstallation property - public EnterpriseInstallationRequestBuilder EnterpriseInstallation + public global::GitHub.EnterpriseInstallation.EnterpriseInstallationRequestBuilder EnterpriseInstallation { - get => new EnterpriseInstallationRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.EnterpriseInstallation.EnterpriseInstallationRequestBuilder(PathParameters, RequestAdapter); } /// The enterprises property - public EnterprisesRequestBuilder Enterprises + public global::GitHub.Enterprises.EnterprisesRequestBuilder Enterprises { - get => new EnterprisesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Enterprises.EnterprisesRequestBuilder(PathParameters, RequestAdapter); } /// The events property - public EventsRequestBuilder Events + public global::GitHub.Events.EventsRequestBuilder Events { - get => new EventsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Events.EventsRequestBuilder(PathParameters, RequestAdapter); } /// The feeds property - public FeedsRequestBuilder Feeds + public global::GitHub.Feeds.FeedsRequestBuilder Feeds { - get => new FeedsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Feeds.FeedsRequestBuilder(PathParameters, RequestAdapter); } /// The gists property - public GistsRequestBuilder Gists + public global::GitHub.Gists.GistsRequestBuilder Gists { - get => new GistsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Gists.GistsRequestBuilder(PathParameters, RequestAdapter); } /// The gitignore property - public GitignoreRequestBuilder Gitignore + public global::GitHub.Gitignore.GitignoreRequestBuilder Gitignore { - get => new GitignoreRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Gitignore.GitignoreRequestBuilder(PathParameters, RequestAdapter); } /// The installation property - public InstallationRequestBuilder Installation + public global::GitHub.Installation.InstallationRequestBuilder Installation { - get => new InstallationRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Installation.InstallationRequestBuilder(PathParameters, RequestAdapter); } /// The issues property - public IssuesRequestBuilder Issues + public global::GitHub.Issues.IssuesRequestBuilder Issues { - get => new IssuesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Issues.IssuesRequestBuilder(PathParameters, RequestAdapter); } /// The licenses property - public LicensesRequestBuilder Licenses + public global::GitHub.Licenses.LicensesRequestBuilder Licenses { - get => new LicensesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Licenses.LicensesRequestBuilder(PathParameters, RequestAdapter); } /// The markdown property - public MarkdownRequestBuilder Markdown + public global::GitHub.Markdown.MarkdownRequestBuilder Markdown { - get => new MarkdownRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Markdown.MarkdownRequestBuilder(PathParameters, RequestAdapter); } /// The marketplace_listing property - public Marketplace_listingRequestBuilder Marketplace_listing + public global::GitHub.Marketplace_listing.Marketplace_listingRequestBuilder Marketplace_listing { - get => new Marketplace_listingRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Marketplace_listing.Marketplace_listingRequestBuilder(PathParameters, RequestAdapter); } /// The meta property - public MetaRequestBuilder Meta + public global::GitHub.Meta.MetaRequestBuilder Meta { - get => new MetaRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Meta.MetaRequestBuilder(PathParameters, RequestAdapter); } /// The networks property - public NetworksRequestBuilder Networks + public global::GitHub.Networks.NetworksRequestBuilder Networks { - get => new NetworksRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Networks.NetworksRequestBuilder(PathParameters, RequestAdapter); } /// The notifications property - public NotificationsRequestBuilder Notifications + public global::GitHub.Notifications.NotificationsRequestBuilder Notifications { - get => new NotificationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Notifications.NotificationsRequestBuilder(PathParameters, RequestAdapter); } /// The octocat property - public OctocatRequestBuilder Octocat + public global::GitHub.Octocat.OctocatRequestBuilder Octocat { - get => new OctocatRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Octocat.OctocatRequestBuilder(PathParameters, RequestAdapter); } /// The organizations property - public OrganizationsRequestBuilder Organizations + public global::GitHub.Organizations.OrganizationsRequestBuilder Organizations { - get => new OrganizationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Organizations.OrganizationsRequestBuilder(PathParameters, RequestAdapter); } /// The orgs property - public OrgsRequestBuilder Orgs + public global::GitHub.Orgs.OrgsRequestBuilder Orgs { - get => new OrgsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.OrgsRequestBuilder(PathParameters, RequestAdapter); } /// The projects property - public ProjectsRequestBuilder Projects + public global::GitHub.Projects.ProjectsRequestBuilder Projects { - get => new ProjectsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Projects.ProjectsRequestBuilder(PathParameters, RequestAdapter); } /// The rate_limit property - public Rate_limitRequestBuilder Rate_limit + public global::GitHub.Rate_limit.Rate_limitRequestBuilder Rate_limit { - get => new Rate_limitRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Rate_limit.Rate_limitRequestBuilder(PathParameters, RequestAdapter); } /// The repos property - public ReposRequestBuilder Repos + public global::GitHub.Repos.ReposRequestBuilder Repos { - get => new ReposRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.ReposRequestBuilder(PathParameters, RequestAdapter); } /// The repositories property - public RepositoriesRequestBuilder Repositories + public global::GitHub.Repositories.RepositoriesRequestBuilder Repositories { - get => new RepositoriesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repositories.RepositoriesRequestBuilder(PathParameters, RequestAdapter); } /// The scim property - public ScimRequestBuilder Scim + public global::GitHub.Scim.ScimRequestBuilder Scim { - get => new ScimRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Scim.ScimRequestBuilder(PathParameters, RequestAdapter); } /// The search property - public SearchRequestBuilder Search + public global::GitHub.Search.SearchRequestBuilder Search { - get => new SearchRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Search.SearchRequestBuilder(PathParameters, RequestAdapter); } /// The teams property - public TeamsRequestBuilder Teams + public global::GitHub.Teams.TeamsRequestBuilder Teams { - get => new TeamsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Teams.TeamsRequestBuilder(PathParameters, RequestAdapter); } /// The user property - public UserRequestBuilder User + public global::GitHub.User.UserRequestBuilder User { - get => new UserRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.User.UserRequestBuilder(PathParameters, RequestAdapter); } /// The users property - public UsersRequestBuilder Users + public global::GitHub.Users.UsersRequestBuilder Users { - get => new UsersRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Users.UsersRequestBuilder(PathParameters, RequestAdapter); } /// The versions property - public VersionsRequestBuilder Versions + public global::GitHub.Versions.VersionsRequestBuilder Versions { - get => new VersionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Versions.VersionsRequestBuilder(PathParameters, RequestAdapter); } /// The zen property - public ZenRequestBuilder Zen + public global::GitHub.Zen.ZenRequestBuilder Zen { - get => new ZenRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Zen.ZenRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The request adapter to use to execute the requests. public GitHubClient(IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}", new Dictionary()) @@ -264,20 +265,20 @@ public ZenRequestBuilder Zen /// Get Hypermedia links to resources accessible in GitHub's REST API /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, Root.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Root.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Get Hypermedia links to resources accessible in GitHub's REST API diff --git a/src/GitHub/Gitignore/GitignoreRequestBuilder.cs b/src/GitHub/Gitignore/GitignoreRequestBuilder.cs index bf865b5f..e9cd6bb3 100644 --- a/src/GitHub/Gitignore/GitignoreRequestBuilder.cs +++ b/src/GitHub/Gitignore/GitignoreRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Gitignore.Templates; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Gitignore { +namespace GitHub.Gitignore +{ /// /// Builds and executes requests for operations under \gitignore /// - public class GitignoreRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GitignoreRequestBuilder : BaseRequestBuilder { /// The templates property - public TemplatesRequestBuilder Templates + public global::GitHub.Gitignore.Templates.TemplatesRequestBuilder Templates { - get => new TemplatesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Gitignore.Templates.TemplatesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public GitignoreRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Gitignore/Templates/Item/WithNameItemRequestBuilder.cs b/src/GitHub/Gitignore/Templates/Item/WithNameItemRequestBuilder.cs index 0055beb6..fe18ed66 100644 --- a/src/GitHub/Gitignore/Templates/Item/WithNameItemRequestBuilder.cs +++ b/src/GitHub/Gitignore/Templates/Item/WithNameItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Gitignore.Templates.Item { +namespace GitHub.Gitignore.Templates.Item +{ /// /// Builds and executes requests for operations under \gitignore\templates\{name} /// - public class WithNameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithNameItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithNameItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public WithNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Get the content of a gitignore template.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw .gitignore contents. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GitignoreTemplate.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GitignoreTemplate.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Get the content of a gitignore template.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw .gitignore contents. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithNameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Gitignore.Templates.Item.WithNameItemRequestBuilder WithUrl(string rawUrl) { - return new WithNameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Gitignore.Templates.Item.WithNameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Gitignore/Templates/TemplatesRequestBuilder.cs b/src/GitHub/Gitignore/Templates/TemplatesRequestBuilder.cs index bd7c07d2..4f6d507e 100644 --- a/src/GitHub/Gitignore/Templates/TemplatesRequestBuilder.cs +++ b/src/GitHub/Gitignore/Templates/TemplatesRequestBuilder.cs @@ -1,33 +1,35 @@ // using GitHub.Gitignore.Templates.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Gitignore.Templates { +namespace GitHub.Gitignore.Templates +{ /// /// Builds and executes requests for operations under \gitignore\templates /// - public class TemplatesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TemplatesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.gitignore.templates.item collection /// Unique identifier of the item - /// A - public WithNameItemRequestBuilder this[string position] + /// A + public global::GitHub.Gitignore.Templates.Item.WithNameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("name", position); - return new WithNameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Gitignore.Templates.Item.WithNameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public TemplatesRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -60,7 +62,7 @@ public async Task> GetAsync(Action(requestInfo, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + return collectionResult?.AsList(); } /// /// List all templates available to pass as an option when [creating a repository](https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#create-a-repository-for-the-authenticated-user). @@ -84,11 +86,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public TemplatesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Gitignore.Templates.TemplatesRequestBuilder WithUrl(string rawUrl) { - return new TemplatesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Gitignore.Templates.TemplatesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Installation/InstallationRequestBuilder.cs b/src/GitHub/Installation/InstallationRequestBuilder.cs index 1ab864c7..9db3b76d 100644 --- a/src/GitHub/Installation/InstallationRequestBuilder.cs +++ b/src/GitHub/Installation/InstallationRequestBuilder.cs @@ -1,30 +1,32 @@ // using GitHub.Installation.Repositories; using GitHub.Installation.Token; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Installation { +namespace GitHub.Installation +{ /// /// Builds and executes requests for operations under \installation /// - public class InstallationRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InstallationRequestBuilder : BaseRequestBuilder { /// The repositories property - public RepositoriesRequestBuilder Repositories + public global::GitHub.Installation.Repositories.RepositoriesRequestBuilder Repositories { - get => new RepositoriesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Installation.Repositories.RepositoriesRequestBuilder(PathParameters, RequestAdapter); } /// The token property - public TokenRequestBuilder Token + public global::GitHub.Installation.Token.TokenRequestBuilder Token { - get => new TokenRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Installation.Token.TokenRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -32,7 +34,7 @@ public InstallationRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Installation/Repositories/RepositoriesGetResponse.cs b/src/GitHub/Installation/Repositories/RepositoriesGetResponse.cs index 2e7d4362..d910f15d 100644 --- a/src/GitHub/Installation/Repositories/RepositoriesGetResponse.cs +++ b/src/GitHub/Installation/Repositories/RepositoriesGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Installation.Repositories { +namespace GitHub.Installation.Repositories +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoriesGetResponse : IAdditionalDataHolder, IParsable + public partial class RepositoriesGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,10 +17,10 @@ public class RepositoriesGetResponse : IAdditionalDataHolder, IParsable /// The repositories property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Repositories { get; set; } + public List? Repositories { get; set; } #nullable restore #else - public List Repositories { get; set; } + public List Repositories { get; set; } #endif /// The repository_selection property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -31,7 +33,7 @@ public class RepositoriesGetResponse : IAdditionalDataHolder, IParsable /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoriesGetResponse() { @@ -40,12 +42,12 @@ public RepositoriesGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoriesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Installation.Repositories.RepositoriesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoriesGetResponse(); + return new global::GitHub.Installation.Repositories.RepositoriesGetResponse(); } /// /// The deserialization information for the current model @@ -55,9 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"repositories", n => { Repositories = n.GetCollectionOfObjectValues(Repository.CreateFromDiscriminatorValue)?.ToList(); } }, - {"repository_selection", n => { RepositorySelection = n.GetStringValue(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "repositories", n => { Repositories = n.GetCollectionOfObjectValues(global::GitHub.Models.Repository.CreateFromDiscriminatorValue)?.AsList(); } }, + { "repository_selection", n => { RepositorySelection = n.GetStringValue(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -67,7 +69,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("repositories", Repositories); + writer.WriteCollectionOfObjectValues("repositories", Repositories); writer.WriteStringValue("repository_selection", RepositorySelection); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Installation/Repositories/RepositoriesRequestBuilder.cs b/src/GitHub/Installation/Repositories/RepositoriesRequestBuilder.cs index 09df33ff..89a2a0f4 100644 --- a/src/GitHub/Installation/Repositories/RepositoriesRequestBuilder.cs +++ b/src/GitHub/Installation/Repositories/RepositoriesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Installation.Repositories { +namespace GitHub.Installation.Repositories +{ /// /// Builds and executes requests for operations under \installation\repositories /// - public class RepositoriesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RepositoriesRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public RepositoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// List repositories that an app installation can access. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code + /// When receiving a 401 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, RepositoriesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Installation.Repositories.RepositoriesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// List repositories that an app installation can access. @@ -63,11 +65,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -78,16 +80,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RepositoriesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Installation.Repositories.RepositoriesRequestBuilder WithUrl(string rawUrl) { - return new RepositoriesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Installation.Repositories.RepositoriesRequestBuilder(rawUrl, RequestAdapter); } /// /// List repositories that an app installation can access. /// - public class RepositoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Installation/Token/TokenRequestBuilder.cs b/src/GitHub/Installation/Token/TokenRequestBuilder.cs index 54bd4c35..7095a2e7 100644 --- a/src/GitHub/Installation/Token/TokenRequestBuilder.cs +++ b/src/GitHub/Installation/Token/TokenRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Installation.Token { +namespace GitHub.Installation.Token +{ /// /// Builds and executes requests for operations under \installation\token /// - public class TokenRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TokenRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public TokenRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -68,11 +70,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public TokenRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Installation.Token.TokenRequestBuilder WithUrl(string rawUrl) { - return new TokenRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Installation.Token.TokenRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Issues/GetDirectionQueryParameterType.cs b/src/GitHub/Issues/GetDirectionQueryParameterType.cs index 3425bb1f..26f5a8b0 100644 --- a/src/GitHub/Issues/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Issues/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Issues { +namespace GitHub.Issues +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Issues/GetFilterQueryParameterType.cs b/src/GitHub/Issues/GetFilterQueryParameterType.cs index 5104805e..07335a46 100644 --- a/src/GitHub/Issues/GetFilterQueryParameterType.cs +++ b/src/GitHub/Issues/GetFilterQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Issues { +namespace GitHub.Issues +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetFilterQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Issues/GetSortQueryParameterType.cs b/src/GitHub/Issues/GetSortQueryParameterType.cs index 38fe32aa..bd223e05 100644 --- a/src/GitHub/Issues/GetSortQueryParameterType.cs +++ b/src/GitHub/Issues/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Issues { +namespace GitHub.Issues +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Issues/GetStateQueryParameterType.cs b/src/GitHub/Issues/GetStateQueryParameterType.cs index e55ed75f..99c132f6 100644 --- a/src/GitHub/Issues/GetStateQueryParameterType.cs +++ b/src/GitHub/Issues/GetStateQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Issues { +namespace GitHub.Issues +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetStateQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Issues/IssuesRequestBuilder.cs b/src/GitHub/Issues/IssuesRequestBuilder.cs index d3911f8d..0db1d468 100644 --- a/src/GitHub/Issues/IssuesRequestBuilder.cs +++ b/src/GitHub/Issues/IssuesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Issues { +namespace GitHub.Issues +{ /// /// Builds and executes requests for operations under \issues /// - public class IssuesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class IssuesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public IssuesRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,28 +36,28 @@ public IssuesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// List issues assigned to the authenticated user across all visible repositories including owned repositories, memberrepositories, and organization repositories. You can use the `filter` query parameter to fetch issues that are notnecessarily assigned to you.> [!NOTE]> GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#list-pull-requests)" endpoint.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. /// API method documentation /// - /// A List<Issue> + /// A List<global::GitHub.Models.Issue> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Issue.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Issue.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// List issues assigned to the authenticated user across all visible repositories including owned repositories, memberrepositories, and organization repositories. You can use the `filter` query parameter to fetch issues that are notnecessarily assigned to you.> [!NOTE]> GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#list-pull-requests)" endpoint.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. @@ -64,11 +66,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -79,25 +81,26 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public IssuesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Issues.IssuesRequestBuilder WithUrl(string rawUrl) { - return new IssuesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Issues.IssuesRequestBuilder(rawUrl, RequestAdapter); } /// /// List issues assigned to the authenticated user across all visible repositories including owned repositories, memberrepositories, and organization repositories. You can use the `filter` query parameter to fetch issues that are notnecessarily assigned to you.> [!NOTE]> GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#list-pull-requests)" endpoint.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. /// - public class IssuesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class IssuesRequestBuilderGetQueryParameters { [QueryParameter("collab")] public bool? Collab { get; set; } /// The direction to sort the results by. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Issues.GetDirectionQueryParameterType? Direction { get; set; } /// Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation. [QueryParameter("filter")] - public GetFilterQueryParameterType? Filter { get; set; } + public global::GitHub.Issues.GetFilterQueryParameterType? Filter { get; set; } /// A list of comma separated label names. Example: `bug,ui,@high` #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -125,10 +128,10 @@ public class IssuesRequestBuilderGetQueryParameters public DateTimeOffset? Since { get; set; } /// What to sort results by. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Issues.GetSortQueryParameterType? Sort { get; set; } /// Indicates the state of the issues to return. [QueryParameter("state")] - public GetStateQueryParameterType? State { get; set; } + public global::GitHub.Issues.GetStateQueryParameterType? State { get; set; } } } } diff --git a/src/GitHub/Licenses/Item/WithLicenseItemRequestBuilder.cs b/src/GitHub/Licenses/Item/WithLicenseItemRequestBuilder.cs index d1da8c8c..41c95af3 100644 --- a/src/GitHub/Licenses/Item/WithLicenseItemRequestBuilder.cs +++ b/src/GitHub/Licenses/Item/WithLicenseItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Licenses.Item { +namespace GitHub.Licenses.Item +{ /// /// Builds and executes requests for operations under \licenses\{license} /// - public class WithLicenseItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithLicenseItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithLicenseItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public WithLicenseItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Gets information about a specific license. For more information, see "[Licensing a repository ](https://docs.github.com/enterprise-cloud@latest//repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository)." /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.License.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.License.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets information about a specific license. For more information, see "[Licensing a repository ](https://docs.github.com/enterprise-cloud@latest//repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository)." @@ -78,11 +80,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithLicenseItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Licenses.Item.WithLicenseItemRequestBuilder WithUrl(string rawUrl) { - return new WithLicenseItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Licenses.Item.WithLicenseItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Licenses/LicensesRequestBuilder.cs b/src/GitHub/Licenses/LicensesRequestBuilder.cs index 2b54f3dc..ca3e9b6a 100644 --- a/src/GitHub/Licenses/LicensesRequestBuilder.cs +++ b/src/GitHub/Licenses/LicensesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Licenses.Item; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Licenses { +namespace GitHub.Licenses +{ /// /// Builds and executes requests for operations under \licenses /// - public class LicensesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class LicensesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.licenses.item collection /// Unique identifier of the item - /// A - public WithLicenseItemRequestBuilder this[string position] + /// A + public global::GitHub.Licenses.Item.WithLicenseItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("license", position); - return new WithLicenseItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Licenses.Item.WithLicenseItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public LicensesRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public LicensesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Lists the most commonly used licenses on GitHub. For more information, see "[Licensing a repository ](https://docs.github.com/enterprise-cloud@latest//repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository)." /// API method documentation /// - /// A List<LicenseSimple> + /// A List<global::GitHub.Models.LicenseSimple> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, LicenseSimple.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.LicenseSimple.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists the most commonly used licenses on GitHub. For more information, see "[Licensing a repository ](https://docs.github.com/enterprise-cloud@latest//repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository)." @@ -70,11 +72,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -85,16 +87,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public LicensesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Licenses.LicensesRequestBuilder WithUrl(string rawUrl) { - return new LicensesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Licenses.LicensesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the most commonly used licenses on GitHub. For more information, see "[Licensing a repository ](https://docs.github.com/enterprise-cloud@latest//repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository)." /// - public class LicensesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class LicensesRequestBuilderGetQueryParameters { [QueryParameter("featured")] public bool? Featured { get; set; } diff --git a/src/GitHub/Markdown/MarkdownPostRequestBody.cs b/src/GitHub/Markdown/MarkdownPostRequestBody.cs index a80aa13b..49df33ec 100644 --- a/src/GitHub/Markdown/MarkdownPostRequestBody.cs +++ b/src/GitHub/Markdown/MarkdownPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Markdown { +namespace GitHub.Markdown +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class MarkdownPostRequestBody : IAdditionalDataHolder, IParsable + public partial class MarkdownPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class MarkdownPostRequestBody : IAdditionalDataHolder, IParsable public string Context { get; set; } #endif /// The rendering mode. - public MarkdownPostRequestBody_mode? Mode { get; set; } + public global::GitHub.Markdown.MarkdownPostRequestBody_mode? Mode { get; set; } /// The Markdown text to render in HTML. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -30,22 +32,22 @@ public class MarkdownPostRequestBody : IAdditionalDataHolder, IParsable public string Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MarkdownPostRequestBody() { AdditionalData = new Dictionary(); - Mode = MarkdownPostRequestBody_mode.Markdown; + Mode = global::GitHub.Markdown.MarkdownPostRequestBody_mode.Markdown; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MarkdownPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Markdown.MarkdownPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MarkdownPostRequestBody(); + return new global::GitHub.Markdown.MarkdownPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,9 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"context", n => { Context = n.GetStringValue(); } }, - {"mode", n => { Mode = n.GetEnumValue(); } }, - {"text", n => { Text = n.GetStringValue(); } }, + { "context", n => { Context = n.GetStringValue(); } }, + { "mode", n => { Mode = n.GetEnumValue(); } }, + { "text", n => { Text = n.GetStringValue(); } }, }; } /// @@ -68,7 +70,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("context", Context); - writer.WriteEnumValue("mode", Mode); + writer.WriteEnumValue("mode", Mode); writer.WriteStringValue("text", Text); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Markdown/MarkdownPostRequestBody_mode.cs b/src/GitHub/Markdown/MarkdownPostRequestBody_mode.cs index b438154b..2c32aa80 100644 --- a/src/GitHub/Markdown/MarkdownPostRequestBody_mode.cs +++ b/src/GitHub/Markdown/MarkdownPostRequestBody_mode.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Markdown { +namespace GitHub.Markdown +{ /// The rendering mode. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum MarkdownPostRequestBody_mode { [EnumMember(Value = "markdown")] diff --git a/src/GitHub/Markdown/MarkdownRequestBuilder.cs b/src/GitHub/Markdown/MarkdownRequestBuilder.cs index 9f491d64..ce69fc3d 100644 --- a/src/GitHub/Markdown/MarkdownRequestBuilder.cs +++ b/src/GitHub/Markdown/MarkdownRequestBuilder.cs @@ -1,26 +1,28 @@ // using GitHub.Markdown.Raw; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Markdown { +namespace GitHub.Markdown +{ /// /// Builds and executes requests for operations under \markdown /// - public class MarkdownRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class MarkdownRequestBuilder : BaseRequestBuilder { /// The raw property - public RawRequestBuilder Raw + public global::GitHub.Markdown.Raw.RawRequestBuilder Raw { - get => new RawRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Markdown.Raw.RawRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -28,7 +30,7 @@ public MarkdownRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -44,11 +46,11 @@ public MarkdownRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(MarkdownPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Markdown.MarkdownPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(MarkdownPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Markdown.MarkdownPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -60,11 +62,11 @@ public async Task PostAsync(MarkdownPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(MarkdownPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Markdown.MarkdownPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MarkdownPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Markdown.MarkdownPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -77,11 +79,11 @@ public RequestInformation ToPostRequestInformation(MarkdownPostRequestBody body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MarkdownRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Markdown.MarkdownRequestBuilder WithUrl(string rawUrl) { - return new MarkdownRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Markdown.MarkdownRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Markdown/Raw/RawRequestBuilder.cs b/src/GitHub/Markdown/Raw/RawRequestBuilder.cs index 4b1ff778..1df7892d 100644 --- a/src/GitHub/Markdown/Raw/RawRequestBuilder.cs +++ b/src/GitHub/Markdown/Raw/RawRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Markdown.Raw { +namespace GitHub.Markdown.Raw +{ /// /// Builds and executes requests for operations under \markdown\raw /// - public class RawRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RawRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public RawRequestBuilder(Dictionary pathParameters, IRequestAdap { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -74,11 +76,11 @@ public RequestInformation ToPostRequestInformation(string body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RawRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Markdown.Raw.RawRequestBuilder WithUrl(string rawUrl) { - return new RawRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Markdown.Raw.RawRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Marketplace_listing/Accounts/AccountsRequestBuilder.cs b/src/GitHub/Marketplace_listing/Accounts/AccountsRequestBuilder.cs index a19b95a0..804d6644 100644 --- a/src/GitHub/Marketplace_listing/Accounts/AccountsRequestBuilder.cs +++ b/src/GitHub/Marketplace_listing/Accounts/AccountsRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Marketplace_listing.Accounts.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Marketplace_listing.Accounts { +namespace GitHub.Marketplace_listing.Accounts +{ /// /// Builds and executes requests for operations under \marketplace_listing\accounts /// - public class AccountsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AccountsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.marketplace_listing.accounts.item collection /// account_id parameter - /// A - public WithAccount_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Marketplace_listing.Accounts.Item.WithAccount_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("account_id", position); - return new WithAccount_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Marketplace_listing.Accounts.Item.WithAccount_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public AccountsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Marketplace_listing/Accounts/Item/WithAccount_ItemRequestBuilder.cs b/src/GitHub/Marketplace_listing/Accounts/Item/WithAccount_ItemRequestBuilder.cs index 37e03d1f..4710cdfe 100644 --- a/src/GitHub/Marketplace_listing/Accounts/Item/WithAccount_ItemRequestBuilder.cs +++ b/src/GitHub/Marketplace_listing/Accounts/Item/WithAccount_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Marketplace_listing.Accounts.Item { +namespace GitHub.Marketplace_listing.Accounts.Item +{ /// /// Builds and executes requests for operations under \marketplace_listing\accounts\{account_id} /// - public class WithAccount_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithAccount_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithAccount_ItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public WithAccount_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.GitHub Apps must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/enterprise-cloud@latest//rest/authentication/authenticating-to-the-rest-api#using-basic-authentication) with their client ID and client secret to access this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 404 status code + /// When receiving a 401 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MarketplacePurchase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.MarketplacePurchase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.GitHub Apps must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/enterprise-cloud@latest//rest/authentication/authenticating-to-the-rest-api#using-basic-authentication) with their client ID and client secret to access this endpoint. @@ -78,11 +80,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithAccount_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Marketplace_listing.Accounts.Item.WithAccount_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithAccount_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Marketplace_listing.Accounts.Item.WithAccount_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Marketplace_listing/Marketplace_listingRequestBuilder.cs b/src/GitHub/Marketplace_listing/Marketplace_listingRequestBuilder.cs index 503f0b53..591522b7 100644 --- a/src/GitHub/Marketplace_listing/Marketplace_listingRequestBuilder.cs +++ b/src/GitHub/Marketplace_listing/Marketplace_listingRequestBuilder.cs @@ -2,35 +2,37 @@ using GitHub.Marketplace_listing.Accounts; using GitHub.Marketplace_listing.Plans; using GitHub.Marketplace_listing.Stubbed; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Marketplace_listing { +namespace GitHub.Marketplace_listing +{ /// /// Builds and executes requests for operations under \marketplace_listing /// - public class Marketplace_listingRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Marketplace_listingRequestBuilder : BaseRequestBuilder { /// The accounts property - public AccountsRequestBuilder Accounts + public global::GitHub.Marketplace_listing.Accounts.AccountsRequestBuilder Accounts { - get => new AccountsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Marketplace_listing.Accounts.AccountsRequestBuilder(PathParameters, RequestAdapter); } /// The plans property - public PlansRequestBuilder Plans + public global::GitHub.Marketplace_listing.Plans.PlansRequestBuilder Plans { - get => new PlansRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Marketplace_listing.Plans.PlansRequestBuilder(PathParameters, RequestAdapter); } /// The stubbed property - public StubbedRequestBuilder Stubbed + public global::GitHub.Marketplace_listing.Stubbed.StubbedRequestBuilder Stubbed { - get => new StubbedRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Marketplace_listing.Stubbed.StubbedRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -38,7 +40,7 @@ public Marketplace_listingRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Marketplace_listing/Plans/Item/Accounts/AccountsRequestBuilder.cs b/src/GitHub/Marketplace_listing/Plans/Item/Accounts/AccountsRequestBuilder.cs index 0cfdd863..59f323bb 100644 --- a/src/GitHub/Marketplace_listing/Plans/Item/Accounts/AccountsRequestBuilder.cs +++ b/src/GitHub/Marketplace_listing/Plans/Item/Accounts/AccountsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Marketplace_listing.Plans.Item.Accounts { +namespace GitHub.Marketplace_listing.Plans.Item.Accounts +{ /// /// Builds and executes requests for operations under \marketplace_listing\plans\{plan_id}\accounts /// - public class AccountsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AccountsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AccountsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,30 +36,30 @@ public AccountsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Returns user and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.GitHub Apps must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/enterprise-cloud@latest//rest/authentication/authenticating-to-the-rest-api#using-basic-authentication) with their client ID and client secret to access this endpoint. /// API method documentation /// - /// A List<MarketplacePurchase> + /// A List<global::GitHub.Models.MarketplacePurchase> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 401 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, MarketplacePurchase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.MarketplacePurchase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Returns user and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.GitHub Apps must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/enterprise-cloud@latest//rest/authentication/authenticating-to-the-rest-api#using-basic-authentication) with their client ID and client secret to access this endpoint. @@ -66,11 +68,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -81,20 +83,21 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AccountsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Marketplace_listing.Plans.Item.Accounts.AccountsRequestBuilder WithUrl(string rawUrl) { - return new AccountsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Marketplace_listing.Plans.Item.Accounts.AccountsRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns user and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.GitHub Apps must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/enterprise-cloud@latest//rest/authentication/authenticating-to-the-rest-api#using-basic-authentication) with their client ID and client secret to access this endpoint. /// - public class AccountsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AccountsRequestBuilderGetQueryParameters { /// To return the oldest accounts first, set to `asc`. Ignored without the `sort` parameter. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Marketplace_listing.Plans.Item.Accounts.GetDirectionQueryParameterType? Direction { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } @@ -103,7 +106,7 @@ public class AccountsRequestBuilderGetQueryParameters public int? PerPage { get; set; } /// The property to sort the results by. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Marketplace_listing.Plans.Item.Accounts.GetSortQueryParameterType? Sort { get; set; } } } } diff --git a/src/GitHub/Marketplace_listing/Plans/Item/Accounts/GetDirectionQueryParameterType.cs b/src/GitHub/Marketplace_listing/Plans/Item/Accounts/GetDirectionQueryParameterType.cs index a10e3aad..745256d3 100644 --- a/src/GitHub/Marketplace_listing/Plans/Item/Accounts/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Marketplace_listing/Plans/Item/Accounts/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Marketplace_listing.Plans.Item.Accounts { +namespace GitHub.Marketplace_listing.Plans.Item.Accounts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Marketplace_listing/Plans/Item/Accounts/GetSortQueryParameterType.cs b/src/GitHub/Marketplace_listing/Plans/Item/Accounts/GetSortQueryParameterType.cs index 97e6e89b..997bbe22 100644 --- a/src/GitHub/Marketplace_listing/Plans/Item/Accounts/GetSortQueryParameterType.cs +++ b/src/GitHub/Marketplace_listing/Plans/Item/Accounts/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Marketplace_listing.Plans.Item.Accounts { +namespace GitHub.Marketplace_listing.Plans.Item.Accounts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Marketplace_listing/Plans/Item/WithPlan_ItemRequestBuilder.cs b/src/GitHub/Marketplace_listing/Plans/Item/WithPlan_ItemRequestBuilder.cs index 95090d84..e04362da 100644 --- a/src/GitHub/Marketplace_listing/Plans/Item/WithPlan_ItemRequestBuilder.cs +++ b/src/GitHub/Marketplace_listing/Plans/Item/WithPlan_ItemRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Marketplace_listing.Plans.Item.Accounts; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Marketplace_listing.Plans.Item { +namespace GitHub.Marketplace_listing.Plans.Item +{ /// /// Builds and executes requests for operations under \marketplace_listing\plans\{plan_id} /// - public class WithPlan_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithPlan_ItemRequestBuilder : BaseRequestBuilder { /// The accounts property - public AccountsRequestBuilder Accounts + public global::GitHub.Marketplace_listing.Plans.Item.Accounts.AccountsRequestBuilder Accounts { - get => new AccountsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Marketplace_listing.Plans.Item.Accounts.AccountsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public WithPlan_ItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Marketplace_listing/Plans/PlansRequestBuilder.cs b/src/GitHub/Marketplace_listing/Plans/PlansRequestBuilder.cs index 3d588820..442029f8 100644 --- a/src/GitHub/Marketplace_listing/Plans/PlansRequestBuilder.cs +++ b/src/GitHub/Marketplace_listing/Plans/PlansRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Marketplace_listing.Plans.Item; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Marketplace_listing.Plans { +namespace GitHub.Marketplace_listing.Plans +{ /// /// Builds and executes requests for operations under \marketplace_listing\plans /// - public class PlansRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PlansRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.marketplace_listing.plans.item collection /// The unique identifier of the plan. - /// A - public WithPlan_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Marketplace_listing.Plans.Item.WithPlan_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("plan_id", position); - return new WithPlan_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Marketplace_listing.Plans.Item.WithPlan_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public PlansRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,28 +49,28 @@ public PlansRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Lists all plans that are part of your GitHub Enterprise Cloud Marketplace listing.GitHub Apps must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/enterprise-cloud@latest//rest/authentication/authenticating-to-the-rest-api#using-basic-authentication) with their client ID and client secret to access this endpoint. /// API method documentation /// - /// A List<MarketplaceListingPlan> + /// A List<global::GitHub.Models.MarketplaceListingPlan> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 404 status code + /// When receiving a 401 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, MarketplaceListingPlan.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.MarketplaceListingPlan.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists all plans that are part of your GitHub Enterprise Cloud Marketplace listing.GitHub Apps must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/enterprise-cloud@latest//rest/authentication/authenticating-to-the-rest-api#using-basic-authentication) with their client ID and client secret to access this endpoint. @@ -77,11 +79,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -92,16 +94,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PlansRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Marketplace_listing.Plans.PlansRequestBuilder WithUrl(string rawUrl) { - return new PlansRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Marketplace_listing.Plans.PlansRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all plans that are part of your GitHub Enterprise Cloud Marketplace listing.GitHub Apps must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/enterprise-cloud@latest//rest/authentication/authenticating-to-the-rest-api#using-basic-authentication) with their client ID and client secret to access this endpoint. /// - public class PlansRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PlansRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Marketplace_listing/Stubbed/Accounts/AccountsRequestBuilder.cs b/src/GitHub/Marketplace_listing/Stubbed/Accounts/AccountsRequestBuilder.cs index 18df6faf..b4dc3c5d 100644 --- a/src/GitHub/Marketplace_listing/Stubbed/Accounts/AccountsRequestBuilder.cs +++ b/src/GitHub/Marketplace_listing/Stubbed/Accounts/AccountsRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Marketplace_listing.Stubbed.Accounts.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Marketplace_listing.Stubbed.Accounts { +namespace GitHub.Marketplace_listing.Stubbed.Accounts +{ /// /// Builds and executes requests for operations under \marketplace_listing\stubbed\accounts /// - public class AccountsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AccountsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.marketplace_listing.stubbed.accounts.item collection /// account_id parameter - /// A - public WithAccount_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Marketplace_listing.Stubbed.Accounts.Item.WithAccount_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("account_id", position); - return new WithAccount_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Marketplace_listing.Stubbed.Accounts.Item.WithAccount_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public AccountsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Marketplace_listing/Stubbed/Accounts/Item/WithAccount_ItemRequestBuilder.cs b/src/GitHub/Marketplace_listing/Stubbed/Accounts/Item/WithAccount_ItemRequestBuilder.cs index 1e6b19d4..f3360855 100644 --- a/src/GitHub/Marketplace_listing/Stubbed/Accounts/Item/WithAccount_ItemRequestBuilder.cs +++ b/src/GitHub/Marketplace_listing/Stubbed/Accounts/Item/WithAccount_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Marketplace_listing.Stubbed.Accounts.Item { +namespace GitHub.Marketplace_listing.Stubbed.Accounts.Item +{ /// /// Builds and executes requests for operations under \marketplace_listing\stubbed\accounts\{account_id} /// - public class WithAccount_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithAccount_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithAccount_ItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,25 +36,25 @@ public WithAccount_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.GitHub Apps must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/enterprise-cloud@latest//rest/authentication/authenticating-to-the-rest-api#using-basic-authentication) with their client ID and client secret to access this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code + /// When receiving a 401 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MarketplacePurchase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.MarketplacePurchase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.GitHub Apps must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/enterprise-cloud@latest//rest/authentication/authenticating-to-the-rest-api#using-basic-authentication) with their client ID and client secret to access this endpoint. @@ -76,11 +78,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithAccount_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Marketplace_listing.Stubbed.Accounts.Item.WithAccount_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithAccount_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Marketplace_listing.Stubbed.Accounts.Item.WithAccount_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Marketplace_listing/Stubbed/Plans/Item/Accounts/AccountsRequestBuilder.cs b/src/GitHub/Marketplace_listing/Stubbed/Plans/Item/Accounts/AccountsRequestBuilder.cs index 2e896b89..d5b16705 100644 --- a/src/GitHub/Marketplace_listing/Stubbed/Plans/Item/Accounts/AccountsRequestBuilder.cs +++ b/src/GitHub/Marketplace_listing/Stubbed/Plans/Item/Accounts/AccountsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Marketplace_listing.Stubbed.Plans.Item.Accounts { +namespace GitHub.Marketplace_listing.Stubbed.Plans.Item.Accounts +{ /// /// Builds and executes requests for operations under \marketplace_listing\stubbed\plans\{plan_id}\accounts /// - public class AccountsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AccountsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AccountsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,26 +36,26 @@ public AccountsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Returns repository and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.GitHub Apps must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/enterprise-cloud@latest//rest/authentication/authenticating-to-the-rest-api#using-basic-authentication) with their client ID and client secret to access this endpoint. /// API method documentation /// - /// A List<MarketplacePurchase> + /// A List<global::GitHub.Models.MarketplacePurchase> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code + /// When receiving a 401 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, MarketplacePurchase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.MarketplacePurchase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Returns repository and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.GitHub Apps must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/enterprise-cloud@latest//rest/authentication/authenticating-to-the-rest-api#using-basic-authentication) with their client ID and client secret to access this endpoint. @@ -62,11 +64,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -77,20 +79,21 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AccountsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Marketplace_listing.Stubbed.Plans.Item.Accounts.AccountsRequestBuilder WithUrl(string rawUrl) { - return new AccountsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Marketplace_listing.Stubbed.Plans.Item.Accounts.AccountsRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns repository and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.GitHub Apps must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/enterprise-cloud@latest//rest/authentication/authenticating-to-the-rest-api#using-basic-authentication) with their client ID and client secret to access this endpoint. /// - public class AccountsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AccountsRequestBuilderGetQueryParameters { /// To return the oldest accounts first, set to `asc`. Ignored without the `sort` parameter. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Marketplace_listing.Stubbed.Plans.Item.Accounts.GetDirectionQueryParameterType? Direction { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } @@ -99,7 +102,7 @@ public class AccountsRequestBuilderGetQueryParameters public int? PerPage { get; set; } /// The property to sort the results by. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Marketplace_listing.Stubbed.Plans.Item.Accounts.GetSortQueryParameterType? Sort { get; set; } } } } diff --git a/src/GitHub/Marketplace_listing/Stubbed/Plans/Item/Accounts/GetDirectionQueryParameterType.cs b/src/GitHub/Marketplace_listing/Stubbed/Plans/Item/Accounts/GetDirectionQueryParameterType.cs index 1556c809..b342f27c 100644 --- a/src/GitHub/Marketplace_listing/Stubbed/Plans/Item/Accounts/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Marketplace_listing/Stubbed/Plans/Item/Accounts/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Marketplace_listing.Stubbed.Plans.Item.Accounts { +namespace GitHub.Marketplace_listing.Stubbed.Plans.Item.Accounts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Marketplace_listing/Stubbed/Plans/Item/Accounts/GetSortQueryParameterType.cs b/src/GitHub/Marketplace_listing/Stubbed/Plans/Item/Accounts/GetSortQueryParameterType.cs index e6050ef4..aee0872e 100644 --- a/src/GitHub/Marketplace_listing/Stubbed/Plans/Item/Accounts/GetSortQueryParameterType.cs +++ b/src/GitHub/Marketplace_listing/Stubbed/Plans/Item/Accounts/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Marketplace_listing.Stubbed.Plans.Item.Accounts { +namespace GitHub.Marketplace_listing.Stubbed.Plans.Item.Accounts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Marketplace_listing/Stubbed/Plans/Item/WithPlan_ItemRequestBuilder.cs b/src/GitHub/Marketplace_listing/Stubbed/Plans/Item/WithPlan_ItemRequestBuilder.cs index 965d0eeb..946601e7 100644 --- a/src/GitHub/Marketplace_listing/Stubbed/Plans/Item/WithPlan_ItemRequestBuilder.cs +++ b/src/GitHub/Marketplace_listing/Stubbed/Plans/Item/WithPlan_ItemRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Marketplace_listing.Stubbed.Plans.Item.Accounts; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Marketplace_listing.Stubbed.Plans.Item { +namespace GitHub.Marketplace_listing.Stubbed.Plans.Item +{ /// /// Builds and executes requests for operations under \marketplace_listing\stubbed\plans\{plan_id} /// - public class WithPlan_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithPlan_ItemRequestBuilder : BaseRequestBuilder { /// The accounts property - public AccountsRequestBuilder Accounts + public global::GitHub.Marketplace_listing.Stubbed.Plans.Item.Accounts.AccountsRequestBuilder Accounts { - get => new AccountsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Marketplace_listing.Stubbed.Plans.Item.Accounts.AccountsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public WithPlan_ItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Marketplace_listing/Stubbed/Plans/PlansRequestBuilder.cs b/src/GitHub/Marketplace_listing/Stubbed/Plans/PlansRequestBuilder.cs index 5838e1ec..71ac61a3 100644 --- a/src/GitHub/Marketplace_listing/Stubbed/Plans/PlansRequestBuilder.cs +++ b/src/GitHub/Marketplace_listing/Stubbed/Plans/PlansRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Marketplace_listing.Stubbed.Plans.Item; using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Marketplace_listing.Stubbed.Plans { +namespace GitHub.Marketplace_listing.Stubbed.Plans +{ /// /// Builds and executes requests for operations under \marketplace_listing\stubbed\plans /// - public class PlansRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PlansRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.marketplace_listing.stubbed.plans.item collection /// The unique identifier of the plan. - /// A - public WithPlan_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Marketplace_listing.Stubbed.Plans.Item.WithPlan_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("plan_id", position); - return new WithPlan_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Marketplace_listing.Stubbed.Plans.Item.WithPlan_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public PlansRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,26 +49,26 @@ public PlansRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Lists all plans that are part of your GitHub Enterprise Cloud Marketplace listing.GitHub Apps must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/enterprise-cloud@latest//rest/authentication/authenticating-to-the-rest-api#using-basic-authentication) with their client ID and client secret to access this endpoint. /// API method documentation /// - /// A List<MarketplaceListingPlan> + /// A List<global::GitHub.Models.MarketplaceListingPlan> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code + /// When receiving a 401 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, MarketplaceListingPlan.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.MarketplaceListingPlan.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists all plans that are part of your GitHub Enterprise Cloud Marketplace listing.GitHub Apps must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/enterprise-cloud@latest//rest/authentication/authenticating-to-the-rest-api#using-basic-authentication) with their client ID and client secret to access this endpoint. @@ -75,11 +77,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -90,16 +92,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PlansRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Marketplace_listing.Stubbed.Plans.PlansRequestBuilder WithUrl(string rawUrl) { - return new PlansRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Marketplace_listing.Stubbed.Plans.PlansRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all plans that are part of your GitHub Enterprise Cloud Marketplace listing.GitHub Apps must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/enterprise-cloud@latest//rest/authentication/authenticating-to-the-rest-api#using-basic-authentication) with their client ID and client secret to access this endpoint. /// - public class PlansRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PlansRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Marketplace_listing/Stubbed/StubbedRequestBuilder.cs b/src/GitHub/Marketplace_listing/Stubbed/StubbedRequestBuilder.cs index b7963214..d7439459 100644 --- a/src/GitHub/Marketplace_listing/Stubbed/StubbedRequestBuilder.cs +++ b/src/GitHub/Marketplace_listing/Stubbed/StubbedRequestBuilder.cs @@ -1,30 +1,32 @@ // using GitHub.Marketplace_listing.Stubbed.Accounts; using GitHub.Marketplace_listing.Stubbed.Plans; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Marketplace_listing.Stubbed { +namespace GitHub.Marketplace_listing.Stubbed +{ /// /// Builds and executes requests for operations under \marketplace_listing\stubbed /// - public class StubbedRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class StubbedRequestBuilder : BaseRequestBuilder { /// The accounts property - public AccountsRequestBuilder Accounts + public global::GitHub.Marketplace_listing.Stubbed.Accounts.AccountsRequestBuilder Accounts { - get => new AccountsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Marketplace_listing.Stubbed.Accounts.AccountsRequestBuilder(PathParameters, RequestAdapter); } /// The plans property - public PlansRequestBuilder Plans + public global::GitHub.Marketplace_listing.Stubbed.Plans.PlansRequestBuilder Plans { - get => new PlansRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Marketplace_listing.Stubbed.Plans.PlansRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -32,7 +34,7 @@ public StubbedRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Meta/MetaRequestBuilder.cs b/src/GitHub/Meta/MetaRequestBuilder.cs index a8009445..b348ce1e 100644 --- a/src/GitHub/Meta/MetaRequestBuilder.cs +++ b/src/GitHub/Meta/MetaRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Meta { +namespace GitHub.Meta +{ /// /// Builds and executes requests for operations under \meta /// - public class MetaRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class MetaRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public MetaRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public MetaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// Returns meta information about GitHub, including a list of GitHub's IP addresses. For more information, see "[About GitHub's IP addresses](https://docs.github.com/enterprise-cloud@latest//articles/about-github-s-ip-addresses/)."The API's response also includes a list of GitHub's domain names.The values shown in the documentation's response are example values. You must always query the API directly to get the latest values.> [!NOTE]> This endpoint returns both IPv4 and IPv6 addresses. However, not all features support IPv6. You should refer to the specific documentation for each feature to determine if IPv6 is supported. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ApiOverview.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ApiOverview.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Returns meta information about GitHub, including a list of GitHub's IP addresses. For more information, see "[About GitHub's IP addresses](https://docs.github.com/enterprise-cloud@latest//articles/about-github-s-ip-addresses/)."The API's response also includes a list of GitHub's domain names.The values shown in the documentation's response are example values. You must always query the API directly to get the latest values.> [!NOTE]> This endpoint returns both IPv4 and IPv6 addresses. However, not all features support IPv6. You should refer to the specific documentation for each feature to determine if IPv6 is supported. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MetaRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Meta.MetaRequestBuilder WithUrl(string rawUrl) { - return new MetaRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Meta.MetaRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Models/ActionsBillingUsage.cs b/src/GitHub/Models/ActionsBillingUsage.cs index d6529f5a..0ead7f38 100644 --- a/src/GitHub/Models/ActionsBillingUsage.cs +++ b/src/GitHub/Models/ActionsBillingUsage.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ActionsBillingUsage : IAdditionalDataHolder, IParsable + public partial class ActionsBillingUsage : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -16,17 +18,17 @@ public class ActionsBillingUsage : IAdditionalDataHolder, IParsable /// The minutes_used_breakdown property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ActionsBillingUsage_minutes_used_breakdown? MinutesUsedBreakdown { get; set; } + public global::GitHub.Models.ActionsBillingUsage_minutes_used_breakdown? MinutesUsedBreakdown { get; set; } #nullable restore #else - public ActionsBillingUsage_minutes_used_breakdown MinutesUsedBreakdown { get; set; } + public global::GitHub.Models.ActionsBillingUsage_minutes_used_breakdown MinutesUsedBreakdown { get; set; } #endif /// The sum of the free and paid GitHub Actions minutes used. public int? TotalMinutesUsed { get; set; } /// The total paid GitHub Actions minutes used. public int? TotalPaidMinutesUsed { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ActionsBillingUsage() { @@ -35,12 +37,12 @@ public ActionsBillingUsage() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ActionsBillingUsage CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ActionsBillingUsage CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActionsBillingUsage(); + return new global::GitHub.Models.ActionsBillingUsage(); } /// /// The deserialization information for the current model @@ -50,10 +52,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"included_minutes", n => { IncludedMinutes = n.GetIntValue(); } }, - {"minutes_used_breakdown", n => { MinutesUsedBreakdown = n.GetObjectValue(ActionsBillingUsage_minutes_used_breakdown.CreateFromDiscriminatorValue); } }, - {"total_minutes_used", n => { TotalMinutesUsed = n.GetIntValue(); } }, - {"total_paid_minutes_used", n => { TotalPaidMinutesUsed = n.GetIntValue(); } }, + { "included_minutes", n => { IncludedMinutes = n.GetIntValue(); } }, + { "minutes_used_breakdown", n => { MinutesUsedBreakdown = n.GetObjectValue(global::GitHub.Models.ActionsBillingUsage_minutes_used_breakdown.CreateFromDiscriminatorValue); } }, + { "total_minutes_used", n => { TotalMinutesUsed = n.GetIntValue(); } }, + { "total_paid_minutes_used", n => { TotalPaidMinutesUsed = n.GetIntValue(); } }, }; } /// @@ -64,7 +66,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("included_minutes", IncludedMinutes); - writer.WriteObjectValue("minutes_used_breakdown", MinutesUsedBreakdown); + writer.WriteObjectValue("minutes_used_breakdown", MinutesUsedBreakdown); writer.WriteIntValue("total_minutes_used", TotalMinutesUsed); writer.WriteIntValue("total_paid_minutes_used", TotalPaidMinutesUsed); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/ActionsBillingUsage_minutes_used_breakdown.cs b/src/GitHub/Models/ActionsBillingUsage_minutes_used_breakdown.cs index 7bf8cfe8..015fcd99 100644 --- a/src/GitHub/Models/ActionsBillingUsage_minutes_used_breakdown.cs +++ b/src/GitHub/Models/ActionsBillingUsage_minutes_used_breakdown.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ActionsBillingUsage_minutes_used_breakdown : IAdditionalDataHolder, IParsable + public partial class ActionsBillingUsage_minutes_used_breakdown : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -42,7 +44,7 @@ public class ActionsBillingUsage_minutes_used_breakdown : IAdditionalDataHolder, /// Total minutes used on Windows 8 core runner machines. public int? Windows8Core { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ActionsBillingUsage_minutes_used_breakdown() { @@ -51,12 +53,12 @@ public ActionsBillingUsage_minutes_used_breakdown() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ActionsBillingUsage_minutes_used_breakdown CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ActionsBillingUsage_minutes_used_breakdown CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActionsBillingUsage_minutes_used_breakdown(); + return new global::GitHub.Models.ActionsBillingUsage_minutes_used_breakdown(); } /// /// The deserialization information for the current model @@ -66,21 +68,21 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"MACOS", n => { MACOS = n.GetIntValue(); } }, - {"macos_12_core", n => { Macos12Core = n.GetIntValue(); } }, - {"total", n => { Total = n.GetIntValue(); } }, - {"UBUNTU", n => { UBUNTU = n.GetIntValue(); } }, - {"ubuntu_16_core", n => { Ubuntu16Core = n.GetIntValue(); } }, - {"ubuntu_32_core", n => { Ubuntu32Core = n.GetIntValue(); } }, - {"ubuntu_4_core", n => { Ubuntu4Core = n.GetIntValue(); } }, - {"ubuntu_64_core", n => { Ubuntu64Core = n.GetIntValue(); } }, - {"ubuntu_8_core", n => { Ubuntu8Core = n.GetIntValue(); } }, - {"WINDOWS", n => { WINDOWS = n.GetIntValue(); } }, - {"windows_16_core", n => { Windows16Core = n.GetIntValue(); } }, - {"windows_32_core", n => { Windows32Core = n.GetIntValue(); } }, - {"windows_4_core", n => { Windows4Core = n.GetIntValue(); } }, - {"windows_64_core", n => { Windows64Core = n.GetIntValue(); } }, - {"windows_8_core", n => { Windows8Core = n.GetIntValue(); } }, + { "MACOS", n => { MACOS = n.GetIntValue(); } }, + { "macos_12_core", n => { Macos12Core = n.GetIntValue(); } }, + { "total", n => { Total = n.GetIntValue(); } }, + { "UBUNTU", n => { UBUNTU = n.GetIntValue(); } }, + { "ubuntu_16_core", n => { Ubuntu16Core = n.GetIntValue(); } }, + { "ubuntu_32_core", n => { Ubuntu32Core = n.GetIntValue(); } }, + { "ubuntu_4_core", n => { Ubuntu4Core = n.GetIntValue(); } }, + { "ubuntu_64_core", n => { Ubuntu64Core = n.GetIntValue(); } }, + { "ubuntu_8_core", n => { Ubuntu8Core = n.GetIntValue(); } }, + { "WINDOWS", n => { WINDOWS = n.GetIntValue(); } }, + { "windows_16_core", n => { Windows16Core = n.GetIntValue(); } }, + { "windows_32_core", n => { Windows32Core = n.GetIntValue(); } }, + { "windows_4_core", n => { Windows4Core = n.GetIntValue(); } }, + { "windows_64_core", n => { Windows64Core = n.GetIntValue(); } }, + { "windows_8_core", n => { Windows8Core = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/ActionsCacheList.cs b/src/GitHub/Models/ActionsCacheList.cs index d6a26b30..aadfa348 100644 --- a/src/GitHub/Models/ActionsCacheList.cs +++ b/src/GitHub/Models/ActionsCacheList.cs @@ -1,29 +1,31 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Repository actions caches /// - public class ActionsCacheList : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ActionsCacheList : IAdditionalDataHolder, IParsable { /// Array of caches #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ActionsCaches { get; set; } + public List? ActionsCaches { get; set; } #nullable restore #else - public List ActionsCaches { get; set; } + public List ActionsCaches { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// Total number of caches public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ActionsCacheList() { @@ -32,12 +34,12 @@ public ActionsCacheList() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ActionsCacheList CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ActionsCacheList CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActionsCacheList(); + return new global::GitHub.Models.ActionsCacheList(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actions_caches", n => { ActionsCaches = n.GetCollectionOfObjectValues(ActionsCacheList_actions_caches.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "actions_caches", n => { ActionsCaches = n.GetCollectionOfObjectValues(global::GitHub.Models.ActionsCacheList_actions_caches.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("actions_caches", ActionsCaches); + writer.WriteCollectionOfObjectValues("actions_caches", ActionsCaches); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/ActionsCacheList_actions_caches.cs b/src/GitHub/Models/ActionsCacheList_actions_caches.cs index a00a4b3d..e36fcb88 100644 --- a/src/GitHub/Models/ActionsCacheList_actions_caches.cs +++ b/src/GitHub/Models/ActionsCacheList_actions_caches.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ActionsCacheList_actions_caches : IAdditionalDataHolder, IParsable + public partial class ActionsCacheList_actions_caches : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -44,7 +46,7 @@ public class ActionsCacheList_actions_caches : IAdditionalDataHolder, IParsable public string Version { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ActionsCacheList_actions_caches() { @@ -53,12 +55,12 @@ public ActionsCacheList_actions_caches() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ActionsCacheList_actions_caches CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ActionsCacheList_actions_caches CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActionsCacheList_actions_caches(); + return new global::GitHub.Models.ActionsCacheList_actions_caches(); } /// /// The deserialization information for the current model @@ -68,13 +70,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"key", n => { Key = n.GetStringValue(); } }, - {"last_accessed_at", n => { LastAccessedAt = n.GetDateTimeOffsetValue(); } }, - {"ref", n => { Ref = n.GetStringValue(); } }, - {"size_in_bytes", n => { SizeInBytes = n.GetIntValue(); } }, - {"version", n => { Version = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "key", n => { Key = n.GetStringValue(); } }, + { "last_accessed_at", n => { LastAccessedAt = n.GetDateTimeOffsetValue(); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, + { "size_in_bytes", n => { SizeInBytes = n.GetIntValue(); } }, + { "version", n => { Version = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ActionsCacheUsageByRepository.cs b/src/GitHub/Models/ActionsCacheUsageByRepository.cs index bf38b435..8b1587ee 100644 --- a/src/GitHub/Models/ActionsCacheUsageByRepository.cs +++ b/src/GitHub/Models/ActionsCacheUsageByRepository.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// GitHub Actions Cache Usage by repository. /// - public class ActionsCacheUsageByRepository : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ActionsCacheUsageByRepository : IAdditionalDataHolder, IParsable { /// The number of active caches in the repository. public int? ActiveCachesCount { get; set; } @@ -25,7 +27,7 @@ public class ActionsCacheUsageByRepository : IAdditionalDataHolder, IParsable public string FullName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ActionsCacheUsageByRepository() { @@ -34,12 +36,12 @@ public ActionsCacheUsageByRepository() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ActionsCacheUsageByRepository CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ActionsCacheUsageByRepository CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActionsCacheUsageByRepository(); + return new global::GitHub.Models.ActionsCacheUsageByRepository(); } /// /// The deserialization information for the current model @@ -49,9 +51,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"active_caches_count", n => { ActiveCachesCount = n.GetIntValue(); } }, - {"active_caches_size_in_bytes", n => { ActiveCachesSizeInBytes = n.GetIntValue(); } }, - {"full_name", n => { FullName = n.GetStringValue(); } }, + { "active_caches_count", n => { ActiveCachesCount = n.GetIntValue(); } }, + { "active_caches_size_in_bytes", n => { ActiveCachesSizeInBytes = n.GetIntValue(); } }, + { "full_name", n => { FullName = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ActionsCacheUsageOrgEnterprise.cs b/src/GitHub/Models/ActionsCacheUsageOrgEnterprise.cs index f081d616..bdb6d1dc 100644 --- a/src/GitHub/Models/ActionsCacheUsageOrgEnterprise.cs +++ b/src/GitHub/Models/ActionsCacheUsageOrgEnterprise.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ActionsCacheUsageOrgEnterprise : IAdditionalDataHolder, IParsable + public partial class ActionsCacheUsageOrgEnterprise : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -16,7 +18,7 @@ public class ActionsCacheUsageOrgEnterprise : IAdditionalDataHolder, IParsable /// The total size in bytes of all active cache items across all repositories of an enterprise or an organization. public int? TotalActiveCachesSizeInBytes { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ActionsCacheUsageOrgEnterprise() { @@ -25,12 +27,12 @@ public ActionsCacheUsageOrgEnterprise() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ActionsCacheUsageOrgEnterprise CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ActionsCacheUsageOrgEnterprise CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActionsCacheUsageOrgEnterprise(); + return new global::GitHub.Models.ActionsCacheUsageOrgEnterprise(); } /// /// The deserialization information for the current model @@ -40,8 +42,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"total_active_caches_count", n => { TotalActiveCachesCount = n.GetIntValue(); } }, - {"total_active_caches_size_in_bytes", n => { TotalActiveCachesSizeInBytes = n.GetIntValue(); } }, + { "total_active_caches_count", n => { TotalActiveCachesCount = n.GetIntValue(); } }, + { "total_active_caches_size_in_bytes", n => { TotalActiveCachesSizeInBytes = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/ActionsDefaultWorkflowPermissions.cs b/src/GitHub/Models/ActionsDefaultWorkflowPermissions.cs index a554bcda..a0a80c79 100644 --- a/src/GitHub/Models/ActionsDefaultWorkflowPermissions.cs +++ b/src/GitHub/Models/ActionsDefaultWorkflowPermissions.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The default workflow permissions granted to the GITHUB_TOKEN when running workflows. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ActionsDefaultWorkflowPermissions { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/ActionsEnterprisePermissions.cs b/src/GitHub/Models/ActionsEnterprisePermissions.cs index 6f859902..0a6fcd40 100644 --- a/src/GitHub/Models/ActionsEnterprisePermissions.cs +++ b/src/GitHub/Models/ActionsEnterprisePermissions.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ActionsEnterprisePermissions : IAdditionalDataHolder, IParsable + public partial class ActionsEnterprisePermissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The permissions policy that controls the actions and reusable workflows that are allowed to run. - public GitHub.Models.AllowedActions? AllowedActions { get; set; } + public global::GitHub.Models.AllowedActions? AllowedActions { get; set; } /// The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions. - public GitHub.Models.EnabledOrganizations? EnabledOrganizations { get; set; } + public global::GitHub.Models.EnabledOrganizations? EnabledOrganizations { get; set; } /// The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -32,7 +34,7 @@ public class ActionsEnterprisePermissions : IAdditionalDataHolder, IParsable public string SelectedOrganizationsUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ActionsEnterprisePermissions() { @@ -41,12 +43,12 @@ public ActionsEnterprisePermissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ActionsEnterprisePermissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ActionsEnterprisePermissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActionsEnterprisePermissions(); + return new global::GitHub.Models.ActionsEnterprisePermissions(); } /// /// The deserialization information for the current model @@ -56,10 +58,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allowed_actions", n => { AllowedActions = n.GetEnumValue(); } }, - {"enabled_organizations", n => { EnabledOrganizations = n.GetEnumValue(); } }, - {"selected_actions_url", n => { SelectedActionsUrl = n.GetStringValue(); } }, - {"selected_organizations_url", n => { SelectedOrganizationsUrl = n.GetStringValue(); } }, + { "allowed_actions", n => { AllowedActions = n.GetEnumValue(); } }, + { "enabled_organizations", n => { EnabledOrganizations = n.GetEnumValue(); } }, + { "selected_actions_url", n => { SelectedActionsUrl = n.GetStringValue(); } }, + { "selected_organizations_url", n => { SelectedOrganizationsUrl = n.GetStringValue(); } }, }; } /// @@ -69,8 +71,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("allowed_actions", AllowedActions); - writer.WriteEnumValue("enabled_organizations", EnabledOrganizations); + writer.WriteEnumValue("allowed_actions", AllowedActions); + writer.WriteEnumValue("enabled_organizations", EnabledOrganizations); writer.WriteStringValue("selected_actions_url", SelectedActionsUrl); writer.WriteStringValue("selected_organizations_url", SelectedOrganizationsUrl); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/ActionsGetDefaultWorkflowPermissions.cs b/src/GitHub/Models/ActionsGetDefaultWorkflowPermissions.cs index f4e43b0e..de73668e 100644 --- a/src/GitHub/Models/ActionsGetDefaultWorkflowPermissions.cs +++ b/src/GitHub/Models/ActionsGetDefaultWorkflowPermissions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ActionsGetDefaultWorkflowPermissions : IAdditionalDataHolder, IParsable + public partial class ActionsGetDefaultWorkflowPermissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,9 +16,9 @@ public class ActionsGetDefaultWorkflowPermissions : IAdditionalDataHolder, IPars /// Whether GitHub Actions can approve pull requests. Enabling this can be a security risk. public bool? CanApprovePullRequestReviews { get; set; } /// The default workflow permissions granted to the GITHUB_TOKEN when running workflows. - public ActionsDefaultWorkflowPermissions? DefaultWorkflowPermissions { get; set; } + public global::GitHub.Models.ActionsDefaultWorkflowPermissions? DefaultWorkflowPermissions { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ActionsGetDefaultWorkflowPermissions() { @@ -25,12 +27,12 @@ public ActionsGetDefaultWorkflowPermissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ActionsGetDefaultWorkflowPermissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ActionsGetDefaultWorkflowPermissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActionsGetDefaultWorkflowPermissions(); + return new global::GitHub.Models.ActionsGetDefaultWorkflowPermissions(); } /// /// The deserialization information for the current model @@ -40,8 +42,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"can_approve_pull_request_reviews", n => { CanApprovePullRequestReviews = n.GetBoolValue(); } }, - {"default_workflow_permissions", n => { DefaultWorkflowPermissions = n.GetEnumValue(); } }, + { "can_approve_pull_request_reviews", n => { CanApprovePullRequestReviews = n.GetBoolValue(); } }, + { "default_workflow_permissions", n => { DefaultWorkflowPermissions = n.GetEnumValue(); } }, }; } /// @@ -52,7 +54,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("can_approve_pull_request_reviews", CanApprovePullRequestReviews); - writer.WriteEnumValue("default_workflow_permissions", DefaultWorkflowPermissions); + writer.WriteEnumValue("default_workflow_permissions", DefaultWorkflowPermissions); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/ActionsOidcCustomIssuerPolicyForEnterprise.cs b/src/GitHub/Models/ActionsOidcCustomIssuerPolicyForEnterprise.cs index 2ac6a8c4..7a4ba41d 100644 --- a/src/GitHub/Models/ActionsOidcCustomIssuerPolicyForEnterprise.cs +++ b/src/GitHub/Models/ActionsOidcCustomIssuerPolicyForEnterprise.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ActionsOidcCustomIssuerPolicyForEnterprise : IAdditionalDataHolder, IParsable + public partial class ActionsOidcCustomIssuerPolicyForEnterprise : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class ActionsOidcCustomIssuerPolicyForEnterprise : IAdditionalDataHolder, /// Whether the enterprise customer requested a custom issuer URL. public bool? IncludeEnterpriseSlug { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ActionsOidcCustomIssuerPolicyForEnterprise() { @@ -23,12 +25,12 @@ public ActionsOidcCustomIssuerPolicyForEnterprise() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ActionsOidcCustomIssuerPolicyForEnterprise CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ActionsOidcCustomIssuerPolicyForEnterprise CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActionsOidcCustomIssuerPolicyForEnterprise(); + return new global::GitHub.Models.ActionsOidcCustomIssuerPolicyForEnterprise(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"include_enterprise_slug", n => { IncludeEnterpriseSlug = n.GetBoolValue(); } }, + { "include_enterprise_slug", n => { IncludeEnterpriseSlug = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/ActionsOrganizationPermissions.cs b/src/GitHub/Models/ActionsOrganizationPermissions.cs index a50e6c02..d37f0e45 100644 --- a/src/GitHub/Models/ActionsOrganizationPermissions.cs +++ b/src/GitHub/Models/ActionsOrganizationPermissions.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ActionsOrganizationPermissions : IAdditionalDataHolder, IParsable + public partial class ActionsOrganizationPermissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The permissions policy that controls the actions and reusable workflows that are allowed to run. - public GitHub.Models.AllowedActions? AllowedActions { get; set; } + public global::GitHub.Models.AllowedActions? AllowedActions { get; set; } /// The policy that controls the repositories in the organization that are allowed to run GitHub Actions. - public GitHub.Models.EnabledRepositories? EnabledRepositories { get; set; } + public global::GitHub.Models.EnabledRepositories? EnabledRepositories { get; set; } /// The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -32,7 +34,7 @@ public class ActionsOrganizationPermissions : IAdditionalDataHolder, IParsable public string SelectedRepositoriesUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ActionsOrganizationPermissions() { @@ -41,12 +43,12 @@ public ActionsOrganizationPermissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ActionsOrganizationPermissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ActionsOrganizationPermissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActionsOrganizationPermissions(); + return new global::GitHub.Models.ActionsOrganizationPermissions(); } /// /// The deserialization information for the current model @@ -56,10 +58,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allowed_actions", n => { AllowedActions = n.GetEnumValue(); } }, - {"enabled_repositories", n => { EnabledRepositories = n.GetEnumValue(); } }, - {"selected_actions_url", n => { SelectedActionsUrl = n.GetStringValue(); } }, - {"selected_repositories_url", n => { SelectedRepositoriesUrl = n.GetStringValue(); } }, + { "allowed_actions", n => { AllowedActions = n.GetEnumValue(); } }, + { "enabled_repositories", n => { EnabledRepositories = n.GetEnumValue(); } }, + { "selected_actions_url", n => { SelectedActionsUrl = n.GetStringValue(); } }, + { "selected_repositories_url", n => { SelectedRepositoriesUrl = n.GetStringValue(); } }, }; } /// @@ -69,8 +71,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("allowed_actions", AllowedActions); - writer.WriteEnumValue("enabled_repositories", EnabledRepositories); + writer.WriteEnumValue("allowed_actions", AllowedActions); + writer.WriteEnumValue("enabled_repositories", EnabledRepositories); writer.WriteStringValue("selected_actions_url", SelectedActionsUrl); writer.WriteStringValue("selected_repositories_url", SelectedRepositoriesUrl); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/ActionsPublicKey.cs b/src/GitHub/Models/ActionsPublicKey.cs index 396c65d7..794f1ce4 100644 --- a/src/GitHub/Models/ActionsPublicKey.cs +++ b/src/GitHub/Models/ActionsPublicKey.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The public key used for setting Actions Secrets. /// - public class ActionsPublicKey : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ActionsPublicKey : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -55,7 +57,7 @@ public class ActionsPublicKey : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ActionsPublicKey() { @@ -64,12 +66,12 @@ public ActionsPublicKey() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ActionsPublicKey CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ActionsPublicKey CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActionsPublicKey(); + return new global::GitHub.Models.ActionsPublicKey(); } /// /// The deserialization information for the current model @@ -79,12 +81,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"key", n => { Key = n.GetStringValue(); } }, - {"key_id", n => { KeyId = n.GetStringValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "key", n => { Key = n.GetStringValue(); } }, + { "key_id", n => { KeyId = n.GetStringValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ActionsRepositoryPermissions.cs b/src/GitHub/Models/ActionsRepositoryPermissions.cs index defaaa38..4b3b536f 100644 --- a/src/GitHub/Models/ActionsRepositoryPermissions.cs +++ b/src/GitHub/Models/ActionsRepositoryPermissions.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ActionsRepositoryPermissions : IAdditionalDataHolder, IParsable + public partial class ActionsRepositoryPermissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The permissions policy that controls the actions and reusable workflows that are allowed to run. - public GitHub.Models.AllowedActions? AllowedActions { get; set; } + public global::GitHub.Models.AllowedActions? AllowedActions { get; set; } /// Whether GitHub Actions is enabled on the repository. public bool? Enabled { get; set; } /// The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`. @@ -24,7 +26,7 @@ public class ActionsRepositoryPermissions : IAdditionalDataHolder, IParsable public string SelectedActionsUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ActionsRepositoryPermissions() { @@ -33,12 +35,12 @@ public ActionsRepositoryPermissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ActionsRepositoryPermissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ActionsRepositoryPermissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActionsRepositoryPermissions(); + return new global::GitHub.Models.ActionsRepositoryPermissions(); } /// /// The deserialization information for the current model @@ -48,9 +50,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allowed_actions", n => { AllowedActions = n.GetEnumValue(); } }, - {"enabled", n => { Enabled = n.GetBoolValue(); } }, - {"selected_actions_url", n => { SelectedActionsUrl = n.GetStringValue(); } }, + { "allowed_actions", n => { AllowedActions = n.GetEnumValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "selected_actions_url", n => { SelectedActionsUrl = n.GetStringValue(); } }, }; } /// @@ -60,7 +62,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("allowed_actions", AllowedActions); + writer.WriteEnumValue("allowed_actions", AllowedActions); writer.WriteBoolValue("enabled", Enabled); writer.WriteStringValue("selected_actions_url", SelectedActionsUrl); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/ActionsSecret.cs b/src/GitHub/Models/ActionsSecret.cs index b807e99f..28dcaa99 100644 --- a/src/GitHub/Models/ActionsSecret.cs +++ b/src/GitHub/Models/ActionsSecret.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Set secrets for GitHub Actions. /// - public class ActionsSecret : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ActionsSecret : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -25,7 +27,7 @@ public class ActionsSecret : IAdditionalDataHolder, IParsable /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ActionsSecret() { @@ -34,12 +36,12 @@ public ActionsSecret() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ActionsSecret CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ActionsSecret CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActionsSecret(); + return new global::GitHub.Models.ActionsSecret(); } /// /// The deserialization information for the current model @@ -49,9 +51,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, }; } /// diff --git a/src/GitHub/Models/ActionsSetDefaultWorkflowPermissions.cs b/src/GitHub/Models/ActionsSetDefaultWorkflowPermissions.cs index f29088cf..05740216 100644 --- a/src/GitHub/Models/ActionsSetDefaultWorkflowPermissions.cs +++ b/src/GitHub/Models/ActionsSetDefaultWorkflowPermissions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ActionsSetDefaultWorkflowPermissions : IAdditionalDataHolder, IParsable + public partial class ActionsSetDefaultWorkflowPermissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,9 +16,9 @@ public class ActionsSetDefaultWorkflowPermissions : IAdditionalDataHolder, IPars /// Whether GitHub Actions can approve pull requests. Enabling this can be a security risk. public bool? CanApprovePullRequestReviews { get; set; } /// The default workflow permissions granted to the GITHUB_TOKEN when running workflows. - public ActionsDefaultWorkflowPermissions? DefaultWorkflowPermissions { get; set; } + public global::GitHub.Models.ActionsDefaultWorkflowPermissions? DefaultWorkflowPermissions { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ActionsSetDefaultWorkflowPermissions() { @@ -25,12 +27,12 @@ public ActionsSetDefaultWorkflowPermissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ActionsSetDefaultWorkflowPermissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ActionsSetDefaultWorkflowPermissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActionsSetDefaultWorkflowPermissions(); + return new global::GitHub.Models.ActionsSetDefaultWorkflowPermissions(); } /// /// The deserialization information for the current model @@ -40,8 +42,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"can_approve_pull_request_reviews", n => { CanApprovePullRequestReviews = n.GetBoolValue(); } }, - {"default_workflow_permissions", n => { DefaultWorkflowPermissions = n.GetEnumValue(); } }, + { "can_approve_pull_request_reviews", n => { CanApprovePullRequestReviews = n.GetBoolValue(); } }, + { "default_workflow_permissions", n => { DefaultWorkflowPermissions = n.GetEnumValue(); } }, }; } /// @@ -52,7 +54,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("can_approve_pull_request_reviews", CanApprovePullRequestReviews); - writer.WriteEnumValue("default_workflow_permissions", DefaultWorkflowPermissions); + writer.WriteEnumValue("default_workflow_permissions", DefaultWorkflowPermissions); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/ActionsVariable.cs b/src/GitHub/Models/ActionsVariable.cs index 36c4c507..d240012e 100644 --- a/src/GitHub/Models/ActionsVariable.cs +++ b/src/GitHub/Models/ActionsVariable.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ActionsVariable : IAdditionalDataHolder, IParsable + public partial class ActionsVariable : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -32,7 +34,7 @@ public class ActionsVariable : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ActionsVariable() { @@ -41,12 +43,12 @@ public ActionsVariable() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ActionsVariable CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ActionsVariable CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActionsVariable(); + return new global::GitHub.Models.ActionsVariable(); } /// /// The deserialization information for the current model @@ -56,10 +58,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ActionsWorkflowAccessToRepository.cs b/src/GitHub/Models/ActionsWorkflowAccessToRepository.cs index f1df782f..3009a03e 100644 --- a/src/GitHub/Models/ActionsWorkflowAccessToRepository.cs +++ b/src/GitHub/Models/ActionsWorkflowAccessToRepository.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ActionsWorkflowAccessToRepository : IAdditionalDataHolder, IParsable + public partial class ActionsWorkflowAccessToRepository : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Defines the level of access that workflows outside of the repository have to actions and reusable workflows within therepository.`none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization. `enterprise` level access allows sharing across the enterprise. - public ActionsWorkflowAccessToRepository_access_level? AccessLevel { get; set; } + public global::GitHub.Models.ActionsWorkflowAccessToRepository_access_level? AccessLevel { get; set; } /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ActionsWorkflowAccessToRepository() { @@ -23,12 +25,12 @@ public ActionsWorkflowAccessToRepository() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ActionsWorkflowAccessToRepository CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ActionsWorkflowAccessToRepository CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActionsWorkflowAccessToRepository(); + return new global::GitHub.Models.ActionsWorkflowAccessToRepository(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"access_level", n => { AccessLevel = n.GetEnumValue(); } }, + { "access_level", n => { AccessLevel = n.GetEnumValue(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("access_level", AccessLevel); + writer.WriteEnumValue("access_level", AccessLevel); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/ActionsWorkflowAccessToRepository_access_level.cs b/src/GitHub/Models/ActionsWorkflowAccessToRepository_access_level.cs index 3ed0f6d0..4971bd85 100644 --- a/src/GitHub/Models/ActionsWorkflowAccessToRepository_access_level.cs +++ b/src/GitHub/Models/ActionsWorkflowAccessToRepository_access_level.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Defines the level of access that workflows outside of the repository have to actions and reusable workflows within therepository.`none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization. `enterprise` level access allows sharing across the enterprise. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ActionsWorkflowAccessToRepository_access_level { [EnumMember(Value = "none")] diff --git a/src/GitHub/Models/Activity.cs b/src/GitHub/Models/Activity.cs index 16181ab6..4fdd9a45 100644 --- a/src/GitHub/Models/Activity.cs +++ b/src/GitHub/Models/Activity.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Activity /// - public class Activity : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Activity : IAdditionalDataHolder, IParsable { /// The type of the activity that was performed. - public Activity_activity_type? ActivityType { get; set; } + public global::GitHub.Models.Activity_activity_type? ActivityType { get; set; } /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Actor { get; set; } + public global::GitHub.Models.NullableSimpleUser? Actor { get; set; } #nullable restore #else - public NullableSimpleUser Actor { get; set; } + public global::GitHub.Models.NullableSimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -59,7 +61,7 @@ public class Activity : IAdditionalDataHolder, IParsable /// The time when the activity occurred. public DateTimeOffset? Timestamp { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Activity() { @@ -68,12 +70,12 @@ public Activity() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Activity CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Activity CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Activity(); + return new global::GitHub.Models.Activity(); } /// /// The deserialization information for the current model @@ -83,14 +85,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"activity_type", n => { ActivityType = n.GetEnumValue(); } }, - {"actor", n => { Actor = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"after", n => { After = n.GetStringValue(); } }, - {"before", n => { Before = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"ref", n => { Ref = n.GetStringValue(); } }, - {"timestamp", n => { Timestamp = n.GetDateTimeOffsetValue(); } }, + { "activity_type", n => { ActivityType = n.GetEnumValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "after", n => { After = n.GetStringValue(); } }, + { "before", n => { Before = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, + { "timestamp", n => { Timestamp = n.GetDateTimeOffsetValue(); } }, }; } /// @@ -100,8 +102,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("activity_type", ActivityType); - writer.WriteObjectValue("actor", Actor); + writer.WriteEnumValue("activity_type", ActivityType); + writer.WriteObjectValue("actor", Actor); writer.WriteStringValue("after", After); writer.WriteStringValue("before", Before); writer.WriteIntValue("id", Id); diff --git a/src/GitHub/Models/Activity_activity_type.cs b/src/GitHub/Models/Activity_activity_type.cs index df6b0af3..9108a14d 100644 --- a/src/GitHub/Models/Activity_activity_type.cs +++ b/src/GitHub/Models/Activity_activity_type.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The type of the activity that was performed. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum Activity_activity_type { [EnumMember(Value = "push")] diff --git a/src/GitHub/Models/Actor.cs b/src/GitHub/Models/Actor.cs index 8ea5c424..6b486c62 100644 --- a/src/GitHub/Models/Actor.cs +++ b/src/GitHub/Models/Actor.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Actor /// - public class Actor : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Actor : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -55,7 +57,7 @@ public class Actor : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Actor() { @@ -64,12 +66,12 @@ public Actor() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Actor CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Actor CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Actor(); + return new global::GitHub.Models.Actor(); } /// /// The deserialization information for the current model @@ -79,12 +81,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"display_login", n => { DisplayLogin = n.GetStringValue(); } }, - {"gravatar_id", n => { GravatarId = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "display_login", n => { DisplayLogin = n.GetStringValue(); } }, + { "gravatar_id", n => { GravatarId = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/AddedToProjectIssueEvent.cs b/src/GitHub/Models/AddedToProjectIssueEvent.cs index 1790ca6f..40d4ad93 100644 --- a/src/GitHub/Models/AddedToProjectIssueEvent.cs +++ b/src/GitHub/Models/AddedToProjectIssueEvent.cs @@ -1,22 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Added to Project Issue Event /// - public class AddedToProjectIssueEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AddedToProjectIssueEvent : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -65,18 +67,18 @@ public class AddedToProjectIssueEvent : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// The project_card property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public AddedToProjectIssueEvent_project_card? ProjectCard { get; set; } + public global::GitHub.Models.AddedToProjectIssueEvent_project_card? ProjectCard { get; set; } #nullable restore #else - public AddedToProjectIssueEvent_project_card ProjectCard { get; set; } + public global::GitHub.Models.AddedToProjectIssueEvent_project_card ProjectCard { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +89,7 @@ public class AddedToProjectIssueEvent : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddedToProjectIssueEvent() { @@ -96,12 +98,12 @@ public AddedToProjectIssueEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AddedToProjectIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.AddedToProjectIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddedToProjectIssueEvent(); + return new global::GitHub.Models.AddedToProjectIssueEvent(); } /// /// The deserialization information for the current model @@ -111,16 +113,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"project_card", n => { ProjectCard = n.GetObjectValue(AddedToProjectIssueEvent_project_card.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "project_card", n => { ProjectCard = n.GetObjectValue(global::GitHub.Models.AddedToProjectIssueEvent_project_card.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -130,15 +132,15 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("actor", Actor); writer.WriteStringValue("commit_id", CommitId); writer.WriteStringValue("commit_url", CommitUrl); writer.WriteStringValue("created_at", CreatedAt); writer.WriteStringValue("event", Event); writer.WriteIntValue("id", Id); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); - writer.WriteObjectValue("project_card", ProjectCard); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("project_card", ProjectCard); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/AddedToProjectIssueEvent_project_card.cs b/src/GitHub/Models/AddedToProjectIssueEvent_project_card.cs index c44bb5bd..e8911c8a 100644 --- a/src/GitHub/Models/AddedToProjectIssueEvent_project_card.cs +++ b/src/GitHub/Models/AddedToProjectIssueEvent_project_card.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AddedToProjectIssueEvent_project_card : IAdditionalDataHolder, IParsable + public partial class AddedToProjectIssueEvent_project_card : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -48,7 +50,7 @@ public class AddedToProjectIssueEvent_project_card : IAdditionalDataHolder, IPar public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddedToProjectIssueEvent_project_card() { @@ -57,12 +59,12 @@ public AddedToProjectIssueEvent_project_card() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AddedToProjectIssueEvent_project_card CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.AddedToProjectIssueEvent_project_card CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddedToProjectIssueEvent_project_card(); + return new global::GitHub.Models.AddedToProjectIssueEvent_project_card(); } /// /// The deserialization information for the current model @@ -72,12 +74,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"column_name", n => { ColumnName = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"previous_column_name", n => { PreviousColumnName = n.GetStringValue(); } }, - {"project_id", n => { ProjectId = n.GetIntValue(); } }, - {"project_url", n => { ProjectUrl = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "column_name", n => { ColumnName = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "previous_column_name", n => { PreviousColumnName = n.GetStringValue(); } }, + { "project_id", n => { ProjectId = n.GetIntValue(); } }, + { "project_url", n => { ProjectUrl = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/AdvancedSecurityActiveCommitters.cs b/src/GitHub/Models/AdvancedSecurityActiveCommitters.cs index 300124fe..284a43ed 100644 --- a/src/GitHub/Models/AdvancedSecurityActiveCommitters.cs +++ b/src/GitHub/Models/AdvancedSecurityActiveCommitters.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AdvancedSecurityActiveCommitters : IAdditionalDataHolder, IParsable + public partial class AdvancedSecurityActiveCommitters : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -18,17 +20,17 @@ public class AdvancedSecurityActiveCommitters : IAdditionalDataHolder, IParsable /// The repositories property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Repositories { get; set; } + public List? Repositories { get; set; } #nullable restore #else - public List Repositories { get; set; } + public List Repositories { get; set; } #endif /// The total_advanced_security_committers property public int? TotalAdvancedSecurityCommitters { get; set; } /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AdvancedSecurityActiveCommitters() { @@ -37,12 +39,12 @@ public AdvancedSecurityActiveCommitters() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AdvancedSecurityActiveCommitters CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.AdvancedSecurityActiveCommitters CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AdvancedSecurityActiveCommitters(); + return new global::GitHub.Models.AdvancedSecurityActiveCommitters(); } /// /// The deserialization information for the current model @@ -52,11 +54,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"maximum_advanced_security_committers", n => { MaximumAdvancedSecurityCommitters = n.GetIntValue(); } }, - {"purchased_advanced_security_committers", n => { PurchasedAdvancedSecurityCommitters = n.GetIntValue(); } }, - {"repositories", n => { Repositories = n.GetCollectionOfObjectValues(AdvancedSecurityActiveCommittersRepository.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_advanced_security_committers", n => { TotalAdvancedSecurityCommitters = n.GetIntValue(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "maximum_advanced_security_committers", n => { MaximumAdvancedSecurityCommitters = n.GetIntValue(); } }, + { "purchased_advanced_security_committers", n => { PurchasedAdvancedSecurityCommitters = n.GetIntValue(); } }, + { "repositories", n => { Repositories = n.GetCollectionOfObjectValues(global::GitHub.Models.AdvancedSecurityActiveCommittersRepository.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_advanced_security_committers", n => { TotalAdvancedSecurityCommitters = n.GetIntValue(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -68,7 +70,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("maximum_advanced_security_committers", MaximumAdvancedSecurityCommitters); writer.WriteIntValue("purchased_advanced_security_committers", PurchasedAdvancedSecurityCommitters); - writer.WriteCollectionOfObjectValues("repositories", Repositories); + writer.WriteCollectionOfObjectValues("repositories", Repositories); writer.WriteIntValue("total_advanced_security_committers", TotalAdvancedSecurityCommitters); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/AdvancedSecurityActiveCommittersRepository.cs b/src/GitHub/Models/AdvancedSecurityActiveCommittersRepository.cs index a4a8dac4..d51f3784 100644 --- a/src/GitHub/Models/AdvancedSecurityActiveCommittersRepository.cs +++ b/src/GitHub/Models/AdvancedSecurityActiveCommittersRepository.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AdvancedSecurityActiveCommittersRepository : IAdditionalDataHolder, IParsable + public partial class AdvancedSecurityActiveCommittersRepository : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -16,10 +18,10 @@ public class AdvancedSecurityActiveCommittersRepository : IAdditionalDataHolder, /// The advanced_security_committers_breakdown property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? AdvancedSecurityCommittersBreakdown { get; set; } + public List? AdvancedSecurityCommittersBreakdown { get; set; } #nullable restore #else - public List AdvancedSecurityCommittersBreakdown { get; set; } + public List AdvancedSecurityCommittersBreakdown { get; set; } #endif /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -30,7 +32,7 @@ public class AdvancedSecurityActiveCommittersRepository : IAdditionalDataHolder, public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AdvancedSecurityActiveCommittersRepository() { @@ -39,12 +41,12 @@ public AdvancedSecurityActiveCommittersRepository() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AdvancedSecurityActiveCommittersRepository CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.AdvancedSecurityActiveCommittersRepository CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AdvancedSecurityActiveCommittersRepository(); + return new global::GitHub.Models.AdvancedSecurityActiveCommittersRepository(); } /// /// The deserialization information for the current model @@ -54,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"advanced_security_committers", n => { AdvancedSecurityCommitters = n.GetIntValue(); } }, - {"advanced_security_committers_breakdown", n => { AdvancedSecurityCommittersBreakdown = n.GetCollectionOfObjectValues(AdvancedSecurityActiveCommittersUser.CreateFromDiscriminatorValue)?.ToList(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "advanced_security_committers", n => { AdvancedSecurityCommitters = n.GetIntValue(); } }, + { "advanced_security_committers_breakdown", n => { AdvancedSecurityCommittersBreakdown = n.GetCollectionOfObjectValues(global::GitHub.Models.AdvancedSecurityActiveCommittersUser.CreateFromDiscriminatorValue)?.AsList(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// @@ -67,7 +69,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("advanced_security_committers", AdvancedSecurityCommitters); - writer.WriteCollectionOfObjectValues("advanced_security_committers_breakdown", AdvancedSecurityCommittersBreakdown); + writer.WriteCollectionOfObjectValues("advanced_security_committers_breakdown", AdvancedSecurityCommittersBreakdown); writer.WriteStringValue("name", Name); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/AdvancedSecurityActiveCommittersUser.cs b/src/GitHub/Models/AdvancedSecurityActiveCommittersUser.cs index 626586d0..6cfbe5c6 100644 --- a/src/GitHub/Models/AdvancedSecurityActiveCommittersUser.cs +++ b/src/GitHub/Models/AdvancedSecurityActiveCommittersUser.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AdvancedSecurityActiveCommittersUser : IAdditionalDataHolder, IParsable + public partial class AdvancedSecurityActiveCommittersUser : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class AdvancedSecurityActiveCommittersUser : IAdditionalDataHolder, IPars public string UserLogin { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AdvancedSecurityActiveCommittersUser() { @@ -45,12 +47,12 @@ public AdvancedSecurityActiveCommittersUser() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AdvancedSecurityActiveCommittersUser CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.AdvancedSecurityActiveCommittersUser CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AdvancedSecurityActiveCommittersUser(); + return new global::GitHub.Models.AdvancedSecurityActiveCommittersUser(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"last_pushed_date", n => { LastPushedDate = n.GetStringValue(); } }, - {"last_pushed_email", n => { LastPushedEmail = n.GetStringValue(); } }, - {"user_login", n => { UserLogin = n.GetStringValue(); } }, + { "last_pushed_date", n => { LastPushedDate = n.GetStringValue(); } }, + { "last_pushed_email", n => { LastPushedEmail = n.GetStringValue(); } }, + { "user_login", n => { UserLogin = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Alerts503Error.cs b/src/GitHub/Models/Alerts503Error.cs index c99436a8..762e7534 100644 --- a/src/GitHub/Models/Alerts503Error.cs +++ b/src/GitHub/Models/Alerts503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Alerts503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class Alerts503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class Alerts503Error : ApiException, IAdditionalDataHolder, IParsable #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Alerts503Error() { @@ -46,12 +42,12 @@ public Alerts503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Alerts503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Alerts503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Alerts503Error(); + return new global::GitHub.Models.Alerts503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/AllowedActions.cs b/src/GitHub/Models/AllowedActions.cs index 8986e0fc..0d43a516 100644 --- a/src/GitHub/Models/AllowedActions.cs +++ b/src/GitHub/Models/AllowedActions.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The permissions policy that controls the actions and reusable workflows that are allowed to run. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AllowedActions { [EnumMember(Value = "all")] diff --git a/src/GitHub/Models/Analyses503Error.cs b/src/GitHub/Models/Analyses503Error.cs index 01099fe0..5fa81373 100644 --- a/src/GitHub/Models/Analyses503Error.cs +++ b/src/GitHub/Models/Analyses503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Analyses503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class Analyses503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class Analyses503Error : ApiException, IAdditionalDataHolder, IParsable #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Analyses503Error() { @@ -46,12 +42,12 @@ public Analyses503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Analyses503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Analyses503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Analyses503Error(); + return new global::GitHub.Models.Analyses503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/Announcement.cs b/src/GitHub/Models/Announcement.cs index 78c2781a..a7660f6c 100644 --- a/src/GitHub/Models/Announcement.cs +++ b/src/GitHub/Models/Announcement.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Enterprise global announcement /// - public class Announcement : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Announcement : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,7 +25,7 @@ public class Announcement : IAdditionalDataHolder, IParsable /// The time at which the announcement expires. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. To set an announcement that never expires, omit this parameter, set it to `null`, or set it to an empty string. public DateTimeOffset? ExpiresAt { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Announcement() { @@ -32,12 +34,12 @@ public Announcement() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Announcement CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Announcement CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Announcement(); + return new global::GitHub.Models.Announcement(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"announcement", n => { AnnouncementProp = n.GetStringValue(); } }, - {"expires_at", n => { ExpiresAt = n.GetDateTimeOffsetValue(); } }, + { "announcement", n => { AnnouncementProp = n.GetStringValue(); } }, + { "expires_at", n => { ExpiresAt = n.GetDateTimeOffsetValue(); } }, }; } /// diff --git a/src/GitHub/Models/AnnouncementBanner.cs b/src/GitHub/Models/AnnouncementBanner.cs index d600aab6..f6d1f484 100644 --- a/src/GitHub/Models/AnnouncementBanner.cs +++ b/src/GitHub/Models/AnnouncementBanner.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Announcement at either the repository, organization, or enterprise level /// - public class AnnouncementBanner : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AnnouncementBanner : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -25,7 +27,7 @@ public class AnnouncementBanner : IAdditionalDataHolder, IParsable /// Whether an announcement can be dismissed by the user. public bool? UserDismissible { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AnnouncementBanner() { @@ -34,12 +36,12 @@ public AnnouncementBanner() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AnnouncementBanner CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.AnnouncementBanner CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AnnouncementBanner(); + return new global::GitHub.Models.AnnouncementBanner(); } /// /// The deserialization information for the current model @@ -49,9 +51,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"announcement", n => { Announcement = n.GetStringValue(); } }, - {"expires_at", n => { ExpiresAt = n.GetDateTimeOffsetValue(); } }, - {"user_dismissible", n => { UserDismissible = n.GetBoolValue(); } }, + { "announcement", n => { Announcement = n.GetStringValue(); } }, + { "expires_at", n => { ExpiresAt = n.GetDateTimeOffsetValue(); } }, + { "user_dismissible", n => { UserDismissible = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/ApiOverview.cs b/src/GitHub/Models/ApiOverview.cs index 3ffccffb..9331e88b 100644 --- a/src/GitHub/Models/ApiOverview.cs +++ b/src/GitHub/Models/ApiOverview.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Api Overview /// - public class ApiOverview : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ApiOverview : IAdditionalDataHolder, IParsable { /// The actions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -55,10 +57,10 @@ public class ApiOverview : IAdditionalDataHolder, IParsable /// The domains property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiOverview_domains? Domains { get; set; } + public global::GitHub.Models.ApiOverview_domains? Domains { get; set; } #nullable restore #else - public ApiOverview_domains Domains { get; set; } + public global::GitHub.Models.ApiOverview_domains Domains { get; set; } #endif /// The git property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -111,10 +113,10 @@ public class ApiOverview : IAdditionalDataHolder, IParsable /// The ssh_key_fingerprints property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiOverview_ssh_key_fingerprints? SshKeyFingerprints { get; set; } + public global::GitHub.Models.ApiOverview_ssh_key_fingerprints? SshKeyFingerprints { get; set; } #nullable restore #else - public ApiOverview_ssh_key_fingerprints SshKeyFingerprints { get; set; } + public global::GitHub.Models.ApiOverview_ssh_key_fingerprints SshKeyFingerprints { get; set; } #endif /// The ssh_keys property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -135,7 +137,7 @@ public class ApiOverview : IAdditionalDataHolder, IParsable public List Web { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApiOverview() { @@ -144,12 +146,12 @@ public ApiOverview() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ApiOverview CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ApiOverview CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApiOverview(); + return new global::GitHub.Models.ApiOverview(); } /// /// The deserialization information for the current model @@ -159,22 +161,22 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actions", n => { Actions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"actions_macos", n => { ActionsMacos = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"api", n => { Api = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"copilot", n => { Copilot = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"dependabot", n => { Dependabot = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"domains", n => { Domains = n.GetObjectValue(ApiOverview_domains.CreateFromDiscriminatorValue); } }, - {"git", n => { Git = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"github_enterprise_importer", n => { GithubEnterpriseImporter = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"hooks", n => { Hooks = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"importer", n => { Importer = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"packages", n => { Packages = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"pages", n => { Pages = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"ssh_key_fingerprints", n => { SshKeyFingerprints = n.GetObjectValue(ApiOverview_ssh_key_fingerprints.CreateFromDiscriminatorValue); } }, - {"ssh_keys", n => { SshKeys = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"verifiable_password_authentication", n => { VerifiablePasswordAuthentication = n.GetBoolValue(); } }, - {"web", n => { Web = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "actions", n => { Actions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "actions_macos", n => { ActionsMacos = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "api", n => { Api = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "copilot", n => { Copilot = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "dependabot", n => { Dependabot = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "domains", n => { Domains = n.GetObjectValue(global::GitHub.Models.ApiOverview_domains.CreateFromDiscriminatorValue); } }, + { "git", n => { Git = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "github_enterprise_importer", n => { GithubEnterpriseImporter = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "hooks", n => { Hooks = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "importer", n => { Importer = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "packages", n => { Packages = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "pages", n => { Pages = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "ssh_key_fingerprints", n => { SshKeyFingerprints = n.GetObjectValue(global::GitHub.Models.ApiOverview_ssh_key_fingerprints.CreateFromDiscriminatorValue); } }, + { "ssh_keys", n => { SshKeys = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "verifiable_password_authentication", n => { VerifiablePasswordAuthentication = n.GetBoolValue(); } }, + { "web", n => { Web = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -189,14 +191,14 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteCollectionOfPrimitiveValues("api", Api); writer.WriteCollectionOfPrimitiveValues("copilot", Copilot); writer.WriteCollectionOfPrimitiveValues("dependabot", Dependabot); - writer.WriteObjectValue("domains", Domains); + writer.WriteObjectValue("domains", Domains); writer.WriteCollectionOfPrimitiveValues("git", Git); writer.WriteCollectionOfPrimitiveValues("github_enterprise_importer", GithubEnterpriseImporter); writer.WriteCollectionOfPrimitiveValues("hooks", Hooks); writer.WriteCollectionOfPrimitiveValues("importer", Importer); writer.WriteCollectionOfPrimitiveValues("packages", Packages); writer.WriteCollectionOfPrimitiveValues("pages", Pages); - writer.WriteObjectValue("ssh_key_fingerprints", SshKeyFingerprints); + writer.WriteObjectValue("ssh_key_fingerprints", SshKeyFingerprints); writer.WriteCollectionOfPrimitiveValues("ssh_keys", SshKeys); writer.WriteBoolValue("verifiable_password_authentication", VerifiablePasswordAuthentication); writer.WriteCollectionOfPrimitiveValues("web", Web); diff --git a/src/GitHub/Models/ApiOverview_domains.cs b/src/GitHub/Models/ApiOverview_domains.cs index c47282e4..3eca5455 100644 --- a/src/GitHub/Models/ApiOverview_domains.cs +++ b/src/GitHub/Models/ApiOverview_domains.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ApiOverview_domains : IAdditionalDataHolder, IParsable + public partial class ApiOverview_domains : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The actions property @@ -19,6 +21,14 @@ public class ApiOverview_domains : IAdditionalDataHolder, IParsable #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// The artifact_attestations property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::GitHub.Models.ApiOverview_domains_artifact_attestations? ArtifactAttestations { get; set; } +#nullable restore +#else + public global::GitHub.Models.ApiOverview_domains_artifact_attestations ArtifactAttestations { get; set; } +#endif /// The codespaces property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -52,7 +62,7 @@ public class ApiOverview_domains : IAdditionalDataHolder, IParsable public List Website { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApiOverview_domains() { @@ -61,12 +71,12 @@ public ApiOverview_domains() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ApiOverview_domains CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ApiOverview_domains CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApiOverview_domains(); + return new global::GitHub.Models.ApiOverview_domains(); } /// /// The deserialization information for the current model @@ -76,11 +86,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actions", n => { Actions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"codespaces", n => { Codespaces = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"copilot", n => { Copilot = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"packages", n => { Packages = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"website", n => { Website = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "actions", n => { Actions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "artifact_attestations", n => { ArtifactAttestations = n.GetObjectValue(global::GitHub.Models.ApiOverview_domains_artifact_attestations.CreateFromDiscriminatorValue); } }, + { "codespaces", n => { Codespaces = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "copilot", n => { Copilot = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "packages", n => { Packages = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "website", n => { Website = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -91,6 +102,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("actions", Actions); + writer.WriteObjectValue("artifact_attestations", ArtifactAttestations); writer.WriteCollectionOfPrimitiveValues("codespaces", Codespaces); writer.WriteCollectionOfPrimitiveValues("copilot", Copilot); writer.WriteCollectionOfPrimitiveValues("packages", Packages); diff --git a/src/GitHub/Models/ApiOverview_domains_artifact_attestations.cs b/src/GitHub/Models/ApiOverview_domains_artifact_attestations.cs new file mode 100644 index 00000000..9cfcbe45 --- /dev/null +++ b/src/GitHub/Models/ApiOverview_domains_artifact_attestations.cs @@ -0,0 +1,73 @@ +// +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + #pragma warning disable CS1591 + public partial class ApiOverview_domains_artifact_attestations : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The services property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Services { get; set; } +#nullable restore +#else + public List Services { get; set; } +#endif + /// The trust_domain property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TrustDomain { get; set; } +#nullable restore +#else + public string TrustDomain { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ApiOverview_domains_artifact_attestations() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::GitHub.Models.ApiOverview_domains_artifact_attestations CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Models.ApiOverview_domains_artifact_attestations(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "services", n => { Services = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "trust_domain", n => { TrustDomain = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfPrimitiveValues("services", Services); + writer.WriteStringValue("trust_domain", TrustDomain); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/GitHub/Models/ApiOverview_ssh_key_fingerprints.cs b/src/GitHub/Models/ApiOverview_ssh_key_fingerprints.cs index 9a6ca190..8c55fbae 100644 --- a/src/GitHub/Models/ApiOverview_ssh_key_fingerprints.cs +++ b/src/GitHub/Models/ApiOverview_ssh_key_fingerprints.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ApiOverview_ssh_key_fingerprints : IAdditionalDataHolder, IParsable + public partial class ApiOverview_ssh_key_fingerprints : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -44,7 +46,7 @@ public class ApiOverview_ssh_key_fingerprints : IAdditionalDataHolder, IParsable public string SHA256RSA { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApiOverview_ssh_key_fingerprints() { @@ -53,12 +55,12 @@ public ApiOverview_ssh_key_fingerprints() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ApiOverview_ssh_key_fingerprints CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ApiOverview_ssh_key_fingerprints CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApiOverview_ssh_key_fingerprints(); + return new global::GitHub.Models.ApiOverview_ssh_key_fingerprints(); } /// /// The deserialization information for the current model @@ -68,10 +70,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"SHA256_DSA", n => { SHA256DSA = n.GetStringValue(); } }, - {"SHA256_ECDSA", n => { SHA256ECDSA = n.GetStringValue(); } }, - {"SHA256_ED25519", n => { SHA256ED25519 = n.GetStringValue(); } }, - {"SHA256_RSA", n => { SHA256RSA = n.GetStringValue(); } }, + { "SHA256_DSA", n => { SHA256DSA = n.GetStringValue(); } }, + { "SHA256_ECDSA", n => { SHA256ECDSA = n.GetStringValue(); } }, + { "SHA256_ED25519", n => { SHA256ED25519 = n.GetStringValue(); } }, + { "SHA256_RSA", n => { SHA256RSA = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/AppPermissions.cs b/src/GitHub/Models/AppPermissions.cs index 6e4a7a29..dbe4a392 100644 --- a/src/GitHub/Models/AppPermissions.cs +++ b/src/GitHub/Models/AppPermissions.cs @@ -1,115 +1,117 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The permissions granted to the user access token. /// - public class AppPermissions : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AppPermissions : IAdditionalDataHolder, IParsable { /// The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts. - public AppPermissions_actions? Actions { get; set; } + public global::GitHub.Models.AppPermissions_actions? Actions { get; set; } /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation. - public AppPermissions_administration? Administration { get; set; } + public global::GitHub.Models.AppPermissions_administration? Administration { get; set; } /// The level of permission to grant the access token for checks on code. - public AppPermissions_checks? Checks { get; set; } + public global::GitHub.Models.AppPermissions_checks? Checks { get; set; } /// The level of permission to grant the access token to create, edit, delete, and list Codespaces. - public AppPermissions_codespaces? Codespaces { get; set; } + public global::GitHub.Models.AppPermissions_codespaces? Codespaces { get; set; } /// The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges. - public AppPermissions_contents? Contents { get; set; } + public global::GitHub.Models.AppPermissions_contents? Contents { get; set; } /// The leve of permission to grant the access token to manage Dependabot secrets. - public AppPermissions_dependabot_secrets? DependabotSecrets { get; set; } + public global::GitHub.Models.AppPermissions_dependabot_secrets? DependabotSecrets { get; set; } /// The level of permission to grant the access token for deployments and deployment statuses. - public AppPermissions_deployments? Deployments { get; set; } + public global::GitHub.Models.AppPermissions_deployments? Deployments { get; set; } /// The level of permission to grant the access token to manage the email addresses belonging to a user. - public AppPermissions_email_addresses? EmailAddresses { get; set; } + public global::GitHub.Models.AppPermissions_email_addresses? EmailAddresses { get; set; } /// The level of permission to grant the access token for managing repository environments. - public AppPermissions_environments? Environments { get; set; } + public global::GitHub.Models.AppPermissions_environments? Environments { get; set; } /// The level of permission to grant the access token to manage the followers belonging to a user. - public AppPermissions_followers? Followers { get; set; } + public global::GitHub.Models.AppPermissions_followers? Followers { get; set; } /// The level of permission to grant the access token to manage git SSH keys. - public AppPermissions_git_ssh_keys? GitSshKeys { get; set; } + public global::GitHub.Models.AppPermissions_git_ssh_keys? GitSshKeys { get; set; } /// The level of permission to grant the access token to view and manage GPG keys belonging to a user. - public AppPermissions_gpg_keys? GpgKeys { get; set; } + public global::GitHub.Models.AppPermissions_gpg_keys? GpgKeys { get; set; } /// The level of permission to grant the access token to view and manage interaction limits on a repository. - public AppPermissions_interaction_limits? InteractionLimits { get; set; } + public global::GitHub.Models.AppPermissions_interaction_limits? InteractionLimits { get; set; } /// The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones. - public AppPermissions_issues? Issues { get; set; } + public global::GitHub.Models.AppPermissions_issues? Issues { get; set; } /// The level of permission to grant the access token for organization teams and members. - public AppPermissions_members? Members { get; set; } + public global::GitHub.Models.AppPermissions_members? Members { get; set; } /// The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata. - public AppPermissions_metadata? Metadata { get; set; } + public global::GitHub.Models.AppPermissions_metadata? Metadata { get; set; } /// The level of permission to grant the access token to manage access to an organization. - public AppPermissions_organization_administration? OrganizationAdministration { get; set; } + public global::GitHub.Models.AppPermissions_organization_administration? OrganizationAdministration { get; set; } /// The level of permission to grant the access token to view and manage announcement banners for an organization. - public AppPermissions_organization_announcement_banners? OrganizationAnnouncementBanners { get; set; } + public global::GitHub.Models.AppPermissions_organization_announcement_banners? OrganizationAnnouncementBanners { get; set; } /// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in beta and is subject to change. - public AppPermissions_organization_copilot_seat_management? OrganizationCopilotSeatManagement { get; set; } + public global::GitHub.Models.AppPermissions_organization_copilot_seat_management? OrganizationCopilotSeatManagement { get; set; } /// The level of permission to grant the access token for custom organization roles management. - public AppPermissions_organization_custom_org_roles? OrganizationCustomOrgRoles { get; set; } + public global::GitHub.Models.AppPermissions_organization_custom_org_roles? OrganizationCustomOrgRoles { get; set; } /// The level of permission to grant the access token for custom property management. - public AppPermissions_organization_custom_properties? OrganizationCustomProperties { get; set; } + public global::GitHub.Models.AppPermissions_organization_custom_properties? OrganizationCustomProperties { get; set; } /// The level of permission to grant the access token for custom repository roles management. - public AppPermissions_organization_custom_roles? OrganizationCustomRoles { get; set; } + public global::GitHub.Models.AppPermissions_organization_custom_roles? OrganizationCustomRoles { get; set; } /// The level of permission to grant the access token to view events triggered by an activity in an organization. - public AppPermissions_organization_events? OrganizationEvents { get; set; } + public global::GitHub.Models.AppPermissions_organization_events? OrganizationEvents { get; set; } /// The level of permission to grant the access token to manage the post-receive hooks for an organization. - public AppPermissions_organization_hooks? OrganizationHooks { get; set; } + public global::GitHub.Models.AppPermissions_organization_hooks? OrganizationHooks { get; set; } /// The level of permission to grant the access token for organization packages published to GitHub Packages. - public AppPermissions_organization_packages? OrganizationPackages { get; set; } + public global::GitHub.Models.AppPermissions_organization_packages? OrganizationPackages { get; set; } /// The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization. - public AppPermissions_organization_personal_access_token_requests? OrganizationPersonalAccessTokenRequests { get; set; } + public global::GitHub.Models.AppPermissions_organization_personal_access_token_requests? OrganizationPersonalAccessTokenRequests { get; set; } /// The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization. - public AppPermissions_organization_personal_access_tokens? OrganizationPersonalAccessTokens { get; set; } + public global::GitHub.Models.AppPermissions_organization_personal_access_tokens? OrganizationPersonalAccessTokens { get; set; } /// The level of permission to grant the access token for viewing an organization's plan. - public AppPermissions_organization_plan? OrganizationPlan { get; set; } + public global::GitHub.Models.AppPermissions_organization_plan? OrganizationPlan { get; set; } /// The level of permission to grant the access token to manage organization projects and projects beta (where available). - public AppPermissions_organization_projects? OrganizationProjects { get; set; } + public global::GitHub.Models.AppPermissions_organization_projects? OrganizationProjects { get; set; } /// The level of permission to grant the access token to manage organization secrets. - public AppPermissions_organization_secrets? OrganizationSecrets { get; set; } + public global::GitHub.Models.AppPermissions_organization_secrets? OrganizationSecrets { get; set; } /// The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization. - public AppPermissions_organization_self_hosted_runners? OrganizationSelfHostedRunners { get; set; } + public global::GitHub.Models.AppPermissions_organization_self_hosted_runners? OrganizationSelfHostedRunners { get; set; } /// The level of permission to grant the access token to view and manage users blocked by the organization. - public AppPermissions_organization_user_blocking? OrganizationUserBlocking { get; set; } + public global::GitHub.Models.AppPermissions_organization_user_blocking? OrganizationUserBlocking { get; set; } /// The level of permission to grant the access token for packages published to GitHub Packages. - public AppPermissions_packages? Packages { get; set; } + public global::GitHub.Models.AppPermissions_packages? Packages { get; set; } /// The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds. - public AppPermissions_pages? Pages { get; set; } + public global::GitHub.Models.AppPermissions_pages? Pages { get; set; } /// The level of permission to grant the access token to manage the profile settings belonging to a user. - public AppPermissions_profile? Profile { get; set; } + public global::GitHub.Models.AppPermissions_profile? Profile { get; set; } /// The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges. - public AppPermissions_pull_requests? PullRequests { get; set; } + public global::GitHub.Models.AppPermissions_pull_requests? PullRequests { get; set; } /// The level of permission to grant the access token to view and edit custom properties for a repository, when allowed by the property. - public AppPermissions_repository_custom_properties? RepositoryCustomProperties { get; set; } + public global::GitHub.Models.AppPermissions_repository_custom_properties? RepositoryCustomProperties { get; set; } /// The level of permission to grant the access token to manage the post-receive hooks for a repository. - public AppPermissions_repository_hooks? RepositoryHooks { get; set; } + public global::GitHub.Models.AppPermissions_repository_hooks? RepositoryHooks { get; set; } /// The level of permission to grant the access token to manage repository projects, columns, and cards. - public AppPermissions_repository_projects? RepositoryProjects { get; set; } + public global::GitHub.Models.AppPermissions_repository_projects? RepositoryProjects { get; set; } /// The level of permission to grant the access token to manage repository secrets. - public AppPermissions_secrets? Secrets { get; set; } + public global::GitHub.Models.AppPermissions_secrets? Secrets { get; set; } /// The level of permission to grant the access token to view and manage secret scanning alerts. - public AppPermissions_secret_scanning_alerts? SecretScanningAlerts { get; set; } + public global::GitHub.Models.AppPermissions_secret_scanning_alerts? SecretScanningAlerts { get; set; } /// The level of permission to grant the access token to view and manage security events like code scanning alerts. - public AppPermissions_security_events? SecurityEvents { get; set; } + public global::GitHub.Models.AppPermissions_security_events? SecurityEvents { get; set; } /// The level of permission to grant the access token to manage just a single file. - public AppPermissions_single_file? SingleFile { get; set; } + public global::GitHub.Models.AppPermissions_single_file? SingleFile { get; set; } /// The level of permission to grant the access token to list and manage repositories a user is starring. - public AppPermissions_starring? Starring { get; set; } + public global::GitHub.Models.AppPermissions_starring? Starring { get; set; } /// The level of permission to grant the access token for commit statuses. - public AppPermissions_statuses? Statuses { get; set; } + public global::GitHub.Models.AppPermissions_statuses? Statuses { get; set; } /// The level of permission to grant the access token to manage team discussions and related comments. - public AppPermissions_team_discussions? TeamDiscussions { get; set; } + public global::GitHub.Models.AppPermissions_team_discussions? TeamDiscussions { get; set; } /// The level of permission to grant the access token to manage Dependabot alerts. - public AppPermissions_vulnerability_alerts? VulnerabilityAlerts { get; set; } + public global::GitHub.Models.AppPermissions_vulnerability_alerts? VulnerabilityAlerts { get; set; } /// The level of permission to grant the access token to update GitHub Actions workflow files. - public AppPermissions_workflows? Workflows { get; set; } + public global::GitHub.Models.AppPermissions_workflows? Workflows { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AppPermissions() { @@ -118,12 +120,12 @@ public AppPermissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AppPermissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.AppPermissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AppPermissions(); + return new global::GitHub.Models.AppPermissions(); } /// /// The deserialization information for the current model @@ -133,54 +135,54 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actions", n => { Actions = n.GetEnumValue(); } }, - {"administration", n => { Administration = n.GetEnumValue(); } }, - {"checks", n => { Checks = n.GetEnumValue(); } }, - {"codespaces", n => { Codespaces = n.GetEnumValue(); } }, - {"contents", n => { Contents = n.GetEnumValue(); } }, - {"dependabot_secrets", n => { DependabotSecrets = n.GetEnumValue(); } }, - {"deployments", n => { Deployments = n.GetEnumValue(); } }, - {"email_addresses", n => { EmailAddresses = n.GetEnumValue(); } }, - {"environments", n => { Environments = n.GetEnumValue(); } }, - {"followers", n => { Followers = n.GetEnumValue(); } }, - {"git_ssh_keys", n => { GitSshKeys = n.GetEnumValue(); } }, - {"gpg_keys", n => { GpgKeys = n.GetEnumValue(); } }, - {"interaction_limits", n => { InteractionLimits = n.GetEnumValue(); } }, - {"issues", n => { Issues = n.GetEnumValue(); } }, - {"members", n => { Members = n.GetEnumValue(); } }, - {"metadata", n => { Metadata = n.GetEnumValue(); } }, - {"organization_administration", n => { OrganizationAdministration = n.GetEnumValue(); } }, - {"organization_announcement_banners", n => { OrganizationAnnouncementBanners = n.GetEnumValue(); } }, - {"organization_copilot_seat_management", n => { OrganizationCopilotSeatManagement = n.GetEnumValue(); } }, - {"organization_custom_org_roles", n => { OrganizationCustomOrgRoles = n.GetEnumValue(); } }, - {"organization_custom_properties", n => { OrganizationCustomProperties = n.GetEnumValue(); } }, - {"organization_custom_roles", n => { OrganizationCustomRoles = n.GetEnumValue(); } }, - {"organization_events", n => { OrganizationEvents = n.GetEnumValue(); } }, - {"organization_hooks", n => { OrganizationHooks = n.GetEnumValue(); } }, - {"organization_packages", n => { OrganizationPackages = n.GetEnumValue(); } }, - {"organization_personal_access_token_requests", n => { OrganizationPersonalAccessTokenRequests = n.GetEnumValue(); } }, - {"organization_personal_access_tokens", n => { OrganizationPersonalAccessTokens = n.GetEnumValue(); } }, - {"organization_plan", n => { OrganizationPlan = n.GetEnumValue(); } }, - {"organization_projects", n => { OrganizationProjects = n.GetEnumValue(); } }, - {"organization_secrets", n => { OrganizationSecrets = n.GetEnumValue(); } }, - {"organization_self_hosted_runners", n => { OrganizationSelfHostedRunners = n.GetEnumValue(); } }, - {"organization_user_blocking", n => { OrganizationUserBlocking = n.GetEnumValue(); } }, - {"packages", n => { Packages = n.GetEnumValue(); } }, - {"pages", n => { Pages = n.GetEnumValue(); } }, - {"profile", n => { Profile = n.GetEnumValue(); } }, - {"pull_requests", n => { PullRequests = n.GetEnumValue(); } }, - {"repository_custom_properties", n => { RepositoryCustomProperties = n.GetEnumValue(); } }, - {"repository_hooks", n => { RepositoryHooks = n.GetEnumValue(); } }, - {"repository_projects", n => { RepositoryProjects = n.GetEnumValue(); } }, - {"secret_scanning_alerts", n => { SecretScanningAlerts = n.GetEnumValue(); } }, - {"secrets", n => { Secrets = n.GetEnumValue(); } }, - {"security_events", n => { SecurityEvents = n.GetEnumValue(); } }, - {"single_file", n => { SingleFile = n.GetEnumValue(); } }, - {"starring", n => { Starring = n.GetEnumValue(); } }, - {"statuses", n => { Statuses = n.GetEnumValue(); } }, - {"team_discussions", n => { TeamDiscussions = n.GetEnumValue(); } }, - {"vulnerability_alerts", n => { VulnerabilityAlerts = n.GetEnumValue(); } }, - {"workflows", n => { Workflows = n.GetEnumValue(); } }, + { "actions", n => { Actions = n.GetEnumValue(); } }, + { "administration", n => { Administration = n.GetEnumValue(); } }, + { "checks", n => { Checks = n.GetEnumValue(); } }, + { "codespaces", n => { Codespaces = n.GetEnumValue(); } }, + { "contents", n => { Contents = n.GetEnumValue(); } }, + { "dependabot_secrets", n => { DependabotSecrets = n.GetEnumValue(); } }, + { "deployments", n => { Deployments = n.GetEnumValue(); } }, + { "email_addresses", n => { EmailAddresses = n.GetEnumValue(); } }, + { "environments", n => { Environments = n.GetEnumValue(); } }, + { "followers", n => { Followers = n.GetEnumValue(); } }, + { "git_ssh_keys", n => { GitSshKeys = n.GetEnumValue(); } }, + { "gpg_keys", n => { GpgKeys = n.GetEnumValue(); } }, + { "interaction_limits", n => { InteractionLimits = n.GetEnumValue(); } }, + { "issues", n => { Issues = n.GetEnumValue(); } }, + { "members", n => { Members = n.GetEnumValue(); } }, + { "metadata", n => { Metadata = n.GetEnumValue(); } }, + { "organization_administration", n => { OrganizationAdministration = n.GetEnumValue(); } }, + { "organization_announcement_banners", n => { OrganizationAnnouncementBanners = n.GetEnumValue(); } }, + { "organization_copilot_seat_management", n => { OrganizationCopilotSeatManagement = n.GetEnumValue(); } }, + { "organization_custom_org_roles", n => { OrganizationCustomOrgRoles = n.GetEnumValue(); } }, + { "organization_custom_properties", n => { OrganizationCustomProperties = n.GetEnumValue(); } }, + { "organization_custom_roles", n => { OrganizationCustomRoles = n.GetEnumValue(); } }, + { "organization_events", n => { OrganizationEvents = n.GetEnumValue(); } }, + { "organization_hooks", n => { OrganizationHooks = n.GetEnumValue(); } }, + { "organization_packages", n => { OrganizationPackages = n.GetEnumValue(); } }, + { "organization_personal_access_token_requests", n => { OrganizationPersonalAccessTokenRequests = n.GetEnumValue(); } }, + { "organization_personal_access_tokens", n => { OrganizationPersonalAccessTokens = n.GetEnumValue(); } }, + { "organization_plan", n => { OrganizationPlan = n.GetEnumValue(); } }, + { "organization_projects", n => { OrganizationProjects = n.GetEnumValue(); } }, + { "organization_secrets", n => { OrganizationSecrets = n.GetEnumValue(); } }, + { "organization_self_hosted_runners", n => { OrganizationSelfHostedRunners = n.GetEnumValue(); } }, + { "organization_user_blocking", n => { OrganizationUserBlocking = n.GetEnumValue(); } }, + { "packages", n => { Packages = n.GetEnumValue(); } }, + { "pages", n => { Pages = n.GetEnumValue(); } }, + { "profile", n => { Profile = n.GetEnumValue(); } }, + { "pull_requests", n => { PullRequests = n.GetEnumValue(); } }, + { "repository_custom_properties", n => { RepositoryCustomProperties = n.GetEnumValue(); } }, + { "repository_hooks", n => { RepositoryHooks = n.GetEnumValue(); } }, + { "repository_projects", n => { RepositoryProjects = n.GetEnumValue(); } }, + { "secret_scanning_alerts", n => { SecretScanningAlerts = n.GetEnumValue(); } }, + { "secrets", n => { Secrets = n.GetEnumValue(); } }, + { "security_events", n => { SecurityEvents = n.GetEnumValue(); } }, + { "single_file", n => { SingleFile = n.GetEnumValue(); } }, + { "starring", n => { Starring = n.GetEnumValue(); } }, + { "statuses", n => { Statuses = n.GetEnumValue(); } }, + { "team_discussions", n => { TeamDiscussions = n.GetEnumValue(); } }, + { "vulnerability_alerts", n => { VulnerabilityAlerts = n.GetEnumValue(); } }, + { "workflows", n => { Workflows = n.GetEnumValue(); } }, }; } /// @@ -190,54 +192,54 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("actions", Actions); - writer.WriteEnumValue("administration", Administration); - writer.WriteEnumValue("checks", Checks); - writer.WriteEnumValue("codespaces", Codespaces); - writer.WriteEnumValue("contents", Contents); - writer.WriteEnumValue("dependabot_secrets", DependabotSecrets); - writer.WriteEnumValue("deployments", Deployments); - writer.WriteEnumValue("email_addresses", EmailAddresses); - writer.WriteEnumValue("environments", Environments); - writer.WriteEnumValue("followers", Followers); - writer.WriteEnumValue("git_ssh_keys", GitSshKeys); - writer.WriteEnumValue("gpg_keys", GpgKeys); - writer.WriteEnumValue("interaction_limits", InteractionLimits); - writer.WriteEnumValue("issues", Issues); - writer.WriteEnumValue("members", Members); - writer.WriteEnumValue("metadata", Metadata); - writer.WriteEnumValue("organization_administration", OrganizationAdministration); - writer.WriteEnumValue("organization_announcement_banners", OrganizationAnnouncementBanners); - writer.WriteEnumValue("organization_copilot_seat_management", OrganizationCopilotSeatManagement); - writer.WriteEnumValue("organization_custom_org_roles", OrganizationCustomOrgRoles); - writer.WriteEnumValue("organization_custom_properties", OrganizationCustomProperties); - writer.WriteEnumValue("organization_custom_roles", OrganizationCustomRoles); - writer.WriteEnumValue("organization_events", OrganizationEvents); - writer.WriteEnumValue("organization_hooks", OrganizationHooks); - writer.WriteEnumValue("organization_packages", OrganizationPackages); - writer.WriteEnumValue("organization_personal_access_token_requests", OrganizationPersonalAccessTokenRequests); - writer.WriteEnumValue("organization_personal_access_tokens", OrganizationPersonalAccessTokens); - writer.WriteEnumValue("organization_plan", OrganizationPlan); - writer.WriteEnumValue("organization_projects", OrganizationProjects); - writer.WriteEnumValue("organization_secrets", OrganizationSecrets); - writer.WriteEnumValue("organization_self_hosted_runners", OrganizationSelfHostedRunners); - writer.WriteEnumValue("organization_user_blocking", OrganizationUserBlocking); - writer.WriteEnumValue("packages", Packages); - writer.WriteEnumValue("pages", Pages); - writer.WriteEnumValue("profile", Profile); - writer.WriteEnumValue("pull_requests", PullRequests); - writer.WriteEnumValue("repository_custom_properties", RepositoryCustomProperties); - writer.WriteEnumValue("repository_hooks", RepositoryHooks); - writer.WriteEnumValue("repository_projects", RepositoryProjects); - writer.WriteEnumValue("secrets", Secrets); - writer.WriteEnumValue("secret_scanning_alerts", SecretScanningAlerts); - writer.WriteEnumValue("security_events", SecurityEvents); - writer.WriteEnumValue("single_file", SingleFile); - writer.WriteEnumValue("starring", Starring); - writer.WriteEnumValue("statuses", Statuses); - writer.WriteEnumValue("team_discussions", TeamDiscussions); - writer.WriteEnumValue("vulnerability_alerts", VulnerabilityAlerts); - writer.WriteEnumValue("workflows", Workflows); + writer.WriteEnumValue("actions", Actions); + writer.WriteEnumValue("administration", Administration); + writer.WriteEnumValue("checks", Checks); + writer.WriteEnumValue("codespaces", Codespaces); + writer.WriteEnumValue("contents", Contents); + writer.WriteEnumValue("dependabot_secrets", DependabotSecrets); + writer.WriteEnumValue("deployments", Deployments); + writer.WriteEnumValue("email_addresses", EmailAddresses); + writer.WriteEnumValue("environments", Environments); + writer.WriteEnumValue("followers", Followers); + writer.WriteEnumValue("git_ssh_keys", GitSshKeys); + writer.WriteEnumValue("gpg_keys", GpgKeys); + writer.WriteEnumValue("interaction_limits", InteractionLimits); + writer.WriteEnumValue("issues", Issues); + writer.WriteEnumValue("members", Members); + writer.WriteEnumValue("metadata", Metadata); + writer.WriteEnumValue("organization_administration", OrganizationAdministration); + writer.WriteEnumValue("organization_announcement_banners", OrganizationAnnouncementBanners); + writer.WriteEnumValue("organization_copilot_seat_management", OrganizationCopilotSeatManagement); + writer.WriteEnumValue("organization_custom_org_roles", OrganizationCustomOrgRoles); + writer.WriteEnumValue("organization_custom_properties", OrganizationCustomProperties); + writer.WriteEnumValue("organization_custom_roles", OrganizationCustomRoles); + writer.WriteEnumValue("organization_events", OrganizationEvents); + writer.WriteEnumValue("organization_hooks", OrganizationHooks); + writer.WriteEnumValue("organization_packages", OrganizationPackages); + writer.WriteEnumValue("organization_personal_access_token_requests", OrganizationPersonalAccessTokenRequests); + writer.WriteEnumValue("organization_personal_access_tokens", OrganizationPersonalAccessTokens); + writer.WriteEnumValue("organization_plan", OrganizationPlan); + writer.WriteEnumValue("organization_projects", OrganizationProjects); + writer.WriteEnumValue("organization_secrets", OrganizationSecrets); + writer.WriteEnumValue("organization_self_hosted_runners", OrganizationSelfHostedRunners); + writer.WriteEnumValue("organization_user_blocking", OrganizationUserBlocking); + writer.WriteEnumValue("packages", Packages); + writer.WriteEnumValue("pages", Pages); + writer.WriteEnumValue("profile", Profile); + writer.WriteEnumValue("pull_requests", PullRequests); + writer.WriteEnumValue("repository_custom_properties", RepositoryCustomProperties); + writer.WriteEnumValue("repository_hooks", RepositoryHooks); + writer.WriteEnumValue("repository_projects", RepositoryProjects); + writer.WriteEnumValue("secrets", Secrets); + writer.WriteEnumValue("secret_scanning_alerts", SecretScanningAlerts); + writer.WriteEnumValue("security_events", SecurityEvents); + writer.WriteEnumValue("single_file", SingleFile); + writer.WriteEnumValue("starring", Starring); + writer.WriteEnumValue("statuses", Statuses); + writer.WriteEnumValue("team_discussions", TeamDiscussions); + writer.WriteEnumValue("vulnerability_alerts", VulnerabilityAlerts); + writer.WriteEnumValue("workflows", Workflows); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/AppPermissions_actions.cs b/src/GitHub/Models/AppPermissions_actions.cs index ec2488c2..4fe6ef18 100644 --- a/src/GitHub/Models/AppPermissions_actions.cs +++ b/src/GitHub/Models/AppPermissions_actions.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_actions { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_administration.cs b/src/GitHub/Models/AppPermissions_administration.cs index ba59cadd..cb7b44bd 100644 --- a/src/GitHub/Models/AppPermissions_administration.cs +++ b/src/GitHub/Models/AppPermissions_administration.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_administration { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_checks.cs b/src/GitHub/Models/AppPermissions_checks.cs index 514e09ca..dd9252b1 100644 --- a/src/GitHub/Models/AppPermissions_checks.cs +++ b/src/GitHub/Models/AppPermissions_checks.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token for checks on code. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_checks { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_codespaces.cs b/src/GitHub/Models/AppPermissions_codespaces.cs index 2929317b..755ceda3 100644 --- a/src/GitHub/Models/AppPermissions_codespaces.cs +++ b/src/GitHub/Models/AppPermissions_codespaces.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to create, edit, delete, and list Codespaces. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_codespaces { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_contents.cs b/src/GitHub/Models/AppPermissions_contents.cs index 54f45ba3..c3f226d9 100644 --- a/src/GitHub/Models/AppPermissions_contents.cs +++ b/src/GitHub/Models/AppPermissions_contents.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_contents { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_dependabot_secrets.cs b/src/GitHub/Models/AppPermissions_dependabot_secrets.cs index 710e8d3d..61e791fa 100644 --- a/src/GitHub/Models/AppPermissions_dependabot_secrets.cs +++ b/src/GitHub/Models/AppPermissions_dependabot_secrets.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The leve of permission to grant the access token to manage Dependabot secrets. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_dependabot_secrets { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_deployments.cs b/src/GitHub/Models/AppPermissions_deployments.cs index 889b04b4..51dc2379 100644 --- a/src/GitHub/Models/AppPermissions_deployments.cs +++ b/src/GitHub/Models/AppPermissions_deployments.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token for deployments and deployment statuses. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_deployments { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_email_addresses.cs b/src/GitHub/Models/AppPermissions_email_addresses.cs index cc9e6129..f0b4121a 100644 --- a/src/GitHub/Models/AppPermissions_email_addresses.cs +++ b/src/GitHub/Models/AppPermissions_email_addresses.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to manage the email addresses belonging to a user. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_email_addresses { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_environments.cs b/src/GitHub/Models/AppPermissions_environments.cs index 0c039de4..838aac51 100644 --- a/src/GitHub/Models/AppPermissions_environments.cs +++ b/src/GitHub/Models/AppPermissions_environments.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token for managing repository environments. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_environments { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_followers.cs b/src/GitHub/Models/AppPermissions_followers.cs index ca1012ec..d0cf7d9c 100644 --- a/src/GitHub/Models/AppPermissions_followers.cs +++ b/src/GitHub/Models/AppPermissions_followers.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to manage the followers belonging to a user. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_followers { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_git_ssh_keys.cs b/src/GitHub/Models/AppPermissions_git_ssh_keys.cs index 08a17eaa..d304554e 100644 --- a/src/GitHub/Models/AppPermissions_git_ssh_keys.cs +++ b/src/GitHub/Models/AppPermissions_git_ssh_keys.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to manage git SSH keys. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_git_ssh_keys { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_gpg_keys.cs b/src/GitHub/Models/AppPermissions_gpg_keys.cs index 112ed459..958feb88 100644 --- a/src/GitHub/Models/AppPermissions_gpg_keys.cs +++ b/src/GitHub/Models/AppPermissions_gpg_keys.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to view and manage GPG keys belonging to a user. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_gpg_keys { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_interaction_limits.cs b/src/GitHub/Models/AppPermissions_interaction_limits.cs index ddd8f2f2..7177e5c9 100644 --- a/src/GitHub/Models/AppPermissions_interaction_limits.cs +++ b/src/GitHub/Models/AppPermissions_interaction_limits.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to view and manage interaction limits on a repository. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_interaction_limits { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_issues.cs b/src/GitHub/Models/AppPermissions_issues.cs index 9bdd4510..540e38e0 100644 --- a/src/GitHub/Models/AppPermissions_issues.cs +++ b/src/GitHub/Models/AppPermissions_issues.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_issues { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_members.cs b/src/GitHub/Models/AppPermissions_members.cs index 50a7faf5..61ca52a5 100644 --- a/src/GitHub/Models/AppPermissions_members.cs +++ b/src/GitHub/Models/AppPermissions_members.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token for organization teams and members. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_members { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_metadata.cs b/src/GitHub/Models/AppPermissions_metadata.cs index 69187b1e..d9c79511 100644 --- a/src/GitHub/Models/AppPermissions_metadata.cs +++ b/src/GitHub/Models/AppPermissions_metadata.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_metadata { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_organization_administration.cs b/src/GitHub/Models/AppPermissions_organization_administration.cs index 91bdd9fb..b780ea58 100644 --- a/src/GitHub/Models/AppPermissions_organization_administration.cs +++ b/src/GitHub/Models/AppPermissions_organization_administration.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to manage access to an organization. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_organization_administration { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_organization_announcement_banners.cs b/src/GitHub/Models/AppPermissions_organization_announcement_banners.cs index 1550ff9b..951c4e34 100644 --- a/src/GitHub/Models/AppPermissions_organization_announcement_banners.cs +++ b/src/GitHub/Models/AppPermissions_organization_announcement_banners.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to view and manage announcement banners for an organization. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_organization_announcement_banners { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_organization_copilot_seat_management.cs b/src/GitHub/Models/AppPermissions_organization_copilot_seat_management.cs index 7e9c4c4c..5bad8fc0 100644 --- a/src/GitHub/Models/AppPermissions_organization_copilot_seat_management.cs +++ b/src/GitHub/Models/AppPermissions_organization_copilot_seat_management.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in beta and is subject to change. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_organization_copilot_seat_management { [EnumMember(Value = "write")] diff --git a/src/GitHub/Models/AppPermissions_organization_custom_org_roles.cs b/src/GitHub/Models/AppPermissions_organization_custom_org_roles.cs index 578cf417..ce125288 100644 --- a/src/GitHub/Models/AppPermissions_organization_custom_org_roles.cs +++ b/src/GitHub/Models/AppPermissions_organization_custom_org_roles.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token for custom organization roles management. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_organization_custom_org_roles { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_organization_custom_properties.cs b/src/GitHub/Models/AppPermissions_organization_custom_properties.cs index 7c9e9d2a..a8e5333b 100644 --- a/src/GitHub/Models/AppPermissions_organization_custom_properties.cs +++ b/src/GitHub/Models/AppPermissions_organization_custom_properties.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token for custom property management. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_organization_custom_properties { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_organization_custom_roles.cs b/src/GitHub/Models/AppPermissions_organization_custom_roles.cs index 066c2fb8..af08c12b 100644 --- a/src/GitHub/Models/AppPermissions_organization_custom_roles.cs +++ b/src/GitHub/Models/AppPermissions_organization_custom_roles.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token for custom repository roles management. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_organization_custom_roles { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_organization_events.cs b/src/GitHub/Models/AppPermissions_organization_events.cs index f3e03175..06d344c8 100644 --- a/src/GitHub/Models/AppPermissions_organization_events.cs +++ b/src/GitHub/Models/AppPermissions_organization_events.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to view events triggered by an activity in an organization. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_organization_events { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_organization_hooks.cs b/src/GitHub/Models/AppPermissions_organization_hooks.cs index 9d687b08..f9db373f 100644 --- a/src/GitHub/Models/AppPermissions_organization_hooks.cs +++ b/src/GitHub/Models/AppPermissions_organization_hooks.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to manage the post-receive hooks for an organization. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_organization_hooks { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_organization_packages.cs b/src/GitHub/Models/AppPermissions_organization_packages.cs index 84122582..a29ecde9 100644 --- a/src/GitHub/Models/AppPermissions_organization_packages.cs +++ b/src/GitHub/Models/AppPermissions_organization_packages.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token for organization packages published to GitHub Packages. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_organization_packages { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_organization_personal_access_token_requests.cs b/src/GitHub/Models/AppPermissions_organization_personal_access_token_requests.cs index 41619871..b0d9ac43 100644 --- a/src/GitHub/Models/AppPermissions_organization_personal_access_token_requests.cs +++ b/src/GitHub/Models/AppPermissions_organization_personal_access_token_requests.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_organization_personal_access_token_requests { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_organization_personal_access_tokens.cs b/src/GitHub/Models/AppPermissions_organization_personal_access_tokens.cs index b61a6b97..8e75c0f1 100644 --- a/src/GitHub/Models/AppPermissions_organization_personal_access_tokens.cs +++ b/src/GitHub/Models/AppPermissions_organization_personal_access_tokens.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_organization_personal_access_tokens { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_organization_plan.cs b/src/GitHub/Models/AppPermissions_organization_plan.cs index b6f6cf65..9a93f301 100644 --- a/src/GitHub/Models/AppPermissions_organization_plan.cs +++ b/src/GitHub/Models/AppPermissions_organization_plan.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token for viewing an organization's plan. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_organization_plan { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_organization_projects.cs b/src/GitHub/Models/AppPermissions_organization_projects.cs index a9d30e31..4d9c4da0 100644 --- a/src/GitHub/Models/AppPermissions_organization_projects.cs +++ b/src/GitHub/Models/AppPermissions_organization_projects.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to manage organization projects and projects beta (where available). + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_organization_projects { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_organization_secrets.cs b/src/GitHub/Models/AppPermissions_organization_secrets.cs index d2517e70..59105a5b 100644 --- a/src/GitHub/Models/AppPermissions_organization_secrets.cs +++ b/src/GitHub/Models/AppPermissions_organization_secrets.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to manage organization secrets. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_organization_secrets { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_organization_self_hosted_runners.cs b/src/GitHub/Models/AppPermissions_organization_self_hosted_runners.cs index 794aa0c3..754e0507 100644 --- a/src/GitHub/Models/AppPermissions_organization_self_hosted_runners.cs +++ b/src/GitHub/Models/AppPermissions_organization_self_hosted_runners.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_organization_self_hosted_runners { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_organization_user_blocking.cs b/src/GitHub/Models/AppPermissions_organization_user_blocking.cs index f265bfc0..d3ab8584 100644 --- a/src/GitHub/Models/AppPermissions_organization_user_blocking.cs +++ b/src/GitHub/Models/AppPermissions_organization_user_blocking.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to view and manage users blocked by the organization. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_organization_user_blocking { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_packages.cs b/src/GitHub/Models/AppPermissions_packages.cs index 52ffacd8..3bb4deb3 100644 --- a/src/GitHub/Models/AppPermissions_packages.cs +++ b/src/GitHub/Models/AppPermissions_packages.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token for packages published to GitHub Packages. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_packages { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_pages.cs b/src/GitHub/Models/AppPermissions_pages.cs index 7892e3d8..8a214bd8 100644 --- a/src/GitHub/Models/AppPermissions_pages.cs +++ b/src/GitHub/Models/AppPermissions_pages.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_pages { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_profile.cs b/src/GitHub/Models/AppPermissions_profile.cs index 25ee4129..e836aa6d 100644 --- a/src/GitHub/Models/AppPermissions_profile.cs +++ b/src/GitHub/Models/AppPermissions_profile.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to manage the profile settings belonging to a user. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_profile { [EnumMember(Value = "write")] diff --git a/src/GitHub/Models/AppPermissions_pull_requests.cs b/src/GitHub/Models/AppPermissions_pull_requests.cs index 095be5e4..dfb19b7d 100644 --- a/src/GitHub/Models/AppPermissions_pull_requests.cs +++ b/src/GitHub/Models/AppPermissions_pull_requests.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_pull_requests { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_repository_custom_properties.cs b/src/GitHub/Models/AppPermissions_repository_custom_properties.cs index 0035d9ca..58dede13 100644 --- a/src/GitHub/Models/AppPermissions_repository_custom_properties.cs +++ b/src/GitHub/Models/AppPermissions_repository_custom_properties.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to view and edit custom properties for a repository, when allowed by the property. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_repository_custom_properties { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_repository_hooks.cs b/src/GitHub/Models/AppPermissions_repository_hooks.cs index c732ee7f..660f2d4b 100644 --- a/src/GitHub/Models/AppPermissions_repository_hooks.cs +++ b/src/GitHub/Models/AppPermissions_repository_hooks.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to manage the post-receive hooks for a repository. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_repository_hooks { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_repository_projects.cs b/src/GitHub/Models/AppPermissions_repository_projects.cs index 28e92cc8..ad1db9a9 100644 --- a/src/GitHub/Models/AppPermissions_repository_projects.cs +++ b/src/GitHub/Models/AppPermissions_repository_projects.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to manage repository projects, columns, and cards. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_repository_projects { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_secret_scanning_alerts.cs b/src/GitHub/Models/AppPermissions_secret_scanning_alerts.cs index e9c1d03c..87d3262f 100644 --- a/src/GitHub/Models/AppPermissions_secret_scanning_alerts.cs +++ b/src/GitHub/Models/AppPermissions_secret_scanning_alerts.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to view and manage secret scanning alerts. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_secret_scanning_alerts { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_secrets.cs b/src/GitHub/Models/AppPermissions_secrets.cs index 508552fd..51399a2e 100644 --- a/src/GitHub/Models/AppPermissions_secrets.cs +++ b/src/GitHub/Models/AppPermissions_secrets.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to manage repository secrets. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_secrets { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_security_events.cs b/src/GitHub/Models/AppPermissions_security_events.cs index ed974bdb..b8a9a018 100644 --- a/src/GitHub/Models/AppPermissions_security_events.cs +++ b/src/GitHub/Models/AppPermissions_security_events.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to view and manage security events like code scanning alerts. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_security_events { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_single_file.cs b/src/GitHub/Models/AppPermissions_single_file.cs index 8504b4e9..17435589 100644 --- a/src/GitHub/Models/AppPermissions_single_file.cs +++ b/src/GitHub/Models/AppPermissions_single_file.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to manage just a single file. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_single_file { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_starring.cs b/src/GitHub/Models/AppPermissions_starring.cs index f13fd624..9f68a168 100644 --- a/src/GitHub/Models/AppPermissions_starring.cs +++ b/src/GitHub/Models/AppPermissions_starring.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to list and manage repositories a user is starring. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_starring { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_statuses.cs b/src/GitHub/Models/AppPermissions_statuses.cs index d5188462..60cce770 100644 --- a/src/GitHub/Models/AppPermissions_statuses.cs +++ b/src/GitHub/Models/AppPermissions_statuses.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token for commit statuses. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_statuses { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_team_discussions.cs b/src/GitHub/Models/AppPermissions_team_discussions.cs index 6733c45f..2861205d 100644 --- a/src/GitHub/Models/AppPermissions_team_discussions.cs +++ b/src/GitHub/Models/AppPermissions_team_discussions.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to manage team discussions and related comments. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_team_discussions { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_vulnerability_alerts.cs b/src/GitHub/Models/AppPermissions_vulnerability_alerts.cs index 306ee654..977f73d4 100644 --- a/src/GitHub/Models/AppPermissions_vulnerability_alerts.cs +++ b/src/GitHub/Models/AppPermissions_vulnerability_alerts.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to manage Dependabot alerts. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_vulnerability_alerts { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/AppPermissions_workflows.cs b/src/GitHub/Models/AppPermissions_workflows.cs index 379a435b..39b1978b 100644 --- a/src/GitHub/Models/AppPermissions_workflows.cs +++ b/src/GitHub/Models/AppPermissions_workflows.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of permission to grant the access token to update GitHub Actions workflow files. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AppPermissions_workflows { [EnumMember(Value = "write")] diff --git a/src/GitHub/Models/Artifact.cs b/src/GitHub/Models/Artifact.cs index 844f7c83..b5a0afbb 100644 --- a/src/GitHub/Models/Artifact.cs +++ b/src/GitHub/Models/Artifact.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// An artifact /// - public class Artifact : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Artifact : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -59,13 +61,13 @@ public class Artifact : IAdditionalDataHolder, IParsable /// The workflow_run property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Artifact_workflow_run? WorkflowRun { get; set; } + public global::GitHub.Models.Artifact_workflow_run? WorkflowRun { get; set; } #nullable restore #else - public Artifact_workflow_run WorkflowRun { get; set; } + public global::GitHub.Models.Artifact_workflow_run WorkflowRun { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Artifact() { @@ -74,12 +76,12 @@ public Artifact() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Artifact CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Artifact CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Artifact(); + return new global::GitHub.Models.Artifact(); } /// /// The deserialization information for the current model @@ -89,17 +91,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"archive_download_url", n => { ArchiveDownloadUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"expired", n => { Expired = n.GetBoolValue(); } }, - {"expires_at", n => { ExpiresAt = n.GetDateTimeOffsetValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"size_in_bytes", n => { SizeInBytes = n.GetIntValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"workflow_run", n => { WorkflowRun = n.GetObjectValue(Artifact_workflow_run.CreateFromDiscriminatorValue); } }, + { "archive_download_url", n => { ArchiveDownloadUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "expired", n => { Expired = n.GetBoolValue(); } }, + { "expires_at", n => { ExpiresAt = n.GetDateTimeOffsetValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "size_in_bytes", n => { SizeInBytes = n.GetIntValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "workflow_run", n => { WorkflowRun = n.GetObjectValue(global::GitHub.Models.Artifact_workflow_run.CreateFromDiscriminatorValue); } }, }; } /// @@ -119,7 +121,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("size_in_bytes", SizeInBytes); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("workflow_run", WorkflowRun); + writer.WriteObjectValue("workflow_run", WorkflowRun); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/Artifact_workflow_run.cs b/src/GitHub/Models/Artifact_workflow_run.cs index a97a1fc4..fed81494 100644 --- a/src/GitHub/Models/Artifact_workflow_run.cs +++ b/src/GitHub/Models/Artifact_workflow_run.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Artifact_workflow_run : IAdditionalDataHolder, IParsable + public partial class Artifact_workflow_run : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -34,7 +36,7 @@ public class Artifact_workflow_run : IAdditionalDataHolder, IParsable /// The repository_id property public int? RepositoryId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Artifact_workflow_run() { @@ -43,12 +45,12 @@ public Artifact_workflow_run() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Artifact_workflow_run CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Artifact_workflow_run CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Artifact_workflow_run(); + return new global::GitHub.Models.Artifact_workflow_run(); } /// /// The deserialization information for the current model @@ -58,11 +60,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"head_branch", n => { HeadBranch = n.GetStringValue(); } }, - {"head_repository_id", n => { HeadRepositoryId = n.GetIntValue(); } }, - {"head_sha", n => { HeadSha = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"repository_id", n => { RepositoryId = n.GetIntValue(); } }, + { "head_branch", n => { HeadBranch = n.GetStringValue(); } }, + { "head_repository_id", n => { HeadRepositoryId = n.GetIntValue(); } }, + { "head_sha", n => { HeadSha = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "repository_id", n => { RepositoryId = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/AssignedIssueEvent.cs b/src/GitHub/Models/AssignedIssueEvent.cs index e9d83f13..f86927c9 100644 --- a/src/GitHub/Models/AssignedIssueEvent.cs +++ b/src/GitHub/Models/AssignedIssueEvent.cs @@ -1,40 +1,42 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Assigned Issue Event /// - public class AssignedIssueEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AssignedIssueEvent : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Assignee { get; set; } + public global::GitHub.Models.SimpleUser? Assignee { get; set; } #nullable restore #else - public SimpleUser Assignee { get; set; } + public global::GitHub.Models.SimpleUser Assignee { get; set; } #endif /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Assigner { get; set; } + public global::GitHub.Models.SimpleUser? Assigner { get; set; } #nullable restore #else - public SimpleUser Assigner { get; set; } + public global::GitHub.Models.SimpleUser Assigner { get; set; } #endif /// The commit_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,10 +83,10 @@ public class AssignedIssueEvent : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Integration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.Integration? PerformedViaGithubApp { get; set; } #nullable restore #else - public Integration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.Integration PerformedViaGithubApp { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +97,7 @@ public class AssignedIssueEvent : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AssignedIssueEvent() { @@ -104,12 +106,12 @@ public AssignedIssueEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AssignedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.AssignedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AssignedIssueEvent(); + return new global::GitHub.Models.AssignedIssueEvent(); } /// /// The deserialization information for the current model @@ -119,17 +121,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"assignee", n => { Assignee = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"assigner", n => { Assigner = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(Integration.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "assignee", n => { Assignee = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "assigner", n => { Assigner = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.Integration.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -139,16 +141,16 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); - writer.WriteObjectValue("assignee", Assignee); - writer.WriteObjectValue("assigner", Assigner); + writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("assignee", Assignee); + writer.WriteObjectValue("assigner", Assigner); writer.WriteStringValue("commit_id", CommitId); writer.WriteStringValue("commit_url", CommitUrl); writer.WriteStringValue("created_at", CreatedAt); writer.WriteStringValue("event", Event); writer.WriteIntValue("id", Id); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/AuditLogEvent.cs b/src/GitHub/Models/AuditLogEvent.cs index c6291cde..666b6109 100644 --- a/src/GitHub/Models/AuditLogEvent.cs +++ b/src/GitHub/Models/AuditLogEvent.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AuditLogEvent : IAdditionalDataHolder, IParsable + public partial class AuditLogEvent : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The name of the action that was performed, for example `user.login` or `repo.create`. @@ -34,10 +36,10 @@ public class AuditLogEvent : IAdditionalDataHolder, IParsable /// The actor_location property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public AuditLogEvent_actor_location? ActorLocation { get; set; } + public global::GitHub.Models.AuditLogEvent_actor_location? ActorLocation { get; set; } #nullable restore #else - public AuditLogEvent_actor_location ActorLocation { get; set; } + public global::GitHub.Models.AuditLogEvent_actor_location ActorLocation { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -62,18 +64,18 @@ public class AuditLogEvent : IAdditionalDataHolder, IParsable /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Config { get; set; } + public List? Config { get; set; } #nullable restore #else - public List Config { get; set; } + public List Config { get; set; } #endif /// The config_was property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ConfigWas { get; set; } + public List? ConfigWas { get; set; } #nullable restore #else - public List ConfigWas { get; set; } + public List ConfigWas { get; set; } #endif /// The content_type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -88,10 +90,10 @@ public class AuditLogEvent : IAdditionalDataHolder, IParsable /// The data property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public AuditLogEvent_data? Data { get; set; } + public global::GitHub.Models.AuditLogEvent_data? Data { get; set; } #nullable restore #else - public AuditLogEvent_data Data { get; set; } + public global::GitHub.Models.AuditLogEvent_data Data { get; set; } #endif /// The deploy_key_fingerprint property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,18 +122,18 @@ public class AuditLogEvent : IAdditionalDataHolder, IParsable /// The events property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Events { get; set; } + public List? Events { get; set; } #nullable restore #else - public List Events { get; set; } + public List Events { get; set; } #endif /// The events_were property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? EventsWere { get; set; } + public List? EventsWere { get; set; } #nullable restore #else - public List EventsWere { get; set; } + public List EventsWere { get; set; } #endif /// The explanation property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,7 +280,7 @@ public class AuditLogEvent : IAdditionalDataHolder, IParsable public string Visibility { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AuditLogEvent() { @@ -287,12 +289,12 @@ public AuditLogEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AuditLogEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.AuditLogEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AuditLogEvent(); + return new global::GitHub.Models.AuditLogEvent(); } /// /// The deserialization information for the current model @@ -302,49 +304,49 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"action", n => { Action = n.GetStringValue(); } }, - {"active", n => { Active = n.GetBoolValue(); } }, - {"active_was", n => { ActiveWas = n.GetBoolValue(); } }, - {"actor", n => { Actor = n.GetStringValue(); } }, - {"actor_id", n => { ActorId = n.GetIntValue(); } }, - {"actor_location", n => { ActorLocation = n.GetObjectValue(AuditLogEvent_actor_location.CreateFromDiscriminatorValue); } }, - {"blocked_user", n => { BlockedUser = n.GetStringValue(); } }, - {"business", n => { Business = n.GetStringValue(); } }, - {"business_id", n => { BusinessId = n.GetIntValue(); } }, - {"config", n => { Config = n.GetCollectionOfObjectValues(AuditLogEvent_config.CreateFromDiscriminatorValue)?.ToList(); } }, - {"config_was", n => { ConfigWas = n.GetCollectionOfObjectValues(AuditLogEvent_config_was.CreateFromDiscriminatorValue)?.ToList(); } }, - {"content_type", n => { ContentType = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetIntValue(); } }, - {"data", n => { Data = n.GetObjectValue(AuditLogEvent_data.CreateFromDiscriminatorValue); } }, - {"deploy_key_fingerprint", n => { DeployKeyFingerprint = n.GetStringValue(); } }, - {"_document_id", n => { DocumentId = n.GetStringValue(); } }, - {"emoji", n => { Emoji = n.GetStringValue(); } }, - {"events", n => { Events = n.GetCollectionOfObjectValues(AuditLogEvent_events.CreateFromDiscriminatorValue)?.ToList(); } }, - {"events_were", n => { EventsWere = n.GetCollectionOfObjectValues(AuditLogEvent_events_were.CreateFromDiscriminatorValue)?.ToList(); } }, - {"explanation", n => { Explanation = n.GetStringValue(); } }, - {"fingerprint", n => { Fingerprint = n.GetStringValue(); } }, - {"hook_id", n => { HookId = n.GetIntValue(); } }, - {"limited_availability", n => { LimitedAvailability = n.GetBoolValue(); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"old_user", n => { OldUser = n.GetStringValue(); } }, - {"openssh_public_key", n => { OpensshPublicKey = n.GetStringValue(); } }, - {"operation_type", n => { OperationType = n.GetStringValue(); } }, - {"org", n => { Org = n.GetStringValue(); } }, - {"org_id", n => { OrgId = n.GetIntValue(); } }, - {"previous_visibility", n => { PreviousVisibility = n.GetStringValue(); } }, - {"read_only", n => { ReadOnly = n.GetBoolValue(); } }, - {"repo", n => { Repo = n.GetStringValue(); } }, - {"repository", n => { Repository = n.GetStringValue(); } }, - {"repository_public", n => { RepositoryPublic = n.GetBoolValue(); } }, - {"target_login", n => { TargetLogin = n.GetStringValue(); } }, - {"team", n => { Team = n.GetStringValue(); } }, - {"@timestamp", n => { Timestamp = n.GetIntValue(); } }, - {"transport_protocol", n => { TransportProtocol = n.GetIntValue(); } }, - {"transport_protocol_name", n => { TransportProtocolName = n.GetStringValue(); } }, - {"user", n => { User = n.GetStringValue(); } }, - {"user_id", n => { UserId = n.GetIntValue(); } }, - {"visibility", n => { Visibility = n.GetStringValue(); } }, + { "action", n => { Action = n.GetStringValue(); } }, + { "active", n => { Active = n.GetBoolValue(); } }, + { "active_was", n => { ActiveWas = n.GetBoolValue(); } }, + { "actor", n => { Actor = n.GetStringValue(); } }, + { "actor_id", n => { ActorId = n.GetIntValue(); } }, + { "actor_location", n => { ActorLocation = n.GetObjectValue(global::GitHub.Models.AuditLogEvent_actor_location.CreateFromDiscriminatorValue); } }, + { "blocked_user", n => { BlockedUser = n.GetStringValue(); } }, + { "business", n => { Business = n.GetStringValue(); } }, + { "business_id", n => { BusinessId = n.GetIntValue(); } }, + { "config", n => { Config = n.GetCollectionOfObjectValues(global::GitHub.Models.AuditLogEvent_config.CreateFromDiscriminatorValue)?.AsList(); } }, + { "config_was", n => { ConfigWas = n.GetCollectionOfObjectValues(global::GitHub.Models.AuditLogEvent_config_was.CreateFromDiscriminatorValue)?.AsList(); } }, + { "content_type", n => { ContentType = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetIntValue(); } }, + { "data", n => { Data = n.GetObjectValue(global::GitHub.Models.AuditLogEvent_data.CreateFromDiscriminatorValue); } }, + { "deploy_key_fingerprint", n => { DeployKeyFingerprint = n.GetStringValue(); } }, + { "_document_id", n => { DocumentId = n.GetStringValue(); } }, + { "emoji", n => { Emoji = n.GetStringValue(); } }, + { "events", n => { Events = n.GetCollectionOfObjectValues(global::GitHub.Models.AuditLogEvent_events.CreateFromDiscriminatorValue)?.AsList(); } }, + { "events_were", n => { EventsWere = n.GetCollectionOfObjectValues(global::GitHub.Models.AuditLogEvent_events_were.CreateFromDiscriminatorValue)?.AsList(); } }, + { "explanation", n => { Explanation = n.GetStringValue(); } }, + { "fingerprint", n => { Fingerprint = n.GetStringValue(); } }, + { "hook_id", n => { HookId = n.GetIntValue(); } }, + { "limited_availability", n => { LimitedAvailability = n.GetBoolValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "old_user", n => { OldUser = n.GetStringValue(); } }, + { "openssh_public_key", n => { OpensshPublicKey = n.GetStringValue(); } }, + { "operation_type", n => { OperationType = n.GetStringValue(); } }, + { "org", n => { Org = n.GetStringValue(); } }, + { "org_id", n => { OrgId = n.GetIntValue(); } }, + { "previous_visibility", n => { PreviousVisibility = n.GetStringValue(); } }, + { "read_only", n => { ReadOnly = n.GetBoolValue(); } }, + { "repo", n => { Repo = n.GetStringValue(); } }, + { "repository", n => { Repository = n.GetStringValue(); } }, + { "repository_public", n => { RepositoryPublic = n.GetBoolValue(); } }, + { "target_login", n => { TargetLogin = n.GetStringValue(); } }, + { "team", n => { Team = n.GetStringValue(); } }, + { "@timestamp", n => { Timestamp = n.GetIntValue(); } }, + { "transport_protocol", n => { TransportProtocol = n.GetIntValue(); } }, + { "transport_protocol_name", n => { TransportProtocolName = n.GetStringValue(); } }, + { "user", n => { User = n.GetStringValue(); } }, + { "user_id", n => { UserId = n.GetIntValue(); } }, + { "visibility", n => { Visibility = n.GetStringValue(); } }, }; } /// @@ -359,20 +361,20 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("active_was", ActiveWas); writer.WriteStringValue("actor", Actor); writer.WriteIntValue("actor_id", ActorId); - writer.WriteObjectValue("actor_location", ActorLocation); + writer.WriteObjectValue("actor_location", ActorLocation); writer.WriteStringValue("blocked_user", BlockedUser); writer.WriteStringValue("business", Business); writer.WriteIntValue("business_id", BusinessId); - writer.WriteCollectionOfObjectValues("config", Config); - writer.WriteCollectionOfObjectValues("config_was", ConfigWas); + writer.WriteCollectionOfObjectValues("config", Config); + writer.WriteCollectionOfObjectValues("config_was", ConfigWas); writer.WriteStringValue("content_type", ContentType); writer.WriteIntValue("created_at", CreatedAt); - writer.WriteObjectValue("data", Data); + writer.WriteObjectValue("data", Data); writer.WriteStringValue("deploy_key_fingerprint", DeployKeyFingerprint); writer.WriteStringValue("_document_id", DocumentId); writer.WriteStringValue("emoji", Emoji); - writer.WriteCollectionOfObjectValues("events", Events); - writer.WriteCollectionOfObjectValues("events_were", EventsWere); + writer.WriteCollectionOfObjectValues("events", Events); + writer.WriteCollectionOfObjectValues("events_were", EventsWere); writer.WriteStringValue("explanation", Explanation); writer.WriteStringValue("fingerprint", Fingerprint); writer.WriteIntValue("hook_id", HookId); diff --git a/src/GitHub/Models/AuditLogEvent_actor_location.cs b/src/GitHub/Models/AuditLogEvent_actor_location.cs index fd4cbf8a..bb2dc901 100644 --- a/src/GitHub/Models/AuditLogEvent_actor_location.cs +++ b/src/GitHub/Models/AuditLogEvent_actor_location.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AuditLogEvent_actor_location : IAdditionalDataHolder, IParsable + public partial class AuditLogEvent_actor_location : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class AuditLogEvent_actor_location : IAdditionalDataHolder, IParsable public string CountryName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AuditLogEvent_actor_location() { @@ -29,12 +31,12 @@ public AuditLogEvent_actor_location() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AuditLogEvent_actor_location CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.AuditLogEvent_actor_location CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AuditLogEvent_actor_location(); + return new global::GitHub.Models.AuditLogEvent_actor_location(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"country_name", n => { CountryName = n.GetStringValue(); } }, + { "country_name", n => { CountryName = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/AuditLogEvent_config.cs b/src/GitHub/Models/AuditLogEvent_config.cs index cc518353..0cb712ff 100644 --- a/src/GitHub/Models/AuditLogEvent_config.cs +++ b/src/GitHub/Models/AuditLogEvent_config.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AuditLogEvent_config : IAdditionalDataHolder, IParsable + public partial class AuditLogEvent_config : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AuditLogEvent_config() { @@ -21,12 +23,12 @@ public AuditLogEvent_config() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AuditLogEvent_config CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.AuditLogEvent_config CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AuditLogEvent_config(); + return new global::GitHub.Models.AuditLogEvent_config(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/AuditLogEvent_config_was.cs b/src/GitHub/Models/AuditLogEvent_config_was.cs index 144aefe0..66ac3d60 100644 --- a/src/GitHub/Models/AuditLogEvent_config_was.cs +++ b/src/GitHub/Models/AuditLogEvent_config_was.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AuditLogEvent_config_was : IAdditionalDataHolder, IParsable + public partial class AuditLogEvent_config_was : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AuditLogEvent_config_was() { @@ -21,12 +23,12 @@ public AuditLogEvent_config_was() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AuditLogEvent_config_was CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.AuditLogEvent_config_was CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AuditLogEvent_config_was(); + return new global::GitHub.Models.AuditLogEvent_config_was(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/AuditLogEvent_data.cs b/src/GitHub/Models/AuditLogEvent_data.cs index 61597b7d..3d2e8a2a 100644 --- a/src/GitHub/Models/AuditLogEvent_data.cs +++ b/src/GitHub/Models/AuditLogEvent_data.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AuditLogEvent_data : IAdditionalDataHolder, IParsable + public partial class AuditLogEvent_data : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AuditLogEvent_data() { @@ -21,12 +23,12 @@ public AuditLogEvent_data() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AuditLogEvent_data CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.AuditLogEvent_data CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AuditLogEvent_data(); + return new global::GitHub.Models.AuditLogEvent_data(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/AuditLogEvent_events.cs b/src/GitHub/Models/AuditLogEvent_events.cs index c4b40174..3c495ced 100644 --- a/src/GitHub/Models/AuditLogEvent_events.cs +++ b/src/GitHub/Models/AuditLogEvent_events.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AuditLogEvent_events : IAdditionalDataHolder, IParsable + public partial class AuditLogEvent_events : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AuditLogEvent_events() { @@ -21,12 +23,12 @@ public AuditLogEvent_events() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AuditLogEvent_events CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.AuditLogEvent_events CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AuditLogEvent_events(); + return new global::GitHub.Models.AuditLogEvent_events(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/AuditLogEvent_events_were.cs b/src/GitHub/Models/AuditLogEvent_events_were.cs index 3b455f03..bc6348e5 100644 --- a/src/GitHub/Models/AuditLogEvent_events_were.cs +++ b/src/GitHub/Models/AuditLogEvent_events_were.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AuditLogEvent_events_were : IAdditionalDataHolder, IParsable + public partial class AuditLogEvent_events_were : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AuditLogEvent_events_were() { @@ -21,12 +23,12 @@ public AuditLogEvent_events_were() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AuditLogEvent_events_were CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.AuditLogEvent_events_were CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AuditLogEvent_events_were(); + return new global::GitHub.Models.AuditLogEvent_events_were(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/AuthenticationToken.cs b/src/GitHub/Models/AuthenticationToken.cs index 5e151bf4..2813efa5 100644 --- a/src/GitHub/Models/AuthenticationToken.cs +++ b/src/GitHub/Models/AuthenticationToken.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Authentication Token /// - public class AuthenticationToken : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AuthenticationToken : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -17,21 +19,21 @@ public class AuthenticationToken : IAdditionalDataHolder, IParsable /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public AuthenticationToken_permissions? Permissions { get; set; } + public global::GitHub.Models.AuthenticationToken_permissions? Permissions { get; set; } #nullable restore #else - public AuthenticationToken_permissions Permissions { get; set; } + public global::GitHub.Models.AuthenticationToken_permissions Permissions { get; set; } #endif /// The repositories this token has access to #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Repositories { get; set; } + public List? Repositories { get; set; } #nullable restore #else - public List Repositories { get; set; } + public List Repositories { get; set; } #endif /// Describe whether all repositories have been selected or there's a selection involved - public AuthenticationToken_repository_selection? RepositorySelection { get; set; } + public global::GitHub.Models.AuthenticationToken_repository_selection? RepositorySelection { get; set; } /// The single_file property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -49,7 +51,7 @@ public class AuthenticationToken : IAdditionalDataHolder, IParsable public string Token { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AuthenticationToken() { @@ -58,12 +60,12 @@ public AuthenticationToken() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AuthenticationToken CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.AuthenticationToken CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AuthenticationToken(); + return new global::GitHub.Models.AuthenticationToken(); } /// /// The deserialization information for the current model @@ -73,12 +75,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"expires_at", n => { ExpiresAt = n.GetDateTimeOffsetValue(); } }, - {"permissions", n => { Permissions = n.GetObjectValue(AuthenticationToken_permissions.CreateFromDiscriminatorValue); } }, - {"repositories", n => { Repositories = n.GetCollectionOfObjectValues(Repository.CreateFromDiscriminatorValue)?.ToList(); } }, - {"repository_selection", n => { RepositorySelection = n.GetEnumValue(); } }, - {"single_file", n => { SingleFile = n.GetStringValue(); } }, - {"token", n => { Token = n.GetStringValue(); } }, + { "expires_at", n => { ExpiresAt = n.GetDateTimeOffsetValue(); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.AuthenticationToken_permissions.CreateFromDiscriminatorValue); } }, + { "repositories", n => { Repositories = n.GetCollectionOfObjectValues(global::GitHub.Models.Repository.CreateFromDiscriminatorValue)?.AsList(); } }, + { "repository_selection", n => { RepositorySelection = n.GetEnumValue(); } }, + { "single_file", n => { SingleFile = n.GetStringValue(); } }, + { "token", n => { Token = n.GetStringValue(); } }, }; } /// @@ -89,9 +91,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("expires_at", ExpiresAt); - writer.WriteObjectValue("permissions", Permissions); - writer.WriteCollectionOfObjectValues("repositories", Repositories); - writer.WriteEnumValue("repository_selection", RepositorySelection); + writer.WriteObjectValue("permissions", Permissions); + writer.WriteCollectionOfObjectValues("repositories", Repositories); + writer.WriteEnumValue("repository_selection", RepositorySelection); writer.WriteStringValue("single_file", SingleFile); writer.WriteStringValue("token", Token); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/AuthenticationToken_permissions.cs b/src/GitHub/Models/AuthenticationToken_permissions.cs index b72f36e3..0c7ed9b4 100644 --- a/src/GitHub/Models/AuthenticationToken_permissions.cs +++ b/src/GitHub/Models/AuthenticationToken_permissions.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AuthenticationToken_permissions : IAdditionalDataHolder, IParsable + public partial class AuthenticationToken_permissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AuthenticationToken_permissions() { @@ -21,12 +23,12 @@ public AuthenticationToken_permissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AuthenticationToken_permissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.AuthenticationToken_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AuthenticationToken_permissions(); + return new global::GitHub.Models.AuthenticationToken_permissions(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/AuthenticationToken_repository_selection.cs b/src/GitHub/Models/AuthenticationToken_repository_selection.cs index f90dad3a..0900dc83 100644 --- a/src/GitHub/Models/AuthenticationToken_repository_selection.cs +++ b/src/GitHub/Models/AuthenticationToken_repository_selection.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Describe whether all repositories have been selected or there's a selection involved + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AuthenticationToken_repository_selection { [EnumMember(Value = "all")] diff --git a/src/GitHub/Models/AuthorAssociation.cs b/src/GitHub/Models/AuthorAssociation.cs index d4d50caf..3120616d 100644 --- a/src/GitHub/Models/AuthorAssociation.cs +++ b/src/GitHub/Models/AuthorAssociation.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// How the author is associated with the repository. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AuthorAssociation { [EnumMember(Value = "COLLABORATOR")] diff --git a/src/GitHub/Models/Authorization.cs b/src/GitHub/Models/Authorization.cs index af9d025d..6eabfb58 100644 --- a/src/GitHub/Models/Authorization.cs +++ b/src/GitHub/Models/Authorization.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The authorization for an OAuth app, GitHub App, or a Personal Access Token. /// - public class Authorization : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Authorization : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The app property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Authorization_app? App { get; set; } + public global::GitHub.Models.Authorization_app? App { get; set; } #nullable restore #else - public Authorization_app App { get; set; } + public global::GitHub.Models.Authorization_app App { get; set; } #endif /// The created_at property public DateTimeOffset? CreatedAt { get; set; } @@ -45,10 +47,10 @@ public class Authorization : IAdditionalDataHolder, IParsable /// The installation property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableScopedInstallation? Installation { get; set; } + public global::GitHub.Models.NullableScopedInstallation? Installation { get; set; } #nullable restore #else - public NullableScopedInstallation Installation { get; set; } + public global::GitHub.Models.NullableScopedInstallation Installation { get; set; } #endif /// The note property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -103,13 +105,13 @@ public class Authorization : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? User { get; set; } + public global::GitHub.Models.NullableSimpleUser? User { get; set; } #nullable restore #else - public NullableSimpleUser User { get; set; } + public global::GitHub.Models.NullableSimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Authorization() { @@ -118,12 +120,12 @@ public Authorization() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Authorization CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Authorization CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Authorization(); + return new global::GitHub.Models.Authorization(); } /// /// The deserialization information for the current model @@ -133,21 +135,21 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"app", n => { App = n.GetObjectValue(Authorization_app.CreateFromDiscriminatorValue); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"expires_at", n => { ExpiresAt = n.GetDateTimeOffsetValue(); } }, - {"fingerprint", n => { Fingerprint = n.GetStringValue(); } }, - {"hashed_token", n => { HashedToken = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"installation", n => { Installation = n.GetObjectValue(NullableScopedInstallation.CreateFromDiscriminatorValue); } }, - {"note", n => { Note = n.GetStringValue(); } }, - {"note_url", n => { NoteUrl = n.GetStringValue(); } }, - {"scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"token", n => { Token = n.GetStringValue(); } }, - {"token_last_eight", n => { TokenLastEight = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "app", n => { App = n.GetObjectValue(global::GitHub.Models.Authorization_app.CreateFromDiscriminatorValue); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "expires_at", n => { ExpiresAt = n.GetDateTimeOffsetValue(); } }, + { "fingerprint", n => { Fingerprint = n.GetStringValue(); } }, + { "hashed_token", n => { HashedToken = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "installation", n => { Installation = n.GetObjectValue(global::GitHub.Models.NullableScopedInstallation.CreateFromDiscriminatorValue); } }, + { "note", n => { Note = n.GetStringValue(); } }, + { "note_url", n => { NoteUrl = n.GetStringValue(); } }, + { "scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "token", n => { Token = n.GetStringValue(); } }, + { "token_last_eight", n => { TokenLastEight = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -157,13 +159,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("app", App); + writer.WriteObjectValue("app", App); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteDateTimeOffsetValue("expires_at", ExpiresAt); writer.WriteStringValue("fingerprint", Fingerprint); writer.WriteStringValue("hashed_token", HashedToken); writer.WriteLongValue("id", Id); - writer.WriteObjectValue("installation", Installation); + writer.WriteObjectValue("installation", Installation); writer.WriteStringValue("note", Note); writer.WriteStringValue("note_url", NoteUrl); writer.WriteCollectionOfPrimitiveValues("scopes", Scopes); @@ -171,7 +173,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("token_last_eight", TokenLastEight); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/Authorization_app.cs b/src/GitHub/Models/Authorization_app.cs index 75ae1dcb..310e914c 100644 --- a/src/GitHub/Models/Authorization_app.cs +++ b/src/GitHub/Models/Authorization_app.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Authorization_app : IAdditionalDataHolder, IParsable + public partial class Authorization_app : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class Authorization_app : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Authorization_app() { @@ -45,12 +47,12 @@ public Authorization_app() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Authorization_app CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Authorization_app CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Authorization_app(); + return new global::GitHub.Models.Authorization_app(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"client_id", n => { ClientId = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "client_id", n => { ClientId = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/AutoMerge.cs b/src/GitHub/Models/AutoMerge.cs index 01448bbd..6a703151 100644 --- a/src/GitHub/Models/AutoMerge.cs +++ b/src/GitHub/Models/AutoMerge.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The status of auto merging a pull request. /// - public class AutoMerge : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AutoMerge : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -31,15 +33,15 @@ public class AutoMerge : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? EnabledBy { get; set; } + public global::GitHub.Models.SimpleUser? EnabledBy { get; set; } #nullable restore #else - public SimpleUser EnabledBy { get; set; } + public global::GitHub.Models.SimpleUser EnabledBy { get; set; } #endif /// The merge method to use. - public AutoMerge_merge_method? MergeMethod { get; set; } + public global::GitHub.Models.AutoMerge_merge_method? MergeMethod { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AutoMerge() { @@ -48,12 +50,12 @@ public AutoMerge() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AutoMerge CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.AutoMerge CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AutoMerge(); + return new global::GitHub.Models.AutoMerge(); } /// /// The deserialization information for the current model @@ -63,10 +65,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"commit_message", n => { CommitMessage = n.GetStringValue(); } }, - {"commit_title", n => { CommitTitle = n.GetStringValue(); } }, - {"enabled_by", n => { EnabledBy = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"merge_method", n => { MergeMethod = n.GetEnumValue(); } }, + { "commit_message", n => { CommitMessage = n.GetStringValue(); } }, + { "commit_title", n => { CommitTitle = n.GetStringValue(); } }, + { "enabled_by", n => { EnabledBy = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "merge_method", n => { MergeMethod = n.GetEnumValue(); } }, }; } /// @@ -78,8 +80,8 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("commit_message", CommitMessage); writer.WriteStringValue("commit_title", CommitTitle); - writer.WriteObjectValue("enabled_by", EnabledBy); - writer.WriteEnumValue("merge_method", MergeMethod); + writer.WriteObjectValue("enabled_by", EnabledBy); + writer.WriteEnumValue("merge_method", MergeMethod); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/AutoMerge_merge_method.cs b/src/GitHub/Models/AutoMerge_merge_method.cs index 22f7e387..4f0847b2 100644 --- a/src/GitHub/Models/AutoMerge_merge_method.cs +++ b/src/GitHub/Models/AutoMerge_merge_method.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The merge method to use. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AutoMerge_merge_method { [EnumMember(Value = "merge")] diff --git a/src/GitHub/Models/Autolink.cs b/src/GitHub/Models/Autolink.cs index f8b3085e..b18ea011 100644 --- a/src/GitHub/Models/Autolink.cs +++ b/src/GitHub/Models/Autolink.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// An autolink reference. /// - public class Autolink : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Autolink : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -33,7 +35,7 @@ public class Autolink : IAdditionalDataHolder, IParsable public string UrlTemplate { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Autolink() { @@ -42,12 +44,12 @@ public Autolink() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Autolink CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Autolink CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Autolink(); + return new global::GitHub.Models.Autolink(); } /// /// The deserialization information for the current model @@ -57,10 +59,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetIntValue(); } }, - {"is_alphanumeric", n => { IsAlphanumeric = n.GetBoolValue(); } }, - {"key_prefix", n => { KeyPrefix = n.GetStringValue(); } }, - {"url_template", n => { UrlTemplate = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "is_alphanumeric", n => { IsAlphanumeric = n.GetBoolValue(); } }, + { "key_prefix", n => { KeyPrefix = n.GetStringValue(); } }, + { "url_template", n => { UrlTemplate = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/BaseGist.cs b/src/GitHub/Models/BaseGist.cs index b6727fdc..d12a3738 100644 --- a/src/GitHub/Models/BaseGist.cs +++ b/src/GitHub/Models/BaseGist.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Base Gist /// - public class BaseGist : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class BaseGist : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -43,10 +45,10 @@ public class BaseGist : IAdditionalDataHolder, IParsable /// The files property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public BaseGist_files? Files { get; set; } + public global::GitHub.Models.BaseGist_files? Files { get; set; } #nullable restore #else - public BaseGist_files Files { get; set; } + public global::GitHub.Models.BaseGist_files Files { get; set; } #endif /// The forks property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,10 +117,10 @@ public class BaseGist : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Owner { get; set; } + public global::GitHub.Models.SimpleUser? Owner { get; set; } #nullable restore #else - public SimpleUser Owner { get; set; } + public global::GitHub.Models.SimpleUser Owner { get; set; } #endif /// The public property public bool? Public { get; set; } @@ -137,13 +139,13 @@ public class BaseGist : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? User { get; set; } + public global::GitHub.Models.NullableSimpleUser? User { get; set; } #nullable restore #else - public NullableSimpleUser User { get; set; } + public global::GitHub.Models.NullableSimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BaseGist() { @@ -152,12 +154,12 @@ public BaseGist() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BaseGist CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BaseGist CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BaseGist(); + return new global::GitHub.Models.BaseGist(); } /// /// The deserialization information for the current model @@ -167,26 +169,26 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"comments", n => { Comments = n.GetIntValue(); } }, - {"comments_url", n => { CommentsUrl = n.GetStringValue(); } }, - {"commits_url", n => { CommitsUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"files", n => { Files = n.GetObjectValue(BaseGist_files.CreateFromDiscriminatorValue); } }, - {"forks", n => { Forks = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, - {"forks_url", n => { ForksUrl = n.GetStringValue(); } }, - {"git_pull_url", n => { GitPullUrl = n.GetStringValue(); } }, - {"git_push_url", n => { GitPushUrl = n.GetStringValue(); } }, - {"history", n => { History = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"public", n => { Public = n.GetBoolValue(); } }, - {"truncated", n => { Truncated = n.GetBoolValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "comments", n => { Comments = n.GetIntValue(); } }, + { "comments_url", n => { CommentsUrl = n.GetStringValue(); } }, + { "commits_url", n => { CommitsUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "files", n => { Files = n.GetObjectValue(global::GitHub.Models.BaseGist_files.CreateFromDiscriminatorValue); } }, + { "forks", n => { Forks = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "forks_url", n => { ForksUrl = n.GetStringValue(); } }, + { "git_pull_url", n => { GitPullUrl = n.GetStringValue(); } }, + { "git_push_url", n => { GitPushUrl = n.GetStringValue(); } }, + { "history", n => { History = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "public", n => { Public = n.GetBoolValue(); } }, + { "truncated", n => { Truncated = n.GetBoolValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -201,7 +203,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("commits_url", CommitsUrl); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteStringValue("description", Description); - writer.WriteObjectValue("files", Files); + writer.WriteObjectValue("files", Files); writer.WriteObjectValue("forks", Forks); writer.WriteStringValue("forks_url", ForksUrl); writer.WriteStringValue("git_pull_url", GitPullUrl); @@ -210,12 +212,12 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("html_url", HtmlUrl); writer.WriteStringValue("id", Id); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("owner", Owner); + writer.WriteObjectValue("owner", Owner); writer.WriteBoolValue("public", Public); writer.WriteBoolValue("truncated", Truncated); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/BaseGist_files.cs b/src/GitHub/Models/BaseGist_files.cs index 47e7aa0d..463149ce 100644 --- a/src/GitHub/Models/BaseGist_files.cs +++ b/src/GitHub/Models/BaseGist_files.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class BaseGist_files : IAdditionalDataHolder, IParsable + public partial class BaseGist_files : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BaseGist_files() { @@ -21,12 +23,12 @@ public BaseGist_files() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BaseGist_files CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BaseGist_files CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BaseGist_files(); + return new global::GitHub.Models.BaseGist_files(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/BasicError.cs b/src/GitHub/Models/BasicError.cs index 3db30953..b770f264 100644 --- a/src/GitHub/Models/BasicError.cs +++ b/src/GitHub/Models/BasicError.cs @@ -1,15 +1,17 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Basic Error /// - public class BasicError : ApiException, IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class BasicError : ApiException, IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -21,14 +23,8 @@ public class BasicError : ApiException, IAdditionalDataHolder, IParsable #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// The status property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -46,7 +42,7 @@ public class BasicError : ApiException, IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BasicError() { @@ -55,12 +51,12 @@ public BasicError() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BasicError CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BasicError CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BasicError(); + return new global::GitHub.Models.BasicError(); } /// /// The deserialization information for the current model @@ -70,10 +66,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, - {"status", n => { Status = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, + { "status", n => { Status = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -84,7 +79,6 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteStringValue("status", Status); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/BillingUsageReport.cs b/src/GitHub/Models/BillingUsageReport.cs index 8946406c..8b519ee6 100644 --- a/src/GitHub/Models/BillingUsageReport.cs +++ b/src/GitHub/Models/BillingUsageReport.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class BillingUsageReport : IAdditionalDataHolder, IParsable + public partial class BillingUsageReport : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,13 +16,13 @@ public class BillingUsageReport : IAdditionalDataHolder, IParsable /// The usageItems property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? UsageItems { get; set; } + public List? UsageItems { get; set; } #nullable restore #else - public List UsageItems { get; set; } + public List UsageItems { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BillingUsageReport() { @@ -29,12 +31,12 @@ public BillingUsageReport() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BillingUsageReport CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BillingUsageReport CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BillingUsageReport(); + return new global::GitHub.Models.BillingUsageReport(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"usageItems", n => { UsageItems = n.GetCollectionOfObjectValues(BillingUsageReport_usageItems.CreateFromDiscriminatorValue)?.ToList(); } }, + { "usageItems", n => { UsageItems = n.GetCollectionOfObjectValues(global::GitHub.Models.BillingUsageReport_usageItems.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -54,7 +56,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("usageItems", UsageItems); + writer.WriteCollectionOfObjectValues("usageItems", UsageItems); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/BillingUsageReport503Error.cs b/src/GitHub/Models/BillingUsageReport503Error.cs index bcfa63f8..8b4a3fae 100644 --- a/src/GitHub/Models/BillingUsageReport503Error.cs +++ b/src/GitHub/Models/BillingUsageReport503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class BillingUsageReport503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class BillingUsageReport503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class BillingUsageReport503Error : ApiException, IAdditionalDataHolder, I #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BillingUsageReport503Error() { @@ -46,12 +42,12 @@ public BillingUsageReport503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BillingUsageReport503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BillingUsageReport503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BillingUsageReport503Error(); + return new global::GitHub.Models.BillingUsageReport503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/BillingUsageReport_usageItems.cs b/src/GitHub/Models/BillingUsageReport_usageItems.cs index 94e06579..57de9b69 100644 --- a/src/GitHub/Models/BillingUsageReport_usageItems.cs +++ b/src/GitHub/Models/BillingUsageReport_usageItems.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class BillingUsageReport_usageItems : IAdditionalDataHolder, IParsable + public partial class BillingUsageReport_usageItems : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -70,7 +72,7 @@ public class BillingUsageReport_usageItems : IAdditionalDataHolder, IParsable public string UnitType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BillingUsageReport_usageItems() { @@ -79,12 +81,12 @@ public BillingUsageReport_usageItems() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BillingUsageReport_usageItems CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BillingUsageReport_usageItems CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BillingUsageReport_usageItems(); + return new global::GitHub.Models.BillingUsageReport_usageItems(); } /// /// The deserialization information for the current model @@ -94,17 +96,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"date", n => { Date = n.GetStringValue(); } }, - {"discountAmount", n => { DiscountAmount = n.GetDoubleValue(); } }, - {"grossAmount", n => { GrossAmount = n.GetDoubleValue(); } }, - {"netAmount", n => { NetAmount = n.GetDoubleValue(); } }, - {"organizationName", n => { OrganizationName = n.GetStringValue(); } }, - {"pricePerUnit", n => { PricePerUnit = n.GetDoubleValue(); } }, - {"product", n => { Product = n.GetStringValue(); } }, - {"quantity", n => { Quantity = n.GetIntValue(); } }, - {"repositoryName", n => { RepositoryName = n.GetStringValue(); } }, - {"sku", n => { Sku = n.GetStringValue(); } }, - {"unitType", n => { UnitType = n.GetStringValue(); } }, + { "date", n => { Date = n.GetStringValue(); } }, + { "discountAmount", n => { DiscountAmount = n.GetDoubleValue(); } }, + { "grossAmount", n => { GrossAmount = n.GetDoubleValue(); } }, + { "netAmount", n => { NetAmount = n.GetDoubleValue(); } }, + { "organizationName", n => { OrganizationName = n.GetStringValue(); } }, + { "pricePerUnit", n => { PricePerUnit = n.GetDoubleValue(); } }, + { "product", n => { Product = n.GetStringValue(); } }, + { "quantity", n => { Quantity = n.GetIntValue(); } }, + { "repositoryName", n => { RepositoryName = n.GetStringValue(); } }, + { "sku", n => { Sku = n.GetStringValue(); } }, + { "unitType", n => { UnitType = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Blob.cs b/src/GitHub/Models/Blob.cs index c7b20d43..11b4b1df 100644 --- a/src/GitHub/Models/Blob.cs +++ b/src/GitHub/Models/Blob.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Blob /// - public class Blob : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Blob : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -63,7 +65,7 @@ public class Blob : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Blob() { @@ -72,12 +74,12 @@ public Blob() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Blob CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Blob CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Blob(); + return new global::GitHub.Models.Blob(); } /// /// The deserialization information for the current model @@ -87,13 +89,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content", n => { Content = n.GetStringValue(); } }, - {"encoding", n => { Encoding = n.GetStringValue(); } }, - {"highlighted_content", n => { HighlightedContent = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"size", n => { Size = n.GetIntValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "content", n => { Content = n.GetStringValue(); } }, + { "encoding", n => { Encoding = n.GetStringValue(); } }, + { "highlighted_content", n => { HighlightedContent = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "size", n => { Size = n.GetIntValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/BranchProtection.cs b/src/GitHub/Models/BranchProtection.cs index 4d97180d..f7aadb02 100644 --- a/src/GitHub/Models/BranchProtection.cs +++ b/src/GitHub/Models/BranchProtection.cs @@ -1,66 +1,68 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Branch Protection /// - public class BranchProtection : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class BranchProtection : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The allow_deletions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public BranchProtection_allow_deletions? AllowDeletions { get; set; } + public global::GitHub.Models.BranchProtection_allow_deletions? AllowDeletions { get; set; } #nullable restore #else - public BranchProtection_allow_deletions AllowDeletions { get; set; } + public global::GitHub.Models.BranchProtection_allow_deletions AllowDeletions { get; set; } #endif /// The allow_force_pushes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public BranchProtection_allow_force_pushes? AllowForcePushes { get; set; } + public global::GitHub.Models.BranchProtection_allow_force_pushes? AllowForcePushes { get; set; } #nullable restore #else - public BranchProtection_allow_force_pushes AllowForcePushes { get; set; } + public global::GitHub.Models.BranchProtection_allow_force_pushes AllowForcePushes { get; set; } #endif /// Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public BranchProtection_allow_fork_syncing? AllowForkSyncing { get; set; } + public global::GitHub.Models.BranchProtection_allow_fork_syncing? AllowForkSyncing { get; set; } #nullable restore #else - public BranchProtection_allow_fork_syncing AllowForkSyncing { get; set; } + public global::GitHub.Models.BranchProtection_allow_fork_syncing AllowForkSyncing { get; set; } #endif /// The block_creations property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public BranchProtection_block_creations? BlockCreations { get; set; } + public global::GitHub.Models.BranchProtection_block_creations? BlockCreations { get; set; } #nullable restore #else - public BranchProtection_block_creations BlockCreations { get; set; } + public global::GitHub.Models.BranchProtection_block_creations BlockCreations { get; set; } #endif /// The enabled property public bool? Enabled { get; set; } /// Protected Branch Admin Enforced #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectedBranchAdminEnforced? EnforceAdmins { get; set; } + public global::GitHub.Models.ProtectedBranchAdminEnforced? EnforceAdmins { get; set; } #nullable restore #else - public ProtectedBranchAdminEnforced EnforceAdmins { get; set; } + public global::GitHub.Models.ProtectedBranchAdminEnforced EnforceAdmins { get; set; } #endif /// Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public BranchProtection_lock_branch? LockBranch { get; set; } + public global::GitHub.Models.BranchProtection_lock_branch? LockBranch { get; set; } #nullable restore #else - public BranchProtection_lock_branch LockBranch { get; set; } + public global::GitHub.Models.BranchProtection_lock_branch LockBranch { get; set; } #endif /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,50 +83,50 @@ public class BranchProtection : IAdditionalDataHolder, IParsable /// The required_conversation_resolution property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public BranchProtection_required_conversation_resolution? RequiredConversationResolution { get; set; } + public global::GitHub.Models.BranchProtection_required_conversation_resolution? RequiredConversationResolution { get; set; } #nullable restore #else - public BranchProtection_required_conversation_resolution RequiredConversationResolution { get; set; } + public global::GitHub.Models.BranchProtection_required_conversation_resolution RequiredConversationResolution { get; set; } #endif /// The required_linear_history property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public BranchProtection_required_linear_history? RequiredLinearHistory { get; set; } + public global::GitHub.Models.BranchProtection_required_linear_history? RequiredLinearHistory { get; set; } #nullable restore #else - public BranchProtection_required_linear_history RequiredLinearHistory { get; set; } + public global::GitHub.Models.BranchProtection_required_linear_history RequiredLinearHistory { get; set; } #endif /// Protected Branch Pull Request Review #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectedBranchPullRequestReview? RequiredPullRequestReviews { get; set; } + public global::GitHub.Models.ProtectedBranchPullRequestReview? RequiredPullRequestReviews { get; set; } #nullable restore #else - public ProtectedBranchPullRequestReview RequiredPullRequestReviews { get; set; } + public global::GitHub.Models.ProtectedBranchPullRequestReview RequiredPullRequestReviews { get; set; } #endif /// The required_signatures property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public BranchProtection_required_signatures? RequiredSignatures { get; set; } + public global::GitHub.Models.BranchProtection_required_signatures? RequiredSignatures { get; set; } #nullable restore #else - public BranchProtection_required_signatures RequiredSignatures { get; set; } + public global::GitHub.Models.BranchProtection_required_signatures RequiredSignatures { get; set; } #endif /// Protected Branch Required Status Check #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectedBranchRequiredStatusCheck? RequiredStatusChecks { get; set; } + public global::GitHub.Models.ProtectedBranchRequiredStatusCheck? RequiredStatusChecks { get; set; } #nullable restore #else - public ProtectedBranchRequiredStatusCheck RequiredStatusChecks { get; set; } + public global::GitHub.Models.ProtectedBranchRequiredStatusCheck RequiredStatusChecks { get; set; } #endif /// Branch Restriction Policy #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public BranchRestrictionPolicy? Restrictions { get; set; } + public global::GitHub.Models.BranchRestrictionPolicy? Restrictions { get; set; } #nullable restore #else - public BranchRestrictionPolicy Restrictions { get; set; } + public global::GitHub.Models.BranchRestrictionPolicy Restrictions { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -135,7 +137,7 @@ public class BranchProtection : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BranchProtection() { @@ -144,12 +146,12 @@ public BranchProtection() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BranchProtection CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BranchProtection CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BranchProtection(); + return new global::GitHub.Models.BranchProtection(); } /// /// The deserialization information for the current model @@ -159,22 +161,22 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allow_deletions", n => { AllowDeletions = n.GetObjectValue(BranchProtection_allow_deletions.CreateFromDiscriminatorValue); } }, - {"allow_force_pushes", n => { AllowForcePushes = n.GetObjectValue(BranchProtection_allow_force_pushes.CreateFromDiscriminatorValue); } }, - {"allow_fork_syncing", n => { AllowForkSyncing = n.GetObjectValue(BranchProtection_allow_fork_syncing.CreateFromDiscriminatorValue); } }, - {"block_creations", n => { BlockCreations = n.GetObjectValue(BranchProtection_block_creations.CreateFromDiscriminatorValue); } }, - {"enabled", n => { Enabled = n.GetBoolValue(); } }, - {"enforce_admins", n => { EnforceAdmins = n.GetObjectValue(ProtectedBranchAdminEnforced.CreateFromDiscriminatorValue); } }, - {"lock_branch", n => { LockBranch = n.GetObjectValue(BranchProtection_lock_branch.CreateFromDiscriminatorValue); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"protection_url", n => { ProtectionUrl = n.GetStringValue(); } }, - {"required_conversation_resolution", n => { RequiredConversationResolution = n.GetObjectValue(BranchProtection_required_conversation_resolution.CreateFromDiscriminatorValue); } }, - {"required_linear_history", n => { RequiredLinearHistory = n.GetObjectValue(BranchProtection_required_linear_history.CreateFromDiscriminatorValue); } }, - {"required_pull_request_reviews", n => { RequiredPullRequestReviews = n.GetObjectValue(ProtectedBranchPullRequestReview.CreateFromDiscriminatorValue); } }, - {"required_signatures", n => { RequiredSignatures = n.GetObjectValue(BranchProtection_required_signatures.CreateFromDiscriminatorValue); } }, - {"required_status_checks", n => { RequiredStatusChecks = n.GetObjectValue(ProtectedBranchRequiredStatusCheck.CreateFromDiscriminatorValue); } }, - {"restrictions", n => { Restrictions = n.GetObjectValue(BranchRestrictionPolicy.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "allow_deletions", n => { AllowDeletions = n.GetObjectValue(global::GitHub.Models.BranchProtection_allow_deletions.CreateFromDiscriminatorValue); } }, + { "allow_force_pushes", n => { AllowForcePushes = n.GetObjectValue(global::GitHub.Models.BranchProtection_allow_force_pushes.CreateFromDiscriminatorValue); } }, + { "allow_fork_syncing", n => { AllowForkSyncing = n.GetObjectValue(global::GitHub.Models.BranchProtection_allow_fork_syncing.CreateFromDiscriminatorValue); } }, + { "block_creations", n => { BlockCreations = n.GetObjectValue(global::GitHub.Models.BranchProtection_block_creations.CreateFromDiscriminatorValue); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "enforce_admins", n => { EnforceAdmins = n.GetObjectValue(global::GitHub.Models.ProtectedBranchAdminEnforced.CreateFromDiscriminatorValue); } }, + { "lock_branch", n => { LockBranch = n.GetObjectValue(global::GitHub.Models.BranchProtection_lock_branch.CreateFromDiscriminatorValue); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "protection_url", n => { ProtectionUrl = n.GetStringValue(); } }, + { "required_conversation_resolution", n => { RequiredConversationResolution = n.GetObjectValue(global::GitHub.Models.BranchProtection_required_conversation_resolution.CreateFromDiscriminatorValue); } }, + { "required_linear_history", n => { RequiredLinearHistory = n.GetObjectValue(global::GitHub.Models.BranchProtection_required_linear_history.CreateFromDiscriminatorValue); } }, + { "required_pull_request_reviews", n => { RequiredPullRequestReviews = n.GetObjectValue(global::GitHub.Models.ProtectedBranchPullRequestReview.CreateFromDiscriminatorValue); } }, + { "required_signatures", n => { RequiredSignatures = n.GetObjectValue(global::GitHub.Models.BranchProtection_required_signatures.CreateFromDiscriminatorValue); } }, + { "required_status_checks", n => { RequiredStatusChecks = n.GetObjectValue(global::GitHub.Models.ProtectedBranchRequiredStatusCheck.CreateFromDiscriminatorValue); } }, + { "restrictions", n => { Restrictions = n.GetObjectValue(global::GitHub.Models.BranchRestrictionPolicy.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -184,21 +186,21 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("allow_deletions", AllowDeletions); - writer.WriteObjectValue("allow_force_pushes", AllowForcePushes); - writer.WriteObjectValue("allow_fork_syncing", AllowForkSyncing); - writer.WriteObjectValue("block_creations", BlockCreations); + writer.WriteObjectValue("allow_deletions", AllowDeletions); + writer.WriteObjectValue("allow_force_pushes", AllowForcePushes); + writer.WriteObjectValue("allow_fork_syncing", AllowForkSyncing); + writer.WriteObjectValue("block_creations", BlockCreations); writer.WriteBoolValue("enabled", Enabled); - writer.WriteObjectValue("enforce_admins", EnforceAdmins); - writer.WriteObjectValue("lock_branch", LockBranch); + writer.WriteObjectValue("enforce_admins", EnforceAdmins); + writer.WriteObjectValue("lock_branch", LockBranch); writer.WriteStringValue("name", Name); writer.WriteStringValue("protection_url", ProtectionUrl); - writer.WriteObjectValue("required_conversation_resolution", RequiredConversationResolution); - writer.WriteObjectValue("required_linear_history", RequiredLinearHistory); - writer.WriteObjectValue("required_pull_request_reviews", RequiredPullRequestReviews); - writer.WriteObjectValue("required_signatures", RequiredSignatures); - writer.WriteObjectValue("required_status_checks", RequiredStatusChecks); - writer.WriteObjectValue("restrictions", Restrictions); + writer.WriteObjectValue("required_conversation_resolution", RequiredConversationResolution); + writer.WriteObjectValue("required_linear_history", RequiredLinearHistory); + writer.WriteObjectValue("required_pull_request_reviews", RequiredPullRequestReviews); + writer.WriteObjectValue("required_signatures", RequiredSignatures); + writer.WriteObjectValue("required_status_checks", RequiredStatusChecks); + writer.WriteObjectValue("restrictions", Restrictions); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/BranchProtection_allow_deletions.cs b/src/GitHub/Models/BranchProtection_allow_deletions.cs index bcdda576..7cbbe2b3 100644 --- a/src/GitHub/Models/BranchProtection_allow_deletions.cs +++ b/src/GitHub/Models/BranchProtection_allow_deletions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class BranchProtection_allow_deletions : IAdditionalDataHolder, IParsable + public partial class BranchProtection_allow_deletions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class BranchProtection_allow_deletions : IAdditionalDataHolder, IParsable /// The enabled property public bool? Enabled { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BranchProtection_allow_deletions() { @@ -23,12 +25,12 @@ public BranchProtection_allow_deletions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BranchProtection_allow_deletions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BranchProtection_allow_deletions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BranchProtection_allow_deletions(); + return new global::GitHub.Models.BranchProtection_allow_deletions(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enabled", n => { Enabled = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/BranchProtection_allow_force_pushes.cs b/src/GitHub/Models/BranchProtection_allow_force_pushes.cs index 4455aa6e..19aacbca 100644 --- a/src/GitHub/Models/BranchProtection_allow_force_pushes.cs +++ b/src/GitHub/Models/BranchProtection_allow_force_pushes.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class BranchProtection_allow_force_pushes : IAdditionalDataHolder, IParsable + public partial class BranchProtection_allow_force_pushes : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class BranchProtection_allow_force_pushes : IAdditionalDataHolder, IParsa /// The enabled property public bool? Enabled { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BranchProtection_allow_force_pushes() { @@ -23,12 +25,12 @@ public BranchProtection_allow_force_pushes() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BranchProtection_allow_force_pushes CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BranchProtection_allow_force_pushes CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BranchProtection_allow_force_pushes(); + return new global::GitHub.Models.BranchProtection_allow_force_pushes(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enabled", n => { Enabled = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/BranchProtection_allow_fork_syncing.cs b/src/GitHub/Models/BranchProtection_allow_fork_syncing.cs index 15c15b69..6d8a977e 100644 --- a/src/GitHub/Models/BranchProtection_allow_fork_syncing.cs +++ b/src/GitHub/Models/BranchProtection_allow_fork_syncing.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. /// - public class BranchProtection_allow_fork_syncing : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class BranchProtection_allow_fork_syncing : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The enabled property public bool? Enabled { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BranchProtection_allow_fork_syncing() { @@ -24,12 +26,12 @@ public BranchProtection_allow_fork_syncing() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BranchProtection_allow_fork_syncing CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BranchProtection_allow_fork_syncing CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BranchProtection_allow_fork_syncing(); + return new global::GitHub.Models.BranchProtection_allow_fork_syncing(); } /// /// The deserialization information for the current model @@ -39,7 +41,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enabled", n => { Enabled = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/BranchProtection_block_creations.cs b/src/GitHub/Models/BranchProtection_block_creations.cs index 26fda264..4f3032de 100644 --- a/src/GitHub/Models/BranchProtection_block_creations.cs +++ b/src/GitHub/Models/BranchProtection_block_creations.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class BranchProtection_block_creations : IAdditionalDataHolder, IParsable + public partial class BranchProtection_block_creations : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class BranchProtection_block_creations : IAdditionalDataHolder, IParsable /// The enabled property public bool? Enabled { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BranchProtection_block_creations() { @@ -23,12 +25,12 @@ public BranchProtection_block_creations() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BranchProtection_block_creations CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BranchProtection_block_creations CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BranchProtection_block_creations(); + return new global::GitHub.Models.BranchProtection_block_creations(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enabled", n => { Enabled = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/BranchProtection_lock_branch.cs b/src/GitHub/Models/BranchProtection_lock_branch.cs index 5f78ac51..19233df5 100644 --- a/src/GitHub/Models/BranchProtection_lock_branch.cs +++ b/src/GitHub/Models/BranchProtection_lock_branch.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. /// - public class BranchProtection_lock_branch : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class BranchProtection_lock_branch : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The enabled property public bool? Enabled { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BranchProtection_lock_branch() { @@ -24,12 +26,12 @@ public BranchProtection_lock_branch() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BranchProtection_lock_branch CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BranchProtection_lock_branch CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BranchProtection_lock_branch(); + return new global::GitHub.Models.BranchProtection_lock_branch(); } /// /// The deserialization information for the current model @@ -39,7 +41,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enabled", n => { Enabled = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/BranchProtection_required_conversation_resolution.cs b/src/GitHub/Models/BranchProtection_required_conversation_resolution.cs index 7376aab2..865a6eca 100644 --- a/src/GitHub/Models/BranchProtection_required_conversation_resolution.cs +++ b/src/GitHub/Models/BranchProtection_required_conversation_resolution.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class BranchProtection_required_conversation_resolution : IAdditionalDataHolder, IParsable + public partial class BranchProtection_required_conversation_resolution : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class BranchProtection_required_conversation_resolution : IAdditionalData /// The enabled property public bool? Enabled { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BranchProtection_required_conversation_resolution() { @@ -23,12 +25,12 @@ public BranchProtection_required_conversation_resolution() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BranchProtection_required_conversation_resolution CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BranchProtection_required_conversation_resolution CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BranchProtection_required_conversation_resolution(); + return new global::GitHub.Models.BranchProtection_required_conversation_resolution(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enabled", n => { Enabled = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/BranchProtection_required_linear_history.cs b/src/GitHub/Models/BranchProtection_required_linear_history.cs index a263d9ca..62a2d8de 100644 --- a/src/GitHub/Models/BranchProtection_required_linear_history.cs +++ b/src/GitHub/Models/BranchProtection_required_linear_history.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class BranchProtection_required_linear_history : IAdditionalDataHolder, IParsable + public partial class BranchProtection_required_linear_history : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class BranchProtection_required_linear_history : IAdditionalDataHolder, I /// The enabled property public bool? Enabled { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BranchProtection_required_linear_history() { @@ -23,12 +25,12 @@ public BranchProtection_required_linear_history() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BranchProtection_required_linear_history CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BranchProtection_required_linear_history CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BranchProtection_required_linear_history(); + return new global::GitHub.Models.BranchProtection_required_linear_history(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enabled", n => { Enabled = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/BranchProtection_required_signatures.cs b/src/GitHub/Models/BranchProtection_required_signatures.cs index fdb281f5..f6310f6a 100644 --- a/src/GitHub/Models/BranchProtection_required_signatures.cs +++ b/src/GitHub/Models/BranchProtection_required_signatures.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class BranchProtection_required_signatures : IAdditionalDataHolder, IParsable + public partial class BranchProtection_required_signatures : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class BranchProtection_required_signatures : IAdditionalDataHolder, IPars public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BranchProtection_required_signatures() { @@ -31,12 +33,12 @@ public BranchProtection_required_signatures() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BranchProtection_required_signatures CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BranchProtection_required_signatures CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BranchProtection_required_signatures(); + return new global::GitHub.Models.BranchProtection_required_signatures(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enabled", n => { Enabled = n.GetBoolValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/BranchRestrictionPolicy.cs b/src/GitHub/Models/BranchRestrictionPolicy.cs index b3fc66da..60086d37 100644 --- a/src/GitHub/Models/BranchRestrictionPolicy.cs +++ b/src/GitHub/Models/BranchRestrictionPolicy.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Branch Restriction Policy /// - public class BranchRestrictionPolicy : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class BranchRestrictionPolicy : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The apps property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Apps { get; set; } + public List? Apps { get; set; } #nullable restore #else - public List Apps { get; set; } + public List Apps { get; set; } #endif /// The apps_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -31,10 +33,10 @@ public class BranchRestrictionPolicy : IAdditionalDataHolder, IParsable /// The teams property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Teams { get; set; } + public List? Teams { get; set; } #nullable restore #else - public List Teams { get; set; } + public List Teams { get; set; } #endif /// The teams_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -55,10 +57,10 @@ public class BranchRestrictionPolicy : IAdditionalDataHolder, IParsable /// The users property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Users { get; set; } + public List? Users { get; set; } #nullable restore #else - public List Users { get; set; } + public List Users { get; set; } #endif /// The users_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -69,7 +71,7 @@ public class BranchRestrictionPolicy : IAdditionalDataHolder, IParsable public string UsersUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BranchRestrictionPolicy() { @@ -78,12 +80,12 @@ public BranchRestrictionPolicy() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BranchRestrictionPolicy CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BranchRestrictionPolicy CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BranchRestrictionPolicy(); + return new global::GitHub.Models.BranchRestrictionPolicy(); } /// /// The deserialization information for the current model @@ -93,13 +95,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"apps", n => { Apps = n.GetCollectionOfObjectValues(BranchRestrictionPolicy_apps.CreateFromDiscriminatorValue)?.ToList(); } }, - {"apps_url", n => { AppsUrl = n.GetStringValue(); } }, - {"teams", n => { Teams = n.GetCollectionOfObjectValues(BranchRestrictionPolicy_teams.CreateFromDiscriminatorValue)?.ToList(); } }, - {"teams_url", n => { TeamsUrl = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"users", n => { Users = n.GetCollectionOfObjectValues(BranchRestrictionPolicy_users.CreateFromDiscriminatorValue)?.ToList(); } }, - {"users_url", n => { UsersUrl = n.GetStringValue(); } }, + { "apps", n => { Apps = n.GetCollectionOfObjectValues(global::GitHub.Models.BranchRestrictionPolicy_apps.CreateFromDiscriminatorValue)?.AsList(); } }, + { "apps_url", n => { AppsUrl = n.GetStringValue(); } }, + { "teams", n => { Teams = n.GetCollectionOfObjectValues(global::GitHub.Models.BranchRestrictionPolicy_teams.CreateFromDiscriminatorValue)?.AsList(); } }, + { "teams_url", n => { TeamsUrl = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "users", n => { Users = n.GetCollectionOfObjectValues(global::GitHub.Models.BranchRestrictionPolicy_users.CreateFromDiscriminatorValue)?.AsList(); } }, + { "users_url", n => { UsersUrl = n.GetStringValue(); } }, }; } /// @@ -109,12 +111,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("apps", Apps); + writer.WriteCollectionOfObjectValues("apps", Apps); writer.WriteStringValue("apps_url", AppsUrl); - writer.WriteCollectionOfObjectValues("teams", Teams); + writer.WriteCollectionOfObjectValues("teams", Teams); writer.WriteStringValue("teams_url", TeamsUrl); writer.WriteStringValue("url", Url); - writer.WriteCollectionOfObjectValues("users", Users); + writer.WriteCollectionOfObjectValues("users", Users); writer.WriteStringValue("users_url", UsersUrl); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/BranchRestrictionPolicy_apps.cs b/src/GitHub/Models/BranchRestrictionPolicy_apps.cs index f99d7dda..eb658e10 100644 --- a/src/GitHub/Models/BranchRestrictionPolicy_apps.cs +++ b/src/GitHub/Models/BranchRestrictionPolicy_apps.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class BranchRestrictionPolicy_apps : IAdditionalDataHolder, IParsable + public partial class BranchRestrictionPolicy_apps : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -80,18 +82,18 @@ public class BranchRestrictionPolicy_apps : IAdditionalDataHolder, IParsable /// The owner property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public BranchRestrictionPolicy_apps_owner? Owner { get; set; } + public global::GitHub.Models.BranchRestrictionPolicy_apps_owner? Owner { get; set; } #nullable restore #else - public BranchRestrictionPolicy_apps_owner Owner { get; set; } + public global::GitHub.Models.BranchRestrictionPolicy_apps_owner Owner { get; set; } #endif /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public BranchRestrictionPolicy_apps_permissions? Permissions { get; set; } + public global::GitHub.Models.BranchRestrictionPolicy_apps_permissions? Permissions { get; set; } #nullable restore #else - public BranchRestrictionPolicy_apps_permissions Permissions { get; set; } + public global::GitHub.Models.BranchRestrictionPolicy_apps_permissions Permissions { get; set; } #endif /// The slug property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +112,7 @@ public class BranchRestrictionPolicy_apps : IAdditionalDataHolder, IParsable public string UpdatedAt { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BranchRestrictionPolicy_apps() { @@ -119,12 +121,12 @@ public BranchRestrictionPolicy_apps() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BranchRestrictionPolicy_apps CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BranchRestrictionPolicy_apps CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BranchRestrictionPolicy_apps(); + return new global::GitHub.Models.BranchRestrictionPolicy_apps(); } /// /// The deserialization information for the current model @@ -134,19 +136,19 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"client_id", n => { ClientId = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"events", n => { Events = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"external_url", n => { ExternalUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(BranchRestrictionPolicy_apps_owner.CreateFromDiscriminatorValue); } }, - {"permissions", n => { Permissions = n.GetObjectValue(BranchRestrictionPolicy_apps_permissions.CreateFromDiscriminatorValue); } }, - {"slug", n => { Slug = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetStringValue(); } }, + { "client_id", n => { ClientId = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "events", n => { Events = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "external_url", n => { ExternalUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.BranchRestrictionPolicy_apps_owner.CreateFromDiscriminatorValue); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.BranchRestrictionPolicy_apps_permissions.CreateFromDiscriminatorValue); } }, + { "slug", n => { Slug = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetStringValue(); } }, }; } /// @@ -165,8 +167,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("id", Id); writer.WriteStringValue("name", Name); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("owner", Owner); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("owner", Owner); + writer.WriteObjectValue("permissions", Permissions); writer.WriteStringValue("slug", Slug); writer.WriteStringValue("updated_at", UpdatedAt); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/BranchRestrictionPolicy_apps_owner.cs b/src/GitHub/Models/BranchRestrictionPolicy_apps_owner.cs index afb7ae16..348b6437 100644 --- a/src/GitHub/Models/BranchRestrictionPolicy_apps_owner.cs +++ b/src/GitHub/Models/BranchRestrictionPolicy_apps_owner.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class BranchRestrictionPolicy_apps_owner : IAdditionalDataHolder, IParsable + public partial class BranchRestrictionPolicy_apps_owner : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -184,7 +186,7 @@ public class BranchRestrictionPolicy_apps_owner : IAdditionalDataHolder, IParsab public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BranchRestrictionPolicy_apps_owner() { @@ -193,12 +195,12 @@ public BranchRestrictionPolicy_apps_owner() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BranchRestrictionPolicy_apps_owner CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BranchRestrictionPolicy_apps_owner CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BranchRestrictionPolicy_apps_owner(); + return new global::GitHub.Models.BranchRestrictionPolicy_apps_owner(); } /// /// The deserialization information for the current model @@ -208,29 +210,29 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"followers_url", n => { FollowersUrl = n.GetStringValue(); } }, - {"following_url", n => { FollowingUrl = n.GetStringValue(); } }, - {"gists_url", n => { GistsUrl = n.GetStringValue(); } }, - {"gravatar_id", n => { GravatarId = n.GetStringValue(); } }, - {"hooks_url", n => { HooksUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"issues_url", n => { IssuesUrl = n.GetStringValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"members_url", n => { MembersUrl = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, - {"public_members_url", n => { PublicMembersUrl = n.GetStringValue(); } }, - {"received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, - {"repos_url", n => { ReposUrl = n.GetStringValue(); } }, - {"site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, - {"starred_url", n => { StarredUrl = n.GetStringValue(); } }, - {"subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "followers_url", n => { FollowersUrl = n.GetStringValue(); } }, + { "following_url", n => { FollowingUrl = n.GetStringValue(); } }, + { "gists_url", n => { GistsUrl = n.GetStringValue(); } }, + { "gravatar_id", n => { GravatarId = n.GetStringValue(); } }, + { "hooks_url", n => { HooksUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "issues_url", n => { IssuesUrl = n.GetStringValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "members_url", n => { MembersUrl = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, + { "public_members_url", n => { PublicMembersUrl = n.GetStringValue(); } }, + { "received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, + { "repos_url", n => { ReposUrl = n.GetStringValue(); } }, + { "site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, + { "starred_url", n => { StarredUrl = n.GetStringValue(); } }, + { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/BranchRestrictionPolicy_apps_permissions.cs b/src/GitHub/Models/BranchRestrictionPolicy_apps_permissions.cs index a6525714..c5197e16 100644 --- a/src/GitHub/Models/BranchRestrictionPolicy_apps_permissions.cs +++ b/src/GitHub/Models/BranchRestrictionPolicy_apps_permissions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class BranchRestrictionPolicy_apps_permissions : IAdditionalDataHolder, IParsable + public partial class BranchRestrictionPolicy_apps_permissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -44,7 +46,7 @@ public class BranchRestrictionPolicy_apps_permissions : IAdditionalDataHolder, I public string SingleFile { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BranchRestrictionPolicy_apps_permissions() { @@ -53,12 +55,12 @@ public BranchRestrictionPolicy_apps_permissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BranchRestrictionPolicy_apps_permissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BranchRestrictionPolicy_apps_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BranchRestrictionPolicy_apps_permissions(); + return new global::GitHub.Models.BranchRestrictionPolicy_apps_permissions(); } /// /// The deserialization information for the current model @@ -68,10 +70,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"contents", n => { Contents = n.GetStringValue(); } }, - {"issues", n => { Issues = n.GetStringValue(); } }, - {"metadata", n => { Metadata = n.GetStringValue(); } }, - {"single_file", n => { SingleFile = n.GetStringValue(); } }, + { "contents", n => { Contents = n.GetStringValue(); } }, + { "issues", n => { Issues = n.GetStringValue(); } }, + { "metadata", n => { Metadata = n.GetStringValue(); } }, + { "single_file", n => { SingleFile = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/BranchRestrictionPolicy_teams.cs b/src/GitHub/Models/BranchRestrictionPolicy_teams.cs index f55aa982..8e516826 100644 --- a/src/GitHub/Models/BranchRestrictionPolicy_teams.cs +++ b/src/GitHub/Models/BranchRestrictionPolicy_teams.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class BranchRestrictionPolicy_teams : IAdditionalDataHolder, IParsable + public partial class BranchRestrictionPolicy_teams : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -110,7 +112,7 @@ public class BranchRestrictionPolicy_teams : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BranchRestrictionPolicy_teams() { @@ -119,12 +121,12 @@ public BranchRestrictionPolicy_teams() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BranchRestrictionPolicy_teams CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BranchRestrictionPolicy_teams CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BranchRestrictionPolicy_teams(); + return new global::GitHub.Models.BranchRestrictionPolicy_teams(); } /// /// The deserialization information for the current model @@ -134,19 +136,19 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"members_url", n => { MembersUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"notification_setting", n => { NotificationSetting = n.GetStringValue(); } }, - {"parent", n => { Parent = n.GetStringValue(); } }, - {"permission", n => { Permission = n.GetStringValue(); } }, - {"privacy", n => { Privacy = n.GetStringValue(); } }, - {"repositories_url", n => { RepositoriesUrl = n.GetStringValue(); } }, - {"slug", n => { Slug = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "members_url", n => { MembersUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "notification_setting", n => { NotificationSetting = n.GetStringValue(); } }, + { "parent", n => { Parent = n.GetStringValue(); } }, + { "permission", n => { Permission = n.GetStringValue(); } }, + { "privacy", n => { Privacy = n.GetStringValue(); } }, + { "repositories_url", n => { RepositoriesUrl = n.GetStringValue(); } }, + { "slug", n => { Slug = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/BranchRestrictionPolicy_users.cs b/src/GitHub/Models/BranchRestrictionPolicy_users.cs index c43cdc74..7eb57189 100644 --- a/src/GitHub/Models/BranchRestrictionPolicy_users.cs +++ b/src/GitHub/Models/BranchRestrictionPolicy_users.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class BranchRestrictionPolicy_users : IAdditionalDataHolder, IParsable + public partial class BranchRestrictionPolicy_users : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -144,7 +146,7 @@ public class BranchRestrictionPolicy_users : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BranchRestrictionPolicy_users() { @@ -153,12 +155,12 @@ public BranchRestrictionPolicy_users() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BranchRestrictionPolicy_users CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BranchRestrictionPolicy_users CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BranchRestrictionPolicy_users(); + return new global::GitHub.Models.BranchRestrictionPolicy_users(); } /// /// The deserialization information for the current model @@ -168,24 +170,24 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"followers_url", n => { FollowersUrl = n.GetStringValue(); } }, - {"following_url", n => { FollowingUrl = n.GetStringValue(); } }, - {"gists_url", n => { GistsUrl = n.GetStringValue(); } }, - {"gravatar_id", n => { GravatarId = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, - {"received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, - {"repos_url", n => { ReposUrl = n.GetStringValue(); } }, - {"site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, - {"starred_url", n => { StarredUrl = n.GetStringValue(); } }, - {"subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "followers_url", n => { FollowersUrl = n.GetStringValue(); } }, + { "following_url", n => { FollowingUrl = n.GetStringValue(); } }, + { "gists_url", n => { GistsUrl = n.GetStringValue(); } }, + { "gravatar_id", n => { GravatarId = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, + { "received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, + { "repos_url", n => { ReposUrl = n.GetStringValue(); } }, + { "site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, + { "starred_url", n => { StarredUrl = n.GetStringValue(); } }, + { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/BranchShort.cs b/src/GitHub/Models/BranchShort.cs index 6eb35f31..ea86c100 100644 --- a/src/GitHub/Models/BranchShort.cs +++ b/src/GitHub/Models/BranchShort.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Branch Short /// - public class BranchShort : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class BranchShort : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The commit property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public BranchShort_commit? Commit { get; set; } + public global::GitHub.Models.BranchShort_commit? Commit { get; set; } #nullable restore #else - public BranchShort_commit Commit { get; set; } + public global::GitHub.Models.BranchShort_commit Commit { get; set; } #endif /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -31,7 +33,7 @@ public class BranchShort : IAdditionalDataHolder, IParsable /// The protected property public bool? Protected { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BranchShort() { @@ -40,12 +42,12 @@ public BranchShort() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BranchShort CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BranchShort CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BranchShort(); + return new global::GitHub.Models.BranchShort(); } /// /// The deserialization information for the current model @@ -55,9 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"commit", n => { Commit = n.GetObjectValue(BranchShort_commit.CreateFromDiscriminatorValue); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"protected", n => { Protected = n.GetBoolValue(); } }, + { "commit", n => { Commit = n.GetObjectValue(global::GitHub.Models.BranchShort_commit.CreateFromDiscriminatorValue); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "protected", n => { Protected = n.GetBoolValue(); } }, }; } /// @@ -67,7 +69,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("commit", Commit); + writer.WriteObjectValue("commit", Commit); writer.WriteStringValue("name", Name); writer.WriteBoolValue("protected", Protected); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/BranchShort_commit.cs b/src/GitHub/Models/BranchShort_commit.cs index d6147071..12df40f1 100644 --- a/src/GitHub/Models/BranchShort_commit.cs +++ b/src/GitHub/Models/BranchShort_commit.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class BranchShort_commit : IAdditionalDataHolder, IParsable + public partial class BranchShort_commit : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class BranchShort_commit : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BranchShort_commit() { @@ -37,12 +39,12 @@ public BranchShort_commit() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BranchShort_commit CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BranchShort_commit CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BranchShort_commit(); + return new global::GitHub.Models.BranchShort_commit(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"sha", n => { Sha = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/BranchWithProtection.cs b/src/GitHub/Models/BranchWithProtection.cs index 9bc956e3..12f101f7 100644 --- a/src/GitHub/Models/BranchWithProtection.cs +++ b/src/GitHub/Models/BranchWithProtection.cs @@ -1,32 +1,34 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Branch With Protection /// - public class BranchWithProtection : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class BranchWithProtection : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// Commit #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Commit? Commit { get; set; } + public global::GitHub.Models.Commit? Commit { get; set; } #nullable restore #else - public GitHub.Models.Commit Commit { get; set; } + public global::GitHub.Models.Commit Commit { get; set; } #endif /// The _links property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public BranchWithProtection__links? Links { get; set; } + public global::GitHub.Models.BranchWithProtection__links? Links { get; set; } #nullable restore #else - public BranchWithProtection__links Links { get; set; } + public global::GitHub.Models.BranchWithProtection__links Links { get; set; } #endif /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -49,10 +51,10 @@ public class BranchWithProtection : IAdditionalDataHolder, IParsable /// Branch Protection #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public BranchProtection? Protection { get; set; } + public global::GitHub.Models.BranchProtection? Protection { get; set; } #nullable restore #else - public BranchProtection Protection { get; set; } + public global::GitHub.Models.BranchProtection Protection { get; set; } #endif /// The protection_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -65,7 +67,7 @@ public class BranchWithProtection : IAdditionalDataHolder, IParsable /// The required_approving_review_count property public int? RequiredApprovingReviewCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BranchWithProtection() { @@ -74,12 +76,12 @@ public BranchWithProtection() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BranchWithProtection CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BranchWithProtection CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BranchWithProtection(); + return new global::GitHub.Models.BranchWithProtection(); } /// /// The deserialization information for the current model @@ -89,14 +91,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"commit", n => { Commit = n.GetObjectValue(GitHub.Models.Commit.CreateFromDiscriminatorValue); } }, - {"_links", n => { Links = n.GetObjectValue(BranchWithProtection__links.CreateFromDiscriminatorValue); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"pattern", n => { Pattern = n.GetStringValue(); } }, - {"protected", n => { Protected = n.GetBoolValue(); } }, - {"protection", n => { Protection = n.GetObjectValue(BranchProtection.CreateFromDiscriminatorValue); } }, - {"protection_url", n => { ProtectionUrl = n.GetStringValue(); } }, - {"required_approving_review_count", n => { RequiredApprovingReviewCount = n.GetIntValue(); } }, + { "commit", n => { Commit = n.GetObjectValue(global::GitHub.Models.Commit.CreateFromDiscriminatorValue); } }, + { "_links", n => { Links = n.GetObjectValue(global::GitHub.Models.BranchWithProtection__links.CreateFromDiscriminatorValue); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "pattern", n => { Pattern = n.GetStringValue(); } }, + { "protected", n => { Protected = n.GetBoolValue(); } }, + { "protection", n => { Protection = n.GetObjectValue(global::GitHub.Models.BranchProtection.CreateFromDiscriminatorValue); } }, + { "protection_url", n => { ProtectionUrl = n.GetStringValue(); } }, + { "required_approving_review_count", n => { RequiredApprovingReviewCount = n.GetIntValue(); } }, }; } /// @@ -106,12 +108,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("commit", Commit); - writer.WriteObjectValue("_links", Links); + writer.WriteObjectValue("commit", Commit); + writer.WriteObjectValue("_links", Links); writer.WriteStringValue("name", Name); writer.WriteStringValue("pattern", Pattern); writer.WriteBoolValue("protected", Protected); - writer.WriteObjectValue("protection", Protection); + writer.WriteObjectValue("protection", Protection); writer.WriteStringValue("protection_url", ProtectionUrl); writer.WriteIntValue("required_approving_review_count", RequiredApprovingReviewCount); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/BranchWithProtection__links.cs b/src/GitHub/Models/BranchWithProtection__links.cs index 7a345719..d494a7b7 100644 --- a/src/GitHub/Models/BranchWithProtection__links.cs +++ b/src/GitHub/Models/BranchWithProtection__links.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class BranchWithProtection__links : IAdditionalDataHolder, IParsable + public partial class BranchWithProtection__links : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class BranchWithProtection__links : IAdditionalDataHolder, IParsable public string Self { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BranchWithProtection__links() { @@ -37,12 +39,12 @@ public BranchWithProtection__links() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BranchWithProtection__links CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.BranchWithProtection__links CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BranchWithProtection__links(); + return new global::GitHub.Models.BranchWithProtection__links(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"html", n => { Html = n.GetStringValue(); } }, - {"self", n => { Self = n.GetStringValue(); } }, + { "html", n => { Html = n.GetStringValue(); } }, + { "self", n => { Self = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/CheckAnnotation.cs b/src/GitHub/Models/CheckAnnotation.cs index 12933292..65c8e6d7 100644 --- a/src/GitHub/Models/CheckAnnotation.cs +++ b/src/GitHub/Models/CheckAnnotation.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Check Annotation /// - public class CheckAnnotation : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CheckAnnotation : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -69,7 +71,7 @@ public class CheckAnnotation : IAdditionalDataHolder, IParsable public string Title { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckAnnotation() { @@ -78,12 +80,12 @@ public CheckAnnotation() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CheckAnnotation CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CheckAnnotation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckAnnotation(); + return new global::GitHub.Models.CheckAnnotation(); } /// /// The deserialization information for the current model @@ -93,16 +95,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"annotation_level", n => { AnnotationLevel = n.GetStringValue(); } }, - {"blob_href", n => { BlobHref = n.GetStringValue(); } }, - {"end_column", n => { EndColumn = n.GetIntValue(); } }, - {"end_line", n => { EndLine = n.GetIntValue(); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"raw_details", n => { RawDetails = n.GetStringValue(); } }, - {"start_column", n => { StartColumn = n.GetIntValue(); } }, - {"start_line", n => { StartLine = n.GetIntValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, + { "annotation_level", n => { AnnotationLevel = n.GetStringValue(); } }, + { "blob_href", n => { BlobHref = n.GetStringValue(); } }, + { "end_column", n => { EndColumn = n.GetIntValue(); } }, + { "end_line", n => { EndLine = n.GetIntValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "raw_details", n => { RawDetails = n.GetStringValue(); } }, + { "start_column", n => { StartColumn = n.GetIntValue(); } }, + { "start_line", n => { StartLine = n.GetIntValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/CheckAutomatedSecurityFixes.cs b/src/GitHub/Models/CheckAutomatedSecurityFixes.cs index 05f99b77..10ba521d 100644 --- a/src/GitHub/Models/CheckAutomatedSecurityFixes.cs +++ b/src/GitHub/Models/CheckAutomatedSecurityFixes.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Check Automated Security Fixes /// - public class CheckAutomatedSecurityFixes : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CheckAutomatedSecurityFixes : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -17,7 +19,7 @@ public class CheckAutomatedSecurityFixes : IAdditionalDataHolder, IParsable /// Whether automated security fixes are paused for the repository. public bool? Paused { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckAutomatedSecurityFixes() { @@ -26,12 +28,12 @@ public CheckAutomatedSecurityFixes() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CheckAutomatedSecurityFixes CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CheckAutomatedSecurityFixes CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckAutomatedSecurityFixes(); + return new global::GitHub.Models.CheckAutomatedSecurityFixes(); } /// /// The deserialization information for the current model @@ -41,8 +43,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enabled", n => { Enabled = n.GetBoolValue(); } }, - {"paused", n => { Paused = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "paused", n => { Paused = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/CheckRun.cs b/src/GitHub/Models/CheckRun.cs index 02ab6d10..b7c61f6a 100644 --- a/src/GitHub/Models/CheckRun.cs +++ b/src/GitHub/Models/CheckRun.cs @@ -1,44 +1,46 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A check performed on the code of a given code change /// - public class CheckRun : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CheckRun : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? App { get; set; } + public global::GitHub.Models.NullableIntegration? App { get; set; } #nullable restore #else - public NullableIntegration App { get; set; } + public global::GitHub.Models.NullableIntegration App { get; set; } #endif /// The check_suite property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CheckRun_check_suite? CheckSuite { get; set; } + public global::GitHub.Models.CheckRun_check_suite? CheckSuite { get; set; } #nullable restore #else - public CheckRun_check_suite CheckSuite { get; set; } + public global::GitHub.Models.CheckRun_check_suite CheckSuite { get; set; } #endif /// The completed_at property public DateTimeOffset? CompletedAt { get; set; } /// The conclusion property - public CheckRun_conclusion? Conclusion { get; set; } + public global::GitHub.Models.CheckRun_conclusion? Conclusion { get; set; } /// A deployment created as the result of an Actions check run from a workflow that references an environment #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DeploymentSimple? Deployment { get; set; } + public global::GitHub.Models.DeploymentSimple? Deployment { get; set; } #nullable restore #else - public DeploymentSimple Deployment { get; set; } + public global::GitHub.Models.DeploymentSimple Deployment { get; set; } #endif /// The details_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -93,23 +95,23 @@ public class CheckRun : IAdditionalDataHolder, IParsable /// The output property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CheckRun_output? Output { get; set; } + public global::GitHub.Models.CheckRun_output? Output { get; set; } #nullable restore #else - public CheckRun_output Output { get; set; } + public global::GitHub.Models.CheckRun_output Output { get; set; } #endif /// Pull requests that are open with a `head_sha` or `head_branch` that matches the check. The returned pull requests do not necessarily indicate pull requests that triggered the check. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? PullRequests { get; set; } + public List? PullRequests { get; set; } #nullable restore #else - public List PullRequests { get; set; } + public List PullRequests { get; set; } #endif /// The started_at property public DateTimeOffset? StartedAt { get; set; } /// The phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs. - public CheckRun_status? Status { get; set; } + public global::GitHub.Models.CheckRun_status? Status { get; set; } /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -119,7 +121,7 @@ public class CheckRun : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckRun() { @@ -128,12 +130,12 @@ public CheckRun() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CheckRun CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CheckRun CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckRun(); + return new global::GitHub.Models.CheckRun(); } /// /// The deserialization information for the current model @@ -143,23 +145,23 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"app", n => { App = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"check_suite", n => { CheckSuite = n.GetObjectValue(CheckRun_check_suite.CreateFromDiscriminatorValue); } }, - {"completed_at", n => { CompletedAt = n.GetDateTimeOffsetValue(); } }, - {"conclusion", n => { Conclusion = n.GetEnumValue(); } }, - {"deployment", n => { Deployment = n.GetObjectValue(DeploymentSimple.CreateFromDiscriminatorValue); } }, - {"details_url", n => { DetailsUrl = n.GetStringValue(); } }, - {"external_id", n => { ExternalId = n.GetStringValue(); } }, - {"head_sha", n => { HeadSha = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"output", n => { Output = n.GetObjectValue(CheckRun_output.CreateFromDiscriminatorValue); } }, - {"pull_requests", n => { PullRequests = n.GetCollectionOfObjectValues(PullRequestMinimal.CreateFromDiscriminatorValue)?.ToList(); } }, - {"started_at", n => { StartedAt = n.GetDateTimeOffsetValue(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "app", n => { App = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "check_suite", n => { CheckSuite = n.GetObjectValue(global::GitHub.Models.CheckRun_check_suite.CreateFromDiscriminatorValue); } }, + { "completed_at", n => { CompletedAt = n.GetDateTimeOffsetValue(); } }, + { "conclusion", n => { Conclusion = n.GetEnumValue(); } }, + { "deployment", n => { Deployment = n.GetObjectValue(global::GitHub.Models.DeploymentSimple.CreateFromDiscriminatorValue); } }, + { "details_url", n => { DetailsUrl = n.GetStringValue(); } }, + { "external_id", n => { ExternalId = n.GetStringValue(); } }, + { "head_sha", n => { HeadSha = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "output", n => { Output = n.GetObjectValue(global::GitHub.Models.CheckRun_output.CreateFromDiscriminatorValue); } }, + { "pull_requests", n => { PullRequests = n.GetCollectionOfObjectValues(global::GitHub.Models.PullRequestMinimal.CreateFromDiscriminatorValue)?.AsList(); } }, + { "started_at", n => { StartedAt = n.GetDateTimeOffsetValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -169,11 +171,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("app", App); - writer.WriteObjectValue("check_suite", CheckSuite); + writer.WriteObjectValue("app", App); + writer.WriteObjectValue("check_suite", CheckSuite); writer.WriteDateTimeOffsetValue("completed_at", CompletedAt); - writer.WriteEnumValue("conclusion", Conclusion); - writer.WriteObjectValue("deployment", Deployment); + writer.WriteEnumValue("conclusion", Conclusion); + writer.WriteObjectValue("deployment", Deployment); writer.WriteStringValue("details_url", DetailsUrl); writer.WriteStringValue("external_id", ExternalId); writer.WriteStringValue("head_sha", HeadSha); @@ -181,10 +183,10 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteLongValue("id", Id); writer.WriteStringValue("name", Name); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("output", Output); - writer.WriteCollectionOfObjectValues("pull_requests", PullRequests); + writer.WriteObjectValue("output", Output); + writer.WriteCollectionOfObjectValues("pull_requests", PullRequests); writer.WriteDateTimeOffsetValue("started_at", StartedAt); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("status", Status); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/CheckRun_check_suite.cs b/src/GitHub/Models/CheckRun_check_suite.cs index 449d4d35..b82377a0 100644 --- a/src/GitHub/Models/CheckRun_check_suite.cs +++ b/src/GitHub/Models/CheckRun_check_suite.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CheckRun_check_suite : IAdditionalDataHolder, IParsable + public partial class CheckRun_check_suite : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class CheckRun_check_suite : IAdditionalDataHolder, IParsable /// The id property public int? Id { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckRun_check_suite() { @@ -23,12 +25,12 @@ public CheckRun_check_suite() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CheckRun_check_suite CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CheckRun_check_suite CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckRun_check_suite(); + return new global::GitHub.Models.CheckRun_check_suite(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetIntValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/CheckRun_conclusion.cs b/src/GitHub/Models/CheckRun_conclusion.cs index 0cbb7c69..9ee565b6 100644 --- a/src/GitHub/Models/CheckRun_conclusion.cs +++ b/src/GitHub/Models/CheckRun_conclusion.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum CheckRun_conclusion #pragma warning restore CS1591 diff --git a/src/GitHub/Models/CheckRun_output.cs b/src/GitHub/Models/CheckRun_output.cs index b1aeadd4..32224a56 100644 --- a/src/GitHub/Models/CheckRun_output.cs +++ b/src/GitHub/Models/CheckRun_output.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CheckRun_output : IAdditionalDataHolder, IParsable + public partial class CheckRun_output : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -46,7 +48,7 @@ public class CheckRun_output : IAdditionalDataHolder, IParsable public string Title { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckRun_output() { @@ -55,12 +57,12 @@ public CheckRun_output() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CheckRun_output CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CheckRun_output CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckRun_output(); + return new global::GitHub.Models.CheckRun_output(); } /// /// The deserialization information for the current model @@ -70,11 +72,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"annotations_count", n => { AnnotationsCount = n.GetIntValue(); } }, - {"annotations_url", n => { AnnotationsUrl = n.GetStringValue(); } }, - {"summary", n => { Summary = n.GetStringValue(); } }, - {"text", n => { Text = n.GetStringValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, + { "annotations_count", n => { AnnotationsCount = n.GetIntValue(); } }, + { "annotations_url", n => { AnnotationsUrl = n.GetStringValue(); } }, + { "summary", n => { Summary = n.GetStringValue(); } }, + { "text", n => { Text = n.GetStringValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/CheckRun_status.cs b/src/GitHub/Models/CheckRun_status.cs index e1aff315..f3b75b9a 100644 --- a/src/GitHub/Models/CheckRun_status.cs +++ b/src/GitHub/Models/CheckRun_status.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CheckRun_status { [EnumMember(Value = "queued")] diff --git a/src/GitHub/Models/CheckSuite.cs b/src/GitHub/Models/CheckSuite.cs index 269f1e6d..22734450 100644 --- a/src/GitHub/Models/CheckSuite.cs +++ b/src/GitHub/Models/CheckSuite.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A suite of checks performed on the code of a given code change /// - public class CheckSuite : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CheckSuite : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,10 +25,10 @@ public class CheckSuite : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? App { get; set; } + public global::GitHub.Models.NullableIntegration? App { get; set; } #nullable restore #else - public NullableIntegration App { get; set; } + public global::GitHub.Models.NullableIntegration App { get; set; } #endif /// The before property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -45,7 +47,7 @@ public class CheckSuite : IAdditionalDataHolder, IParsable public string CheckRunsUrl { get; set; } #endif /// The conclusion property - public CheckSuite_conclusion? Conclusion { get; set; } + public global::GitHub.Models.CheckSuite_conclusion? Conclusion { get; set; } /// The created_at property public DateTimeOffset? CreatedAt { get; set; } /// The head_branch property @@ -59,10 +61,10 @@ public class CheckSuite : IAdditionalDataHolder, IParsable /// A commit. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleCommit? HeadCommit { get; set; } + public global::GitHub.Models.SimpleCommit? HeadCommit { get; set; } #nullable restore #else - public SimpleCommit HeadCommit { get; set; } + public global::GitHub.Models.SimpleCommit HeadCommit { get; set; } #endif /// The SHA of the head commit that is being checked. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,25 +89,25 @@ public class CheckSuite : IAdditionalDataHolder, IParsable /// The pull_requests property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? PullRequests { get; set; } + public List? PullRequests { get; set; } #nullable restore #else - public List PullRequests { get; set; } + public List PullRequests { get; set; } #endif /// Minimal Repository #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MinimalRepository? Repository { get; set; } + public global::GitHub.Models.MinimalRepository? Repository { get; set; } #nullable restore #else - public MinimalRepository Repository { get; set; } + public global::GitHub.Models.MinimalRepository Repository { get; set; } #endif /// The rerequestable property public bool? Rerequestable { get; set; } /// The runs_rerequestable property public bool? RunsRerequestable { get; set; } /// The phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites. - public CheckSuite_status? Status { get; set; } + public global::GitHub.Models.CheckSuite_status? Status { get; set; } /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } /// The url property @@ -117,7 +119,7 @@ public class CheckSuite : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckSuite() { @@ -126,12 +128,12 @@ public CheckSuite() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CheckSuite CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CheckSuite CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckSuite(); + return new global::GitHub.Models.CheckSuite(); } /// /// The deserialization information for the current model @@ -141,25 +143,25 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"after", n => { After = n.GetStringValue(); } }, - {"app", n => { App = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"before", n => { Before = n.GetStringValue(); } }, - {"check_runs_url", n => { CheckRunsUrl = n.GetStringValue(); } }, - {"conclusion", n => { Conclusion = n.GetEnumValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"head_branch", n => { HeadBranch = n.GetStringValue(); } }, - {"head_commit", n => { HeadCommit = n.GetObjectValue(SimpleCommit.CreateFromDiscriminatorValue); } }, - {"head_sha", n => { HeadSha = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"latest_check_runs_count", n => { LatestCheckRunsCount = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"pull_requests", n => { PullRequests = n.GetCollectionOfObjectValues(PullRequestMinimal.CreateFromDiscriminatorValue)?.ToList(); } }, - {"repository", n => { Repository = n.GetObjectValue(MinimalRepository.CreateFromDiscriminatorValue); } }, - {"rerequestable", n => { Rerequestable = n.GetBoolValue(); } }, - {"runs_rerequestable", n => { RunsRerequestable = n.GetBoolValue(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "after", n => { After = n.GetStringValue(); } }, + { "app", n => { App = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "before", n => { Before = n.GetStringValue(); } }, + { "check_runs_url", n => { CheckRunsUrl = n.GetStringValue(); } }, + { "conclusion", n => { Conclusion = n.GetEnumValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "head_branch", n => { HeadBranch = n.GetStringValue(); } }, + { "head_commit", n => { HeadCommit = n.GetObjectValue(global::GitHub.Models.SimpleCommit.CreateFromDiscriminatorValue); } }, + { "head_sha", n => { HeadSha = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "latest_check_runs_count", n => { LatestCheckRunsCount = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "pull_requests", n => { PullRequests = n.GetCollectionOfObjectValues(global::GitHub.Models.PullRequestMinimal.CreateFromDiscriminatorValue)?.AsList(); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.MinimalRepository.CreateFromDiscriminatorValue); } }, + { "rerequestable", n => { Rerequestable = n.GetBoolValue(); } }, + { "runs_rerequestable", n => { RunsRerequestable = n.GetBoolValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -170,22 +172,22 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("after", After); - writer.WriteObjectValue("app", App); + writer.WriteObjectValue("app", App); writer.WriteStringValue("before", Before); writer.WriteStringValue("check_runs_url", CheckRunsUrl); - writer.WriteEnumValue("conclusion", Conclusion); + writer.WriteEnumValue("conclusion", Conclusion); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteStringValue("head_branch", HeadBranch); - writer.WriteObjectValue("head_commit", HeadCommit); + writer.WriteObjectValue("head_commit", HeadCommit); writer.WriteStringValue("head_sha", HeadSha); writer.WriteIntValue("id", Id); writer.WriteIntValue("latest_check_runs_count", LatestCheckRunsCount); writer.WriteStringValue("node_id", NodeId); - writer.WriteCollectionOfObjectValues("pull_requests", PullRequests); - writer.WriteObjectValue("repository", Repository); + writer.WriteCollectionOfObjectValues("pull_requests", PullRequests); + writer.WriteObjectValue("repository", Repository); writer.WriteBoolValue("rerequestable", Rerequestable); writer.WriteBoolValue("runs_rerequestable", RunsRerequestable); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("status", Status); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/CheckSuitePreference.cs b/src/GitHub/Models/CheckSuitePreference.cs index a43a1381..2ea5fbfd 100644 --- a/src/GitHub/Models/CheckSuitePreference.cs +++ b/src/GitHub/Models/CheckSuitePreference.cs @@ -1,35 +1,37 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Check suite configuration preferences for a repository. /// - public class CheckSuitePreference : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CheckSuitePreference : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The preferences property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CheckSuitePreference_preferences? Preferences { get; set; } + public global::GitHub.Models.CheckSuitePreference_preferences? Preferences { get; set; } #nullable restore #else - public CheckSuitePreference_preferences Preferences { get; set; } + public global::GitHub.Models.CheckSuitePreference_preferences Preferences { get; set; } #endif /// Minimal Repository #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MinimalRepository? Repository { get; set; } + public global::GitHub.Models.MinimalRepository? Repository { get; set; } #nullable restore #else - public MinimalRepository Repository { get; set; } + public global::GitHub.Models.MinimalRepository Repository { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckSuitePreference() { @@ -38,12 +40,12 @@ public CheckSuitePreference() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CheckSuitePreference CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CheckSuitePreference CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckSuitePreference(); + return new global::GitHub.Models.CheckSuitePreference(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"preferences", n => { Preferences = n.GetObjectValue(CheckSuitePreference_preferences.CreateFromDiscriminatorValue); } }, - {"repository", n => { Repository = n.GetObjectValue(MinimalRepository.CreateFromDiscriminatorValue); } }, + { "preferences", n => { Preferences = n.GetObjectValue(global::GitHub.Models.CheckSuitePreference_preferences.CreateFromDiscriminatorValue); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.MinimalRepository.CreateFromDiscriminatorValue); } }, }; } /// @@ -64,8 +66,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("preferences", Preferences); - writer.WriteObjectValue("repository", Repository); + writer.WriteObjectValue("preferences", Preferences); + writer.WriteObjectValue("repository", Repository); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CheckSuitePreference_preferences.cs b/src/GitHub/Models/CheckSuitePreference_preferences.cs index bd0281d3..63444d92 100644 --- a/src/GitHub/Models/CheckSuitePreference_preferences.cs +++ b/src/GitHub/Models/CheckSuitePreference_preferences.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CheckSuitePreference_preferences : IAdditionalDataHolder, IParsable + public partial class CheckSuitePreference_preferences : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,13 +16,13 @@ public class CheckSuitePreference_preferences : IAdditionalDataHolder, IParsable /// The auto_trigger_checks property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? AutoTriggerChecks { get; set; } + public List? AutoTriggerChecks { get; set; } #nullable restore #else - public List AutoTriggerChecks { get; set; } + public List AutoTriggerChecks { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckSuitePreference_preferences() { @@ -29,12 +31,12 @@ public CheckSuitePreference_preferences() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CheckSuitePreference_preferences CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CheckSuitePreference_preferences CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckSuitePreference_preferences(); + return new global::GitHub.Models.CheckSuitePreference_preferences(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"auto_trigger_checks", n => { AutoTriggerChecks = n.GetCollectionOfObjectValues(CheckSuitePreference_preferences_auto_trigger_checks.CreateFromDiscriminatorValue)?.ToList(); } }, + { "auto_trigger_checks", n => { AutoTriggerChecks = n.GetCollectionOfObjectValues(global::GitHub.Models.CheckSuitePreference_preferences_auto_trigger_checks.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -54,7 +56,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("auto_trigger_checks", AutoTriggerChecks); + writer.WriteCollectionOfObjectValues("auto_trigger_checks", AutoTriggerChecks); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CheckSuitePreference_preferences_auto_trigger_checks.cs b/src/GitHub/Models/CheckSuitePreference_preferences_auto_trigger_checks.cs index 57e678be..326262ae 100644 --- a/src/GitHub/Models/CheckSuitePreference_preferences_auto_trigger_checks.cs +++ b/src/GitHub/Models/CheckSuitePreference_preferences_auto_trigger_checks.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CheckSuitePreference_preferences_auto_trigger_checks : IAdditionalDataHolder, IParsable + public partial class CheckSuitePreference_preferences_auto_trigger_checks : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -16,7 +18,7 @@ public class CheckSuitePreference_preferences_auto_trigger_checks : IAdditionalD /// The setting property public bool? Setting { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckSuitePreference_preferences_auto_trigger_checks() { @@ -25,12 +27,12 @@ public CheckSuitePreference_preferences_auto_trigger_checks() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CheckSuitePreference_preferences_auto_trigger_checks CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CheckSuitePreference_preferences_auto_trigger_checks CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckSuitePreference_preferences_auto_trigger_checks(); + return new global::GitHub.Models.CheckSuitePreference_preferences_auto_trigger_checks(); } /// /// The deserialization information for the current model @@ -40,8 +42,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"app_id", n => { AppId = n.GetIntValue(); } }, - {"setting", n => { Setting = n.GetBoolValue(); } }, + { "app_id", n => { AppId = n.GetIntValue(); } }, + { "setting", n => { Setting = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/CheckSuite_conclusion.cs b/src/GitHub/Models/CheckSuite_conclusion.cs index 933a4cb4..e0f92d77 100644 --- a/src/GitHub/Models/CheckSuite_conclusion.cs +++ b/src/GitHub/Models/CheckSuite_conclusion.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum CheckSuite_conclusion #pragma warning restore CS1591 diff --git a/src/GitHub/Models/CheckSuite_status.cs b/src/GitHub/Models/CheckSuite_status.cs index 9093fb80..f5b7a60b 100644 --- a/src/GitHub/Models/CheckSuite_status.cs +++ b/src/GitHub/Models/CheckSuite_status.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CheckSuite_status { [EnumMember(Value = "queued")] diff --git a/src/GitHub/Models/Classroom.cs b/src/GitHub/Models/Classroom.cs index 6b13fc85..0f83615b 100644 --- a/src/GitHub/Models/Classroom.cs +++ b/src/GitHub/Models/Classroom.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A GitHub Classroom classroom /// - public class Classroom : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Classroom : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -27,10 +29,10 @@ public class Classroom : IAdditionalDataHolder, IParsable /// A GitHub organization. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleClassroomOrganization? Organization { get; set; } + public global::GitHub.Models.SimpleClassroomOrganization? Organization { get; set; } #nullable restore #else - public SimpleClassroomOrganization Organization { get; set; } + public global::GitHub.Models.SimpleClassroomOrganization Organization { get; set; } #endif /// The URL of the classroom on GitHub Classroom. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -41,7 +43,7 @@ public class Classroom : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Classroom() { @@ -50,12 +52,12 @@ public Classroom() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Classroom CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Classroom CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Classroom(); + return new global::GitHub.Models.Classroom(); } /// /// The deserialization information for the current model @@ -65,11 +67,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"archived", n => { Archived = n.GetBoolValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"organization", n => { Organization = n.GetObjectValue(SimpleClassroomOrganization.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "archived", n => { Archived = n.GetBoolValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "organization", n => { Organization = n.GetObjectValue(global::GitHub.Models.SimpleClassroomOrganization.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -82,7 +84,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("archived", Archived); writer.WriteIntValue("id", Id); writer.WriteStringValue("name", Name); - writer.WriteObjectValue("organization", Organization); + writer.WriteObjectValue("organization", Organization); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/ClassroomAcceptedAssignment.cs b/src/GitHub/Models/ClassroomAcceptedAssignment.cs index 16a9812c..31ccf418 100644 --- a/src/GitHub/Models/ClassroomAcceptedAssignment.cs +++ b/src/GitHub/Models/ClassroomAcceptedAssignment.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A GitHub Classroom accepted assignment /// - public class ClassroomAcceptedAssignment : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ClassroomAcceptedAssignment : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// A GitHub Classroom assignment #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleClassroomAssignment? Assignment { get; set; } + public global::GitHub.Models.SimpleClassroomAssignment? Assignment { get; set; } #nullable restore #else - public SimpleClassroomAssignment Assignment { get; set; } + public global::GitHub.Models.SimpleClassroomAssignment Assignment { get; set; } #endif /// Count of student commits. public int? CommitCount { get; set; } @@ -37,23 +39,23 @@ public class ClassroomAcceptedAssignment : IAdditionalDataHolder, IParsable /// A GitHub repository view for Classroom #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleClassroomRepository? Repository { get; set; } + public global::GitHub.Models.SimpleClassroomRepository? Repository { get; set; } #nullable restore #else - public SimpleClassroomRepository Repository { get; set; } + public global::GitHub.Models.SimpleClassroomRepository Repository { get; set; } #endif /// The students property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Students { get; set; } + public List? Students { get; set; } #nullable restore #else - public List Students { get; set; } + public List Students { get; set; } #endif /// Whether an accepted assignment has been submitted. public bool? Submitted { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ClassroomAcceptedAssignment() { @@ -62,12 +64,12 @@ public ClassroomAcceptedAssignment() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClassroomAcceptedAssignment CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ClassroomAcceptedAssignment CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClassroomAcceptedAssignment(); + return new global::GitHub.Models.ClassroomAcceptedAssignment(); } /// /// The deserialization information for the current model @@ -77,14 +79,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"assignment", n => { Assignment = n.GetObjectValue(SimpleClassroomAssignment.CreateFromDiscriminatorValue); } }, - {"commit_count", n => { CommitCount = n.GetIntValue(); } }, - {"grade", n => { Grade = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"passing", n => { Passing = n.GetBoolValue(); } }, - {"repository", n => { Repository = n.GetObjectValue(SimpleClassroomRepository.CreateFromDiscriminatorValue); } }, - {"students", n => { Students = n.GetCollectionOfObjectValues(SimpleClassroomUser.CreateFromDiscriminatorValue)?.ToList(); } }, - {"submitted", n => { Submitted = n.GetBoolValue(); } }, + { "assignment", n => { Assignment = n.GetObjectValue(global::GitHub.Models.SimpleClassroomAssignment.CreateFromDiscriminatorValue); } }, + { "commit_count", n => { CommitCount = n.GetIntValue(); } }, + { "grade", n => { Grade = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "passing", n => { Passing = n.GetBoolValue(); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.SimpleClassroomRepository.CreateFromDiscriminatorValue); } }, + { "students", n => { Students = n.GetCollectionOfObjectValues(global::GitHub.Models.SimpleClassroomUser.CreateFromDiscriminatorValue)?.AsList(); } }, + { "submitted", n => { Submitted = n.GetBoolValue(); } }, }; } /// @@ -94,13 +96,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assignment", Assignment); + writer.WriteObjectValue("assignment", Assignment); writer.WriteIntValue("commit_count", CommitCount); writer.WriteStringValue("grade", Grade); writer.WriteIntValue("id", Id); writer.WriteBoolValue("passing", Passing); - writer.WriteObjectValue("repository", Repository); - writer.WriteCollectionOfObjectValues("students", Students); + writer.WriteObjectValue("repository", Repository); + writer.WriteCollectionOfObjectValues("students", Students); writer.WriteBoolValue("submitted", Submitted); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/ClassroomAssignment.cs b/src/GitHub/Models/ClassroomAssignment.cs index 03acf877..34ef74da 100644 --- a/src/GitHub/Models/ClassroomAssignment.cs +++ b/src/GitHub/Models/ClassroomAssignment.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A GitHub Classroom assignment /// - public class ClassroomAssignment : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ClassroomAssignment : IAdditionalDataHolder, IParsable { /// The number of students that have accepted the assignment. public int? Accepted { get; set; } @@ -17,10 +19,10 @@ public class ClassroomAssignment : IAdditionalDataHolder, IParsable /// A GitHub Classroom classroom #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Classroom? Classroom { get; set; } + public global::GitHub.Models.Classroom? Classroom { get; set; } #nullable restore #else - public GitHub.Models.Classroom Classroom { get; set; } + public global::GitHub.Models.Classroom Classroom { get; set; } #endif /// The time at which the assignment is due. public DateTimeOffset? Deadline { get; set; } @@ -73,10 +75,10 @@ public class ClassroomAssignment : IAdditionalDataHolder, IParsable /// A GitHub repository view for Classroom #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleClassroomRepository? StarterCodeRepository { get; set; } + public global::GitHub.Models.SimpleClassroomRepository? StarterCodeRepository { get; set; } #nullable restore #else - public SimpleClassroomRepository StarterCodeRepository { get; set; } + public global::GitHub.Models.SimpleClassroomRepository StarterCodeRepository { get; set; } #endif /// Whether students are admins on created repository when a student accepts the assignment. public bool? StudentsAreRepoAdmins { get; set; } @@ -91,9 +93,9 @@ public class ClassroomAssignment : IAdditionalDataHolder, IParsable public string Title { get; set; } #endif /// Whether it's a group assignment or individual assignment. - public ClassroomAssignment_type? Type { get; set; } + public global::GitHub.Models.ClassroomAssignment_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ClassroomAssignment() { @@ -102,12 +104,12 @@ public ClassroomAssignment() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClassroomAssignment CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ClassroomAssignment CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClassroomAssignment(); + return new global::GitHub.Models.ClassroomAssignment(); } /// /// The deserialization information for the current model @@ -117,25 +119,25 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"accepted", n => { Accepted = n.GetIntValue(); } }, - {"classroom", n => { Classroom = n.GetObjectValue(GitHub.Models.Classroom.CreateFromDiscriminatorValue); } }, - {"deadline", n => { Deadline = n.GetDateTimeOffsetValue(); } }, - {"editor", n => { Editor = n.GetStringValue(); } }, - {"feedback_pull_requests_enabled", n => { FeedbackPullRequestsEnabled = n.GetBoolValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"invitations_enabled", n => { InvitationsEnabled = n.GetBoolValue(); } }, - {"invite_link", n => { InviteLink = n.GetStringValue(); } }, - {"language", n => { Language = n.GetStringValue(); } }, - {"max_members", n => { MaxMembers = n.GetIntValue(); } }, - {"max_teams", n => { MaxTeams = n.GetIntValue(); } }, - {"passing", n => { Passing = n.GetIntValue(); } }, - {"public_repo", n => { PublicRepo = n.GetBoolValue(); } }, - {"slug", n => { Slug = n.GetStringValue(); } }, - {"starter_code_repository", n => { StarterCodeRepository = n.GetObjectValue(SimpleClassroomRepository.CreateFromDiscriminatorValue); } }, - {"students_are_repo_admins", n => { StudentsAreRepoAdmins = n.GetBoolValue(); } }, - {"submitted", n => { Submitted = n.GetIntValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "accepted", n => { Accepted = n.GetIntValue(); } }, + { "classroom", n => { Classroom = n.GetObjectValue(global::GitHub.Models.Classroom.CreateFromDiscriminatorValue); } }, + { "deadline", n => { Deadline = n.GetDateTimeOffsetValue(); } }, + { "editor", n => { Editor = n.GetStringValue(); } }, + { "feedback_pull_requests_enabled", n => { FeedbackPullRequestsEnabled = n.GetBoolValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "invitations_enabled", n => { InvitationsEnabled = n.GetBoolValue(); } }, + { "invite_link", n => { InviteLink = n.GetStringValue(); } }, + { "language", n => { Language = n.GetStringValue(); } }, + { "max_members", n => { MaxMembers = n.GetIntValue(); } }, + { "max_teams", n => { MaxTeams = n.GetIntValue(); } }, + { "passing", n => { Passing = n.GetIntValue(); } }, + { "public_repo", n => { PublicRepo = n.GetBoolValue(); } }, + { "slug", n => { Slug = n.GetStringValue(); } }, + { "starter_code_repository", n => { StarterCodeRepository = n.GetObjectValue(global::GitHub.Models.SimpleClassroomRepository.CreateFromDiscriminatorValue); } }, + { "students_are_repo_admins", n => { StudentsAreRepoAdmins = n.GetBoolValue(); } }, + { "submitted", n => { Submitted = n.GetIntValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -146,7 +148,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("accepted", Accepted); - writer.WriteObjectValue("classroom", Classroom); + writer.WriteObjectValue("classroom", Classroom); writer.WriteDateTimeOffsetValue("deadline", Deadline); writer.WriteStringValue("editor", Editor); writer.WriteBoolValue("feedback_pull_requests_enabled", FeedbackPullRequestsEnabled); @@ -159,11 +161,11 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("passing", Passing); writer.WriteBoolValue("public_repo", PublicRepo); writer.WriteStringValue("slug", Slug); - writer.WriteObjectValue("starter_code_repository", StarterCodeRepository); + writer.WriteObjectValue("starter_code_repository", StarterCodeRepository); writer.WriteBoolValue("students_are_repo_admins", StudentsAreRepoAdmins); writer.WriteIntValue("submitted", Submitted); writer.WriteStringValue("title", Title); - writer.WriteEnumValue("type", Type); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/ClassroomAssignmentGrade.cs b/src/GitHub/Models/ClassroomAssignmentGrade.cs index 81f74f5e..22a7344c 100644 --- a/src/GitHub/Models/ClassroomAssignmentGrade.cs +++ b/src/GitHub/Models/ClassroomAssignmentGrade.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Grade for a student or groups GitHub Classroom assignment /// - public class ClassroomAssignmentGrade : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ClassroomAssignmentGrade : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -89,7 +91,7 @@ public class ClassroomAssignmentGrade : IAdditionalDataHolder, IParsable public string SubmissionTimestamp { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ClassroomAssignmentGrade() { @@ -98,12 +100,12 @@ public ClassroomAssignmentGrade() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClassroomAssignmentGrade CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ClassroomAssignmentGrade CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClassroomAssignmentGrade(); + return new global::GitHub.Models.ClassroomAssignmentGrade(); } /// /// The deserialization information for the current model @@ -113,17 +115,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"assignment_name", n => { AssignmentName = n.GetStringValue(); } }, - {"assignment_url", n => { AssignmentUrl = n.GetStringValue(); } }, - {"github_username", n => { GithubUsername = n.GetStringValue(); } }, - {"group_name", n => { GroupName = n.GetStringValue(); } }, - {"points_available", n => { PointsAvailable = n.GetIntValue(); } }, - {"points_awarded", n => { PointsAwarded = n.GetIntValue(); } }, - {"roster_identifier", n => { RosterIdentifier = n.GetStringValue(); } }, - {"starter_code_url", n => { StarterCodeUrl = n.GetStringValue(); } }, - {"student_repository_name", n => { StudentRepositoryName = n.GetStringValue(); } }, - {"student_repository_url", n => { StudentRepositoryUrl = n.GetStringValue(); } }, - {"submission_timestamp", n => { SubmissionTimestamp = n.GetStringValue(); } }, + { "assignment_name", n => { AssignmentName = n.GetStringValue(); } }, + { "assignment_url", n => { AssignmentUrl = n.GetStringValue(); } }, + { "github_username", n => { GithubUsername = n.GetStringValue(); } }, + { "group_name", n => { GroupName = n.GetStringValue(); } }, + { "points_available", n => { PointsAvailable = n.GetIntValue(); } }, + { "points_awarded", n => { PointsAwarded = n.GetIntValue(); } }, + { "roster_identifier", n => { RosterIdentifier = n.GetStringValue(); } }, + { "starter_code_url", n => { StarterCodeUrl = n.GetStringValue(); } }, + { "student_repository_name", n => { StudentRepositoryName = n.GetStringValue(); } }, + { "student_repository_url", n => { StudentRepositoryUrl = n.GetStringValue(); } }, + { "submission_timestamp", n => { SubmissionTimestamp = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ClassroomAssignment_type.cs b/src/GitHub/Models/ClassroomAssignment_type.cs index 756328e0..cc12e1c6 100644 --- a/src/GitHub/Models/ClassroomAssignment_type.cs +++ b/src/GitHub/Models/ClassroomAssignment_type.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Whether it's a group assignment or individual assignment. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ClassroomAssignment_type { [EnumMember(Value = "individual")] diff --git a/src/GitHub/Models/CloneTraffic.cs b/src/GitHub/Models/CloneTraffic.cs index 0654ea96..1ddf8d4f 100644 --- a/src/GitHub/Models/CloneTraffic.cs +++ b/src/GitHub/Models/CloneTraffic.cs @@ -1,31 +1,33 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Clone Traffic /// - public class CloneTraffic : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CloneTraffic : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The clones property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Clones { get; set; } + public List? Clones { get; set; } #nullable restore #else - public List Clones { get; set; } + public List Clones { get; set; } #endif /// The count property public int? Count { get; set; } /// The uniques property public int? Uniques { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CloneTraffic() { @@ -34,12 +36,12 @@ public CloneTraffic() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CloneTraffic CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CloneTraffic CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CloneTraffic(); + return new global::GitHub.Models.CloneTraffic(); } /// /// The deserialization information for the current model @@ -49,9 +51,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"clones", n => { Clones = n.GetCollectionOfObjectValues(Traffic.CreateFromDiscriminatorValue)?.ToList(); } }, - {"count", n => { Count = n.GetIntValue(); } }, - {"uniques", n => { Uniques = n.GetIntValue(); } }, + { "clones", n => { Clones = n.GetCollectionOfObjectValues(global::GitHub.Models.Traffic.CreateFromDiscriminatorValue)?.AsList(); } }, + { "count", n => { Count = n.GetIntValue(); } }, + { "uniques", n => { Uniques = n.GetIntValue(); } }, }; } /// @@ -61,7 +63,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("clones", Clones); + writer.WriteCollectionOfObjectValues("clones", Clones); writer.WriteIntValue("count", Count); writer.WriteIntValue("uniques", Uniques); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/Code.cs b/src/GitHub/Models/Code.cs index f6aa288e..21cea148 100644 --- a/src/GitHub/Models/Code.cs +++ b/src/GitHub/Models/Code.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Code : IAdditionalDataHolder, IParsable + public partial class Code : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,10 +24,10 @@ public class Code : IAdditionalDataHolder, IParsable /// The matches property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Matches { get; set; } + public List? Matches { get; set; } #nullable restore #else - public List Matches { get; set; } + public List Matches { get; set; } #endif /// The object_type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -52,7 +54,7 @@ public class Code : IAdditionalDataHolder, IParsable public string Property { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Code() { @@ -61,12 +63,12 @@ public Code() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Code CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Code CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Code(); + return new global::GitHub.Models.Code(); } /// /// The deserialization information for the current model @@ -76,11 +78,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"fragment", n => { Fragment = n.GetStringValue(); } }, - {"matches", n => { Matches = n.GetCollectionOfObjectValues(Code_matches.CreateFromDiscriminatorValue)?.ToList(); } }, - {"object_type", n => { ObjectType = n.GetStringValue(); } }, - {"object_url", n => { ObjectUrl = n.GetStringValue(); } }, - {"property", n => { Property = n.GetStringValue(); } }, + { "fragment", n => { Fragment = n.GetStringValue(); } }, + { "matches", n => { Matches = n.GetCollectionOfObjectValues(global::GitHub.Models.Code_matches.CreateFromDiscriminatorValue)?.AsList(); } }, + { "object_type", n => { ObjectType = n.GetStringValue(); } }, + { "object_url", n => { ObjectUrl = n.GetStringValue(); } }, + { "property", n => { Property = n.GetStringValue(); } }, }; } /// @@ -91,7 +93,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("fragment", Fragment); - writer.WriteCollectionOfObjectValues("matches", Matches); + writer.WriteCollectionOfObjectValues("matches", Matches); writer.WriteStringValue("object_type", ObjectType); writer.WriteStringValue("object_url", ObjectUrl); writer.WriteStringValue("property", Property); diff --git a/src/GitHub/Models/Code503Error.cs b/src/GitHub/Models/Code503Error.cs index 18822564..6018c4dc 100644 --- a/src/GitHub/Models/Code503Error.cs +++ b/src/GitHub/Models/Code503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Code503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class Code503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class Code503Error : ApiException, IAdditionalDataHolder, IParsable #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Code503Error() { @@ -46,12 +42,12 @@ public Code503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Code503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Code503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Code503Error(); + return new global::GitHub.Models.Code503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodeOfConduct.cs b/src/GitHub/Models/CodeOfConduct.cs index c9f7539e..4c323d84 100644 --- a/src/GitHub/Models/CodeOfConduct.cs +++ b/src/GitHub/Models/CodeOfConduct.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Code Of Conduct /// - public class CodeOfConduct : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeOfConduct : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -53,7 +55,7 @@ public class CodeOfConduct : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeOfConduct() { @@ -62,12 +64,12 @@ public CodeOfConduct() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeOfConduct CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeOfConduct CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeOfConduct(); + return new global::GitHub.Models.CodeOfConduct(); } /// /// The deserialization information for the current model @@ -77,11 +79,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"body", n => { Body = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"key", n => { Key = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "key", n => { Key = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/CodeOfConductSimple.cs b/src/GitHub/Models/CodeOfConductSimple.cs index 3219ae4b..f8854fa6 100644 --- a/src/GitHub/Models/CodeOfConductSimple.cs +++ b/src/GitHub/Models/CodeOfConductSimple.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Code of Conduct Simple /// - public class CodeOfConductSimple : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeOfConductSimple : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -45,7 +47,7 @@ public class CodeOfConductSimple : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeOfConductSimple() { @@ -54,12 +56,12 @@ public CodeOfConductSimple() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeOfConductSimple CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeOfConductSimple CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeOfConductSimple(); + return new global::GitHub.Models.CodeOfConductSimple(); } /// /// The deserialization information for the current model @@ -69,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"key", n => { Key = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "key", n => { Key = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/CodeScanningAlert.cs b/src/GitHub/Models/CodeScanningAlert.cs index e47f0492..65165351 100644 --- a/src/GitHub/Models/CodeScanningAlert.cs +++ b/src/GitHub/Models/CodeScanningAlert.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningAlert : IAdditionalDataHolder, IParsable + public partial class CodeScanningAlert : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -18,10 +20,10 @@ public class CodeScanningAlert : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? DismissedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser? DismissedBy { get; set; } #nullable restore #else - public NullableSimpleUser DismissedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser DismissedBy { get; set; } #endif /// The dismissal comment associated with the dismissal of the alert. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -32,7 +34,7 @@ public class CodeScanningAlert : IAdditionalDataHolder, IParsable public string DismissedComment { get; set; } #endif /// **Required when the state is dismissed.** The reason for dismissing or closing the alert. - public CodeScanningAlertDismissedReason? DismissedReason { get; set; } + public global::GitHub.Models.CodeScanningAlertDismissedReason? DismissedReason { get; set; } /// The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. public DateTimeOffset? FixedAt { get; private set; } /// The GitHub URL of the alert resource. @@ -54,30 +56,30 @@ public class CodeScanningAlert : IAdditionalDataHolder, IParsable /// The most_recent_instance property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeScanningAlertInstance? MostRecentInstance { get; set; } + public global::GitHub.Models.CodeScanningAlertInstance? MostRecentInstance { get; set; } #nullable restore #else - public CodeScanningAlertInstance MostRecentInstance { get; set; } + public global::GitHub.Models.CodeScanningAlertInstance MostRecentInstance { get; set; } #endif /// The security alert number. public int? Number { get; private set; } /// The rule property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeScanningAlertRule? Rule { get; set; } + public global::GitHub.Models.CodeScanningAlertRule? Rule { get; set; } #nullable restore #else - public CodeScanningAlertRule Rule { get; set; } + public global::GitHub.Models.CodeScanningAlertRule Rule { get; set; } #endif /// State of a code scanning alert. - public CodeScanningAlertState? State { get; set; } + public global::GitHub.Models.CodeScanningAlertState? State { get; set; } /// The tool property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeScanningAnalysisTool? Tool { get; set; } + public global::GitHub.Models.CodeScanningAnalysisTool? Tool { get; set; } #nullable restore #else - public CodeScanningAnalysisTool Tool { get; set; } + public global::GitHub.Models.CodeScanningAnalysisTool Tool { get; set; } #endif /// The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. public DateTimeOffset? UpdatedAt { get; private set; } @@ -90,7 +92,7 @@ public class CodeScanningAlert : IAdditionalDataHolder, IParsable public string Url { get; private set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningAlert() { @@ -99,12 +101,12 @@ public CodeScanningAlert() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningAlert CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningAlert CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningAlert(); + return new global::GitHub.Models.CodeScanningAlert(); } /// /// The deserialization information for the current model @@ -114,21 +116,21 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"dismissed_at", n => { DismissedAt = n.GetDateTimeOffsetValue(); } }, - {"dismissed_by", n => { DismissedBy = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"dismissed_comment", n => { DismissedComment = n.GetStringValue(); } }, - {"dismissed_reason", n => { DismissedReason = n.GetEnumValue(); } }, - {"fixed_at", n => { FixedAt = n.GetDateTimeOffsetValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"instances_url", n => { InstancesUrl = n.GetStringValue(); } }, - {"most_recent_instance", n => { MostRecentInstance = n.GetObjectValue(CodeScanningAlertInstance.CreateFromDiscriminatorValue); } }, - {"number", n => { Number = n.GetIntValue(); } }, - {"rule", n => { Rule = n.GetObjectValue(CodeScanningAlertRule.CreateFromDiscriminatorValue); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"tool", n => { Tool = n.GetObjectValue(CodeScanningAnalysisTool.CreateFromDiscriminatorValue); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "dismissed_at", n => { DismissedAt = n.GetDateTimeOffsetValue(); } }, + { "dismissed_by", n => { DismissedBy = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "dismissed_comment", n => { DismissedComment = n.GetStringValue(); } }, + { "dismissed_reason", n => { DismissedReason = n.GetEnumValue(); } }, + { "fixed_at", n => { FixedAt = n.GetDateTimeOffsetValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "instances_url", n => { InstancesUrl = n.GetStringValue(); } }, + { "most_recent_instance", n => { MostRecentInstance = n.GetObjectValue(global::GitHub.Models.CodeScanningAlertInstance.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetIntValue(); } }, + { "rule", n => { Rule = n.GetObjectValue(global::GitHub.Models.CodeScanningAlertRule.CreateFromDiscriminatorValue); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "tool", n => { Tool = n.GetObjectValue(global::GitHub.Models.CodeScanningAnalysisTool.CreateFromDiscriminatorValue); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -138,13 +140,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("dismissed_by", DismissedBy); + writer.WriteObjectValue("dismissed_by", DismissedBy); writer.WriteStringValue("dismissed_comment", DismissedComment); - writer.WriteEnumValue("dismissed_reason", DismissedReason); - writer.WriteObjectValue("most_recent_instance", MostRecentInstance); - writer.WriteObjectValue("rule", Rule); - writer.WriteEnumValue("state", State); - writer.WriteObjectValue("tool", Tool); + writer.WriteEnumValue("dismissed_reason", DismissedReason); + writer.WriteObjectValue("most_recent_instance", MostRecentInstance); + writer.WriteObjectValue("rule", Rule); + writer.WriteEnumValue("state", State); + writer.WriteObjectValue("tool", Tool); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodeScanningAlert503Error.cs b/src/GitHub/Models/CodeScanningAlert503Error.cs index 8724c4ca..cda95a46 100644 --- a/src/GitHub/Models/CodeScanningAlert503Error.cs +++ b/src/GitHub/Models/CodeScanningAlert503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningAlert503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class CodeScanningAlert503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class CodeScanningAlert503Error : ApiException, IAdditionalDataHolder, IP #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningAlert503Error() { @@ -46,12 +42,12 @@ public CodeScanningAlert503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningAlert503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningAlert503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningAlert503Error(); + return new global::GitHub.Models.CodeScanningAlert503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodeScanningAlertClassification.cs b/src/GitHub/Models/CodeScanningAlertClassification.cs index 4956b3ae..3aca8b25 100644 --- a/src/GitHub/Models/CodeScanningAlertClassification.cs +++ b/src/GitHub/Models/CodeScanningAlertClassification.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// A classification of the file. For example to identify it as generated. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeScanningAlertClassification { [EnumMember(Value = "source")] diff --git a/src/GitHub/Models/CodeScanningAlertDismissedReason.cs b/src/GitHub/Models/CodeScanningAlertDismissedReason.cs index ac5f88f8..021e4ae2 100644 --- a/src/GitHub/Models/CodeScanningAlertDismissedReason.cs +++ b/src/GitHub/Models/CodeScanningAlertDismissedReason.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// **Required when the state is dismissed.** The reason for dismissing or closing the alert. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeScanningAlertDismissedReason { [EnumMember(Value = "false positive")] diff --git a/src/GitHub/Models/CodeScanningAlertInstance.cs b/src/GitHub/Models/CodeScanningAlertInstance.cs index 25099a0f..22a7f737 100644 --- a/src/GitHub/Models/CodeScanningAlertInstance.cs +++ b/src/GitHub/Models/CodeScanningAlertInstance.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningAlertInstance : IAdditionalDataHolder, IParsable + public partial class CodeScanningAlertInstance : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,10 +32,10 @@ public class CodeScanningAlertInstance : IAdditionalDataHolder, IParsable /// Classifications that have been applied to the file that triggered the alert.For example identifying it as documentation, or a generated file. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Classifications { get; set; } + public List? Classifications { get; set; } #nullable restore #else - public List Classifications { get; set; } + public List Classifications { get; set; } #endif /// The commit_sha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -62,18 +64,18 @@ public class CodeScanningAlertInstance : IAdditionalDataHolder, IParsable /// Describe a region within a file for the alert. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeScanningAlertLocation? Location { get; set; } + public global::GitHub.Models.CodeScanningAlertLocation? Location { get; set; } #nullable restore #else - public CodeScanningAlertLocation Location { get; set; } + public global::GitHub.Models.CodeScanningAlertLocation Location { get; set; } #endif /// The message property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeScanningAlertInstance_message? Message { get; set; } + public global::GitHub.Models.CodeScanningAlertInstance_message? Message { get; set; } #nullable restore #else - public CodeScanningAlertInstance_message Message { get; set; } + public global::GitHub.Models.CodeScanningAlertInstance_message Message { get; set; } #endif /// The Git reference, formatted as `refs/pull/<number>/merge`, `refs/pull/<number>/head`,`refs/heads/<branch name>` or simply `<branch name>`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -84,9 +86,9 @@ public class CodeScanningAlertInstance : IAdditionalDataHolder, IParsable public string Ref { get; set; } #endif /// State of a code scanning alert. - public CodeScanningAlertState? State { get; set; } + public global::GitHub.Models.CodeScanningAlertState? State { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningAlertInstance() { @@ -95,12 +97,12 @@ public CodeScanningAlertInstance() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningAlertInstance CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningAlertInstance CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningAlertInstance(); + return new global::GitHub.Models.CodeScanningAlertInstance(); } /// /// The deserialization information for the current model @@ -110,16 +112,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"analysis_key", n => { AnalysisKey = n.GetStringValue(); } }, - {"category", n => { Category = n.GetStringValue(); } }, - {"classifications", n => { Classifications = n.GetCollectionOfEnumValues()?.ToList(); } }, - {"commit_sha", n => { CommitSha = n.GetStringValue(); } }, - {"environment", n => { Environment = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"location", n => { Location = n.GetObjectValue(CodeScanningAlertLocation.CreateFromDiscriminatorValue); } }, - {"message", n => { Message = n.GetObjectValue(CodeScanningAlertInstance_message.CreateFromDiscriminatorValue); } }, - {"ref", n => { Ref = n.GetStringValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, + { "analysis_key", n => { AnalysisKey = n.GetStringValue(); } }, + { "category", n => { Category = n.GetStringValue(); } }, + { "classifications", n => { Classifications = n.GetCollectionOfEnumValues()?.AsList(); } }, + { "commit_sha", n => { CommitSha = n.GetStringValue(); } }, + { "environment", n => { Environment = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "location", n => { Location = n.GetObjectValue(global::GitHub.Models.CodeScanningAlertLocation.CreateFromDiscriminatorValue); } }, + { "message", n => { Message = n.GetObjectValue(global::GitHub.Models.CodeScanningAlertInstance_message.CreateFromDiscriminatorValue); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, }; } /// @@ -131,14 +133,14 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("analysis_key", AnalysisKey); writer.WriteStringValue("category", Category); - writer.WriteCollectionOfEnumValues("classifications", Classifications); + writer.WriteCollectionOfEnumValues("classifications", Classifications); writer.WriteStringValue("commit_sha", CommitSha); writer.WriteStringValue("environment", Environment); writer.WriteStringValue("html_url", HtmlUrl); - writer.WriteObjectValue("location", Location); - writer.WriteObjectValue("message", Message); + writer.WriteObjectValue("location", Location); + writer.WriteObjectValue("message", Message); writer.WriteStringValue("ref", Ref); - writer.WriteEnumValue("state", State); + writer.WriteEnumValue("state", State); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodeScanningAlertInstance_message.cs b/src/GitHub/Models/CodeScanningAlertInstance_message.cs index 536379c6..2b57943c 100644 --- a/src/GitHub/Models/CodeScanningAlertInstance_message.cs +++ b/src/GitHub/Models/CodeScanningAlertInstance_message.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningAlertInstance_message : IAdditionalDataHolder, IParsable + public partial class CodeScanningAlertInstance_message : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class CodeScanningAlertInstance_message : IAdditionalDataHolder, IParsabl public string Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningAlertInstance_message() { @@ -29,12 +31,12 @@ public CodeScanningAlertInstance_message() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningAlertInstance_message CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningAlertInstance_message CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningAlertInstance_message(); + return new global::GitHub.Models.CodeScanningAlertInstance_message(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"text", n => { Text = n.GetStringValue(); } }, + { "text", n => { Text = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/CodeScanningAlertItems.cs b/src/GitHub/Models/CodeScanningAlertItems.cs index 41579b77..b912abf9 100644 --- a/src/GitHub/Models/CodeScanningAlertItems.cs +++ b/src/GitHub/Models/CodeScanningAlertItems.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningAlertItems : IAdditionalDataHolder, IParsable + public partial class CodeScanningAlertItems : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -18,10 +20,10 @@ public class CodeScanningAlertItems : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? DismissedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser? DismissedBy { get; set; } #nullable restore #else - public NullableSimpleUser DismissedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser DismissedBy { get; set; } #endif /// The dismissal comment associated with the dismissal of the alert. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -32,7 +34,7 @@ public class CodeScanningAlertItems : IAdditionalDataHolder, IParsable public string DismissedComment { get; set; } #endif /// **Required when the state is dismissed.** The reason for dismissing or closing the alert. - public CodeScanningAlertDismissedReason? DismissedReason { get; set; } + public global::GitHub.Models.CodeScanningAlertDismissedReason? DismissedReason { get; set; } /// The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. public DateTimeOffset? FixedAt { get; private set; } /// The GitHub URL of the alert resource. @@ -54,30 +56,30 @@ public class CodeScanningAlertItems : IAdditionalDataHolder, IParsable /// The most_recent_instance property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeScanningAlertInstance? MostRecentInstance { get; set; } + public global::GitHub.Models.CodeScanningAlertInstance? MostRecentInstance { get; set; } #nullable restore #else - public CodeScanningAlertInstance MostRecentInstance { get; set; } + public global::GitHub.Models.CodeScanningAlertInstance MostRecentInstance { get; set; } #endif /// The security alert number. public int? Number { get; private set; } /// The rule property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeScanningAlertRuleSummary? Rule { get; set; } + public global::GitHub.Models.CodeScanningAlertRuleSummary? Rule { get; set; } #nullable restore #else - public CodeScanningAlertRuleSummary Rule { get; set; } + public global::GitHub.Models.CodeScanningAlertRuleSummary Rule { get; set; } #endif /// State of a code scanning alert. - public CodeScanningAlertState? State { get; set; } + public global::GitHub.Models.CodeScanningAlertState? State { get; set; } /// The tool property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeScanningAnalysisTool? Tool { get; set; } + public global::GitHub.Models.CodeScanningAnalysisTool? Tool { get; set; } #nullable restore #else - public CodeScanningAnalysisTool Tool { get; set; } + public global::GitHub.Models.CodeScanningAnalysisTool Tool { get; set; } #endif /// The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. public DateTimeOffset? UpdatedAt { get; private set; } @@ -90,7 +92,7 @@ public class CodeScanningAlertItems : IAdditionalDataHolder, IParsable public string Url { get; private set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningAlertItems() { @@ -99,12 +101,12 @@ public CodeScanningAlertItems() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningAlertItems CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningAlertItems CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningAlertItems(); + return new global::GitHub.Models.CodeScanningAlertItems(); } /// /// The deserialization information for the current model @@ -114,21 +116,21 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"dismissed_at", n => { DismissedAt = n.GetDateTimeOffsetValue(); } }, - {"dismissed_by", n => { DismissedBy = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"dismissed_comment", n => { DismissedComment = n.GetStringValue(); } }, - {"dismissed_reason", n => { DismissedReason = n.GetEnumValue(); } }, - {"fixed_at", n => { FixedAt = n.GetDateTimeOffsetValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"instances_url", n => { InstancesUrl = n.GetStringValue(); } }, - {"most_recent_instance", n => { MostRecentInstance = n.GetObjectValue(CodeScanningAlertInstance.CreateFromDiscriminatorValue); } }, - {"number", n => { Number = n.GetIntValue(); } }, - {"rule", n => { Rule = n.GetObjectValue(CodeScanningAlertRuleSummary.CreateFromDiscriminatorValue); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"tool", n => { Tool = n.GetObjectValue(CodeScanningAnalysisTool.CreateFromDiscriminatorValue); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "dismissed_at", n => { DismissedAt = n.GetDateTimeOffsetValue(); } }, + { "dismissed_by", n => { DismissedBy = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "dismissed_comment", n => { DismissedComment = n.GetStringValue(); } }, + { "dismissed_reason", n => { DismissedReason = n.GetEnumValue(); } }, + { "fixed_at", n => { FixedAt = n.GetDateTimeOffsetValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "instances_url", n => { InstancesUrl = n.GetStringValue(); } }, + { "most_recent_instance", n => { MostRecentInstance = n.GetObjectValue(global::GitHub.Models.CodeScanningAlertInstance.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetIntValue(); } }, + { "rule", n => { Rule = n.GetObjectValue(global::GitHub.Models.CodeScanningAlertRuleSummary.CreateFromDiscriminatorValue); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "tool", n => { Tool = n.GetObjectValue(global::GitHub.Models.CodeScanningAnalysisTool.CreateFromDiscriminatorValue); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -138,13 +140,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("dismissed_by", DismissedBy); + writer.WriteObjectValue("dismissed_by", DismissedBy); writer.WriteStringValue("dismissed_comment", DismissedComment); - writer.WriteEnumValue("dismissed_reason", DismissedReason); - writer.WriteObjectValue("most_recent_instance", MostRecentInstance); - writer.WriteObjectValue("rule", Rule); - writer.WriteEnumValue("state", State); - writer.WriteObjectValue("tool", Tool); + writer.WriteEnumValue("dismissed_reason", DismissedReason); + writer.WriteObjectValue("most_recent_instance", MostRecentInstance); + writer.WriteObjectValue("rule", Rule); + writer.WriteEnumValue("state", State); + writer.WriteObjectValue("tool", Tool); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodeScanningAlertLocation.cs b/src/GitHub/Models/CodeScanningAlertLocation.cs index f9c69c8b..ac69e821 100644 --- a/src/GitHub/Models/CodeScanningAlertLocation.cs +++ b/src/GitHub/Models/CodeScanningAlertLocation.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Describe a region within a file for the alert. /// - public class CodeScanningAlertLocation : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeScanningAlertLocation : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class CodeScanningAlertLocation : IAdditionalDataHolder, IParsable /// The start_line property public int? StartLine { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningAlertLocation() { @@ -38,12 +40,12 @@ public CodeScanningAlertLocation() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningAlertLocation CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningAlertLocation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningAlertLocation(); + return new global::GitHub.Models.CodeScanningAlertLocation(); } /// /// The deserialization information for the current model @@ -53,11 +55,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"end_column", n => { EndColumn = n.GetIntValue(); } }, - {"end_line", n => { EndLine = n.GetIntValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"start_column", n => { StartColumn = n.GetIntValue(); } }, - {"start_line", n => { StartLine = n.GetIntValue(); } }, + { "end_column", n => { EndColumn = n.GetIntValue(); } }, + { "end_line", n => { EndLine = n.GetIntValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "start_column", n => { StartColumn = n.GetIntValue(); } }, + { "start_line", n => { StartLine = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/CodeScanningAlertRule.cs b/src/GitHub/Models/CodeScanningAlertRule.cs index 49e6f87d..a04469fa 100644 --- a/src/GitHub/Models/CodeScanningAlertRule.cs +++ b/src/GitHub/Models/CodeScanningAlertRule.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningAlertRule : IAdditionalDataHolder, IParsable + public partial class CodeScanningAlertRule : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -60,9 +62,9 @@ public class CodeScanningAlertRule : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// The security severity of the alert. - public CodeScanningAlertRule_security_severity_level? SecuritySeverityLevel { get; set; } + public global::GitHub.Models.CodeScanningAlertRule_security_severity_level? SecuritySeverityLevel { get; set; } /// The severity of the alert. - public CodeScanningAlertRule_severity? Severity { get; set; } + public global::GitHub.Models.CodeScanningAlertRule_severity? Severity { get; set; } /// A set of tags applicable for the rule. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -72,7 +74,7 @@ public class CodeScanningAlertRule : IAdditionalDataHolder, IParsable public List Tags { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningAlertRule() { @@ -81,12 +83,12 @@ public CodeScanningAlertRule() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningAlertRule CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningAlertRule CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningAlertRule(); + return new global::GitHub.Models.CodeScanningAlertRule(); } /// /// The deserialization information for the current model @@ -96,15 +98,15 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"full_description", n => { FullDescription = n.GetStringValue(); } }, - {"help", n => { Help = n.GetStringValue(); } }, - {"help_uri", n => { HelpUri = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"security_severity_level", n => { SecuritySeverityLevel = n.GetEnumValue(); } }, - {"severity", n => { Severity = n.GetEnumValue(); } }, - {"tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "full_description", n => { FullDescription = n.GetStringValue(); } }, + { "help", n => { Help = n.GetStringValue(); } }, + { "help_uri", n => { HelpUri = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "security_severity_level", n => { SecuritySeverityLevel = n.GetEnumValue(); } }, + { "severity", n => { Severity = n.GetEnumValue(); } }, + { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -120,8 +122,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("help_uri", HelpUri); writer.WriteStringValue("id", Id); writer.WriteStringValue("name", Name); - writer.WriteEnumValue("security_severity_level", SecuritySeverityLevel); - writer.WriteEnumValue("severity", Severity); + writer.WriteEnumValue("security_severity_level", SecuritySeverityLevel); + writer.WriteEnumValue("severity", Severity); writer.WriteCollectionOfPrimitiveValues("tags", Tags); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/CodeScanningAlertRuleSummary.cs b/src/GitHub/Models/CodeScanningAlertRuleSummary.cs index 5650ffee..3d27aab7 100644 --- a/src/GitHub/Models/CodeScanningAlertRuleSummary.cs +++ b/src/GitHub/Models/CodeScanningAlertRuleSummary.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningAlertRuleSummary : IAdditionalDataHolder, IParsable + public partial class CodeScanningAlertRuleSummary : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,9 +38,9 @@ public class CodeScanningAlertRuleSummary : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// The security severity of the alert. - public CodeScanningAlertRuleSummary_security_severity_level? SecuritySeverityLevel { get; set; } + public global::GitHub.Models.CodeScanningAlertRuleSummary_security_severity_level? SecuritySeverityLevel { get; set; } /// The severity of the alert. - public CodeScanningAlertRuleSummary_severity? Severity { get; set; } + public global::GitHub.Models.CodeScanningAlertRuleSummary_severity? Severity { get; set; } /// A set of tags applicable for the rule. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -48,7 +50,7 @@ public class CodeScanningAlertRuleSummary : IAdditionalDataHolder, IParsable public List Tags { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningAlertRuleSummary() { @@ -57,12 +59,12 @@ public CodeScanningAlertRuleSummary() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningAlertRuleSummary CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningAlertRuleSummary CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningAlertRuleSummary(); + return new global::GitHub.Models.CodeScanningAlertRuleSummary(); } /// /// The deserialization information for the current model @@ -72,12 +74,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"security_severity_level", n => { SecuritySeverityLevel = n.GetEnumValue(); } }, - {"severity", n => { Severity = n.GetEnumValue(); } }, - {"tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "security_severity_level", n => { SecuritySeverityLevel = n.GetEnumValue(); } }, + { "severity", n => { Severity = n.GetEnumValue(); } }, + { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -90,8 +92,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("description", Description); writer.WriteStringValue("id", Id); writer.WriteStringValue("name", Name); - writer.WriteEnumValue("security_severity_level", SecuritySeverityLevel); - writer.WriteEnumValue("severity", Severity); + writer.WriteEnumValue("security_severity_level", SecuritySeverityLevel); + writer.WriteEnumValue("severity", Severity); writer.WriteCollectionOfPrimitiveValues("tags", Tags); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/CodeScanningAlertRuleSummary_security_severity_level.cs b/src/GitHub/Models/CodeScanningAlertRuleSummary_security_severity_level.cs index 3fa1dab7..b36d658a 100644 --- a/src/GitHub/Models/CodeScanningAlertRuleSummary_security_severity_level.cs +++ b/src/GitHub/Models/CodeScanningAlertRuleSummary_security_severity_level.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The security severity of the alert. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeScanningAlertRuleSummary_security_severity_level { [EnumMember(Value = "low")] diff --git a/src/GitHub/Models/CodeScanningAlertRuleSummary_severity.cs b/src/GitHub/Models/CodeScanningAlertRuleSummary_severity.cs index 29cec5de..44d5453d 100644 --- a/src/GitHub/Models/CodeScanningAlertRuleSummary_severity.cs +++ b/src/GitHub/Models/CodeScanningAlertRuleSummary_severity.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The severity of the alert. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeScanningAlertRuleSummary_severity { [EnumMember(Value = "none")] diff --git a/src/GitHub/Models/CodeScanningAlertRule_security_severity_level.cs b/src/GitHub/Models/CodeScanningAlertRule_security_severity_level.cs index b2a9e448..150ca3a3 100644 --- a/src/GitHub/Models/CodeScanningAlertRule_security_severity_level.cs +++ b/src/GitHub/Models/CodeScanningAlertRule_security_severity_level.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The security severity of the alert. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeScanningAlertRule_security_severity_level { [EnumMember(Value = "low")] diff --git a/src/GitHub/Models/CodeScanningAlertRule_severity.cs b/src/GitHub/Models/CodeScanningAlertRule_severity.cs index a481c124..827eb2c9 100644 --- a/src/GitHub/Models/CodeScanningAlertRule_severity.cs +++ b/src/GitHub/Models/CodeScanningAlertRule_severity.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The severity of the alert. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeScanningAlertRule_severity { [EnumMember(Value = "none")] diff --git a/src/GitHub/Models/CodeScanningAlertSetState.cs b/src/GitHub/Models/CodeScanningAlertSetState.cs index 1b371140..1fe7c8ad 100644 --- a/src/GitHub/Models/CodeScanningAlertSetState.cs +++ b/src/GitHub/Models/CodeScanningAlertSetState.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeScanningAlertSetState { [EnumMember(Value = "open")] diff --git a/src/GitHub/Models/CodeScanningAlertSeverity.cs b/src/GitHub/Models/CodeScanningAlertSeverity.cs index a99c686d..f49c3f4c 100644 --- a/src/GitHub/Models/CodeScanningAlertSeverity.cs +++ b/src/GitHub/Models/CodeScanningAlertSeverity.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Severity of a code scanning alert. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeScanningAlertSeverity { [EnumMember(Value = "critical")] diff --git a/src/GitHub/Models/CodeScanningAlertState.cs b/src/GitHub/Models/CodeScanningAlertState.cs index b0d1a0f3..575f12e7 100644 --- a/src/GitHub/Models/CodeScanningAlertState.cs +++ b/src/GitHub/Models/CodeScanningAlertState.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// State of a code scanning alert. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeScanningAlertState { [EnumMember(Value = "open")] diff --git a/src/GitHub/Models/CodeScanningAlertStateQuery.cs b/src/GitHub/Models/CodeScanningAlertStateQuery.cs index 6da5a13b..5a1a94a2 100644 --- a/src/GitHub/Models/CodeScanningAlertStateQuery.cs +++ b/src/GitHub/Models/CodeScanningAlertStateQuery.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// State of a code scanning alert. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeScanningAlertStateQuery { [EnumMember(Value = "open")] diff --git a/src/GitHub/Models/CodeScanningAnalysis.cs b/src/GitHub/Models/CodeScanningAnalysis.cs index b1314b76..a4c370e0 100644 --- a/src/GitHub/Models/CodeScanningAnalysis.cs +++ b/src/GitHub/Models/CodeScanningAnalysis.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningAnalysis : IAdditionalDataHolder, IParsable + public partial class CodeScanningAnalysis : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -80,10 +82,10 @@ public class CodeScanningAnalysis : IAdditionalDataHolder, IParsable /// The tool property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeScanningAnalysisTool? Tool { get; set; } + public global::GitHub.Models.CodeScanningAnalysisTool? Tool { get; set; } #nullable restore #else - public CodeScanningAnalysisTool Tool { get; set; } + public global::GitHub.Models.CodeScanningAnalysisTool Tool { get; set; } #endif /// The REST API URL of the analysis resource. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -102,7 +104,7 @@ public class CodeScanningAnalysis : IAdditionalDataHolder, IParsable public string Warning { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningAnalysis() { @@ -111,12 +113,12 @@ public CodeScanningAnalysis() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningAnalysis CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningAnalysis CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningAnalysis(); + return new global::GitHub.Models.CodeScanningAnalysis(); } /// /// The deserialization information for the current model @@ -126,21 +128,21 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"analysis_key", n => { AnalysisKey = n.GetStringValue(); } }, - {"category", n => { Category = n.GetStringValue(); } }, - {"commit_sha", n => { CommitSha = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"deletable", n => { Deletable = n.GetBoolValue(); } }, - {"environment", n => { Environment = n.GetStringValue(); } }, - {"error", n => { Error = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"ref", n => { Ref = n.GetStringValue(); } }, - {"results_count", n => { ResultsCount = n.GetIntValue(); } }, - {"rules_count", n => { RulesCount = n.GetIntValue(); } }, - {"sarif_id", n => { SarifId = n.GetStringValue(); } }, - {"tool", n => { Tool = n.GetObjectValue(CodeScanningAnalysisTool.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"warning", n => { Warning = n.GetStringValue(); } }, + { "analysis_key", n => { AnalysisKey = n.GetStringValue(); } }, + { "category", n => { Category = n.GetStringValue(); } }, + { "commit_sha", n => { CommitSha = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "deletable", n => { Deletable = n.GetBoolValue(); } }, + { "environment", n => { Environment = n.GetStringValue(); } }, + { "error", n => { Error = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, + { "results_count", n => { ResultsCount = n.GetIntValue(); } }, + { "rules_count", n => { RulesCount = n.GetIntValue(); } }, + { "sarif_id", n => { SarifId = n.GetStringValue(); } }, + { "tool", n => { Tool = n.GetObjectValue(global::GitHub.Models.CodeScanningAnalysisTool.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "warning", n => { Warning = n.GetStringValue(); } }, }; } /// @@ -161,7 +163,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("results_count", ResultsCount); writer.WriteIntValue("rules_count", RulesCount); writer.WriteStringValue("sarif_id", SarifId); - writer.WriteObjectValue("tool", Tool); + writer.WriteObjectValue("tool", Tool); writer.WriteStringValue("warning", Warning); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/CodeScanningAnalysis503Error.cs b/src/GitHub/Models/CodeScanningAnalysis503Error.cs index d9f95be5..632d00ef 100644 --- a/src/GitHub/Models/CodeScanningAnalysis503Error.cs +++ b/src/GitHub/Models/CodeScanningAnalysis503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningAnalysis503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class CodeScanningAnalysis503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class CodeScanningAnalysis503Error : ApiException, IAdditionalDataHolder, #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningAnalysis503Error() { @@ -46,12 +42,12 @@ public CodeScanningAnalysis503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningAnalysis503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningAnalysis503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningAnalysis503Error(); + return new global::GitHub.Models.CodeScanningAnalysis503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodeScanningAnalysisDeletion.cs b/src/GitHub/Models/CodeScanningAnalysisDeletion.cs index 8a384156..201b737d 100644 --- a/src/GitHub/Models/CodeScanningAnalysisDeletion.cs +++ b/src/GitHub/Models/CodeScanningAnalysisDeletion.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Successful deletion of a code scanning analysis /// - public class CodeScanningAnalysisDeletion : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeScanningAnalysisDeletion : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class CodeScanningAnalysisDeletion : IAdditionalDataHolder, IParsable public string NextAnalysisUrl { get; private set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningAnalysisDeletion() { @@ -38,12 +40,12 @@ public CodeScanningAnalysisDeletion() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningAnalysisDeletion CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningAnalysisDeletion CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningAnalysisDeletion(); + return new global::GitHub.Models.CodeScanningAnalysisDeletion(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"confirm_delete_url", n => { ConfirmDeleteUrl = n.GetStringValue(); } }, - {"next_analysis_url", n => { NextAnalysisUrl = n.GetStringValue(); } }, + { "confirm_delete_url", n => { ConfirmDeleteUrl = n.GetStringValue(); } }, + { "next_analysis_url", n => { NextAnalysisUrl = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/CodeScanningAnalysisDeletion503Error.cs b/src/GitHub/Models/CodeScanningAnalysisDeletion503Error.cs index 8d98a43d..a4c53c9c 100644 --- a/src/GitHub/Models/CodeScanningAnalysisDeletion503Error.cs +++ b/src/GitHub/Models/CodeScanningAnalysisDeletion503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningAnalysisDeletion503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class CodeScanningAnalysisDeletion503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class CodeScanningAnalysisDeletion503Error : ApiException, IAdditionalDat #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningAnalysisDeletion503Error() { @@ -46,12 +42,12 @@ public CodeScanningAnalysisDeletion503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningAnalysisDeletion503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningAnalysisDeletion503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningAnalysisDeletion503Error(); + return new global::GitHub.Models.CodeScanningAnalysisDeletion503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodeScanningAnalysisTool.cs b/src/GitHub/Models/CodeScanningAnalysisTool.cs index 307499ba..a891641f 100644 --- a/src/GitHub/Models/CodeScanningAnalysisTool.cs +++ b/src/GitHub/Models/CodeScanningAnalysisTool.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningAnalysisTool : IAdditionalDataHolder, IParsable + public partial class CodeScanningAnalysisTool : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class CodeScanningAnalysisTool : IAdditionalDataHolder, IParsable public string Version { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningAnalysisTool() { @@ -45,12 +47,12 @@ public CodeScanningAnalysisTool() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningAnalysisTool CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningAnalysisTool CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningAnalysisTool(); + return new global::GitHub.Models.CodeScanningAnalysisTool(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"guid", n => { Guid = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"version", n => { Version = n.GetStringValue(); } }, + { "guid", n => { Guid = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "version", n => { Version = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/CodeScanningCodeqlDatabase.cs b/src/GitHub/Models/CodeScanningCodeqlDatabase.cs index e269a37e..27058724 100644 --- a/src/GitHub/Models/CodeScanningCodeqlDatabase.cs +++ b/src/GitHub/Models/CodeScanningCodeqlDatabase.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A CodeQL database. /// - public class CodeScanningCodeqlDatabase : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeScanningCodeqlDatabase : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -55,10 +57,10 @@ public class CodeScanningCodeqlDatabase : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Uploader { get; set; } + public global::GitHub.Models.SimpleUser? Uploader { get; set; } #nullable restore #else - public SimpleUser Uploader { get; set; } + public global::GitHub.Models.SimpleUser Uploader { get; set; } #endif /// The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -69,7 +71,7 @@ public class CodeScanningCodeqlDatabase : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningCodeqlDatabase() { @@ -78,12 +80,12 @@ public CodeScanningCodeqlDatabase() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningCodeqlDatabase CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningCodeqlDatabase CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningCodeqlDatabase(); + return new global::GitHub.Models.CodeScanningCodeqlDatabase(); } /// /// The deserialization information for the current model @@ -93,16 +95,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"commit_oid", n => { CommitOid = n.GetStringValue(); } }, - {"content_type", n => { ContentType = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"language", n => { Language = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"size", n => { Size = n.GetIntValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"uploader", n => { Uploader = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "commit_oid", n => { CommitOid = n.GetStringValue(); } }, + { "content_type", n => { ContentType = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "language", n => { Language = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "size", n => { Size = n.GetIntValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "uploader", n => { Uploader = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -120,7 +122,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteIntValue("size", Size); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); - writer.WriteObjectValue("uploader", Uploader); + writer.WriteObjectValue("uploader", Uploader); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/CodeScanningCodeqlDatabase503Error.cs b/src/GitHub/Models/CodeScanningCodeqlDatabase503Error.cs index 3c3a7ba6..b88b06ba 100644 --- a/src/GitHub/Models/CodeScanningCodeqlDatabase503Error.cs +++ b/src/GitHub/Models/CodeScanningCodeqlDatabase503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningCodeqlDatabase503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class CodeScanningCodeqlDatabase503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class CodeScanningCodeqlDatabase503Error : ApiException, IAdditionalDataH #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningCodeqlDatabase503Error() { @@ -46,12 +42,12 @@ public CodeScanningCodeqlDatabase503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningCodeqlDatabase503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningCodeqlDatabase503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningCodeqlDatabase503Error(); + return new global::GitHub.Models.CodeScanningCodeqlDatabase503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodeScanningDefaultSetup.cs b/src/GitHub/Models/CodeScanningDefaultSetup.cs index dd9180ba..efe996d8 100644 --- a/src/GitHub/Models/CodeScanningDefaultSetup.cs +++ b/src/GitHub/Models/CodeScanningDefaultSetup.cs @@ -1,35 +1,37 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Configuration for code scanning default setup. /// - public class CodeScanningDefaultSetup : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeScanningDefaultSetup : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// Languages to be analyzed. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Languages { get; set; } + public List? Languages { get; set; } #nullable restore #else - public List Languages { get; set; } + public List Languages { get; set; } #endif /// CodeQL query suite to be used. - public CodeScanningDefaultSetup_query_suite? QuerySuite { get; set; } + public global::GitHub.Models.CodeScanningDefaultSetup_query_suite? QuerySuite { get; set; } /// The frequency of the periodic analysis. - public CodeScanningDefaultSetup_schedule? Schedule { get; set; } + public global::GitHub.Models.CodeScanningDefaultSetup_schedule? Schedule { get; set; } /// Code scanning default setup has been configured or not. - public CodeScanningDefaultSetup_state? State { get; set; } + public global::GitHub.Models.CodeScanningDefaultSetup_state? State { get; set; } /// Timestamp of latest configuration update. public DateTimeOffset? UpdatedAt { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningDefaultSetup() { @@ -38,12 +40,12 @@ public CodeScanningDefaultSetup() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningDefaultSetup CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningDefaultSetup CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningDefaultSetup(); + return new global::GitHub.Models.CodeScanningDefaultSetup(); } /// /// The deserialization information for the current model @@ -53,11 +55,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"languages", n => { Languages = n.GetCollectionOfEnumValues()?.ToList(); } }, - {"query_suite", n => { QuerySuite = n.GetEnumValue(); } }, - {"schedule", n => { Schedule = n.GetEnumValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "languages", n => { Languages = n.GetCollectionOfEnumValues()?.AsList(); } }, + { "query_suite", n => { QuerySuite = n.GetEnumValue(); } }, + { "schedule", n => { Schedule = n.GetEnumValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, }; } /// @@ -67,10 +69,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfEnumValues("languages", Languages); - writer.WriteEnumValue("query_suite", QuerySuite); - writer.WriteEnumValue("schedule", Schedule); - writer.WriteEnumValue("state", State); + writer.WriteCollectionOfEnumValues("languages", Languages); + writer.WriteEnumValue("query_suite", QuerySuite); + writer.WriteEnumValue("schedule", Schedule); + writer.WriteEnumValue("state", State); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/CodeScanningDefaultSetup503Error.cs b/src/GitHub/Models/CodeScanningDefaultSetup503Error.cs index 4e6b5af3..1f441151 100644 --- a/src/GitHub/Models/CodeScanningDefaultSetup503Error.cs +++ b/src/GitHub/Models/CodeScanningDefaultSetup503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningDefaultSetup503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class CodeScanningDefaultSetup503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class CodeScanningDefaultSetup503Error : ApiException, IAdditionalDataHol #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningDefaultSetup503Error() { @@ -46,12 +42,12 @@ public CodeScanningDefaultSetup503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningDefaultSetup503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningDefaultSetup503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningDefaultSetup503Error(); + return new global::GitHub.Models.CodeScanningDefaultSetup503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodeScanningDefaultSetupUpdate.cs b/src/GitHub/Models/CodeScanningDefaultSetupUpdate.cs index b8cdfb6d..85288897 100644 --- a/src/GitHub/Models/CodeScanningDefaultSetupUpdate.cs +++ b/src/GitHub/Models/CodeScanningDefaultSetupUpdate.cs @@ -1,36 +1,38 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Configuration for code scanning default setup. /// - public class CodeScanningDefaultSetupUpdate : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeScanningDefaultSetupUpdate : IParsable { /// CodeQL languages to be analyzed. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Languages { get; set; } + public List? Languages { get; set; } #nullable restore #else - public List Languages { get; set; } + public List Languages { get; set; } #endif /// CodeQL query suite to be used. - public CodeScanningDefaultSetupUpdate_query_suite? QuerySuite { get; set; } + public global::GitHub.Models.CodeScanningDefaultSetupUpdate_query_suite? QuerySuite { get; set; } /// The desired state of code scanning default setup. - public CodeScanningDefaultSetupUpdate_state? State { get; set; } + public global::GitHub.Models.CodeScanningDefaultSetupUpdate_state? State { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningDefaultSetupUpdate CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningDefaultSetupUpdate CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningDefaultSetupUpdate(); + return new global::GitHub.Models.CodeScanningDefaultSetupUpdate(); } /// /// The deserialization information for the current model @@ -40,9 +42,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"languages", n => { Languages = n.GetCollectionOfEnumValues()?.ToList(); } }, - {"query_suite", n => { QuerySuite = n.GetEnumValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, + { "languages", n => { Languages = n.GetCollectionOfEnumValues()?.AsList(); } }, + { "query_suite", n => { QuerySuite = n.GetEnumValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, }; } /// @@ -52,9 +54,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfEnumValues("languages", Languages); - writer.WriteEnumValue("query_suite", QuerySuite); - writer.WriteEnumValue("state", State); + writer.WriteCollectionOfEnumValues("languages", Languages); + writer.WriteEnumValue("query_suite", QuerySuite); + writer.WriteEnumValue("state", State); } } } diff --git a/src/GitHub/Models/CodeScanningDefaultSetupUpdate_languages.cs b/src/GitHub/Models/CodeScanningDefaultSetupUpdate_languages.cs index fbf31ac6..9b4c3e08 100644 --- a/src/GitHub/Models/CodeScanningDefaultSetupUpdate_languages.cs +++ b/src/GitHub/Models/CodeScanningDefaultSetupUpdate_languages.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum CodeScanningDefaultSetupUpdate_languages #pragma warning restore CS1591 diff --git a/src/GitHub/Models/CodeScanningDefaultSetupUpdate_query_suite.cs b/src/GitHub/Models/CodeScanningDefaultSetupUpdate_query_suite.cs index 57d490b5..fe099a44 100644 --- a/src/GitHub/Models/CodeScanningDefaultSetupUpdate_query_suite.cs +++ b/src/GitHub/Models/CodeScanningDefaultSetupUpdate_query_suite.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// CodeQL query suite to be used. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeScanningDefaultSetupUpdate_query_suite { [EnumMember(Value = "default")] diff --git a/src/GitHub/Models/CodeScanningDefaultSetupUpdate_state.cs b/src/GitHub/Models/CodeScanningDefaultSetupUpdate_state.cs index 6b990c98..5d09e9b9 100644 --- a/src/GitHub/Models/CodeScanningDefaultSetupUpdate_state.cs +++ b/src/GitHub/Models/CodeScanningDefaultSetupUpdate_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The desired state of code scanning default setup. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeScanningDefaultSetupUpdate_state { [EnumMember(Value = "configured")] diff --git a/src/GitHub/Models/CodeScanningDefaultSetup_languages.cs b/src/GitHub/Models/CodeScanningDefaultSetup_languages.cs index 82c7fe76..0545aa66 100644 --- a/src/GitHub/Models/CodeScanningDefaultSetup_languages.cs +++ b/src/GitHub/Models/CodeScanningDefaultSetup_languages.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum CodeScanningDefaultSetup_languages #pragma warning restore CS1591 diff --git a/src/GitHub/Models/CodeScanningDefaultSetup_query_suite.cs b/src/GitHub/Models/CodeScanningDefaultSetup_query_suite.cs index 11c1b831..968c217f 100644 --- a/src/GitHub/Models/CodeScanningDefaultSetup_query_suite.cs +++ b/src/GitHub/Models/CodeScanningDefaultSetup_query_suite.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// CodeQL query suite to be used. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeScanningDefaultSetup_query_suite { [EnumMember(Value = "default")] diff --git a/src/GitHub/Models/CodeScanningDefaultSetup_schedule.cs b/src/GitHub/Models/CodeScanningDefaultSetup_schedule.cs index 93cd26f3..64b5edd9 100644 --- a/src/GitHub/Models/CodeScanningDefaultSetup_schedule.cs +++ b/src/GitHub/Models/CodeScanningDefaultSetup_schedule.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The frequency of the periodic analysis. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeScanningDefaultSetup_schedule { [EnumMember(Value = "weekly")] diff --git a/src/GitHub/Models/CodeScanningDefaultSetup_state.cs b/src/GitHub/Models/CodeScanningDefaultSetup_state.cs index 7d0516c7..a17e88f1 100644 --- a/src/GitHub/Models/CodeScanningDefaultSetup_state.cs +++ b/src/GitHub/Models/CodeScanningDefaultSetup_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Code scanning default setup has been configured or not. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeScanningDefaultSetup_state { [EnumMember(Value = "configured")] diff --git a/src/GitHub/Models/CodeScanningOrganizationAlertItems.cs b/src/GitHub/Models/CodeScanningOrganizationAlertItems.cs index 581414ae..56bcf743 100644 --- a/src/GitHub/Models/CodeScanningOrganizationAlertItems.cs +++ b/src/GitHub/Models/CodeScanningOrganizationAlertItems.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningOrganizationAlertItems : IAdditionalDataHolder, IParsable + public partial class CodeScanningOrganizationAlertItems : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -18,10 +20,10 @@ public class CodeScanningOrganizationAlertItems : IAdditionalDataHolder, IParsab /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? DismissedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser? DismissedBy { get; set; } #nullable restore #else - public NullableSimpleUser DismissedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser DismissedBy { get; set; } #endif /// The dismissal comment associated with the dismissal of the alert. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -32,7 +34,7 @@ public class CodeScanningOrganizationAlertItems : IAdditionalDataHolder, IParsab public string DismissedComment { get; set; } #endif /// **Required when the state is dismissed.** The reason for dismissing or closing the alert. - public CodeScanningAlertDismissedReason? DismissedReason { get; set; } + public global::GitHub.Models.CodeScanningAlertDismissedReason? DismissedReason { get; set; } /// The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. public DateTimeOffset? FixedAt { get; private set; } /// The GitHub URL of the alert resource. @@ -54,38 +56,38 @@ public class CodeScanningOrganizationAlertItems : IAdditionalDataHolder, IParsab /// The most_recent_instance property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeScanningAlertInstance? MostRecentInstance { get; set; } + public global::GitHub.Models.CodeScanningAlertInstance? MostRecentInstance { get; set; } #nullable restore #else - public CodeScanningAlertInstance MostRecentInstance { get; set; } + public global::GitHub.Models.CodeScanningAlertInstance MostRecentInstance { get; set; } #endif /// The security alert number. public int? Number { get; private set; } /// A GitHub repository. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleRepository? Repository { get; set; } + public global::GitHub.Models.SimpleRepository? Repository { get; set; } #nullable restore #else - public SimpleRepository Repository { get; set; } + public global::GitHub.Models.SimpleRepository Repository { get; set; } #endif /// The rule property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeScanningAlertRuleSummary? Rule { get; set; } + public global::GitHub.Models.CodeScanningAlertRuleSummary? Rule { get; set; } #nullable restore #else - public CodeScanningAlertRuleSummary Rule { get; set; } + public global::GitHub.Models.CodeScanningAlertRuleSummary Rule { get; set; } #endif /// State of a code scanning alert. - public CodeScanningAlertState? State { get; set; } + public global::GitHub.Models.CodeScanningAlertState? State { get; set; } /// The tool property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeScanningAnalysisTool? Tool { get; set; } + public global::GitHub.Models.CodeScanningAnalysisTool? Tool { get; set; } #nullable restore #else - public CodeScanningAnalysisTool Tool { get; set; } + public global::GitHub.Models.CodeScanningAnalysisTool Tool { get; set; } #endif /// The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. public DateTimeOffset? UpdatedAt { get; private set; } @@ -98,7 +100,7 @@ public class CodeScanningOrganizationAlertItems : IAdditionalDataHolder, IParsab public string Url { get; private set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningOrganizationAlertItems() { @@ -107,12 +109,12 @@ public CodeScanningOrganizationAlertItems() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningOrganizationAlertItems CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningOrganizationAlertItems CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningOrganizationAlertItems(); + return new global::GitHub.Models.CodeScanningOrganizationAlertItems(); } /// /// The deserialization information for the current model @@ -122,22 +124,22 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"dismissed_at", n => { DismissedAt = n.GetDateTimeOffsetValue(); } }, - {"dismissed_by", n => { DismissedBy = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"dismissed_comment", n => { DismissedComment = n.GetStringValue(); } }, - {"dismissed_reason", n => { DismissedReason = n.GetEnumValue(); } }, - {"fixed_at", n => { FixedAt = n.GetDateTimeOffsetValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"instances_url", n => { InstancesUrl = n.GetStringValue(); } }, - {"most_recent_instance", n => { MostRecentInstance = n.GetObjectValue(CodeScanningAlertInstance.CreateFromDiscriminatorValue); } }, - {"number", n => { Number = n.GetIntValue(); } }, - {"repository", n => { Repository = n.GetObjectValue(SimpleRepository.CreateFromDiscriminatorValue); } }, - {"rule", n => { Rule = n.GetObjectValue(CodeScanningAlertRuleSummary.CreateFromDiscriminatorValue); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"tool", n => { Tool = n.GetObjectValue(CodeScanningAnalysisTool.CreateFromDiscriminatorValue); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "dismissed_at", n => { DismissedAt = n.GetDateTimeOffsetValue(); } }, + { "dismissed_by", n => { DismissedBy = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "dismissed_comment", n => { DismissedComment = n.GetStringValue(); } }, + { "dismissed_reason", n => { DismissedReason = n.GetEnumValue(); } }, + { "fixed_at", n => { FixedAt = n.GetDateTimeOffsetValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "instances_url", n => { InstancesUrl = n.GetStringValue(); } }, + { "most_recent_instance", n => { MostRecentInstance = n.GetObjectValue(global::GitHub.Models.CodeScanningAlertInstance.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetIntValue(); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.SimpleRepository.CreateFromDiscriminatorValue); } }, + { "rule", n => { Rule = n.GetObjectValue(global::GitHub.Models.CodeScanningAlertRuleSummary.CreateFromDiscriminatorValue); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "tool", n => { Tool = n.GetObjectValue(global::GitHub.Models.CodeScanningAnalysisTool.CreateFromDiscriminatorValue); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -147,14 +149,14 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("dismissed_by", DismissedBy); + writer.WriteObjectValue("dismissed_by", DismissedBy); writer.WriteStringValue("dismissed_comment", DismissedComment); - writer.WriteEnumValue("dismissed_reason", DismissedReason); - writer.WriteObjectValue("most_recent_instance", MostRecentInstance); - writer.WriteObjectValue("repository", Repository); - writer.WriteObjectValue("rule", Rule); - writer.WriteEnumValue("state", State); - writer.WriteObjectValue("tool", Tool); + writer.WriteEnumValue("dismissed_reason", DismissedReason); + writer.WriteObjectValue("most_recent_instance", MostRecentInstance); + writer.WriteObjectValue("repository", Repository); + writer.WriteObjectValue("rule", Rule); + writer.WriteEnumValue("state", State); + writer.WriteObjectValue("tool", Tool); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodeScanningSarifsReceipt.cs b/src/GitHub/Models/CodeScanningSarifsReceipt.cs index beb6abc9..23549176 100644 --- a/src/GitHub/Models/CodeScanningSarifsReceipt.cs +++ b/src/GitHub/Models/CodeScanningSarifsReceipt.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningSarifsReceipt : IAdditionalDataHolder, IParsable + public partial class CodeScanningSarifsReceipt : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class CodeScanningSarifsReceipt : IAdditionalDataHolder, IParsable public string Url { get; private set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningSarifsReceipt() { @@ -37,12 +39,12 @@ public CodeScanningSarifsReceipt() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningSarifsReceipt CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningSarifsReceipt CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningSarifsReceipt(); + return new global::GitHub.Models.CodeScanningSarifsReceipt(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/CodeScanningSarifsReceipt503Error.cs b/src/GitHub/Models/CodeScanningSarifsReceipt503Error.cs index 935a1a6e..bb9d25dd 100644 --- a/src/GitHub/Models/CodeScanningSarifsReceipt503Error.cs +++ b/src/GitHub/Models/CodeScanningSarifsReceipt503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningSarifsReceipt503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class CodeScanningSarifsReceipt503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class CodeScanningSarifsReceipt503Error : ApiException, IAdditionalDataHo #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningSarifsReceipt503Error() { @@ -46,12 +42,12 @@ public CodeScanningSarifsReceipt503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningSarifsReceipt503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningSarifsReceipt503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningSarifsReceipt503Error(); + return new global::GitHub.Models.CodeScanningSarifsReceipt503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodeScanningSarifsStatus.cs b/src/GitHub/Models/CodeScanningSarifsStatus.cs index b9e99eb4..b5d7090e 100644 --- a/src/GitHub/Models/CodeScanningSarifsStatus.cs +++ b/src/GitHub/Models/CodeScanningSarifsStatus.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningSarifsStatus : IAdditionalDataHolder, IParsable + public partial class CodeScanningSarifsStatus : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,9 +30,9 @@ public class CodeScanningSarifsStatus : IAdditionalDataHolder, IParsable public List Errors { get; private set; } #endif /// `pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed. - public CodeScanningSarifsStatus_processing_status? ProcessingStatus { get; set; } + public global::GitHub.Models.CodeScanningSarifsStatus_processing_status? ProcessingStatus { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningSarifsStatus() { @@ -39,12 +41,12 @@ public CodeScanningSarifsStatus() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningSarifsStatus CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningSarifsStatus CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningSarifsStatus(); + return new global::GitHub.Models.CodeScanningSarifsStatus(); } /// /// The deserialization information for the current model @@ -54,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"analyses_url", n => { AnalysesUrl = n.GetStringValue(); } }, - {"errors", n => { Errors = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"processing_status", n => { ProcessingStatus = n.GetEnumValue(); } }, + { "analyses_url", n => { AnalysesUrl = n.GetStringValue(); } }, + { "errors", n => { Errors = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "processing_status", n => { ProcessingStatus = n.GetEnumValue(); } }, }; } /// @@ -66,7 +68,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("processing_status", ProcessingStatus); + writer.WriteEnumValue("processing_status", ProcessingStatus); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodeScanningSarifsStatus503Error.cs b/src/GitHub/Models/CodeScanningSarifsStatus503Error.cs index f3e3103f..3c905ecf 100644 --- a/src/GitHub/Models/CodeScanningSarifsStatus503Error.cs +++ b/src/GitHub/Models/CodeScanningSarifsStatus503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningSarifsStatus503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class CodeScanningSarifsStatus503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class CodeScanningSarifsStatus503Error : ApiException, IAdditionalDataHol #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningSarifsStatus503Error() { @@ -46,12 +42,12 @@ public CodeScanningSarifsStatus503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningSarifsStatus503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningSarifsStatus503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningSarifsStatus503Error(); + return new global::GitHub.Models.CodeScanningSarifsStatus503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodeScanningSarifsStatus_processing_status.cs b/src/GitHub/Models/CodeScanningSarifsStatus_processing_status.cs index aaca8422..89c732b8 100644 --- a/src/GitHub/Models/CodeScanningSarifsStatus_processing_status.cs +++ b/src/GitHub/Models/CodeScanningSarifsStatus_processing_status.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// `pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeScanningSarifsStatus_processing_status { [EnumMember(Value = "pending")] diff --git a/src/GitHub/Models/CodeScanningVariantAnalysis.cs b/src/GitHub/Models/CodeScanningVariantAnalysis.cs index 85f992e4..bdc6ed8b 100644 --- a/src/GitHub/Models/CodeScanningVariantAnalysis.cs +++ b/src/GitHub/Models/CodeScanningVariantAnalysis.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A run of a CodeQL query against one or more repositories. /// - public class CodeScanningVariantAnalysis : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeScanningVariantAnalysis : IAdditionalDataHolder, IParsable { /// The GitHub Actions workflow run used to execute this variant analysis. This is only available if the workflow run has started. public int? ActionsWorkflowRunId { get; set; } /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -27,19 +29,19 @@ public class CodeScanningVariantAnalysis : IAdditionalDataHolder, IParsable /// A GitHub repository. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleRepository? ControllerRepo { get; set; } + public global::GitHub.Models.SimpleRepository? ControllerRepo { get; set; } #nullable restore #else - public SimpleRepository ControllerRepo { get; set; } + public global::GitHub.Models.SimpleRepository ControllerRepo { get; set; } #endif /// The date and time at which the variant analysis was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. public DateTimeOffset? CreatedAt { get; set; } /// The reason for a failure of the variant analysis. This is only available if the variant analysis has failed. - public CodeScanningVariantAnalysis_failure_reason? FailureReason { get; set; } + public global::GitHub.Models.CodeScanningVariantAnalysis_failure_reason? FailureReason { get; set; } /// The ID of the variant analysis. public int? Id { get; set; } /// The language targeted by the CodeQL query - public CodeScanningVariantAnalysisLanguage? QueryLanguage { get; set; } + public global::GitHub.Models.CodeScanningVariantAnalysisLanguage? QueryLanguage { get; set; } /// The download url for the query pack. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -51,25 +53,25 @@ public class CodeScanningVariantAnalysis : IAdditionalDataHolder, IParsable /// The scanned_repositories property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ScannedRepositories { get; set; } + public List? ScannedRepositories { get; set; } #nullable restore #else - public List ScannedRepositories { get; set; } + public List ScannedRepositories { get; set; } #endif /// Information about repositories that were skipped from processing. This information is only available to the user that initiated the variant analysis. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeScanningVariantAnalysis_skipped_repositories? SkippedRepositories { get; set; } + public global::GitHub.Models.CodeScanningVariantAnalysis_skipped_repositories? SkippedRepositories { get; set; } #nullable restore #else - public CodeScanningVariantAnalysis_skipped_repositories SkippedRepositories { get; set; } + public global::GitHub.Models.CodeScanningVariantAnalysis_skipped_repositories SkippedRepositories { get; set; } #endif /// The status property - public CodeScanningVariantAnalysis_status? Status { get; set; } + public global::GitHub.Models.CodeScanningVariantAnalysis_status? Status { get; set; } /// The date and time at which the variant analysis was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. public DateTimeOffset? UpdatedAt { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningVariantAnalysis() { @@ -78,12 +80,12 @@ public CodeScanningVariantAnalysis() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningVariantAnalysis CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningVariantAnalysis CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningVariantAnalysis(); + return new global::GitHub.Models.CodeScanningVariantAnalysis(); } /// /// The deserialization information for the current model @@ -93,19 +95,19 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actions_workflow_run_id", n => { ActionsWorkflowRunId = n.GetIntValue(); } }, - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"completed_at", n => { CompletedAt = n.GetDateTimeOffsetValue(); } }, - {"controller_repo", n => { ControllerRepo = n.GetObjectValue(SimpleRepository.CreateFromDiscriminatorValue); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"failure_reason", n => { FailureReason = n.GetEnumValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"query_language", n => { QueryLanguage = n.GetEnumValue(); } }, - {"query_pack_url", n => { QueryPackUrl = n.GetStringValue(); } }, - {"scanned_repositories", n => { ScannedRepositories = n.GetCollectionOfObjectValues(CodeScanningVariantAnalysis_scanned_repositories.CreateFromDiscriminatorValue)?.ToList(); } }, - {"skipped_repositories", n => { SkippedRepositories = n.GetObjectValue(CodeScanningVariantAnalysis_skipped_repositories.CreateFromDiscriminatorValue); } }, - {"status", n => { Status = n.GetEnumValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "actions_workflow_run_id", n => { ActionsWorkflowRunId = n.GetIntValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "completed_at", n => { CompletedAt = n.GetDateTimeOffsetValue(); } }, + { "controller_repo", n => { ControllerRepo = n.GetObjectValue(global::GitHub.Models.SimpleRepository.CreateFromDiscriminatorValue); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "failure_reason", n => { FailureReason = n.GetEnumValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "query_language", n => { QueryLanguage = n.GetEnumValue(); } }, + { "query_pack_url", n => { QueryPackUrl = n.GetStringValue(); } }, + { "scanned_repositories", n => { ScannedRepositories = n.GetCollectionOfObjectValues(global::GitHub.Models.CodeScanningVariantAnalysis_scanned_repositories.CreateFromDiscriminatorValue)?.AsList(); } }, + { "skipped_repositories", n => { SkippedRepositories = n.GetObjectValue(global::GitHub.Models.CodeScanningVariantAnalysis_skipped_repositories.CreateFromDiscriminatorValue); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, }; } /// @@ -116,17 +118,17 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("actions_workflow_run_id", ActionsWorkflowRunId); - writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("actor", Actor); writer.WriteDateTimeOffsetValue("completed_at", CompletedAt); - writer.WriteObjectValue("controller_repo", ControllerRepo); + writer.WriteObjectValue("controller_repo", ControllerRepo); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); - writer.WriteEnumValue("failure_reason", FailureReason); + writer.WriteEnumValue("failure_reason", FailureReason); writer.WriteIntValue("id", Id); - writer.WriteEnumValue("query_language", QueryLanguage); + writer.WriteEnumValue("query_language", QueryLanguage); writer.WriteStringValue("query_pack_url", QueryPackUrl); - writer.WriteCollectionOfObjectValues("scanned_repositories", ScannedRepositories); - writer.WriteObjectValue("skipped_repositories", SkippedRepositories); - writer.WriteEnumValue("status", Status); + writer.WriteCollectionOfObjectValues("scanned_repositories", ScannedRepositories); + writer.WriteObjectValue("skipped_repositories", SkippedRepositories); + writer.WriteEnumValue("status", Status); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/CodeScanningVariantAnalysis503Error.cs b/src/GitHub/Models/CodeScanningVariantAnalysis503Error.cs index 45e23511..92ca83f6 100644 --- a/src/GitHub/Models/CodeScanningVariantAnalysis503Error.cs +++ b/src/GitHub/Models/CodeScanningVariantAnalysis503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningVariantAnalysis503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class CodeScanningVariantAnalysis503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class CodeScanningVariantAnalysis503Error : ApiException, IAdditionalData #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningVariantAnalysis503Error() { @@ -46,12 +42,12 @@ public CodeScanningVariantAnalysis503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningVariantAnalysis503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningVariantAnalysis503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningVariantAnalysis503Error(); + return new global::GitHub.Models.CodeScanningVariantAnalysis503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodeScanningVariantAnalysisLanguage.cs b/src/GitHub/Models/CodeScanningVariantAnalysisLanguage.cs index 270a07ac..8c5b3d22 100644 --- a/src/GitHub/Models/CodeScanningVariantAnalysisLanguage.cs +++ b/src/GitHub/Models/CodeScanningVariantAnalysisLanguage.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The language targeted by the CodeQL query + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeScanningVariantAnalysisLanguage { [EnumMember(Value = "cpp")] diff --git a/src/GitHub/Models/CodeScanningVariantAnalysisRepoTask.cs b/src/GitHub/Models/CodeScanningVariantAnalysisRepoTask.cs index b9b981b2..cacdbe9a 100644 --- a/src/GitHub/Models/CodeScanningVariantAnalysisRepoTask.cs +++ b/src/GitHub/Models/CodeScanningVariantAnalysisRepoTask.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningVariantAnalysisRepoTask : IAdditionalDataHolder, IParsable + public partial class CodeScanningVariantAnalysisRepoTask : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The new status of the CodeQL variant analysis repository task. - public CodeScanningVariantAnalysisStatus? AnalysisStatus { get; set; } + public global::GitHub.Models.CodeScanningVariantAnalysisStatus? AnalysisStatus { get; set; } /// The size of the artifact. This is only available for successful analyses. public int? ArtifactSizeInBytes { get; set; } /// The URL of the artifact. This is only available for successful analyses. @@ -42,10 +44,10 @@ public class CodeScanningVariantAnalysisRepoTask : IAdditionalDataHolder, IParsa /// A GitHub repository. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleRepository? Repository { get; set; } + public global::GitHub.Models.SimpleRepository? Repository { get; set; } #nullable restore #else - public SimpleRepository Repository { get; set; } + public global::GitHub.Models.SimpleRepository Repository { get; set; } #endif /// The number of results in the case of a successful analysis. This is only available for successful analyses. public int? ResultCount { get; set; } @@ -58,7 +60,7 @@ public class CodeScanningVariantAnalysisRepoTask : IAdditionalDataHolder, IParsa public string SourceLocationPrefix { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningVariantAnalysisRepoTask() { @@ -67,12 +69,12 @@ public CodeScanningVariantAnalysisRepoTask() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningVariantAnalysisRepoTask CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningVariantAnalysisRepoTask CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningVariantAnalysisRepoTask(); + return new global::GitHub.Models.CodeScanningVariantAnalysisRepoTask(); } /// /// The deserialization information for the current model @@ -82,14 +84,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"analysis_status", n => { AnalysisStatus = n.GetEnumValue(); } }, - {"artifact_size_in_bytes", n => { ArtifactSizeInBytes = n.GetIntValue(); } }, - {"artifact_url", n => { ArtifactUrl = n.GetStringValue(); } }, - {"database_commit_sha", n => { DatabaseCommitSha = n.GetStringValue(); } }, - {"failure_message", n => { FailureMessage = n.GetStringValue(); } }, - {"repository", n => { Repository = n.GetObjectValue(SimpleRepository.CreateFromDiscriminatorValue); } }, - {"result_count", n => { ResultCount = n.GetIntValue(); } }, - {"source_location_prefix", n => { SourceLocationPrefix = n.GetStringValue(); } }, + { "analysis_status", n => { AnalysisStatus = n.GetEnumValue(); } }, + { "artifact_size_in_bytes", n => { ArtifactSizeInBytes = n.GetIntValue(); } }, + { "artifact_url", n => { ArtifactUrl = n.GetStringValue(); } }, + { "database_commit_sha", n => { DatabaseCommitSha = n.GetStringValue(); } }, + { "failure_message", n => { FailureMessage = n.GetStringValue(); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.SimpleRepository.CreateFromDiscriminatorValue); } }, + { "result_count", n => { ResultCount = n.GetIntValue(); } }, + { "source_location_prefix", n => { SourceLocationPrefix = n.GetStringValue(); } }, }; } /// @@ -99,12 +101,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("analysis_status", AnalysisStatus); + writer.WriteEnumValue("analysis_status", AnalysisStatus); writer.WriteIntValue("artifact_size_in_bytes", ArtifactSizeInBytes); writer.WriteStringValue("artifact_url", ArtifactUrl); writer.WriteStringValue("database_commit_sha", DatabaseCommitSha); writer.WriteStringValue("failure_message", FailureMessage); - writer.WriteObjectValue("repository", Repository); + writer.WriteObjectValue("repository", Repository); writer.WriteIntValue("result_count", ResultCount); writer.WriteStringValue("source_location_prefix", SourceLocationPrefix); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/CodeScanningVariantAnalysisRepoTask503Error.cs b/src/GitHub/Models/CodeScanningVariantAnalysisRepoTask503Error.cs index b89de024..81ad93b7 100644 --- a/src/GitHub/Models/CodeScanningVariantAnalysisRepoTask503Error.cs +++ b/src/GitHub/Models/CodeScanningVariantAnalysisRepoTask503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningVariantAnalysisRepoTask503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class CodeScanningVariantAnalysisRepoTask503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class CodeScanningVariantAnalysisRepoTask503Error : ApiException, IAdditi #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningVariantAnalysisRepoTask503Error() { @@ -46,12 +42,12 @@ public CodeScanningVariantAnalysisRepoTask503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningVariantAnalysisRepoTask503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningVariantAnalysisRepoTask503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningVariantAnalysisRepoTask503Error(); + return new global::GitHub.Models.CodeScanningVariantAnalysisRepoTask503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodeScanningVariantAnalysisRepository.cs b/src/GitHub/Models/CodeScanningVariantAnalysisRepository.cs index 6a7fe65b..63a46ca0 100644 --- a/src/GitHub/Models/CodeScanningVariantAnalysisRepository.cs +++ b/src/GitHub/Models/CodeScanningVariantAnalysisRepository.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Repository Identifier /// - public class CodeScanningVariantAnalysisRepository : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeScanningVariantAnalysisRepository : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -37,7 +39,7 @@ public class CodeScanningVariantAnalysisRepository : IAdditionalDataHolder, IPar /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningVariantAnalysisRepository() { @@ -46,12 +48,12 @@ public CodeScanningVariantAnalysisRepository() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningVariantAnalysisRepository CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningVariantAnalysisRepository CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningVariantAnalysisRepository(); + return new global::GitHub.Models.CodeScanningVariantAnalysisRepository(); } /// /// The deserialization information for the current model @@ -61,12 +63,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"full_name", n => { FullName = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"private", n => { Private = n.GetBoolValue(); } }, - {"stargazers_count", n => { StargazersCount = n.GetIntValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "full_name", n => { FullName = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "private", n => { Private = n.GetBoolValue(); } }, + { "stargazers_count", n => { StargazersCount = n.GetIntValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, }; } /// diff --git a/src/GitHub/Models/CodeScanningVariantAnalysisSkippedRepoGroup.cs b/src/GitHub/Models/CodeScanningVariantAnalysisSkippedRepoGroup.cs index fb4ba60e..82d7cf3d 100644 --- a/src/GitHub/Models/CodeScanningVariantAnalysisSkippedRepoGroup.cs +++ b/src/GitHub/Models/CodeScanningVariantAnalysisSkippedRepoGroup.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningVariantAnalysisSkippedRepoGroup : IAdditionalDataHolder, IParsable + public partial class CodeScanningVariantAnalysisSkippedRepoGroup : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,15 +16,15 @@ public class CodeScanningVariantAnalysisSkippedRepoGroup : IAdditionalDataHolder /// A list of repositories that were skipped. This list may not include all repositories that were skipped. This is only available when the repository was found and the user has access to it. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Repositories { get; set; } + public List? Repositories { get; set; } #nullable restore #else - public List Repositories { get; set; } + public List Repositories { get; set; } #endif /// The total number of repositories that were skipped for this reason. public int? RepositoryCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningVariantAnalysisSkippedRepoGroup() { @@ -31,12 +33,12 @@ public CodeScanningVariantAnalysisSkippedRepoGroup() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningVariantAnalysisSkippedRepoGroup CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningVariantAnalysisSkippedRepoGroup CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningVariantAnalysisSkippedRepoGroup(); + return new global::GitHub.Models.CodeScanningVariantAnalysisSkippedRepoGroup(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"repositories", n => { Repositories = n.GetCollectionOfObjectValues(CodeScanningVariantAnalysisRepository.CreateFromDiscriminatorValue)?.ToList(); } }, - {"repository_count", n => { RepositoryCount = n.GetIntValue(); } }, + { "repositories", n => { Repositories = n.GetCollectionOfObjectValues(global::GitHub.Models.CodeScanningVariantAnalysisRepository.CreateFromDiscriminatorValue)?.AsList(); } }, + { "repository_count", n => { RepositoryCount = n.GetIntValue(); } }, }; } /// @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("repositories", Repositories); + writer.WriteCollectionOfObjectValues("repositories", Repositories); writer.WriteIntValue("repository_count", RepositoryCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/CodeScanningVariantAnalysisStatus.cs b/src/GitHub/Models/CodeScanningVariantAnalysisStatus.cs index efef8c05..8f4a7916 100644 --- a/src/GitHub/Models/CodeScanningVariantAnalysisStatus.cs +++ b/src/GitHub/Models/CodeScanningVariantAnalysisStatus.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The new status of the CodeQL variant analysis repository task. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeScanningVariantAnalysisStatus { [EnumMember(Value = "pending")] diff --git a/src/GitHub/Models/CodeScanningVariantAnalysis_failure_reason.cs b/src/GitHub/Models/CodeScanningVariantAnalysis_failure_reason.cs index 09503114..da7d63eb 100644 --- a/src/GitHub/Models/CodeScanningVariantAnalysis_failure_reason.cs +++ b/src/GitHub/Models/CodeScanningVariantAnalysis_failure_reason.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The reason for a failure of the variant analysis. This is only available if the variant analysis has failed. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeScanningVariantAnalysis_failure_reason { [EnumMember(Value = "no_repos_queried")] diff --git a/src/GitHub/Models/CodeScanningVariantAnalysis_scanned_repositories.cs b/src/GitHub/Models/CodeScanningVariantAnalysis_scanned_repositories.cs index 667fe4d0..86b3f320 100644 --- a/src/GitHub/Models/CodeScanningVariantAnalysis_scanned_repositories.cs +++ b/src/GitHub/Models/CodeScanningVariantAnalysis_scanned_repositories.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningVariantAnalysis_scanned_repositories : IAdditionalDataHolder, IParsable + public partial class CodeScanningVariantAnalysis_scanned_repositories : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The new status of the CodeQL variant analysis repository task. - public CodeScanningVariantAnalysisStatus? AnalysisStatus { get; set; } + public global::GitHub.Models.CodeScanningVariantAnalysisStatus? AnalysisStatus { get; set; } /// The size of the artifact. This is only available for successful analyses. public int? ArtifactSizeInBytes { get; set; } /// The reason of the failure of this repo task. This is only available if the repository task has failed. @@ -26,15 +28,15 @@ public class CodeScanningVariantAnalysis_scanned_repositories : IAdditionalDataH /// Repository Identifier #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeScanningVariantAnalysisRepository? Repository { get; set; } + public global::GitHub.Models.CodeScanningVariantAnalysisRepository? Repository { get; set; } #nullable restore #else - public CodeScanningVariantAnalysisRepository Repository { get; set; } + public global::GitHub.Models.CodeScanningVariantAnalysisRepository Repository { get; set; } #endif /// The number of results in the case of a successful analysis. This is only available for successful analyses. public int? ResultCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningVariantAnalysis_scanned_repositories() { @@ -43,12 +45,12 @@ public CodeScanningVariantAnalysis_scanned_repositories() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningVariantAnalysis_scanned_repositories CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningVariantAnalysis_scanned_repositories CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningVariantAnalysis_scanned_repositories(); + return new global::GitHub.Models.CodeScanningVariantAnalysis_scanned_repositories(); } /// /// The deserialization information for the current model @@ -58,11 +60,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"analysis_status", n => { AnalysisStatus = n.GetEnumValue(); } }, - {"artifact_size_in_bytes", n => { ArtifactSizeInBytes = n.GetIntValue(); } }, - {"failure_message", n => { FailureMessage = n.GetStringValue(); } }, - {"repository", n => { Repository = n.GetObjectValue(CodeScanningVariantAnalysisRepository.CreateFromDiscriminatorValue); } }, - {"result_count", n => { ResultCount = n.GetIntValue(); } }, + { "analysis_status", n => { AnalysisStatus = n.GetEnumValue(); } }, + { "artifact_size_in_bytes", n => { ArtifactSizeInBytes = n.GetIntValue(); } }, + { "failure_message", n => { FailureMessage = n.GetStringValue(); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.CodeScanningVariantAnalysisRepository.CreateFromDiscriminatorValue); } }, + { "result_count", n => { ResultCount = n.GetIntValue(); } }, }; } /// @@ -72,10 +74,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("analysis_status", AnalysisStatus); + writer.WriteEnumValue("analysis_status", AnalysisStatus); writer.WriteIntValue("artifact_size_in_bytes", ArtifactSizeInBytes); writer.WriteStringValue("failure_message", FailureMessage); - writer.WriteObjectValue("repository", Repository); + writer.WriteObjectValue("repository", Repository); writer.WriteIntValue("result_count", ResultCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/CodeScanningVariantAnalysis_skipped_repositories.cs b/src/GitHub/Models/CodeScanningVariantAnalysis_skipped_repositories.cs index 9abaaa73..5fd44096 100644 --- a/src/GitHub/Models/CodeScanningVariantAnalysis_skipped_repositories.cs +++ b/src/GitHub/Models/CodeScanningVariantAnalysis_skipped_repositories.cs @@ -1,51 +1,53 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Information about repositories that were skipped from processing. This information is only available to the user that initiated the variant analysis. /// - public class CodeScanningVariantAnalysis_skipped_repositories : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeScanningVariantAnalysis_skipped_repositories : IAdditionalDataHolder, IParsable { /// The access_mismatch_repos property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeScanningVariantAnalysisSkippedRepoGroup? AccessMismatchRepos { get; set; } + public global::GitHub.Models.CodeScanningVariantAnalysisSkippedRepoGroup? AccessMismatchRepos { get; set; } #nullable restore #else - public CodeScanningVariantAnalysisSkippedRepoGroup AccessMismatchRepos { get; set; } + public global::GitHub.Models.CodeScanningVariantAnalysisSkippedRepoGroup AccessMismatchRepos { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The no_codeql_db_repos property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeScanningVariantAnalysisSkippedRepoGroup? NoCodeqlDbRepos { get; set; } + public global::GitHub.Models.CodeScanningVariantAnalysisSkippedRepoGroup? NoCodeqlDbRepos { get; set; } #nullable restore #else - public CodeScanningVariantAnalysisSkippedRepoGroup NoCodeqlDbRepos { get; set; } + public global::GitHub.Models.CodeScanningVariantAnalysisSkippedRepoGroup NoCodeqlDbRepos { get; set; } #endif /// The not_found_repos property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeScanningVariantAnalysis_skipped_repositories_not_found_repos? NotFoundRepos { get; set; } + public global::GitHub.Models.CodeScanningVariantAnalysis_skipped_repositories_not_found_repos? NotFoundRepos { get; set; } #nullable restore #else - public CodeScanningVariantAnalysis_skipped_repositories_not_found_repos NotFoundRepos { get; set; } + public global::GitHub.Models.CodeScanningVariantAnalysis_skipped_repositories_not_found_repos NotFoundRepos { get; set; } #endif /// The over_limit_repos property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeScanningVariantAnalysisSkippedRepoGroup? OverLimitRepos { get; set; } + public global::GitHub.Models.CodeScanningVariantAnalysisSkippedRepoGroup? OverLimitRepos { get; set; } #nullable restore #else - public CodeScanningVariantAnalysisSkippedRepoGroup OverLimitRepos { get; set; } + public global::GitHub.Models.CodeScanningVariantAnalysisSkippedRepoGroup OverLimitRepos { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningVariantAnalysis_skipped_repositories() { @@ -54,12 +56,12 @@ public CodeScanningVariantAnalysis_skipped_repositories() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningVariantAnalysis_skipped_repositories CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningVariantAnalysis_skipped_repositories CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningVariantAnalysis_skipped_repositories(); + return new global::GitHub.Models.CodeScanningVariantAnalysis_skipped_repositories(); } /// /// The deserialization information for the current model @@ -69,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"access_mismatch_repos", n => { AccessMismatchRepos = n.GetObjectValue(CodeScanningVariantAnalysisSkippedRepoGroup.CreateFromDiscriminatorValue); } }, - {"no_codeql_db_repos", n => { NoCodeqlDbRepos = n.GetObjectValue(CodeScanningVariantAnalysisSkippedRepoGroup.CreateFromDiscriminatorValue); } }, - {"not_found_repos", n => { NotFoundRepos = n.GetObjectValue(CodeScanningVariantAnalysis_skipped_repositories_not_found_repos.CreateFromDiscriminatorValue); } }, - {"over_limit_repos", n => { OverLimitRepos = n.GetObjectValue(CodeScanningVariantAnalysisSkippedRepoGroup.CreateFromDiscriminatorValue); } }, + { "access_mismatch_repos", n => { AccessMismatchRepos = n.GetObjectValue(global::GitHub.Models.CodeScanningVariantAnalysisSkippedRepoGroup.CreateFromDiscriminatorValue); } }, + { "no_codeql_db_repos", n => { NoCodeqlDbRepos = n.GetObjectValue(global::GitHub.Models.CodeScanningVariantAnalysisSkippedRepoGroup.CreateFromDiscriminatorValue); } }, + { "not_found_repos", n => { NotFoundRepos = n.GetObjectValue(global::GitHub.Models.CodeScanningVariantAnalysis_skipped_repositories_not_found_repos.CreateFromDiscriminatorValue); } }, + { "over_limit_repos", n => { OverLimitRepos = n.GetObjectValue(global::GitHub.Models.CodeScanningVariantAnalysisSkippedRepoGroup.CreateFromDiscriminatorValue); } }, }; } /// @@ -82,10 +84,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("access_mismatch_repos", AccessMismatchRepos); - writer.WriteObjectValue("no_codeql_db_repos", NoCodeqlDbRepos); - writer.WriteObjectValue("not_found_repos", NotFoundRepos); - writer.WriteObjectValue("over_limit_repos", OverLimitRepos); + writer.WriteObjectValue("access_mismatch_repos", AccessMismatchRepos); + writer.WriteObjectValue("no_codeql_db_repos", NoCodeqlDbRepos); + writer.WriteObjectValue("not_found_repos", NotFoundRepos); + writer.WriteObjectValue("over_limit_repos", OverLimitRepos); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodeScanningVariantAnalysis_skipped_repositories_not_found_repos.cs b/src/GitHub/Models/CodeScanningVariantAnalysis_skipped_repositories_not_found_repos.cs index 782d3421..fd92e8d4 100644 --- a/src/GitHub/Models/CodeScanningVariantAnalysis_skipped_repositories_not_found_repos.cs +++ b/src/GitHub/Models/CodeScanningVariantAnalysis_skipped_repositories_not_found_repos.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeScanningVariantAnalysis_skipped_repositories_not_found_repos : IAdditionalDataHolder, IParsable + public partial class CodeScanningVariantAnalysis_skipped_repositories_not_found_repos : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class CodeScanningVariantAnalysis_skipped_repositories_not_found_repos : public List RepositoryFullNames { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeScanningVariantAnalysis_skipped_repositories_not_found_repos() { @@ -31,12 +33,12 @@ public CodeScanningVariantAnalysis_skipped_repositories_not_found_repos() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeScanningVariantAnalysis_skipped_repositories_not_found_repos CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeScanningVariantAnalysis_skipped_repositories_not_found_repos CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeScanningVariantAnalysis_skipped_repositories_not_found_repos(); + return new global::GitHub.Models.CodeScanningVariantAnalysis_skipped_repositories_not_found_repos(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"repository_count", n => { RepositoryCount = n.GetIntValue(); } }, - {"repository_full_names", n => { RepositoryFullNames = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "repository_count", n => { RepositoryCount = n.GetIntValue(); } }, + { "repository_full_names", n => { RepositoryFullNames = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Models/CodeScanningVariantAnalysis_status.cs b/src/GitHub/Models/CodeScanningVariantAnalysis_status.cs index eae99c6e..28d075f4 100644 --- a/src/GitHub/Models/CodeScanningVariantAnalysis_status.cs +++ b/src/GitHub/Models/CodeScanningVariantAnalysis_status.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum CodeScanningVariantAnalysis_status #pragma warning restore CS1591 diff --git a/src/GitHub/Models/CodeSearchResultItem.cs b/src/GitHub/Models/CodeSearchResultItem.cs index 9de31c18..10b05e4f 100644 --- a/src/GitHub/Models/CodeSearchResultItem.cs +++ b/src/GitHub/Models/CodeSearchResultItem.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Code Search Result Item /// - public class CodeSearchResultItem : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeSearchResultItem : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -67,10 +69,10 @@ public class CodeSearchResultItem : IAdditionalDataHolder, IParsable /// Minimal Repository #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MinimalRepository? Repository { get; set; } + public global::GitHub.Models.MinimalRepository? Repository { get; set; } #nullable restore #else - public MinimalRepository Repository { get; set; } + public global::GitHub.Models.MinimalRepository Repository { get; set; } #endif /// The score property public double? Score { get; set; } @@ -85,10 +87,10 @@ public class CodeSearchResultItem : IAdditionalDataHolder, IParsable /// The text_matches property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? TextMatches { get; set; } + public List? TextMatches { get; set; } #nullable restore #else - public List TextMatches { get; set; } + public List TextMatches { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -99,7 +101,7 @@ public class CodeSearchResultItem : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeSearchResultItem() { @@ -108,12 +110,12 @@ public CodeSearchResultItem() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeSearchResultItem CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeSearchResultItem CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeSearchResultItem(); + return new global::GitHub.Models.CodeSearchResultItem(); } /// /// The deserialization information for the current model @@ -123,19 +125,19 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"file_size", n => { FileSize = n.GetIntValue(); } }, - {"git_url", n => { GitUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"language", n => { Language = n.GetStringValue(); } }, - {"last_modified_at", n => { LastModifiedAt = n.GetDateTimeOffsetValue(); } }, - {"line_numbers", n => { LineNumbers = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"repository", n => { Repository = n.GetObjectValue(MinimalRepository.CreateFromDiscriminatorValue); } }, - {"score", n => { Score = n.GetDoubleValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"text_matches", n => { TextMatches = n.GetCollectionOfObjectValues(Code.CreateFromDiscriminatorValue)?.ToList(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "file_size", n => { FileSize = n.GetIntValue(); } }, + { "git_url", n => { GitUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "language", n => { Language = n.GetStringValue(); } }, + { "last_modified_at", n => { LastModifiedAt = n.GetDateTimeOffsetValue(); } }, + { "line_numbers", n => { LineNumbers = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.MinimalRepository.CreateFromDiscriminatorValue); } }, + { "score", n => { Score = n.GetDoubleValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "text_matches", n => { TextMatches = n.GetCollectionOfObjectValues(global::GitHub.Models.Code.CreateFromDiscriminatorValue)?.AsList(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -153,10 +155,10 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteCollectionOfPrimitiveValues("line_numbers", LineNumbers); writer.WriteStringValue("name", Name); writer.WriteStringValue("path", Path); - writer.WriteObjectValue("repository", Repository); + writer.WriteObjectValue("repository", Repository); writer.WriteDoubleValue("score", Score); writer.WriteStringValue("sha", Sha); - writer.WriteCollectionOfObjectValues("text_matches", TextMatches); + writer.WriteCollectionOfObjectValues("text_matches", TextMatches); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/CodeSecurityConfiguration.cs b/src/GitHub/Models/CodeSecurityConfiguration.cs index e8cbaac6..1b75495a 100644 --- a/src/GitHub/Models/CodeSecurityConfiguration.cs +++ b/src/GitHub/Models/CodeSecurityConfiguration.cs @@ -1,38 +1,40 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A code security configuration /// - public class CodeSecurityConfiguration : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeSecurityConfiguration : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The enablement status of GitHub Advanced Security - public CodeSecurityConfiguration_advanced_security? AdvancedSecurity { get; set; } + public global::GitHub.Models.CodeSecurityConfiguration_advanced_security? AdvancedSecurity { get; set; } /// The enablement status of code scanning default setup - public CodeSecurityConfiguration_code_scanning_default_setup? CodeScanningDefaultSetup { get; set; } + public global::GitHub.Models.CodeSecurityConfiguration_code_scanning_default_setup? CodeScanningDefaultSetup { get; set; } /// The created_at property public DateTimeOffset? CreatedAt { get; set; } /// The enablement status of Dependabot alerts - public CodeSecurityConfiguration_dependabot_alerts? DependabotAlerts { get; set; } + public global::GitHub.Models.CodeSecurityConfiguration_dependabot_alerts? DependabotAlerts { get; set; } /// The enablement status of Dependabot security updates - public CodeSecurityConfiguration_dependabot_security_updates? DependabotSecurityUpdates { get; set; } + public global::GitHub.Models.CodeSecurityConfiguration_dependabot_security_updates? DependabotSecurityUpdates { get; set; } /// The enablement status of Dependency Graph - public CodeSecurityConfiguration_dependency_graph? DependencyGraph { get; set; } + public global::GitHub.Models.CodeSecurityConfiguration_dependency_graph? DependencyGraph { get; set; } /// The enablement status of Automatic dependency submission - public CodeSecurityConfiguration_dependency_graph_autosubmit_action? DependencyGraphAutosubmitAction { get; set; } + public global::GitHub.Models.CodeSecurityConfiguration_dependency_graph_autosubmit_action? DependencyGraphAutosubmitAction { get; set; } /// Feature options for Automatic dependency submission #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeSecurityConfiguration_dependency_graph_autosubmit_action_options? DependencyGraphAutosubmitActionOptions { get; set; } + public global::GitHub.Models.CodeSecurityConfiguration_dependency_graph_autosubmit_action_options? DependencyGraphAutosubmitActionOptions { get; set; } #nullable restore #else - public CodeSecurityConfiguration_dependency_graph_autosubmit_action_options DependencyGraphAutosubmitActionOptions { get; set; } + public global::GitHub.Models.CodeSecurityConfiguration_dependency_graph_autosubmit_action_options DependencyGraphAutosubmitActionOptions { get; set; } #endif /// A description of the code security configuration #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -43,7 +45,7 @@ public class CodeSecurityConfiguration : IAdditionalDataHolder, IParsable public string Description { get; set; } #endif /// The enforcement status for a security configuration - public CodeSecurityConfiguration_enforcement? Enforcement { get; set; } + public global::GitHub.Models.CodeSecurityConfiguration_enforcement? Enforcement { get; set; } /// The URL of the configuration #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -63,15 +65,15 @@ public class CodeSecurityConfiguration : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// The enablement status of private vulnerability reporting - public CodeSecurityConfiguration_private_vulnerability_reporting? PrivateVulnerabilityReporting { get; set; } + public global::GitHub.Models.CodeSecurityConfiguration_private_vulnerability_reporting? PrivateVulnerabilityReporting { get; set; } /// The enablement status of secret scanning - public CodeSecurityConfiguration_secret_scanning? SecretScanning { get; set; } + public global::GitHub.Models.CodeSecurityConfiguration_secret_scanning? SecretScanning { get; set; } /// The enablement status of secret scanning push protection - public CodeSecurityConfiguration_secret_scanning_push_protection? SecretScanningPushProtection { get; set; } + public global::GitHub.Models.CodeSecurityConfiguration_secret_scanning_push_protection? SecretScanningPushProtection { get; set; } /// The enablement status of secret scanning validity checks - public CodeSecurityConfiguration_secret_scanning_validity_checks? SecretScanningValidityChecks { get; set; } + public global::GitHub.Models.CodeSecurityConfiguration_secret_scanning_validity_checks? SecretScanningValidityChecks { get; set; } /// The type of the code security configuration. - public CodeSecurityConfiguration_target_type? TargetType { get; set; } + public global::GitHub.Models.CodeSecurityConfiguration_target_type? TargetType { get; set; } /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } /// The URL of the configuration @@ -83,7 +85,7 @@ public class CodeSecurityConfiguration : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeSecurityConfiguration() { @@ -92,12 +94,12 @@ public CodeSecurityConfiguration() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeSecurityConfiguration CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeSecurityConfiguration CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeSecurityConfiguration(); + return new global::GitHub.Models.CodeSecurityConfiguration(); } /// /// The deserialization information for the current model @@ -107,26 +109,26 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"advanced_security", n => { AdvancedSecurity = n.GetEnumValue(); } }, - {"code_scanning_default_setup", n => { CodeScanningDefaultSetup = n.GetEnumValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"dependabot_alerts", n => { DependabotAlerts = n.GetEnumValue(); } }, - {"dependabot_security_updates", n => { DependabotSecurityUpdates = n.GetEnumValue(); } }, - {"dependency_graph", n => { DependencyGraph = n.GetEnumValue(); } }, - {"dependency_graph_autosubmit_action", n => { DependencyGraphAutosubmitAction = n.GetEnumValue(); } }, - {"dependency_graph_autosubmit_action_options", n => { DependencyGraphAutosubmitActionOptions = n.GetObjectValue(CodeSecurityConfiguration_dependency_graph_autosubmit_action_options.CreateFromDiscriminatorValue); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"enforcement", n => { Enforcement = n.GetEnumValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"private_vulnerability_reporting", n => { PrivateVulnerabilityReporting = n.GetEnumValue(); } }, - {"secret_scanning", n => { SecretScanning = n.GetEnumValue(); } }, - {"secret_scanning_push_protection", n => { SecretScanningPushProtection = n.GetEnumValue(); } }, - {"secret_scanning_validity_checks", n => { SecretScanningValidityChecks = n.GetEnumValue(); } }, - {"target_type", n => { TargetType = n.GetEnumValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "advanced_security", n => { AdvancedSecurity = n.GetEnumValue(); } }, + { "code_scanning_default_setup", n => { CodeScanningDefaultSetup = n.GetEnumValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "dependabot_alerts", n => { DependabotAlerts = n.GetEnumValue(); } }, + { "dependabot_security_updates", n => { DependabotSecurityUpdates = n.GetEnumValue(); } }, + { "dependency_graph", n => { DependencyGraph = n.GetEnumValue(); } }, + { "dependency_graph_autosubmit_action", n => { DependencyGraphAutosubmitAction = n.GetEnumValue(); } }, + { "dependency_graph_autosubmit_action_options", n => { DependencyGraphAutosubmitActionOptions = n.GetObjectValue(global::GitHub.Models.CodeSecurityConfiguration_dependency_graph_autosubmit_action_options.CreateFromDiscriminatorValue); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "enforcement", n => { Enforcement = n.GetEnumValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "private_vulnerability_reporting", n => { PrivateVulnerabilityReporting = n.GetEnumValue(); } }, + { "secret_scanning", n => { SecretScanning = n.GetEnumValue(); } }, + { "secret_scanning_push_protection", n => { SecretScanningPushProtection = n.GetEnumValue(); } }, + { "secret_scanning_validity_checks", n => { SecretScanningValidityChecks = n.GetEnumValue(); } }, + { "target_type", n => { TargetType = n.GetEnumValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -136,24 +138,24 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("advanced_security", AdvancedSecurity); - writer.WriteEnumValue("code_scanning_default_setup", CodeScanningDefaultSetup); + writer.WriteEnumValue("advanced_security", AdvancedSecurity); + writer.WriteEnumValue("code_scanning_default_setup", CodeScanningDefaultSetup); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); - writer.WriteEnumValue("dependabot_alerts", DependabotAlerts); - writer.WriteEnumValue("dependabot_security_updates", DependabotSecurityUpdates); - writer.WriteEnumValue("dependency_graph", DependencyGraph); - writer.WriteEnumValue("dependency_graph_autosubmit_action", DependencyGraphAutosubmitAction); - writer.WriteObjectValue("dependency_graph_autosubmit_action_options", DependencyGraphAutosubmitActionOptions); + writer.WriteEnumValue("dependabot_alerts", DependabotAlerts); + writer.WriteEnumValue("dependabot_security_updates", DependabotSecurityUpdates); + writer.WriteEnumValue("dependency_graph", DependencyGraph); + writer.WriteEnumValue("dependency_graph_autosubmit_action", DependencyGraphAutosubmitAction); + writer.WriteObjectValue("dependency_graph_autosubmit_action_options", DependencyGraphAutosubmitActionOptions); writer.WriteStringValue("description", Description); - writer.WriteEnumValue("enforcement", Enforcement); + writer.WriteEnumValue("enforcement", Enforcement); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteIntValue("id", Id); writer.WriteStringValue("name", Name); - writer.WriteEnumValue("private_vulnerability_reporting", PrivateVulnerabilityReporting); - writer.WriteEnumValue("secret_scanning", SecretScanning); - writer.WriteEnumValue("secret_scanning_push_protection", SecretScanningPushProtection); - writer.WriteEnumValue("secret_scanning_validity_checks", SecretScanningValidityChecks); - writer.WriteEnumValue("target_type", TargetType); + writer.WriteEnumValue("private_vulnerability_reporting", PrivateVulnerabilityReporting); + writer.WriteEnumValue("secret_scanning", SecretScanning); + writer.WriteEnumValue("secret_scanning_push_protection", SecretScanningPushProtection); + writer.WriteEnumValue("secret_scanning_validity_checks", SecretScanningValidityChecks); + writer.WriteEnumValue("target_type", TargetType); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/CodeSecurityConfigurationForRepository.cs b/src/GitHub/Models/CodeSecurityConfigurationForRepository.cs index 04d46735..69fad63b 100644 --- a/src/GitHub/Models/CodeSecurityConfigurationForRepository.cs +++ b/src/GitHub/Models/CodeSecurityConfigurationForRepository.cs @@ -1,29 +1,31 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Code security configuration associated with a repository and attachment status /// - public class CodeSecurityConfigurationForRepository : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeSecurityConfigurationForRepository : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// A code security configuration #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeSecurityConfiguration? Configuration { get; set; } + public global::GitHub.Models.CodeSecurityConfiguration? Configuration { get; set; } #nullable restore #else - public CodeSecurityConfiguration Configuration { get; set; } + public global::GitHub.Models.CodeSecurityConfiguration Configuration { get; set; } #endif /// The attachment status of the code security configuration on the repository. - public CodeSecurityConfigurationForRepository_status? Status { get; set; } + public global::GitHub.Models.CodeSecurityConfigurationForRepository_status? Status { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeSecurityConfigurationForRepository() { @@ -32,12 +34,12 @@ public CodeSecurityConfigurationForRepository() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeSecurityConfigurationForRepository CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeSecurityConfigurationForRepository CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeSecurityConfigurationForRepository(); + return new global::GitHub.Models.CodeSecurityConfigurationForRepository(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"configuration", n => { Configuration = n.GetObjectValue(CodeSecurityConfiguration.CreateFromDiscriminatorValue); } }, - {"status", n => { Status = n.GetEnumValue(); } }, + { "configuration", n => { Configuration = n.GetObjectValue(global::GitHub.Models.CodeSecurityConfiguration.CreateFromDiscriminatorValue); } }, + { "status", n => { Status = n.GetEnumValue(); } }, }; } /// @@ -58,8 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("configuration", Configuration); - writer.WriteEnumValue("status", Status); + writer.WriteObjectValue("configuration", Configuration); + writer.WriteEnumValue("status", Status); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodeSecurityConfigurationForRepository_status.cs b/src/GitHub/Models/CodeSecurityConfigurationForRepository_status.cs index c891f812..fc3bb1f0 100644 --- a/src/GitHub/Models/CodeSecurityConfigurationForRepository_status.cs +++ b/src/GitHub/Models/CodeSecurityConfigurationForRepository_status.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The attachment status of the code security configuration on the repository. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeSecurityConfigurationForRepository_status { [EnumMember(Value = "attached")] diff --git a/src/GitHub/Models/CodeSecurityConfigurationRepositories.cs b/src/GitHub/Models/CodeSecurityConfigurationRepositories.cs index 482b82e5..873aa153 100644 --- a/src/GitHub/Models/CodeSecurityConfigurationRepositories.cs +++ b/src/GitHub/Models/CodeSecurityConfigurationRepositories.cs @@ -1,29 +1,31 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Repositories associated with a code security configuration and attachment status /// - public class CodeSecurityConfigurationRepositories : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeSecurityConfigurationRepositories : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// A GitHub repository. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleRepository? Repository { get; set; } + public global::GitHub.Models.SimpleRepository? Repository { get; set; } #nullable restore #else - public SimpleRepository Repository { get; set; } + public global::GitHub.Models.SimpleRepository Repository { get; set; } #endif /// The attachment status of the code security configuration on the repository. - public CodeSecurityConfigurationRepositories_status? Status { get; set; } + public global::GitHub.Models.CodeSecurityConfigurationRepositories_status? Status { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeSecurityConfigurationRepositories() { @@ -32,12 +34,12 @@ public CodeSecurityConfigurationRepositories() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeSecurityConfigurationRepositories CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeSecurityConfigurationRepositories CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeSecurityConfigurationRepositories(); + return new global::GitHub.Models.CodeSecurityConfigurationRepositories(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"repository", n => { Repository = n.GetObjectValue(SimpleRepository.CreateFromDiscriminatorValue); } }, - {"status", n => { Status = n.GetEnumValue(); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.SimpleRepository.CreateFromDiscriminatorValue); } }, + { "status", n => { Status = n.GetEnumValue(); } }, }; } /// @@ -58,8 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("repository", Repository); - writer.WriteEnumValue("status", Status); + writer.WriteObjectValue("repository", Repository); + writer.WriteEnumValue("status", Status); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodeSecurityConfigurationRepositories_status.cs b/src/GitHub/Models/CodeSecurityConfigurationRepositories_status.cs index c0d995a7..74c4ee29 100644 --- a/src/GitHub/Models/CodeSecurityConfigurationRepositories_status.cs +++ b/src/GitHub/Models/CodeSecurityConfigurationRepositories_status.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The attachment status of the code security configuration on the repository. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeSecurityConfigurationRepositories_status { [EnumMember(Value = "attached")] diff --git a/src/GitHub/Models/CodeSecurityConfiguration_advanced_security.cs b/src/GitHub/Models/CodeSecurityConfiguration_advanced_security.cs index ef599256..e6839ea8 100644 --- a/src/GitHub/Models/CodeSecurityConfiguration_advanced_security.cs +++ b/src/GitHub/Models/CodeSecurityConfiguration_advanced_security.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The enablement status of GitHub Advanced Security + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeSecurityConfiguration_advanced_security { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Models/CodeSecurityConfiguration_code_scanning_default_setup.cs b/src/GitHub/Models/CodeSecurityConfiguration_code_scanning_default_setup.cs index 534a9975..ed0af9c6 100644 --- a/src/GitHub/Models/CodeSecurityConfiguration_code_scanning_default_setup.cs +++ b/src/GitHub/Models/CodeSecurityConfiguration_code_scanning_default_setup.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The enablement status of code scanning default setup + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeSecurityConfiguration_code_scanning_default_setup { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Models/CodeSecurityConfiguration_dependabot_alerts.cs b/src/GitHub/Models/CodeSecurityConfiguration_dependabot_alerts.cs index 56660c95..9e0b12f6 100644 --- a/src/GitHub/Models/CodeSecurityConfiguration_dependabot_alerts.cs +++ b/src/GitHub/Models/CodeSecurityConfiguration_dependabot_alerts.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The enablement status of Dependabot alerts + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeSecurityConfiguration_dependabot_alerts { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Models/CodeSecurityConfiguration_dependabot_security_updates.cs b/src/GitHub/Models/CodeSecurityConfiguration_dependabot_security_updates.cs index 435c109d..eb87320a 100644 --- a/src/GitHub/Models/CodeSecurityConfiguration_dependabot_security_updates.cs +++ b/src/GitHub/Models/CodeSecurityConfiguration_dependabot_security_updates.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The enablement status of Dependabot security updates + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeSecurityConfiguration_dependabot_security_updates { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Models/CodeSecurityConfiguration_dependency_graph.cs b/src/GitHub/Models/CodeSecurityConfiguration_dependency_graph.cs index 3d60d2b4..38a10291 100644 --- a/src/GitHub/Models/CodeSecurityConfiguration_dependency_graph.cs +++ b/src/GitHub/Models/CodeSecurityConfiguration_dependency_graph.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The enablement status of Dependency Graph + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeSecurityConfiguration_dependency_graph { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Models/CodeSecurityConfiguration_dependency_graph_autosubmit_action.cs b/src/GitHub/Models/CodeSecurityConfiguration_dependency_graph_autosubmit_action.cs index b35dfedd..f53dbdb9 100644 --- a/src/GitHub/Models/CodeSecurityConfiguration_dependency_graph_autosubmit_action.cs +++ b/src/GitHub/Models/CodeSecurityConfiguration_dependency_graph_autosubmit_action.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The enablement status of Automatic dependency submission + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeSecurityConfiguration_dependency_graph_autosubmit_action { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Models/CodeSecurityConfiguration_dependency_graph_autosubmit_action_options.cs b/src/GitHub/Models/CodeSecurityConfiguration_dependency_graph_autosubmit_action_options.cs index 305354e0..7032d79c 100644 --- a/src/GitHub/Models/CodeSecurityConfiguration_dependency_graph_autosubmit_action_options.cs +++ b/src/GitHub/Models/CodeSecurityConfiguration_dependency_graph_autosubmit_action_options.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Feature options for Automatic dependency submission /// - public class CodeSecurityConfiguration_dependency_graph_autosubmit_action_options : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeSecurityConfiguration_dependency_graph_autosubmit_action_options : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// Whether to use runners labeled with 'dependency-submission' or standard GitHub runners. public bool? LabeledRunners { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeSecurityConfiguration_dependency_graph_autosubmit_action_options() { @@ -24,12 +26,12 @@ public CodeSecurityConfiguration_dependency_graph_autosubmit_action_options() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeSecurityConfiguration_dependency_graph_autosubmit_action_options CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeSecurityConfiguration_dependency_graph_autosubmit_action_options CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeSecurityConfiguration_dependency_graph_autosubmit_action_options(); + return new global::GitHub.Models.CodeSecurityConfiguration_dependency_graph_autosubmit_action_options(); } /// /// The deserialization information for the current model @@ -39,7 +41,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labeled_runners", n => { LabeledRunners = n.GetBoolValue(); } }, + { "labeled_runners", n => { LabeledRunners = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/CodeSecurityConfiguration_enforcement.cs b/src/GitHub/Models/CodeSecurityConfiguration_enforcement.cs index 0cac2269..2c79cfe9 100644 --- a/src/GitHub/Models/CodeSecurityConfiguration_enforcement.cs +++ b/src/GitHub/Models/CodeSecurityConfiguration_enforcement.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The enforcement status for a security configuration + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeSecurityConfiguration_enforcement { [EnumMember(Value = "enforced")] diff --git a/src/GitHub/Models/CodeSecurityConfiguration_private_vulnerability_reporting.cs b/src/GitHub/Models/CodeSecurityConfiguration_private_vulnerability_reporting.cs index ab912884..33977930 100644 --- a/src/GitHub/Models/CodeSecurityConfiguration_private_vulnerability_reporting.cs +++ b/src/GitHub/Models/CodeSecurityConfiguration_private_vulnerability_reporting.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The enablement status of private vulnerability reporting + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeSecurityConfiguration_private_vulnerability_reporting { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning.cs b/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning.cs index 99c146a9..4602b4ef 100644 --- a/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning.cs +++ b/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The enablement status of secret scanning + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeSecurityConfiguration_secret_scanning { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_push_protection.cs b/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_push_protection.cs index 583da126..99cef2e3 100644 --- a/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_push_protection.cs +++ b/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_push_protection.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The enablement status of secret scanning push protection + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeSecurityConfiguration_secret_scanning_push_protection { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_validity_checks.cs b/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_validity_checks.cs index b40a2658..05c6f015 100644 --- a/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_validity_checks.cs +++ b/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_validity_checks.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The enablement status of secret scanning validity checks + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeSecurityConfiguration_secret_scanning_validity_checks { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Models/CodeSecurityConfiguration_target_type.cs b/src/GitHub/Models/CodeSecurityConfiguration_target_type.cs index c676bc87..f025452e 100644 --- a/src/GitHub/Models/CodeSecurityConfiguration_target_type.cs +++ b/src/GitHub/Models/CodeSecurityConfiguration_target_type.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The type of the code security configuration. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeSecurityConfiguration_target_type { [EnumMember(Value = "global")] diff --git a/src/GitHub/Models/CodeSecurityDefaultConfigurations.cs b/src/GitHub/Models/CodeSecurityDefaultConfigurations.cs index 9d366cd0..09369509 100644 --- a/src/GitHub/Models/CodeSecurityDefaultConfigurations.cs +++ b/src/GitHub/Models/CodeSecurityDefaultConfigurations.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeSecurityDefaultConfigurations : IAdditionalDataHolder, IParsable + public partial class CodeSecurityDefaultConfigurations : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,15 +16,15 @@ public class CodeSecurityDefaultConfigurations : IAdditionalDataHolder, IParsabl /// A code security configuration #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeSecurityConfiguration? Configuration { get; set; } + public global::GitHub.Models.CodeSecurityConfiguration? Configuration { get; set; } #nullable restore #else - public CodeSecurityConfiguration Configuration { get; set; } + public global::GitHub.Models.CodeSecurityConfiguration Configuration { get; set; } #endif /// The visibility of newly created repositories for which the code security configuration will be applied to by default - public CodeSecurityDefaultConfigurations_default_for_new_repos? DefaultForNewRepos { get; set; } + public global::GitHub.Models.CodeSecurityDefaultConfigurations_default_for_new_repos? DefaultForNewRepos { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeSecurityDefaultConfigurations() { @@ -31,12 +33,12 @@ public CodeSecurityDefaultConfigurations() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeSecurityDefaultConfigurations CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeSecurityDefaultConfigurations CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeSecurityDefaultConfigurations(); + return new global::GitHub.Models.CodeSecurityDefaultConfigurations(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"configuration", n => { Configuration = n.GetObjectValue(CodeSecurityConfiguration.CreateFromDiscriminatorValue); } }, - {"default_for_new_repos", n => { DefaultForNewRepos = n.GetEnumValue(); } }, + { "configuration", n => { Configuration = n.GetObjectValue(global::GitHub.Models.CodeSecurityConfiguration.CreateFromDiscriminatorValue); } }, + { "default_for_new_repos", n => { DefaultForNewRepos = n.GetEnumValue(); } }, }; } /// @@ -57,8 +59,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("configuration", Configuration); - writer.WriteEnumValue("default_for_new_repos", DefaultForNewRepos); + writer.WriteObjectValue("configuration", Configuration); + writer.WriteEnumValue("default_for_new_repos", DefaultForNewRepos); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodeSecurityDefaultConfigurations_default_for_new_repos.cs b/src/GitHub/Models/CodeSecurityDefaultConfigurations_default_for_new_repos.cs index e3a568c3..4fd0dee3 100644 --- a/src/GitHub/Models/CodeSecurityDefaultConfigurations_default_for_new_repos.cs +++ b/src/GitHub/Models/CodeSecurityDefaultConfigurations_default_for_new_repos.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The visibility of newly created repositories for which the code security configuration will be applied to by default + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodeSecurityDefaultConfigurations_default_for_new_repos { [EnumMember(Value = "public")] diff --git a/src/GitHub/Models/Code_matches.cs b/src/GitHub/Models/Code_matches.cs index 9f219ed9..0174f952 100644 --- a/src/GitHub/Models/Code_matches.cs +++ b/src/GitHub/Models/Code_matches.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Code_matches : IAdditionalDataHolder, IParsable + public partial class Code_matches : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class Code_matches : IAdditionalDataHolder, IParsable public string Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Code_matches() { @@ -37,12 +39,12 @@ public Code_matches() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Code_matches CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Code_matches CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Code_matches(); + return new global::GitHub.Models.Code_matches(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"indices", n => { Indices = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"text", n => { Text = n.GetStringValue(); } }, + { "indices", n => { Indices = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "text", n => { Text = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/CodeownersErrors.cs b/src/GitHub/Models/CodeownersErrors.cs index 090e3893..5335ee60 100644 --- a/src/GitHub/Models/CodeownersErrors.cs +++ b/src/GitHub/Models/CodeownersErrors.cs @@ -1,27 +1,29 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A list of errors found in a repo's CODEOWNERS file /// - public class CodeownersErrors : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeownersErrors : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The errors property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Errors { get; set; } + public List? Errors { get; set; } #nullable restore #else - public List Errors { get; set; } + public List Errors { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeownersErrors() { @@ -30,12 +32,12 @@ public CodeownersErrors() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeownersErrors CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeownersErrors CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeownersErrors(); + return new global::GitHub.Models.CodeownersErrors(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"errors", n => { Errors = n.GetCollectionOfObjectValues(CodeownersErrors_errors.CreateFromDiscriminatorValue)?.ToList(); } }, + { "errors", n => { Errors = n.GetCollectionOfObjectValues(global::GitHub.Models.CodeownersErrors_errors.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("errors", Errors); + writer.WriteCollectionOfObjectValues("errors", Errors); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodeownersErrors_errors.cs b/src/GitHub/Models/CodeownersErrors_errors.cs index 0e02e4db..e1ee93d4 100644 --- a/src/GitHub/Models/CodeownersErrors_errors.cs +++ b/src/GitHub/Models/CodeownersErrors_errors.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodeownersErrors_errors : IAdditionalDataHolder, IParsable + public partial class CodeownersErrors_errors : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -56,7 +58,7 @@ public class CodeownersErrors_errors : IAdditionalDataHolder, IParsable public string Suggestion { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodeownersErrors_errors() { @@ -65,12 +67,12 @@ public CodeownersErrors_errors() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodeownersErrors_errors CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodeownersErrors_errors CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodeownersErrors_errors(); + return new global::GitHub.Models.CodeownersErrors_errors(); } /// /// The deserialization information for the current model @@ -80,13 +82,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"column", n => { Column = n.GetIntValue(); } }, - {"kind", n => { Kind = n.GetStringValue(); } }, - {"line", n => { Line = n.GetIntValue(); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"source", n => { Source = n.GetStringValue(); } }, - {"suggestion", n => { Suggestion = n.GetStringValue(); } }, + { "column", n => { Column = n.GetIntValue(); } }, + { "kind", n => { Kind = n.GetStringValue(); } }, + { "line", n => { Line = n.GetIntValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "source", n => { Source = n.GetStringValue(); } }, + { "suggestion", n => { Suggestion = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Codespace.cs b/src/GitHub/Models/Codespace.cs index e59311fe..ad2d113a 100644 --- a/src/GitHub/Models/Codespace.cs +++ b/src/GitHub/Models/Codespace.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A codespace. /// - public class Codespace : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Codespace : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? BillableOwner { get; set; } + public global::GitHub.Models.SimpleUser? BillableOwner { get; set; } #nullable restore #else - public SimpleUser BillableOwner { get; set; } + public global::GitHub.Models.SimpleUser BillableOwner { get; set; } #endif /// The created_at property public DateTimeOffset? CreatedAt { get; set; } @@ -49,10 +51,10 @@ public class Codespace : IAdditionalDataHolder, IParsable /// Details about the codespace's git repository. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Codespace_git_status? GitStatus { get; set; } + public global::GitHub.Models.Codespace_git_status? GitStatus { get; set; } #nullable restore #else - public Codespace_git_status GitStatus { get; set; } + public global::GitHub.Models.Codespace_git_status GitStatus { get; set; } #endif /// The id property public long? Id { get; set; } @@ -77,14 +79,14 @@ public class Codespace : IAdditionalDataHolder, IParsable /// Last known time this codespace was started. public DateTimeOffset? LastUsedAt { get; set; } /// The initally assigned location of a new codespace. - public Codespace_location? Location { get; set; } + public global::GitHub.Models.Codespace_location? Location { get; set; } /// A description of the machine powering a codespace. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableCodespaceMachine? Machine { get; set; } + public global::GitHub.Models.NullableCodespaceMachine? Machine { get; set; } #nullable restore #else - public NullableCodespaceMachine Machine { get; set; } + public global::GitHub.Models.NullableCodespaceMachine Machine { get; set; } #endif /// API URL to access available alternate machine types for this codespace. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,10 +107,10 @@ public class Codespace : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Owner { get; set; } + public global::GitHub.Models.SimpleUser? Owner { get; set; } #nullable restore #else - public SimpleUser Owner { get; set; } + public global::GitHub.Models.SimpleUser Owner { get; set; } #endif /// Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it. public bool? PendingOperation { get; set; } @@ -149,10 +151,10 @@ public class Codespace : IAdditionalDataHolder, IParsable /// Minimal Repository #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MinimalRepository? Repository { get; set; } + public global::GitHub.Models.MinimalRepository? Repository { get; set; } #nullable restore #else - public MinimalRepository Repository { get; set; } + public global::GitHub.Models.MinimalRepository Repository { get; set; } #endif /// When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at" public DateTimeOffset? RetentionExpiresAt { get; set; } @@ -161,10 +163,10 @@ public class Codespace : IAdditionalDataHolder, IParsable /// The runtime_constraints property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Codespace_runtime_constraints? RuntimeConstraints { get; set; } + public global::GitHub.Models.Codespace_runtime_constraints? RuntimeConstraints { get; set; } #nullable restore #else - public Codespace_runtime_constraints RuntimeConstraints { get; set; } + public global::GitHub.Models.Codespace_runtime_constraints RuntimeConstraints { get; set; } #endif /// API URL to start this codespace. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -175,7 +177,7 @@ public class Codespace : IAdditionalDataHolder, IParsable public string StartUrl { get; set; } #endif /// State of this codespace. - public Codespace_state? State { get; set; } + public global::GitHub.Models.Codespace_state? State { get; set; } /// API URL to stop this codespace. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -203,7 +205,7 @@ public class Codespace : IAdditionalDataHolder, IParsable public string WebUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Codespace() { @@ -212,12 +214,12 @@ public Codespace() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Codespace CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Codespace CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Codespace(); + return new global::GitHub.Models.Codespace(); } /// /// The deserialization information for the current model @@ -227,38 +229,38 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"billable_owner", n => { BillableOwner = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"devcontainer_path", n => { DevcontainerPath = n.GetStringValue(); } }, - {"display_name", n => { DisplayName = n.GetStringValue(); } }, - {"environment_id", n => { EnvironmentId = n.GetStringValue(); } }, - {"git_status", n => { GitStatus = n.GetObjectValue(Codespace_git_status.CreateFromDiscriminatorValue); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"idle_timeout_minutes", n => { IdleTimeoutMinutes = n.GetIntValue(); } }, - {"idle_timeout_notice", n => { IdleTimeoutNotice = n.GetStringValue(); } }, - {"last_known_stop_notice", n => { LastKnownStopNotice = n.GetStringValue(); } }, - {"last_used_at", n => { LastUsedAt = n.GetDateTimeOffsetValue(); } }, - {"location", n => { Location = n.GetEnumValue(); } }, - {"machine", n => { Machine = n.GetObjectValue(NullableCodespaceMachine.CreateFromDiscriminatorValue); } }, - {"machines_url", n => { MachinesUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"pending_operation", n => { PendingOperation = n.GetBoolValue(); } }, - {"pending_operation_disabled_reason", n => { PendingOperationDisabledReason = n.GetStringValue(); } }, - {"prebuild", n => { Prebuild = n.GetBoolValue(); } }, - {"publish_url", n => { PublishUrl = n.GetStringValue(); } }, - {"pulls_url", n => { PullsUrl = n.GetStringValue(); } }, - {"recent_folders", n => { RecentFolders = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"repository", n => { Repository = n.GetObjectValue(MinimalRepository.CreateFromDiscriminatorValue); } }, - {"retention_expires_at", n => { RetentionExpiresAt = n.GetDateTimeOffsetValue(); } }, - {"retention_period_minutes", n => { RetentionPeriodMinutes = n.GetIntValue(); } }, - {"runtime_constraints", n => { RuntimeConstraints = n.GetObjectValue(Codespace_runtime_constraints.CreateFromDiscriminatorValue); } }, - {"start_url", n => { StartUrl = n.GetStringValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"stop_url", n => { StopUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"web_url", n => { WebUrl = n.GetStringValue(); } }, + { "billable_owner", n => { BillableOwner = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "devcontainer_path", n => { DevcontainerPath = n.GetStringValue(); } }, + { "display_name", n => { DisplayName = n.GetStringValue(); } }, + { "environment_id", n => { EnvironmentId = n.GetStringValue(); } }, + { "git_status", n => { GitStatus = n.GetObjectValue(global::GitHub.Models.Codespace_git_status.CreateFromDiscriminatorValue); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "idle_timeout_minutes", n => { IdleTimeoutMinutes = n.GetIntValue(); } }, + { "idle_timeout_notice", n => { IdleTimeoutNotice = n.GetStringValue(); } }, + { "last_known_stop_notice", n => { LastKnownStopNotice = n.GetStringValue(); } }, + { "last_used_at", n => { LastUsedAt = n.GetDateTimeOffsetValue(); } }, + { "location", n => { Location = n.GetEnumValue(); } }, + { "machine", n => { Machine = n.GetObjectValue(global::GitHub.Models.NullableCodespaceMachine.CreateFromDiscriminatorValue); } }, + { "machines_url", n => { MachinesUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "pending_operation", n => { PendingOperation = n.GetBoolValue(); } }, + { "pending_operation_disabled_reason", n => { PendingOperationDisabledReason = n.GetStringValue(); } }, + { "prebuild", n => { Prebuild = n.GetBoolValue(); } }, + { "publish_url", n => { PublishUrl = n.GetStringValue(); } }, + { "pulls_url", n => { PullsUrl = n.GetStringValue(); } }, + { "recent_folders", n => { RecentFolders = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.MinimalRepository.CreateFromDiscriminatorValue); } }, + { "retention_expires_at", n => { RetentionExpiresAt = n.GetDateTimeOffsetValue(); } }, + { "retention_period_minutes", n => { RetentionPeriodMinutes = n.GetIntValue(); } }, + { "runtime_constraints", n => { RuntimeConstraints = n.GetObjectValue(global::GitHub.Models.Codespace_runtime_constraints.CreateFromDiscriminatorValue); } }, + { "start_url", n => { StartUrl = n.GetStringValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "stop_url", n => { StopUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "web_url", n => { WebUrl = n.GetStringValue(); } }, }; } /// @@ -268,34 +270,34 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("billable_owner", BillableOwner); + writer.WriteObjectValue("billable_owner", BillableOwner); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteStringValue("devcontainer_path", DevcontainerPath); writer.WriteStringValue("display_name", DisplayName); writer.WriteStringValue("environment_id", EnvironmentId); - writer.WriteObjectValue("git_status", GitStatus); + writer.WriteObjectValue("git_status", GitStatus); writer.WriteLongValue("id", Id); writer.WriteIntValue("idle_timeout_minutes", IdleTimeoutMinutes); writer.WriteStringValue("idle_timeout_notice", IdleTimeoutNotice); writer.WriteStringValue("last_known_stop_notice", LastKnownStopNotice); writer.WriteDateTimeOffsetValue("last_used_at", LastUsedAt); - writer.WriteEnumValue("location", Location); - writer.WriteObjectValue("machine", Machine); + writer.WriteEnumValue("location", Location); + writer.WriteObjectValue("machine", Machine); writer.WriteStringValue("machines_url", MachinesUrl); writer.WriteStringValue("name", Name); - writer.WriteObjectValue("owner", Owner); + writer.WriteObjectValue("owner", Owner); writer.WriteBoolValue("pending_operation", PendingOperation); writer.WriteStringValue("pending_operation_disabled_reason", PendingOperationDisabledReason); writer.WriteBoolValue("prebuild", Prebuild); writer.WriteStringValue("publish_url", PublishUrl); writer.WriteStringValue("pulls_url", PullsUrl); writer.WriteCollectionOfPrimitiveValues("recent_folders", RecentFolders); - writer.WriteObjectValue("repository", Repository); + writer.WriteObjectValue("repository", Repository); writer.WriteDateTimeOffsetValue("retention_expires_at", RetentionExpiresAt); writer.WriteIntValue("retention_period_minutes", RetentionPeriodMinutes); - writer.WriteObjectValue("runtime_constraints", RuntimeConstraints); + writer.WriteObjectValue("runtime_constraints", RuntimeConstraints); writer.WriteStringValue("start_url", StartUrl); - writer.WriteEnumValue("state", State); + writer.WriteEnumValue("state", State); writer.WriteStringValue("stop_url", StopUrl); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); diff --git a/src/GitHub/Models/Codespace503Error.cs b/src/GitHub/Models/Codespace503Error.cs index a28e2274..94d66976 100644 --- a/src/GitHub/Models/Codespace503Error.cs +++ b/src/GitHub/Models/Codespace503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Codespace503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class Codespace503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class Codespace503Error : ApiException, IAdditionalDataHolder, IParsable #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Codespace503Error() { @@ -46,12 +42,12 @@ public Codespace503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Codespace503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Codespace503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Codespace503Error(); + return new global::GitHub.Models.Codespace503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodespaceExportDetails.cs b/src/GitHub/Models/CodespaceExportDetails.cs index 91f8ffe5..f11216be 100644 --- a/src/GitHub/Models/CodespaceExportDetails.cs +++ b/src/GitHub/Models/CodespaceExportDetails.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// An export of a codespace. Also, latest export details for a codespace can be fetched with id = latest /// - public class CodespaceExportDetails : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodespaceExportDetails : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -63,7 +65,7 @@ public class CodespaceExportDetails : IAdditionalDataHolder, IParsable public string State { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodespaceExportDetails() { @@ -72,12 +74,12 @@ public CodespaceExportDetails() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodespaceExportDetails CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodespaceExportDetails CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodespaceExportDetails(); + return new global::GitHub.Models.CodespaceExportDetails(); } /// /// The deserialization information for the current model @@ -87,13 +89,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"branch", n => { Branch = n.GetStringValue(); } }, - {"completed_at", n => { CompletedAt = n.GetDateTimeOffsetValue(); } }, - {"export_url", n => { ExportUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"state", n => { State = n.GetStringValue(); } }, + { "branch", n => { Branch = n.GetStringValue(); } }, + { "completed_at", n => { CompletedAt = n.GetDateTimeOffsetValue(); } }, + { "export_url", n => { ExportUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "state", n => { State = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/CodespaceMachine.cs b/src/GitHub/Models/CodespaceMachine.cs index d5bab824..9d478513 100644 --- a/src/GitHub/Models/CodespaceMachine.cs +++ b/src/GitHub/Models/CodespaceMachine.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A description of the machine powering a codespace. /// - public class CodespaceMachine : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodespaceMachine : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -41,11 +43,11 @@ public class CodespaceMachine : IAdditionalDataHolder, IParsable public string OperatingSystem { get; set; } #endif /// Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status. - public CodespaceMachine_prebuild_availability? PrebuildAvailability { get; set; } + public global::GitHub.Models.CodespaceMachine_prebuild_availability? PrebuildAvailability { get; set; } /// How much storage is available to the codespace. public int? StorageInBytes { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodespaceMachine() { @@ -54,12 +56,12 @@ public CodespaceMachine() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodespaceMachine CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodespaceMachine CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodespaceMachine(); + return new global::GitHub.Models.CodespaceMachine(); } /// /// The deserialization information for the current model @@ -69,13 +71,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"cpus", n => { Cpus = n.GetIntValue(); } }, - {"display_name", n => { DisplayName = n.GetStringValue(); } }, - {"memory_in_bytes", n => { MemoryInBytes = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"operating_system", n => { OperatingSystem = n.GetStringValue(); } }, - {"prebuild_availability", n => { PrebuildAvailability = n.GetEnumValue(); } }, - {"storage_in_bytes", n => { StorageInBytes = n.GetIntValue(); } }, + { "cpus", n => { Cpus = n.GetIntValue(); } }, + { "display_name", n => { DisplayName = n.GetStringValue(); } }, + { "memory_in_bytes", n => { MemoryInBytes = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "operating_system", n => { OperatingSystem = n.GetStringValue(); } }, + { "prebuild_availability", n => { PrebuildAvailability = n.GetEnumValue(); } }, + { "storage_in_bytes", n => { StorageInBytes = n.GetIntValue(); } }, }; } /// @@ -90,7 +92,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("memory_in_bytes", MemoryInBytes); writer.WriteStringValue("name", Name); writer.WriteStringValue("operating_system", OperatingSystem); - writer.WriteEnumValue("prebuild_availability", PrebuildAvailability); + writer.WriteEnumValue("prebuild_availability", PrebuildAvailability); writer.WriteIntValue("storage_in_bytes", StorageInBytes); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/CodespaceMachine_prebuild_availability.cs b/src/GitHub/Models/CodespaceMachine_prebuild_availability.cs index c2ef25dc..a3a1dc55 100644 --- a/src/GitHub/Models/CodespaceMachine_prebuild_availability.cs +++ b/src/GitHub/Models/CodespaceMachine_prebuild_availability.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodespaceMachine_prebuild_availability { [EnumMember(Value = "none")] diff --git a/src/GitHub/Models/CodespaceWithFullRepository.cs b/src/GitHub/Models/CodespaceWithFullRepository.cs index 98c32a07..a28b2a25 100644 --- a/src/GitHub/Models/CodespaceWithFullRepository.cs +++ b/src/GitHub/Models/CodespaceWithFullRepository.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A codespace. /// - public class CodespaceWithFullRepository : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodespaceWithFullRepository : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? BillableOwner { get; set; } + public global::GitHub.Models.SimpleUser? BillableOwner { get; set; } #nullable restore #else - public SimpleUser BillableOwner { get; set; } + public global::GitHub.Models.SimpleUser BillableOwner { get; set; } #endif /// The created_at property public DateTimeOffset? CreatedAt { get; set; } @@ -49,10 +51,10 @@ public class CodespaceWithFullRepository : IAdditionalDataHolder, IParsable /// Details about the codespace's git repository. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodespaceWithFullRepository_git_status? GitStatus { get; set; } + public global::GitHub.Models.CodespaceWithFullRepository_git_status? GitStatus { get; set; } #nullable restore #else - public CodespaceWithFullRepository_git_status GitStatus { get; set; } + public global::GitHub.Models.CodespaceWithFullRepository_git_status GitStatus { get; set; } #endif /// The id property public long? Id { get; set; } @@ -69,14 +71,14 @@ public class CodespaceWithFullRepository : IAdditionalDataHolder, IParsable /// Last known time this codespace was started. public DateTimeOffset? LastUsedAt { get; set; } /// The initally assigned location of a new codespace. - public CodespaceWithFullRepository_location? Location { get; set; } + public global::GitHub.Models.CodespaceWithFullRepository_location? Location { get; set; } /// A description of the machine powering a codespace. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableCodespaceMachine? Machine { get; set; } + public global::GitHub.Models.NullableCodespaceMachine? Machine { get; set; } #nullable restore #else - public NullableCodespaceMachine Machine { get; set; } + public global::GitHub.Models.NullableCodespaceMachine Machine { get; set; } #endif /// API URL to access available alternate machine types for this codespace. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,10 +99,10 @@ public class CodespaceWithFullRepository : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Owner { get; set; } + public global::GitHub.Models.SimpleUser? Owner { get; set; } #nullable restore #else - public SimpleUser Owner { get; set; } + public global::GitHub.Models.SimpleUser Owner { get; set; } #endif /// Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it. public bool? PendingOperation { get; set; } @@ -141,10 +143,10 @@ public class CodespaceWithFullRepository : IAdditionalDataHolder, IParsable /// Full Repository #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public FullRepository? Repository { get; set; } + public global::GitHub.Models.FullRepository? Repository { get; set; } #nullable restore #else - public FullRepository Repository { get; set; } + public global::GitHub.Models.FullRepository Repository { get; set; } #endif /// When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at" public DateTimeOffset? RetentionExpiresAt { get; set; } @@ -153,10 +155,10 @@ public class CodespaceWithFullRepository : IAdditionalDataHolder, IParsable /// The runtime_constraints property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodespaceWithFullRepository_runtime_constraints? RuntimeConstraints { get; set; } + public global::GitHub.Models.CodespaceWithFullRepository_runtime_constraints? RuntimeConstraints { get; set; } #nullable restore #else - public CodespaceWithFullRepository_runtime_constraints RuntimeConstraints { get; set; } + public global::GitHub.Models.CodespaceWithFullRepository_runtime_constraints RuntimeConstraints { get; set; } #endif /// API URL to start this codespace. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -167,7 +169,7 @@ public class CodespaceWithFullRepository : IAdditionalDataHolder, IParsable public string StartUrl { get; set; } #endif /// State of this codespace. - public CodespaceWithFullRepository_state? State { get; set; } + public global::GitHub.Models.CodespaceWithFullRepository_state? State { get; set; } /// API URL to stop this codespace. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -195,7 +197,7 @@ public class CodespaceWithFullRepository : IAdditionalDataHolder, IParsable public string WebUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodespaceWithFullRepository() { @@ -204,12 +206,12 @@ public CodespaceWithFullRepository() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodespaceWithFullRepository CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodespaceWithFullRepository CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodespaceWithFullRepository(); + return new global::GitHub.Models.CodespaceWithFullRepository(); } /// /// The deserialization information for the current model @@ -219,37 +221,37 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"billable_owner", n => { BillableOwner = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"devcontainer_path", n => { DevcontainerPath = n.GetStringValue(); } }, - {"display_name", n => { DisplayName = n.GetStringValue(); } }, - {"environment_id", n => { EnvironmentId = n.GetStringValue(); } }, - {"git_status", n => { GitStatus = n.GetObjectValue(CodespaceWithFullRepository_git_status.CreateFromDiscriminatorValue); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"idle_timeout_minutes", n => { IdleTimeoutMinutes = n.GetIntValue(); } }, - {"idle_timeout_notice", n => { IdleTimeoutNotice = n.GetStringValue(); } }, - {"last_used_at", n => { LastUsedAt = n.GetDateTimeOffsetValue(); } }, - {"location", n => { Location = n.GetEnumValue(); } }, - {"machine", n => { Machine = n.GetObjectValue(NullableCodespaceMachine.CreateFromDiscriminatorValue); } }, - {"machines_url", n => { MachinesUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"pending_operation", n => { PendingOperation = n.GetBoolValue(); } }, - {"pending_operation_disabled_reason", n => { PendingOperationDisabledReason = n.GetStringValue(); } }, - {"prebuild", n => { Prebuild = n.GetBoolValue(); } }, - {"publish_url", n => { PublishUrl = n.GetStringValue(); } }, - {"pulls_url", n => { PullsUrl = n.GetStringValue(); } }, - {"recent_folders", n => { RecentFolders = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"repository", n => { Repository = n.GetObjectValue(FullRepository.CreateFromDiscriminatorValue); } }, - {"retention_expires_at", n => { RetentionExpiresAt = n.GetDateTimeOffsetValue(); } }, - {"retention_period_minutes", n => { RetentionPeriodMinutes = n.GetIntValue(); } }, - {"runtime_constraints", n => { RuntimeConstraints = n.GetObjectValue(CodespaceWithFullRepository_runtime_constraints.CreateFromDiscriminatorValue); } }, - {"start_url", n => { StartUrl = n.GetStringValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"stop_url", n => { StopUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"web_url", n => { WebUrl = n.GetStringValue(); } }, + { "billable_owner", n => { BillableOwner = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "devcontainer_path", n => { DevcontainerPath = n.GetStringValue(); } }, + { "display_name", n => { DisplayName = n.GetStringValue(); } }, + { "environment_id", n => { EnvironmentId = n.GetStringValue(); } }, + { "git_status", n => { GitStatus = n.GetObjectValue(global::GitHub.Models.CodespaceWithFullRepository_git_status.CreateFromDiscriminatorValue); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "idle_timeout_minutes", n => { IdleTimeoutMinutes = n.GetIntValue(); } }, + { "idle_timeout_notice", n => { IdleTimeoutNotice = n.GetStringValue(); } }, + { "last_used_at", n => { LastUsedAt = n.GetDateTimeOffsetValue(); } }, + { "location", n => { Location = n.GetEnumValue(); } }, + { "machine", n => { Machine = n.GetObjectValue(global::GitHub.Models.NullableCodespaceMachine.CreateFromDiscriminatorValue); } }, + { "machines_url", n => { MachinesUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "pending_operation", n => { PendingOperation = n.GetBoolValue(); } }, + { "pending_operation_disabled_reason", n => { PendingOperationDisabledReason = n.GetStringValue(); } }, + { "prebuild", n => { Prebuild = n.GetBoolValue(); } }, + { "publish_url", n => { PublishUrl = n.GetStringValue(); } }, + { "pulls_url", n => { PullsUrl = n.GetStringValue(); } }, + { "recent_folders", n => { RecentFolders = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.FullRepository.CreateFromDiscriminatorValue); } }, + { "retention_expires_at", n => { RetentionExpiresAt = n.GetDateTimeOffsetValue(); } }, + { "retention_period_minutes", n => { RetentionPeriodMinutes = n.GetIntValue(); } }, + { "runtime_constraints", n => { RuntimeConstraints = n.GetObjectValue(global::GitHub.Models.CodespaceWithFullRepository_runtime_constraints.CreateFromDiscriminatorValue); } }, + { "start_url", n => { StartUrl = n.GetStringValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "stop_url", n => { StopUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "web_url", n => { WebUrl = n.GetStringValue(); } }, }; } /// @@ -259,33 +261,33 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("billable_owner", BillableOwner); + writer.WriteObjectValue("billable_owner", BillableOwner); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteStringValue("devcontainer_path", DevcontainerPath); writer.WriteStringValue("display_name", DisplayName); writer.WriteStringValue("environment_id", EnvironmentId); - writer.WriteObjectValue("git_status", GitStatus); + writer.WriteObjectValue("git_status", GitStatus); writer.WriteLongValue("id", Id); writer.WriteIntValue("idle_timeout_minutes", IdleTimeoutMinutes); writer.WriteStringValue("idle_timeout_notice", IdleTimeoutNotice); writer.WriteDateTimeOffsetValue("last_used_at", LastUsedAt); - writer.WriteEnumValue("location", Location); - writer.WriteObjectValue("machine", Machine); + writer.WriteEnumValue("location", Location); + writer.WriteObjectValue("machine", Machine); writer.WriteStringValue("machines_url", MachinesUrl); writer.WriteStringValue("name", Name); - writer.WriteObjectValue("owner", Owner); + writer.WriteObjectValue("owner", Owner); writer.WriteBoolValue("pending_operation", PendingOperation); writer.WriteStringValue("pending_operation_disabled_reason", PendingOperationDisabledReason); writer.WriteBoolValue("prebuild", Prebuild); writer.WriteStringValue("publish_url", PublishUrl); writer.WriteStringValue("pulls_url", PullsUrl); writer.WriteCollectionOfPrimitiveValues("recent_folders", RecentFolders); - writer.WriteObjectValue("repository", Repository); + writer.WriteObjectValue("repository", Repository); writer.WriteDateTimeOffsetValue("retention_expires_at", RetentionExpiresAt); writer.WriteIntValue("retention_period_minutes", RetentionPeriodMinutes); - writer.WriteObjectValue("runtime_constraints", RuntimeConstraints); + writer.WriteObjectValue("runtime_constraints", RuntimeConstraints); writer.WriteStringValue("start_url", StartUrl); - writer.WriteEnumValue("state", State); + writer.WriteEnumValue("state", State); writer.WriteStringValue("stop_url", StopUrl); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); diff --git a/src/GitHub/Models/CodespaceWithFullRepository_git_status.cs b/src/GitHub/Models/CodespaceWithFullRepository_git_status.cs index d84f6866..f0972d5b 100644 --- a/src/GitHub/Models/CodespaceWithFullRepository_git_status.cs +++ b/src/GitHub/Models/CodespaceWithFullRepository_git_status.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Details about the codespace's git repository. /// - public class CodespaceWithFullRepository_git_status : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodespaceWithFullRepository_git_status : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class CodespaceWithFullRepository_git_status : IAdditionalDataHolder, IPa public string Ref { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodespaceWithFullRepository_git_status() { @@ -38,12 +40,12 @@ public CodespaceWithFullRepository_git_status() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodespaceWithFullRepository_git_status CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodespaceWithFullRepository_git_status CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodespaceWithFullRepository_git_status(); + return new global::GitHub.Models.CodespaceWithFullRepository_git_status(); } /// /// The deserialization information for the current model @@ -53,11 +55,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"ahead", n => { Ahead = n.GetIntValue(); } }, - {"behind", n => { Behind = n.GetIntValue(); } }, - {"has_uncommitted_changes", n => { HasUncommittedChanges = n.GetBoolValue(); } }, - {"has_unpushed_changes", n => { HasUnpushedChanges = n.GetBoolValue(); } }, - {"ref", n => { Ref = n.GetStringValue(); } }, + { "ahead", n => { Ahead = n.GetIntValue(); } }, + { "behind", n => { Behind = n.GetIntValue(); } }, + { "has_uncommitted_changes", n => { HasUncommittedChanges = n.GetBoolValue(); } }, + { "has_unpushed_changes", n => { HasUnpushedChanges = n.GetBoolValue(); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/CodespaceWithFullRepository_location.cs b/src/GitHub/Models/CodespaceWithFullRepository_location.cs index 2a9341ed..a7bb4ae1 100644 --- a/src/GitHub/Models/CodespaceWithFullRepository_location.cs +++ b/src/GitHub/Models/CodespaceWithFullRepository_location.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The initally assigned location of a new codespace. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodespaceWithFullRepository_location { [EnumMember(Value = "EastUs")] diff --git a/src/GitHub/Models/CodespaceWithFullRepository_runtime_constraints.cs b/src/GitHub/Models/CodespaceWithFullRepository_runtime_constraints.cs index eccbc016..dc1f0eac 100644 --- a/src/GitHub/Models/CodespaceWithFullRepository_runtime_constraints.cs +++ b/src/GitHub/Models/CodespaceWithFullRepository_runtime_constraints.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodespaceWithFullRepository_runtime_constraints : IAdditionalDataHolder, IParsable + public partial class CodespaceWithFullRepository_runtime_constraints : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class CodespaceWithFullRepository_runtime_constraints : IAdditionalDataHo public List AllowedPortPrivacySettings { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodespaceWithFullRepository_runtime_constraints() { @@ -29,12 +31,12 @@ public CodespaceWithFullRepository_runtime_constraints() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodespaceWithFullRepository_runtime_constraints CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodespaceWithFullRepository_runtime_constraints CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodespaceWithFullRepository_runtime_constraints(); + return new global::GitHub.Models.CodespaceWithFullRepository_runtime_constraints(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allowed_port_privacy_settings", n => { AllowedPortPrivacySettings = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "allowed_port_privacy_settings", n => { AllowedPortPrivacySettings = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Models/CodespaceWithFullRepository_state.cs b/src/GitHub/Models/CodespaceWithFullRepository_state.cs index cfb575b5..bded3532 100644 --- a/src/GitHub/Models/CodespaceWithFullRepository_state.cs +++ b/src/GitHub/Models/CodespaceWithFullRepository_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// State of this codespace. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodespaceWithFullRepository_state { [EnumMember(Value = "Unknown")] diff --git a/src/GitHub/Models/Codespace_git_status.cs b/src/GitHub/Models/Codespace_git_status.cs index 2409d0ea..879564e1 100644 --- a/src/GitHub/Models/Codespace_git_status.cs +++ b/src/GitHub/Models/Codespace_git_status.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Details about the codespace's git repository. /// - public class Codespace_git_status : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Codespace_git_status : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class Codespace_git_status : IAdditionalDataHolder, IParsable public string Ref { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Codespace_git_status() { @@ -38,12 +40,12 @@ public Codespace_git_status() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Codespace_git_status CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Codespace_git_status CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Codespace_git_status(); + return new global::GitHub.Models.Codespace_git_status(); } /// /// The deserialization information for the current model @@ -53,11 +55,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"ahead", n => { Ahead = n.GetIntValue(); } }, - {"behind", n => { Behind = n.GetIntValue(); } }, - {"has_uncommitted_changes", n => { HasUncommittedChanges = n.GetBoolValue(); } }, - {"has_unpushed_changes", n => { HasUnpushedChanges = n.GetBoolValue(); } }, - {"ref", n => { Ref = n.GetStringValue(); } }, + { "ahead", n => { Ahead = n.GetIntValue(); } }, + { "behind", n => { Behind = n.GetIntValue(); } }, + { "has_uncommitted_changes", n => { HasUncommittedChanges = n.GetBoolValue(); } }, + { "has_unpushed_changes", n => { HasUnpushedChanges = n.GetBoolValue(); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Codespace_location.cs b/src/GitHub/Models/Codespace_location.cs index bf729988..5a0a9edc 100644 --- a/src/GitHub/Models/Codespace_location.cs +++ b/src/GitHub/Models/Codespace_location.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The initally assigned location of a new codespace. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum Codespace_location { [EnumMember(Value = "EastUs")] diff --git a/src/GitHub/Models/Codespace_runtime_constraints.cs b/src/GitHub/Models/Codespace_runtime_constraints.cs index d06db0ec..233a41e3 100644 --- a/src/GitHub/Models/Codespace_runtime_constraints.cs +++ b/src/GitHub/Models/Codespace_runtime_constraints.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Codespace_runtime_constraints : IAdditionalDataHolder, IParsable + public partial class Codespace_runtime_constraints : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class Codespace_runtime_constraints : IAdditionalDataHolder, IParsable public List AllowedPortPrivacySettings { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Codespace_runtime_constraints() { @@ -29,12 +31,12 @@ public Codespace_runtime_constraints() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Codespace_runtime_constraints CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Codespace_runtime_constraints CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Codespace_runtime_constraints(); + return new global::GitHub.Models.Codespace_runtime_constraints(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allowed_port_privacy_settings", n => { AllowedPortPrivacySettings = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "allowed_port_privacy_settings", n => { AllowedPortPrivacySettings = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Models/Codespace_state.cs b/src/GitHub/Models/Codespace_state.cs index 8d03090d..98aedb33 100644 --- a/src/GitHub/Models/Codespace_state.cs +++ b/src/GitHub/Models/Codespace_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// State of this codespace. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum Codespace_state { [EnumMember(Value = "Unknown")] diff --git a/src/GitHub/Models/CodespacesOrgSecret.cs b/src/GitHub/Models/CodespacesOrgSecret.cs index 9d82ee52..663c942e 100644 --- a/src/GitHub/Models/CodespacesOrgSecret.cs +++ b/src/GitHub/Models/CodespacesOrgSecret.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Secrets for a GitHub Codespace. /// - public class CodespacesOrgSecret : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodespacesOrgSecret : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -33,9 +35,9 @@ public class CodespacesOrgSecret : IAdditionalDataHolder, IParsable /// The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. public DateTimeOffset? UpdatedAt { get; set; } /// The type of repositories in the organization that the secret is visible to - public CodespacesOrgSecret_visibility? Visibility { get; set; } + public global::GitHub.Models.CodespacesOrgSecret_visibility? Visibility { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodespacesOrgSecret() { @@ -44,12 +46,12 @@ public CodespacesOrgSecret() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodespacesOrgSecret CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodespacesOrgSecret CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodespacesOrgSecret(); + return new global::GitHub.Models.CodespacesOrgSecret(); } /// /// The deserialization information for the current model @@ -59,11 +61,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"selected_repositories_url", n => { SelectedRepositoriesUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "selected_repositories_url", n => { SelectedRepositoriesUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "visibility", n => { Visibility = n.GetEnumValue(); } }, }; } /// @@ -77,7 +79,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteStringValue("selected_repositories_url", SelectedRepositoriesUrl); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); - writer.WriteEnumValue("visibility", Visibility); + writer.WriteEnumValue("visibility", Visibility); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodespacesOrgSecret_visibility.cs b/src/GitHub/Models/CodespacesOrgSecret_visibility.cs index e7bce1d1..d7a1e328 100644 --- a/src/GitHub/Models/CodespacesOrgSecret_visibility.cs +++ b/src/GitHub/Models/CodespacesOrgSecret_visibility.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The type of repositories in the organization that the secret is visible to + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodespacesOrgSecret_visibility { [EnumMember(Value = "all")] diff --git a/src/GitHub/Models/CodespacesPermissionsCheckForDevcontainer.cs b/src/GitHub/Models/CodespacesPermissionsCheckForDevcontainer.cs index b7c8eb7b..614de71d 100644 --- a/src/GitHub/Models/CodespacesPermissionsCheckForDevcontainer.cs +++ b/src/GitHub/Models/CodespacesPermissionsCheckForDevcontainer.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Permission check result for a given devcontainer config. /// - public class CodespacesPermissionsCheckForDevcontainer : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodespacesPermissionsCheckForDevcontainer : IAdditionalDataHolder, IParsable { /// Whether the user has accepted the permissions defined by the devcontainer config public bool? Accepted { get; set; } /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodespacesPermissionsCheckForDevcontainer() { @@ -24,12 +26,12 @@ public CodespacesPermissionsCheckForDevcontainer() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodespacesPermissionsCheckForDevcontainer CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodespacesPermissionsCheckForDevcontainer CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodespacesPermissionsCheckForDevcontainer(); + return new global::GitHub.Models.CodespacesPermissionsCheckForDevcontainer(); } /// /// The deserialization information for the current model @@ -39,7 +41,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"accepted", n => { Accepted = n.GetBoolValue(); } }, + { "accepted", n => { Accepted = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/CodespacesPermissionsCheckForDevcontainer503Error.cs b/src/GitHub/Models/CodespacesPermissionsCheckForDevcontainer503Error.cs index 7bba3b3c..b92cc8ba 100644 --- a/src/GitHub/Models/CodespacesPermissionsCheckForDevcontainer503Error.cs +++ b/src/GitHub/Models/CodespacesPermissionsCheckForDevcontainer503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodespacesPermissionsCheckForDevcontainer503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class CodespacesPermissionsCheckForDevcontainer503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class CodespacesPermissionsCheckForDevcontainer503Error : ApiException, I #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodespacesPermissionsCheckForDevcontainer503Error() { @@ -46,12 +42,12 @@ public CodespacesPermissionsCheckForDevcontainer503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodespacesPermissionsCheckForDevcontainer503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodespacesPermissionsCheckForDevcontainer503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodespacesPermissionsCheckForDevcontainer503Error(); + return new global::GitHub.Models.CodespacesPermissionsCheckForDevcontainer503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodespacesPublicKey.cs b/src/GitHub/Models/CodespacesPublicKey.cs index cc1227da..b63853d8 100644 --- a/src/GitHub/Models/CodespacesPublicKey.cs +++ b/src/GitHub/Models/CodespacesPublicKey.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The public key used for setting Codespaces secrets. /// - public class CodespacesPublicKey : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodespacesPublicKey : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -55,7 +57,7 @@ public class CodespacesPublicKey : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodespacesPublicKey() { @@ -64,12 +66,12 @@ public CodespacesPublicKey() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodespacesPublicKey CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodespacesPublicKey CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodespacesPublicKey(); + return new global::GitHub.Models.CodespacesPublicKey(); } /// /// The deserialization information for the current model @@ -79,12 +81,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"key", n => { Key = n.GetStringValue(); } }, - {"key_id", n => { KeyId = n.GetStringValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "key", n => { Key = n.GetStringValue(); } }, + { "key_id", n => { KeyId = n.GetStringValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/CodespacesSecret.cs b/src/GitHub/Models/CodespacesSecret.cs index 1032d289..1d350f5c 100644 --- a/src/GitHub/Models/CodespacesSecret.cs +++ b/src/GitHub/Models/CodespacesSecret.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Secrets for a GitHub Codespace. /// - public class CodespacesSecret : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodespacesSecret : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -33,9 +35,9 @@ public class CodespacesSecret : IAdditionalDataHolder, IParsable /// The date and time at which the secret was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. public DateTimeOffset? UpdatedAt { get; set; } /// The type of repositories in the organization that the secret is visible to - public CodespacesSecret_visibility? Visibility { get; set; } + public global::GitHub.Models.CodespacesSecret_visibility? Visibility { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodespacesSecret() { @@ -44,12 +46,12 @@ public CodespacesSecret() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodespacesSecret CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodespacesSecret CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodespacesSecret(); + return new global::GitHub.Models.CodespacesSecret(); } /// /// The deserialization information for the current model @@ -59,11 +61,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"selected_repositories_url", n => { SelectedRepositoriesUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "selected_repositories_url", n => { SelectedRepositoriesUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "visibility", n => { Visibility = n.GetEnumValue(); } }, }; } /// @@ -77,7 +79,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteStringValue("selected_repositories_url", SelectedRepositoriesUrl); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); - writer.WriteEnumValue("visibility", Visibility); + writer.WriteEnumValue("visibility", Visibility); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodespacesSecret_visibility.cs b/src/GitHub/Models/CodespacesSecret_visibility.cs index 6d1b0843..69d025c9 100644 --- a/src/GitHub/Models/CodespacesSecret_visibility.cs +++ b/src/GitHub/Models/CodespacesSecret_visibility.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The type of repositories in the organization that the secret is visible to + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodespacesSecret_visibility { [EnumMember(Value = "all")] diff --git a/src/GitHub/Models/CodespacesUserPublicKey.cs b/src/GitHub/Models/CodespacesUserPublicKey.cs index bfd7c078..86be661a 100644 --- a/src/GitHub/Models/CodespacesUserPublicKey.cs +++ b/src/GitHub/Models/CodespacesUserPublicKey.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The public key used for setting user Codespaces' Secrets. /// - public class CodespacesUserPublicKey : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodespacesUserPublicKey : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class CodespacesUserPublicKey : IAdditionalDataHolder, IParsable public string KeyId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodespacesUserPublicKey() { @@ -38,12 +40,12 @@ public CodespacesUserPublicKey() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodespacesUserPublicKey CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CodespacesUserPublicKey CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodespacesUserPublicKey(); + return new global::GitHub.Models.CodespacesUserPublicKey(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"key", n => { Key = n.GetStringValue(); } }, - {"key_id", n => { KeyId = n.GetStringValue(); } }, + { "key", n => { Key = n.GetStringValue(); } }, + { "key_id", n => { KeyId = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Collaborator.cs b/src/GitHub/Models/Collaborator.cs index f0f27381..f239f5d0 100644 --- a/src/GitHub/Models/Collaborator.cs +++ b/src/GitHub/Models/Collaborator.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Collaborator /// - public class Collaborator : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Collaborator : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -113,10 +115,10 @@ public class Collaborator : IAdditionalDataHolder, IParsable /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Collaborator_permissions? Permissions { get; set; } + public global::GitHub.Models.Collaborator_permissions? Permissions { get; set; } #nullable restore #else - public Collaborator_permissions Permissions { get; set; } + public global::GitHub.Models.Collaborator_permissions Permissions { get; set; } #endif /// The received_events_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -177,7 +179,7 @@ public class Collaborator : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Collaborator() { @@ -186,12 +188,12 @@ public Collaborator() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Collaborator CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Collaborator CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Collaborator(); + return new global::GitHub.Models.Collaborator(); } /// /// The deserialization information for the current model @@ -201,28 +203,28 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"followers_url", n => { FollowersUrl = n.GetStringValue(); } }, - {"following_url", n => { FollowingUrl = n.GetStringValue(); } }, - {"gists_url", n => { GistsUrl = n.GetStringValue(); } }, - {"gravatar_id", n => { GravatarId = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, - {"permissions", n => { Permissions = n.GetObjectValue(Collaborator_permissions.CreateFromDiscriminatorValue); } }, - {"received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, - {"repos_url", n => { ReposUrl = n.GetStringValue(); } }, - {"role_name", n => { RoleName = n.GetStringValue(); } }, - {"site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, - {"starred_url", n => { StarredUrl = n.GetStringValue(); } }, - {"subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "followers_url", n => { FollowersUrl = n.GetStringValue(); } }, + { "following_url", n => { FollowingUrl = n.GetStringValue(); } }, + { "gists_url", n => { GistsUrl = n.GetStringValue(); } }, + { "gravatar_id", n => { GravatarId = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.Collaborator_permissions.CreateFromDiscriminatorValue); } }, + { "received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, + { "repos_url", n => { ReposUrl = n.GetStringValue(); } }, + { "role_name", n => { RoleName = n.GetStringValue(); } }, + { "site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, + { "starred_url", n => { StarredUrl = n.GetStringValue(); } }, + { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -245,7 +247,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteStringValue("node_id", NodeId); writer.WriteStringValue("organizations_url", OrganizationsUrl); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("permissions", Permissions); writer.WriteStringValue("received_events_url", ReceivedEventsUrl); writer.WriteStringValue("repos_url", ReposUrl); writer.WriteStringValue("role_name", RoleName); diff --git a/src/GitHub/Models/Collaborator_permissions.cs b/src/GitHub/Models/Collaborator_permissions.cs index 3d39cfe2..18ecb147 100644 --- a/src/GitHub/Models/Collaborator_permissions.cs +++ b/src/GitHub/Models/Collaborator_permissions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Collaborator_permissions : IAdditionalDataHolder, IParsable + public partial class Collaborator_permissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class Collaborator_permissions : IAdditionalDataHolder, IParsable /// The triage property public bool? Triage { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Collaborator_permissions() { @@ -31,12 +33,12 @@ public Collaborator_permissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Collaborator_permissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Collaborator_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Collaborator_permissions(); + return new global::GitHub.Models.Collaborator_permissions(); } /// /// The deserialization information for the current model @@ -46,11 +48,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"admin", n => { Admin = n.GetBoolValue(); } }, - {"maintain", n => { Maintain = n.GetBoolValue(); } }, - {"pull", n => { Pull = n.GetBoolValue(); } }, - {"push", n => { Push = n.GetBoolValue(); } }, - {"triage", n => { Triage = n.GetBoolValue(); } }, + { "admin", n => { Admin = n.GetBoolValue(); } }, + { "maintain", n => { Maintain = n.GetBoolValue(); } }, + { "pull", n => { Pull = n.GetBoolValue(); } }, + { "push", n => { Push = n.GetBoolValue(); } }, + { "triage", n => { Triage = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/CombinedBillingUsage.cs b/src/GitHub/Models/CombinedBillingUsage.cs index ed2b41e5..52459a8d 100644 --- a/src/GitHub/Models/CombinedBillingUsage.cs +++ b/src/GitHub/Models/CombinedBillingUsage.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CombinedBillingUsage : IAdditionalDataHolder, IParsable + public partial class CombinedBillingUsage : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -18,7 +20,7 @@ public class CombinedBillingUsage : IAdditionalDataHolder, IParsable /// Estimated sum of free and paid storage space (GB) used in billing cycle. public int? EstimatedStorageForMonth { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CombinedBillingUsage() { @@ -27,12 +29,12 @@ public CombinedBillingUsage() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CombinedBillingUsage CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CombinedBillingUsage CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CombinedBillingUsage(); + return new global::GitHub.Models.CombinedBillingUsage(); } /// /// The deserialization information for the current model @@ -42,9 +44,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"days_left_in_billing_cycle", n => { DaysLeftInBillingCycle = n.GetIntValue(); } }, - {"estimated_paid_storage_for_month", n => { EstimatedPaidStorageForMonth = n.GetIntValue(); } }, - {"estimated_storage_for_month", n => { EstimatedStorageForMonth = n.GetIntValue(); } }, + { "days_left_in_billing_cycle", n => { DaysLeftInBillingCycle = n.GetIntValue(); } }, + { "estimated_paid_storage_for_month", n => { EstimatedPaidStorageForMonth = n.GetIntValue(); } }, + { "estimated_storage_for_month", n => { EstimatedStorageForMonth = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/CombinedCommitStatus.cs b/src/GitHub/Models/CombinedCommitStatus.cs index 667ada8c..d5dff226 100644 --- a/src/GitHub/Models/CombinedCommitStatus.cs +++ b/src/GitHub/Models/CombinedCommitStatus.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Combined Commit Status /// - public class CombinedCommitStatus : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CombinedCommitStatus : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,10 +25,10 @@ public class CombinedCommitStatus : IAdditionalDataHolder, IParsable /// Minimal Repository #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MinimalRepository? Repository { get; set; } + public global::GitHub.Models.MinimalRepository? Repository { get; set; } #nullable restore #else - public MinimalRepository Repository { get; set; } + public global::GitHub.Models.MinimalRepository Repository { get; set; } #endif /// The sha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -47,10 +49,10 @@ public class CombinedCommitStatus : IAdditionalDataHolder, IParsable /// The statuses property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Statuses { get; set; } + public List? Statuses { get; set; } #nullable restore #else - public List Statuses { get; set; } + public List Statuses { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } @@ -63,7 +65,7 @@ public class CombinedCommitStatus : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CombinedCommitStatus() { @@ -72,12 +74,12 @@ public CombinedCommitStatus() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CombinedCommitStatus CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CombinedCommitStatus CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CombinedCommitStatus(); + return new global::GitHub.Models.CombinedCommitStatus(); } /// /// The deserialization information for the current model @@ -87,13 +89,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"repository", n => { Repository = n.GetObjectValue(MinimalRepository.CreateFromDiscriminatorValue); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"state", n => { State = n.GetStringValue(); } }, - {"statuses", n => { Statuses = n.GetCollectionOfObjectValues(SimpleCommitStatus.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.MinimalRepository.CreateFromDiscriminatorValue); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "state", n => { State = n.GetStringValue(); } }, + { "statuses", n => { Statuses = n.GetCollectionOfObjectValues(global::GitHub.Models.SimpleCommitStatus.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -104,10 +106,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("commit_url", CommitUrl); - writer.WriteObjectValue("repository", Repository); + writer.WriteObjectValue("repository", Repository); writer.WriteStringValue("sha", Sha); writer.WriteStringValue("state", State); - writer.WriteCollectionOfObjectValues("statuses", Statuses); + writer.WriteCollectionOfObjectValues("statuses", Statuses); writer.WriteIntValue("total_count", TotalCount); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/Commit.cs b/src/GitHub/Models/Commit.cs index fda8cfcd..18dcc112 100644 --- a/src/GitHub/Models/Commit.cs +++ b/src/GitHub/Models/Commit.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Commit /// - public class Commit : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Commit : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The author property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Commit_author? Author { get; set; } + public global::GitHub.Models.Commit.Commit_author? Author { get; set; } #nullable restore #else - public Commit_author Author { get; set; } + public global::GitHub.Models.Commit.Commit_author Author { get; set; } #endif /// The comments_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -31,26 +33,26 @@ public class Commit : IAdditionalDataHolder, IParsable /// The commit property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Commit_commit? CommitProp { get; set; } + public global::GitHub.Models.Commit_commit? CommitProp { get; set; } #nullable restore #else - public Commit_commit CommitProp { get; set; } + public global::GitHub.Models.Commit_commit CommitProp { get; set; } #endif /// The committer property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Commit_committer? Committer { get; set; } + public global::GitHub.Models.Commit.Commit_committer? Committer { get; set; } #nullable restore #else - public Commit_committer Committer { get; set; } + public global::GitHub.Models.Commit.Commit_committer Committer { get; set; } #endif /// The files property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Files { get; set; } + public List? Files { get; set; } #nullable restore #else - public List Files { get; set; } + public List Files { get; set; } #endif /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -71,10 +73,10 @@ public class Commit : IAdditionalDataHolder, IParsable /// The parents property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Parents { get; set; } + public List? Parents { get; set; } #nullable restore #else - public List Parents { get; set; } + public List Parents { get; set; } #endif /// The sha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,10 +89,10 @@ public class Commit : IAdditionalDataHolder, IParsable /// The stats property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Commit_stats? Stats { get; set; } + public global::GitHub.Models.Commit_stats? Stats { get; set; } #nullable restore #else - public Commit_stats Stats { get; set; } + public global::GitHub.Models.Commit_stats Stats { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -101,7 +103,7 @@ public class Commit : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Commit() { @@ -110,12 +112,12 @@ public Commit() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Commit CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Commit CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Commit(); + return new global::GitHub.Models.Commit(); } /// /// The deserialization information for the current model @@ -125,17 +127,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author", n => { Author = n.GetObjectValue(Commit_author.CreateFromDiscriminatorValue); } }, - {"comments_url", n => { CommentsUrl = n.GetStringValue(); } }, - {"commit", n => { CommitProp = n.GetObjectValue(Commit_commit.CreateFromDiscriminatorValue); } }, - {"committer", n => { Committer = n.GetObjectValue(Commit_committer.CreateFromDiscriminatorValue); } }, - {"files", n => { Files = n.GetCollectionOfObjectValues(DiffEntry.CreateFromDiscriminatorValue)?.ToList(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"parents", n => { Parents = n.GetCollectionOfObjectValues(Commit_parents.CreateFromDiscriminatorValue)?.ToList(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"stats", n => { Stats = n.GetObjectValue(Commit_stats.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "author", n => { Author = n.GetObjectValue(global::GitHub.Models.Commit.Commit_author.CreateFromDiscriminatorValue); } }, + { "comments_url", n => { CommentsUrl = n.GetStringValue(); } }, + { "commit", n => { CommitProp = n.GetObjectValue(global::GitHub.Models.Commit_commit.CreateFromDiscriminatorValue); } }, + { "committer", n => { Committer = n.GetObjectValue(global::GitHub.Models.Commit.Commit_committer.CreateFromDiscriminatorValue); } }, + { "files", n => { Files = n.GetCollectionOfObjectValues(global::GitHub.Models.DiffEntry.CreateFromDiscriminatorValue)?.AsList(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "parents", n => { Parents = n.GetCollectionOfObjectValues(global::GitHub.Models.Commit_parents.CreateFromDiscriminatorValue)?.AsList(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "stats", n => { Stats = n.GetObjectValue(global::GitHub.Models.Commit_stats.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -145,57 +147,58 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("author", Author); + writer.WriteObjectValue("author", Author); writer.WriteStringValue("comments_url", CommentsUrl); - writer.WriteObjectValue("commit", CommitProp); - writer.WriteObjectValue("committer", Committer); - writer.WriteCollectionOfObjectValues("files", Files); + writer.WriteObjectValue("commit", CommitProp); + writer.WriteObjectValue("committer", Committer); + writer.WriteCollectionOfObjectValues("files", Files); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteStringValue("node_id", NodeId); - writer.WriteCollectionOfObjectValues("parents", Parents); + writer.WriteCollectionOfObjectValues("parents", Parents); writer.WriteStringValue("sha", Sha); - writer.WriteObjectValue("stats", Stats); + writer.WriteObjectValue("stats", Stats); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class Commit_author : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Commit_author : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.EmptyObject? EmptyObject { get; set; } + public global::GitHub.Models.EmptyObject? EmptyObject { get; set; } #nullable restore #else - public GitHub.Models.EmptyObject EmptyObject { get; set; } + public global::GitHub.Models.EmptyObject EmptyObject { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SimpleUser? SimpleUser { get; set; } + public global::GitHub.Models.SimpleUser? SimpleUser { get; set; } #nullable restore #else - public GitHub.Models.SimpleUser SimpleUser { get; set; } + public global::GitHub.Models.SimpleUser SimpleUser { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Commit_author CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Commit.Commit_author CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new Commit_author(); + var result = new global::GitHub.Models.Commit.Commit_author(); if("empty-object".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.EmptyObject = new GitHub.Models.EmptyObject(); + result.EmptyObject = new global::GitHub.Models.EmptyObject(); } else if("simple-user".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.SimpleUser = new GitHub.Models.SimpleUser(); + result.SimpleUser = new global::GitHub.Models.SimpleUser(); } return result; } @@ -224,52 +227,53 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(EmptyObject != null) { - writer.WriteObjectValue(null, EmptyObject); + writer.WriteObjectValue(null, EmptyObject); } else if(SimpleUser != null) { - writer.WriteObjectValue(null, SimpleUser); + writer.WriteObjectValue(null, SimpleUser); } } } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class Commit_committer : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Commit_committer : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.EmptyObject? EmptyObject { get; set; } + public global::GitHub.Models.EmptyObject? EmptyObject { get; set; } #nullable restore #else - public GitHub.Models.EmptyObject EmptyObject { get; set; } + public global::GitHub.Models.EmptyObject EmptyObject { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SimpleUser? SimpleUser { get; set; } + public global::GitHub.Models.SimpleUser? SimpleUser { get; set; } #nullable restore #else - public GitHub.Models.SimpleUser SimpleUser { get; set; } + public global::GitHub.Models.SimpleUser SimpleUser { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Commit_committer CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Commit.Commit_committer CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new Commit_committer(); + var result = new global::GitHub.Models.Commit.Commit_committer(); if("empty-object".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.EmptyObject = new GitHub.Models.EmptyObject(); + result.EmptyObject = new global::GitHub.Models.EmptyObject(); } else if("simple-user".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.SimpleUser = new GitHub.Models.SimpleUser(); + result.SimpleUser = new global::GitHub.Models.SimpleUser(); } return result; } @@ -298,11 +302,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(EmptyObject != null) { - writer.WriteObjectValue(null, EmptyObject); + writer.WriteObjectValue(null, EmptyObject); } else if(SimpleUser != null) { - writer.WriteObjectValue(null, SimpleUser); + writer.WriteObjectValue(null, SimpleUser); } } } diff --git a/src/GitHub/Models/Commit503Error.cs b/src/GitHub/Models/Commit503Error.cs index fbda6f3c..55f8b451 100644 --- a/src/GitHub/Models/Commit503Error.cs +++ b/src/GitHub/Models/Commit503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Commit503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class Commit503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class Commit503Error : ApiException, IAdditionalDataHolder, IParsable #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Commit503Error() { @@ -46,12 +42,12 @@ public Commit503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Commit503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Commit503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Commit503Error(); + return new global::GitHub.Models.Commit503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CommitActivity.cs b/src/GitHub/Models/CommitActivity.cs index 333d7eaf..8933894f 100644 --- a/src/GitHub/Models/CommitActivity.cs +++ b/src/GitHub/Models/CommitActivity.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Commit Activity /// - public class CommitActivity : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommitActivity : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -25,7 +27,7 @@ public class CommitActivity : IAdditionalDataHolder, IParsable /// The week property public int? Week { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitActivity() { @@ -34,12 +36,12 @@ public CommitActivity() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CommitActivity CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CommitActivity CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitActivity(); + return new global::GitHub.Models.CommitActivity(); } /// /// The deserialization information for the current model @@ -49,9 +51,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"days", n => { Days = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"total", n => { Total = n.GetIntValue(); } }, - {"week", n => { Week = n.GetIntValue(); } }, + { "days", n => { Days = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "total", n => { Total = n.GetIntValue(); } }, + { "week", n => { Week = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/CommitComment.cs b/src/GitHub/Models/CommitComment.cs index 6b8b4713..390ad704 100644 --- a/src/GitHub/Models/CommitComment.cs +++ b/src/GitHub/Models/CommitComment.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Commit Comment /// - public class CommitComment : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommitComment : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// How the author is associated with the repository. - public GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } + public global::GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } /// The body property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -65,10 +67,10 @@ public class CommitComment : IAdditionalDataHolder, IParsable /// The reactions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ReactionRollup? Reactions { get; set; } + public global::GitHub.Models.ReactionRollup? Reactions { get; set; } #nullable restore #else - public ReactionRollup Reactions { get; set; } + public global::GitHub.Models.ReactionRollup Reactions { get; set; } #endif /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } @@ -83,13 +85,13 @@ public class CommitComment : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? User { get; set; } + public global::GitHub.Models.NullableSimpleUser? User { get; set; } #nullable restore #else - public NullableSimpleUser User { get; set; } + public global::GitHub.Models.NullableSimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitComment() { @@ -98,12 +100,12 @@ public CommitComment() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CommitComment CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CommitComment CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitComment(); + return new global::GitHub.Models.CommitComment(); } /// /// The deserialization information for the current model @@ -113,20 +115,20 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, - {"body", n => { Body = n.GetStringValue(); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"line", n => { Line = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"position", n => { Position = n.GetIntValue(); } }, - {"reactions", n => { Reactions = n.GetObjectValue(ReactionRollup.CreateFromDiscriminatorValue); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "line", n => { Line = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "position", n => { Position = n.GetIntValue(); } }, + { "reactions", n => { Reactions = n.GetObjectValue(global::GitHub.Models.ReactionRollup.CreateFromDiscriminatorValue); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -136,7 +138,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("author_association", AuthorAssociation); + writer.WriteEnumValue("author_association", AuthorAssociation); writer.WriteStringValue("body", Body); writer.WriteStringValue("commit_id", CommitId); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); @@ -146,10 +148,10 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("node_id", NodeId); writer.WriteStringValue("path", Path); writer.WriteIntValue("position", Position); - writer.WriteObjectValue("reactions", Reactions); + writer.WriteObjectValue("reactions", Reactions); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CommitComparison.cs b/src/GitHub/Models/CommitComparison.cs index 84e74fc6..3a58a0e5 100644 --- a/src/GitHub/Models/CommitComparison.cs +++ b/src/GitHub/Models/CommitComparison.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Commit Comparison /// - public class CommitComparison : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommitComparison : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -17,20 +19,20 @@ public class CommitComparison : IAdditionalDataHolder, IParsable /// Commit #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Commit? BaseCommit { get; set; } + public global::GitHub.Models.Commit? BaseCommit { get; set; } #nullable restore #else - public Commit BaseCommit { get; set; } + public global::GitHub.Models.Commit BaseCommit { get; set; } #endif /// The behind_by property public int? BehindBy { get; set; } /// The commits property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Commits { get; set; } + public List? Commits { get; set; } #nullable restore #else - public List Commits { get; set; } + public List Commits { get; set; } #endif /// The diff_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -43,10 +45,10 @@ public class CommitComparison : IAdditionalDataHolder, IParsable /// The files property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Files { get; set; } + public List? Files { get; set; } #nullable restore #else - public List Files { get; set; } + public List Files { get; set; } #endif /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -59,10 +61,10 @@ public class CommitComparison : IAdditionalDataHolder, IParsable /// Commit #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Commit? MergeBaseCommit { get; set; } + public global::GitHub.Models.Commit? MergeBaseCommit { get; set; } #nullable restore #else - public Commit MergeBaseCommit { get; set; } + public global::GitHub.Models.Commit MergeBaseCommit { get; set; } #endif /// The patch_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +83,7 @@ public class CommitComparison : IAdditionalDataHolder, IParsable public string PermalinkUrl { get; set; } #endif /// The status property - public CommitComparison_status? Status { get; set; } + public global::GitHub.Models.CommitComparison_status? Status { get; set; } /// The total_commits property public int? TotalCommits { get; set; } /// The url property @@ -93,7 +95,7 @@ public class CommitComparison : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitComparison() { @@ -102,12 +104,12 @@ public CommitComparison() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CommitComparison CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CommitComparison CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitComparison(); + return new global::GitHub.Models.CommitComparison(); } /// /// The deserialization information for the current model @@ -117,19 +119,19 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"ahead_by", n => { AheadBy = n.GetIntValue(); } }, - {"base_commit", n => { BaseCommit = n.GetObjectValue(Commit.CreateFromDiscriminatorValue); } }, - {"behind_by", n => { BehindBy = n.GetIntValue(); } }, - {"commits", n => { Commits = n.GetCollectionOfObjectValues(Commit.CreateFromDiscriminatorValue)?.ToList(); } }, - {"diff_url", n => { DiffUrl = n.GetStringValue(); } }, - {"files", n => { Files = n.GetCollectionOfObjectValues(DiffEntry.CreateFromDiscriminatorValue)?.ToList(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"merge_base_commit", n => { MergeBaseCommit = n.GetObjectValue(Commit.CreateFromDiscriminatorValue); } }, - {"patch_url", n => { PatchUrl = n.GetStringValue(); } }, - {"permalink_url", n => { PermalinkUrl = n.GetStringValue(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, - {"total_commits", n => { TotalCommits = n.GetIntValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "ahead_by", n => { AheadBy = n.GetIntValue(); } }, + { "base_commit", n => { BaseCommit = n.GetObjectValue(global::GitHub.Models.Commit.CreateFromDiscriminatorValue); } }, + { "behind_by", n => { BehindBy = n.GetIntValue(); } }, + { "commits", n => { Commits = n.GetCollectionOfObjectValues(global::GitHub.Models.Commit.CreateFromDiscriminatorValue)?.AsList(); } }, + { "diff_url", n => { DiffUrl = n.GetStringValue(); } }, + { "files", n => { Files = n.GetCollectionOfObjectValues(global::GitHub.Models.DiffEntry.CreateFromDiscriminatorValue)?.AsList(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "merge_base_commit", n => { MergeBaseCommit = n.GetObjectValue(global::GitHub.Models.Commit.CreateFromDiscriminatorValue); } }, + { "patch_url", n => { PatchUrl = n.GetStringValue(); } }, + { "permalink_url", n => { PermalinkUrl = n.GetStringValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + { "total_commits", n => { TotalCommits = n.GetIntValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -140,16 +142,16 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("ahead_by", AheadBy); - writer.WriteObjectValue("base_commit", BaseCommit); + writer.WriteObjectValue("base_commit", BaseCommit); writer.WriteIntValue("behind_by", BehindBy); - writer.WriteCollectionOfObjectValues("commits", Commits); + writer.WriteCollectionOfObjectValues("commits", Commits); writer.WriteStringValue("diff_url", DiffUrl); - writer.WriteCollectionOfObjectValues("files", Files); + writer.WriteCollectionOfObjectValues("files", Files); writer.WriteStringValue("html_url", HtmlUrl); - writer.WriteObjectValue("merge_base_commit", MergeBaseCommit); + writer.WriteObjectValue("merge_base_commit", MergeBaseCommit); writer.WriteStringValue("patch_url", PatchUrl); writer.WriteStringValue("permalink_url", PermalinkUrl); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("status", Status); writer.WriteIntValue("total_commits", TotalCommits); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/CommitComparison503Error.cs b/src/GitHub/Models/CommitComparison503Error.cs index ceb23d63..c6106078 100644 --- a/src/GitHub/Models/CommitComparison503Error.cs +++ b/src/GitHub/Models/CommitComparison503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CommitComparison503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class CommitComparison503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class CommitComparison503Error : ApiException, IAdditionalDataHolder, IPa #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitComparison503Error() { @@ -46,12 +42,12 @@ public CommitComparison503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CommitComparison503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CommitComparison503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitComparison503Error(); + return new global::GitHub.Models.CommitComparison503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CommitComparison_status.cs b/src/GitHub/Models/CommitComparison_status.cs index 9b34256b..c333009b 100644 --- a/src/GitHub/Models/CommitComparison_status.cs +++ b/src/GitHub/Models/CommitComparison_status.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum CommitComparison_status #pragma warning restore CS1591 diff --git a/src/GitHub/Models/CommitSearchResultItem.cs b/src/GitHub/Models/CommitSearchResultItem.cs index 965811c2..5e200c9b 100644 --- a/src/GitHub/Models/CommitSearchResultItem.cs +++ b/src/GitHub/Models/CommitSearchResultItem.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Commit Search Result Item /// - public class CommitSearchResultItem : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommitSearchResultItem : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Author { get; set; } + public global::GitHub.Models.NullableSimpleUser? Author { get; set; } #nullable restore #else - public NullableSimpleUser Author { get; set; } + public global::GitHub.Models.NullableSimpleUser Author { get; set; } #endif /// The comments_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -31,18 +33,18 @@ public class CommitSearchResultItem : IAdditionalDataHolder, IParsable /// The commit property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CommitSearchResultItem_commit? Commit { get; set; } + public global::GitHub.Models.CommitSearchResultItem_commit? Commit { get; set; } #nullable restore #else - public CommitSearchResultItem_commit Commit { get; set; } + public global::GitHub.Models.CommitSearchResultItem_commit Commit { get; set; } #endif /// Metaproperties for Git author/committer information. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableGitUser? Committer { get; set; } + public global::GitHub.Models.NullableGitUser? Committer { get; set; } #nullable restore #else - public NullableGitUser Committer { get; set; } + public global::GitHub.Models.NullableGitUser Committer { get; set; } #endif /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -63,18 +65,18 @@ public class CommitSearchResultItem : IAdditionalDataHolder, IParsable /// The parents property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Parents { get; set; } + public List? Parents { get; set; } #nullable restore #else - public List Parents { get; set; } + public List Parents { get; set; } #endif /// Minimal Repository #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MinimalRepository? Repository { get; set; } + public global::GitHub.Models.MinimalRepository? Repository { get; set; } #nullable restore #else - public MinimalRepository Repository { get; set; } + public global::GitHub.Models.MinimalRepository Repository { get; set; } #endif /// The score property public double? Score { get; set; } @@ -89,10 +91,10 @@ public class CommitSearchResultItem : IAdditionalDataHolder, IParsable /// The text_matches property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? TextMatches { get; set; } + public List? TextMatches { get; set; } #nullable restore #else - public List TextMatches { get; set; } + public List TextMatches { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -103,7 +105,7 @@ public class CommitSearchResultItem : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitSearchResultItem() { @@ -112,12 +114,12 @@ public CommitSearchResultItem() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CommitSearchResultItem CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CommitSearchResultItem CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitSearchResultItem(); + return new global::GitHub.Models.CommitSearchResultItem(); } /// /// The deserialization information for the current model @@ -127,18 +129,18 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author", n => { Author = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"comments_url", n => { CommentsUrl = n.GetStringValue(); } }, - {"commit", n => { Commit = n.GetObjectValue(CommitSearchResultItem_commit.CreateFromDiscriminatorValue); } }, - {"committer", n => { Committer = n.GetObjectValue(NullableGitUser.CreateFromDiscriminatorValue); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"parents", n => { Parents = n.GetCollectionOfObjectValues(CommitSearchResultItem_parents.CreateFromDiscriminatorValue)?.ToList(); } }, - {"repository", n => { Repository = n.GetObjectValue(MinimalRepository.CreateFromDiscriminatorValue); } }, - {"score", n => { Score = n.GetDoubleValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"text_matches", n => { TextMatches = n.GetCollectionOfObjectValues(Commits.CreateFromDiscriminatorValue)?.ToList(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "author", n => { Author = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "comments_url", n => { CommentsUrl = n.GetStringValue(); } }, + { "commit", n => { Commit = n.GetObjectValue(global::GitHub.Models.CommitSearchResultItem_commit.CreateFromDiscriminatorValue); } }, + { "committer", n => { Committer = n.GetObjectValue(global::GitHub.Models.NullableGitUser.CreateFromDiscriminatorValue); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "parents", n => { Parents = n.GetCollectionOfObjectValues(global::GitHub.Models.CommitSearchResultItem_parents.CreateFromDiscriminatorValue)?.AsList(); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.MinimalRepository.CreateFromDiscriminatorValue); } }, + { "score", n => { Score = n.GetDoubleValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "text_matches", n => { TextMatches = n.GetCollectionOfObjectValues(global::GitHub.Models.Commits.CreateFromDiscriminatorValue)?.AsList(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -148,17 +150,17 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("author", Author); + writer.WriteObjectValue("author", Author); writer.WriteStringValue("comments_url", CommentsUrl); - writer.WriteObjectValue("commit", Commit); - writer.WriteObjectValue("committer", Committer); + writer.WriteObjectValue("commit", Commit); + writer.WriteObjectValue("committer", Committer); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteStringValue("node_id", NodeId); - writer.WriteCollectionOfObjectValues("parents", Parents); - writer.WriteObjectValue("repository", Repository); + writer.WriteCollectionOfObjectValues("parents", Parents); + writer.WriteObjectValue("repository", Repository); writer.WriteDoubleValue("score", Score); writer.WriteStringValue("sha", Sha); - writer.WriteCollectionOfObjectValues("text_matches", TextMatches); + writer.WriteCollectionOfObjectValues("text_matches", TextMatches); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/CommitSearchResultItem_commit.cs b/src/GitHub/Models/CommitSearchResultItem_commit.cs index 69783f2d..9836c621 100644 --- a/src/GitHub/Models/CommitSearchResultItem_commit.cs +++ b/src/GitHub/Models/CommitSearchResultItem_commit.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CommitSearchResultItem_commit : IAdditionalDataHolder, IParsable + public partial class CommitSearchResultItem_commit : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,20 +16,20 @@ public class CommitSearchResultItem_commit : IAdditionalDataHolder, IParsable /// The author property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CommitSearchResultItem_commit_author? Author { get; set; } + public global::GitHub.Models.CommitSearchResultItem_commit_author? Author { get; set; } #nullable restore #else - public CommitSearchResultItem_commit_author Author { get; set; } + public global::GitHub.Models.CommitSearchResultItem_commit_author Author { get; set; } #endif /// The comment_count property public int? CommentCount { get; set; } /// Metaproperties for Git author/committer information. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableGitUser? Committer { get; set; } + public global::GitHub.Models.NullableGitUser? Committer { get; set; } #nullable restore #else - public NullableGitUser Committer { get; set; } + public global::GitHub.Models.NullableGitUser Committer { get; set; } #endif /// The message property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -40,10 +42,10 @@ public class CommitSearchResultItem_commit : IAdditionalDataHolder, IParsable /// The tree property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CommitSearchResultItem_commit_tree? Tree { get; set; } + public global::GitHub.Models.CommitSearchResultItem_commit_tree? Tree { get; set; } #nullable restore #else - public CommitSearchResultItem_commit_tree Tree { get; set; } + public global::GitHub.Models.CommitSearchResultItem_commit_tree Tree { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -56,13 +58,13 @@ public class CommitSearchResultItem_commit : IAdditionalDataHolder, IParsable /// The verification property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Verification? Verification { get; set; } + public global::GitHub.Models.Verification? Verification { get; set; } #nullable restore #else - public GitHub.Models.Verification Verification { get; set; } + public global::GitHub.Models.Verification Verification { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitSearchResultItem_commit() { @@ -71,12 +73,12 @@ public CommitSearchResultItem_commit() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CommitSearchResultItem_commit CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CommitSearchResultItem_commit CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitSearchResultItem_commit(); + return new global::GitHub.Models.CommitSearchResultItem_commit(); } /// /// The deserialization information for the current model @@ -86,13 +88,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author", n => { Author = n.GetObjectValue(CommitSearchResultItem_commit_author.CreateFromDiscriminatorValue); } }, - {"comment_count", n => { CommentCount = n.GetIntValue(); } }, - {"committer", n => { Committer = n.GetObjectValue(NullableGitUser.CreateFromDiscriminatorValue); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"tree", n => { Tree = n.GetObjectValue(CommitSearchResultItem_commit_tree.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"verification", n => { Verification = n.GetObjectValue(GitHub.Models.Verification.CreateFromDiscriminatorValue); } }, + { "author", n => { Author = n.GetObjectValue(global::GitHub.Models.CommitSearchResultItem_commit_author.CreateFromDiscriminatorValue); } }, + { "comment_count", n => { CommentCount = n.GetIntValue(); } }, + { "committer", n => { Committer = n.GetObjectValue(global::GitHub.Models.NullableGitUser.CreateFromDiscriminatorValue); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "tree", n => { Tree = n.GetObjectValue(global::GitHub.Models.CommitSearchResultItem_commit_tree.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "verification", n => { Verification = n.GetObjectValue(global::GitHub.Models.Verification.CreateFromDiscriminatorValue); } }, }; } /// @@ -102,13 +104,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("author", Author); + writer.WriteObjectValue("author", Author); writer.WriteIntValue("comment_count", CommentCount); - writer.WriteObjectValue("committer", Committer); + writer.WriteObjectValue("committer", Committer); writer.WriteStringValue("message", Message); - writer.WriteObjectValue("tree", Tree); + writer.WriteObjectValue("tree", Tree); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("verification", Verification); + writer.WriteObjectValue("verification", Verification); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CommitSearchResultItem_commit_author.cs b/src/GitHub/Models/CommitSearchResultItem_commit_author.cs index 57f7a7d4..bc6c72b7 100644 --- a/src/GitHub/Models/CommitSearchResultItem_commit_author.cs +++ b/src/GitHub/Models/CommitSearchResultItem_commit_author.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CommitSearchResultItem_commit_author : IAdditionalDataHolder, IParsable + public partial class CommitSearchResultItem_commit_author : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,7 +32,7 @@ public class CommitSearchResultItem_commit_author : IAdditionalDataHolder, IPars public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitSearchResultItem_commit_author() { @@ -39,12 +41,12 @@ public CommitSearchResultItem_commit_author() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CommitSearchResultItem_commit_author CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CommitSearchResultItem_commit_author CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitSearchResultItem_commit_author(); + return new global::GitHub.Models.CommitSearchResultItem_commit_author(); } /// /// The deserialization information for the current model @@ -54,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"date", n => { Date = n.GetDateTimeOffsetValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "date", n => { Date = n.GetDateTimeOffsetValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/CommitSearchResultItem_commit_tree.cs b/src/GitHub/Models/CommitSearchResultItem_commit_tree.cs index d2a16736..4fce0efc 100644 --- a/src/GitHub/Models/CommitSearchResultItem_commit_tree.cs +++ b/src/GitHub/Models/CommitSearchResultItem_commit_tree.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CommitSearchResultItem_commit_tree : IAdditionalDataHolder, IParsable + public partial class CommitSearchResultItem_commit_tree : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class CommitSearchResultItem_commit_tree : IAdditionalDataHolder, IParsab public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitSearchResultItem_commit_tree() { @@ -37,12 +39,12 @@ public CommitSearchResultItem_commit_tree() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CommitSearchResultItem_commit_tree CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CommitSearchResultItem_commit_tree CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitSearchResultItem_commit_tree(); + return new global::GitHub.Models.CommitSearchResultItem_commit_tree(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"sha", n => { Sha = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/CommitSearchResultItem_parents.cs b/src/GitHub/Models/CommitSearchResultItem_parents.cs index 4922e980..d353770f 100644 --- a/src/GitHub/Models/CommitSearchResultItem_parents.cs +++ b/src/GitHub/Models/CommitSearchResultItem_parents.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CommitSearchResultItem_parents : IAdditionalDataHolder, IParsable + public partial class CommitSearchResultItem_parents : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class CommitSearchResultItem_parents : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitSearchResultItem_parents() { @@ -45,12 +47,12 @@ public CommitSearchResultItem_parents() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CommitSearchResultItem_parents CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CommitSearchResultItem_parents CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitSearchResultItem_parents(); + return new global::GitHub.Models.CommitSearchResultItem_parents(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Commit_commit.cs b/src/GitHub/Models/Commit_commit.cs index fdc5929b..8932082a 100644 --- a/src/GitHub/Models/Commit_commit.cs +++ b/src/GitHub/Models/Commit_commit.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Commit_commit : IAdditionalDataHolder, IParsable + public partial class Commit_commit : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,20 +16,20 @@ public class Commit_commit : IAdditionalDataHolder, IParsable /// Metaproperties for Git author/committer information. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableGitUser? Author { get; set; } + public global::GitHub.Models.NullableGitUser? Author { get; set; } #nullable restore #else - public NullableGitUser Author { get; set; } + public global::GitHub.Models.NullableGitUser Author { get; set; } #endif /// The comment_count property public int? CommentCount { get; set; } /// Metaproperties for Git author/committer information. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableGitUser? Committer { get; set; } + public global::GitHub.Models.NullableGitUser? Committer { get; set; } #nullable restore #else - public NullableGitUser Committer { get; set; } + public global::GitHub.Models.NullableGitUser Committer { get; set; } #endif /// The message property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -40,10 +42,10 @@ public class Commit_commit : IAdditionalDataHolder, IParsable /// The tree property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Commit_commit_tree? Tree { get; set; } + public global::GitHub.Models.Commit_commit_tree? Tree { get; set; } #nullable restore #else - public Commit_commit_tree Tree { get; set; } + public global::GitHub.Models.Commit_commit_tree Tree { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -56,13 +58,13 @@ public class Commit_commit : IAdditionalDataHolder, IParsable /// The verification property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Verification? Verification { get; set; } + public global::GitHub.Models.Verification? Verification { get; set; } #nullable restore #else - public GitHub.Models.Verification Verification { get; set; } + public global::GitHub.Models.Verification Verification { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Commit_commit() { @@ -71,12 +73,12 @@ public Commit_commit() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Commit_commit CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Commit_commit CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Commit_commit(); + return new global::GitHub.Models.Commit_commit(); } /// /// The deserialization information for the current model @@ -86,13 +88,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author", n => { Author = n.GetObjectValue(NullableGitUser.CreateFromDiscriminatorValue); } }, - {"comment_count", n => { CommentCount = n.GetIntValue(); } }, - {"committer", n => { Committer = n.GetObjectValue(NullableGitUser.CreateFromDiscriminatorValue); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"tree", n => { Tree = n.GetObjectValue(Commit_commit_tree.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"verification", n => { Verification = n.GetObjectValue(GitHub.Models.Verification.CreateFromDiscriminatorValue); } }, + { "author", n => { Author = n.GetObjectValue(global::GitHub.Models.NullableGitUser.CreateFromDiscriminatorValue); } }, + { "comment_count", n => { CommentCount = n.GetIntValue(); } }, + { "committer", n => { Committer = n.GetObjectValue(global::GitHub.Models.NullableGitUser.CreateFromDiscriminatorValue); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "tree", n => { Tree = n.GetObjectValue(global::GitHub.Models.Commit_commit_tree.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "verification", n => { Verification = n.GetObjectValue(global::GitHub.Models.Verification.CreateFromDiscriminatorValue); } }, }; } /// @@ -102,13 +104,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("author", Author); + writer.WriteObjectValue("author", Author); writer.WriteIntValue("comment_count", CommentCount); - writer.WriteObjectValue("committer", Committer); + writer.WriteObjectValue("committer", Committer); writer.WriteStringValue("message", Message); - writer.WriteObjectValue("tree", Tree); + writer.WriteObjectValue("tree", Tree); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("verification", Verification); + writer.WriteObjectValue("verification", Verification); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/Commit_commit_tree.cs b/src/GitHub/Models/Commit_commit_tree.cs index dd9db673..426fb176 100644 --- a/src/GitHub/Models/Commit_commit_tree.cs +++ b/src/GitHub/Models/Commit_commit_tree.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Commit_commit_tree : IAdditionalDataHolder, IParsable + public partial class Commit_commit_tree : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class Commit_commit_tree : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Commit_commit_tree() { @@ -37,12 +39,12 @@ public Commit_commit_tree() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Commit_commit_tree CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Commit_commit_tree CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Commit_commit_tree(); + return new global::GitHub.Models.Commit_commit_tree(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"sha", n => { Sha = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Commit_parents.cs b/src/GitHub/Models/Commit_parents.cs index 31aef6f6..8bdc1353 100644 --- a/src/GitHub/Models/Commit_parents.cs +++ b/src/GitHub/Models/Commit_parents.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Commit_parents : IAdditionalDataHolder, IParsable + public partial class Commit_parents : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class Commit_parents : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Commit_parents() { @@ -45,12 +47,12 @@ public Commit_parents() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Commit_parents CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Commit_parents CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Commit_parents(); + return new global::GitHub.Models.Commit_parents(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Commit_stats.cs b/src/GitHub/Models/Commit_stats.cs index 6c374277..c19f18bb 100644 --- a/src/GitHub/Models/Commit_stats.cs +++ b/src/GitHub/Models/Commit_stats.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Commit_stats : IAdditionalDataHolder, IParsable + public partial class Commit_stats : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -18,7 +20,7 @@ public class Commit_stats : IAdditionalDataHolder, IParsable /// The total property public int? Total { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Commit_stats() { @@ -27,12 +29,12 @@ public Commit_stats() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Commit_stats CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Commit_stats CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Commit_stats(); + return new global::GitHub.Models.Commit_stats(); } /// /// The deserialization information for the current model @@ -42,9 +44,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"additions", n => { Additions = n.GetIntValue(); } }, - {"deletions", n => { Deletions = n.GetIntValue(); } }, - {"total", n => { Total = n.GetIntValue(); } }, + { "additions", n => { Additions = n.GetIntValue(); } }, + { "deletions", n => { Deletions = n.GetIntValue(); } }, + { "total", n => { Total = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/Commits.cs b/src/GitHub/Models/Commits.cs index d349bc21..ec1d7bf8 100644 --- a/src/GitHub/Models/Commits.cs +++ b/src/GitHub/Models/Commits.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Commits : IAdditionalDataHolder, IParsable + public partial class Commits : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,10 +24,10 @@ public class Commits : IAdditionalDataHolder, IParsable /// The matches property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Matches { get; set; } + public List? Matches { get; set; } #nullable restore #else - public List Matches { get; set; } + public List Matches { get; set; } #endif /// The object_type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -52,7 +54,7 @@ public class Commits : IAdditionalDataHolder, IParsable public string Property { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Commits() { @@ -61,12 +63,12 @@ public Commits() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Commits CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Commits CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Commits(); + return new global::GitHub.Models.Commits(); } /// /// The deserialization information for the current model @@ -76,11 +78,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"fragment", n => { Fragment = n.GetStringValue(); } }, - {"matches", n => { Matches = n.GetCollectionOfObjectValues(Commits_matches.CreateFromDiscriminatorValue)?.ToList(); } }, - {"object_type", n => { ObjectType = n.GetStringValue(); } }, - {"object_url", n => { ObjectUrl = n.GetStringValue(); } }, - {"property", n => { Property = n.GetStringValue(); } }, + { "fragment", n => { Fragment = n.GetStringValue(); } }, + { "matches", n => { Matches = n.GetCollectionOfObjectValues(global::GitHub.Models.Commits_matches.CreateFromDiscriminatorValue)?.AsList(); } }, + { "object_type", n => { ObjectType = n.GetStringValue(); } }, + { "object_url", n => { ObjectUrl = n.GetStringValue(); } }, + { "property", n => { Property = n.GetStringValue(); } }, }; } /// @@ -91,7 +93,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("fragment", Fragment); - writer.WriteCollectionOfObjectValues("matches", Matches); + writer.WriteCollectionOfObjectValues("matches", Matches); writer.WriteStringValue("object_type", ObjectType); writer.WriteStringValue("object_url", ObjectUrl); writer.WriteStringValue("property", Property); diff --git a/src/GitHub/Models/Commits_matches.cs b/src/GitHub/Models/Commits_matches.cs index 062cc424..6545db0e 100644 --- a/src/GitHub/Models/Commits_matches.cs +++ b/src/GitHub/Models/Commits_matches.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Commits_matches : IAdditionalDataHolder, IParsable + public partial class Commits_matches : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class Commits_matches : IAdditionalDataHolder, IParsable public string Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Commits_matches() { @@ -37,12 +39,12 @@ public Commits_matches() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Commits_matches CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Commits_matches CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Commits_matches(); + return new global::GitHub.Models.Commits_matches(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"indices", n => { Indices = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"text", n => { Text = n.GetStringValue(); } }, + { "indices", n => { Indices = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "text", n => { Text = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/CommunityProfile.cs b/src/GitHub/Models/CommunityProfile.cs index bf943c7f..c12f8b96 100644 --- a/src/GitHub/Models/CommunityProfile.cs +++ b/src/GitHub/Models/CommunityProfile.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Community Profile /// - public class CommunityProfile : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommunityProfile : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -33,17 +35,17 @@ public class CommunityProfile : IAdditionalDataHolder, IParsable /// The files property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CommunityProfile_files? Files { get; set; } + public global::GitHub.Models.CommunityProfile_files? Files { get; set; } #nullable restore #else - public CommunityProfile_files Files { get; set; } + public global::GitHub.Models.CommunityProfile_files Files { get; set; } #endif /// The health_percentage property public int? HealthPercentage { get; set; } /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommunityProfile() { @@ -52,12 +54,12 @@ public CommunityProfile() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CommunityProfile CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CommunityProfile CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommunityProfile(); + return new global::GitHub.Models.CommunityProfile(); } /// /// The deserialization information for the current model @@ -67,12 +69,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content_reports_enabled", n => { ContentReportsEnabled = n.GetBoolValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"documentation", n => { Documentation = n.GetStringValue(); } }, - {"files", n => { Files = n.GetObjectValue(CommunityProfile_files.CreateFromDiscriminatorValue); } }, - {"health_percentage", n => { HealthPercentage = n.GetIntValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "content_reports_enabled", n => { ContentReportsEnabled = n.GetBoolValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "documentation", n => { Documentation = n.GetStringValue(); } }, + { "files", n => { Files = n.GetObjectValue(global::GitHub.Models.CommunityProfile_files.CreateFromDiscriminatorValue); } }, + { "health_percentage", n => { HealthPercentage = n.GetIntValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, }; } /// @@ -85,7 +87,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("content_reports_enabled", ContentReportsEnabled); writer.WriteStringValue("description", Description); writer.WriteStringValue("documentation", Documentation); - writer.WriteObjectValue("files", Files); + writer.WriteObjectValue("files", Files); writer.WriteIntValue("health_percentage", HealthPercentage); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/CommunityProfile_files.cs b/src/GitHub/Models/CommunityProfile_files.cs index 63e748fa..245120de 100644 --- a/src/GitHub/Models/CommunityProfile_files.cs +++ b/src/GitHub/Models/CommunityProfile_files.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CommunityProfile_files : IAdditionalDataHolder, IParsable + public partial class CommunityProfile_files : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,61 +16,61 @@ public class CommunityProfile_files : IAdditionalDataHolder, IParsable /// Code of Conduct Simple #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableCodeOfConductSimple? CodeOfConduct { get; set; } + public global::GitHub.Models.NullableCodeOfConductSimple? CodeOfConduct { get; set; } #nullable restore #else - public NullableCodeOfConductSimple CodeOfConduct { get; set; } + public global::GitHub.Models.NullableCodeOfConductSimple CodeOfConduct { get; set; } #endif /// The code_of_conduct_file property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableCommunityHealthFile? CodeOfConductFile { get; set; } + public global::GitHub.Models.NullableCommunityHealthFile? CodeOfConductFile { get; set; } #nullable restore #else - public NullableCommunityHealthFile CodeOfConductFile { get; set; } + public global::GitHub.Models.NullableCommunityHealthFile CodeOfConductFile { get; set; } #endif /// The contributing property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableCommunityHealthFile? Contributing { get; set; } + public global::GitHub.Models.NullableCommunityHealthFile? Contributing { get; set; } #nullable restore #else - public NullableCommunityHealthFile Contributing { get; set; } + public global::GitHub.Models.NullableCommunityHealthFile Contributing { get; set; } #endif /// The issue_template property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableCommunityHealthFile? IssueTemplate { get; set; } + public global::GitHub.Models.NullableCommunityHealthFile? IssueTemplate { get; set; } #nullable restore #else - public NullableCommunityHealthFile IssueTemplate { get; set; } + public global::GitHub.Models.NullableCommunityHealthFile IssueTemplate { get; set; } #endif /// License Simple #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableLicenseSimple? License { get; set; } + public global::GitHub.Models.NullableLicenseSimple? License { get; set; } #nullable restore #else - public NullableLicenseSimple License { get; set; } + public global::GitHub.Models.NullableLicenseSimple License { get; set; } #endif /// The pull_request_template property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableCommunityHealthFile? PullRequestTemplate { get; set; } + public global::GitHub.Models.NullableCommunityHealthFile? PullRequestTemplate { get; set; } #nullable restore #else - public NullableCommunityHealthFile PullRequestTemplate { get; set; } + public global::GitHub.Models.NullableCommunityHealthFile PullRequestTemplate { get; set; } #endif /// The readme property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableCommunityHealthFile? Readme { get; set; } + public global::GitHub.Models.NullableCommunityHealthFile? Readme { get; set; } #nullable restore #else - public NullableCommunityHealthFile Readme { get; set; } + public global::GitHub.Models.NullableCommunityHealthFile Readme { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommunityProfile_files() { @@ -77,12 +79,12 @@ public CommunityProfile_files() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CommunityProfile_files CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CommunityProfile_files CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommunityProfile_files(); + return new global::GitHub.Models.CommunityProfile_files(); } /// /// The deserialization information for the current model @@ -92,13 +94,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code_of_conduct", n => { CodeOfConduct = n.GetObjectValue(NullableCodeOfConductSimple.CreateFromDiscriminatorValue); } }, - {"code_of_conduct_file", n => { CodeOfConductFile = n.GetObjectValue(NullableCommunityHealthFile.CreateFromDiscriminatorValue); } }, - {"contributing", n => { Contributing = n.GetObjectValue(NullableCommunityHealthFile.CreateFromDiscriminatorValue); } }, - {"issue_template", n => { IssueTemplate = n.GetObjectValue(NullableCommunityHealthFile.CreateFromDiscriminatorValue); } }, - {"license", n => { License = n.GetObjectValue(NullableLicenseSimple.CreateFromDiscriminatorValue); } }, - {"pull_request_template", n => { PullRequestTemplate = n.GetObjectValue(NullableCommunityHealthFile.CreateFromDiscriminatorValue); } }, - {"readme", n => { Readme = n.GetObjectValue(NullableCommunityHealthFile.CreateFromDiscriminatorValue); } }, + { "code_of_conduct", n => { CodeOfConduct = n.GetObjectValue(global::GitHub.Models.NullableCodeOfConductSimple.CreateFromDiscriminatorValue); } }, + { "code_of_conduct_file", n => { CodeOfConductFile = n.GetObjectValue(global::GitHub.Models.NullableCommunityHealthFile.CreateFromDiscriminatorValue); } }, + { "contributing", n => { Contributing = n.GetObjectValue(global::GitHub.Models.NullableCommunityHealthFile.CreateFromDiscriminatorValue); } }, + { "issue_template", n => { IssueTemplate = n.GetObjectValue(global::GitHub.Models.NullableCommunityHealthFile.CreateFromDiscriminatorValue); } }, + { "license", n => { License = n.GetObjectValue(global::GitHub.Models.NullableLicenseSimple.CreateFromDiscriminatorValue); } }, + { "pull_request_template", n => { PullRequestTemplate = n.GetObjectValue(global::GitHub.Models.NullableCommunityHealthFile.CreateFromDiscriminatorValue); } }, + { "readme", n => { Readme = n.GetObjectValue(global::GitHub.Models.NullableCommunityHealthFile.CreateFromDiscriminatorValue); } }, }; } /// @@ -108,13 +110,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("code_of_conduct", CodeOfConduct); - writer.WriteObjectValue("code_of_conduct_file", CodeOfConductFile); - writer.WriteObjectValue("contributing", Contributing); - writer.WriteObjectValue("issue_template", IssueTemplate); - writer.WriteObjectValue("license", License); - writer.WriteObjectValue("pull_request_template", PullRequestTemplate); - writer.WriteObjectValue("readme", Readme); + writer.WriteObjectValue("code_of_conduct", CodeOfConduct); + writer.WriteObjectValue("code_of_conduct_file", CodeOfConductFile); + writer.WriteObjectValue("contributing", Contributing); + writer.WriteObjectValue("issue_template", IssueTemplate); + writer.WriteObjectValue("license", License); + writer.WriteObjectValue("pull_request_template", PullRequestTemplate); + writer.WriteObjectValue("readme", Readme); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/ContentFile.cs b/src/GitHub/Models/ContentFile.cs index 56147c5b..a3dffef9 100644 --- a/src/GitHub/Models/ContentFile.cs +++ b/src/GitHub/Models/ContentFile.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Content File /// - public class ContentFile : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ContentFile : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -55,10 +57,10 @@ public class ContentFile : IAdditionalDataHolder, IParsable /// The _links property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ContentFile__links? Links { get; set; } + public global::GitHub.Models.ContentFile__links? Links { get; set; } #nullable restore #else - public ContentFile__links Links { get; set; } + public global::GitHub.Models.ContentFile__links Links { get; set; } #endif /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -103,7 +105,7 @@ public class ContentFile : IAdditionalDataHolder, IParsable public string Target { get; set; } #endif /// The type property - public ContentFile_type? Type { get; set; } + public global::GitHub.Models.ContentFile_type? Type { get; set; } /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -113,7 +115,7 @@ public class ContentFile : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ContentFile() { @@ -122,12 +124,12 @@ public ContentFile() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ContentFile CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ContentFile CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ContentFile(); + return new global::GitHub.Models.ContentFile(); } /// /// The deserialization information for the current model @@ -137,20 +139,20 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content", n => { Content = n.GetStringValue(); } }, - {"download_url", n => { DownloadUrl = n.GetStringValue(); } }, - {"encoding", n => { Encoding = n.GetStringValue(); } }, - {"git_url", n => { GitUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"_links", n => { Links = n.GetObjectValue(ContentFile__links.CreateFromDiscriminatorValue); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"size", n => { Size = n.GetIntValue(); } }, - {"submodule_git_url", n => { SubmoduleGitUrl = n.GetStringValue(); } }, - {"target", n => { Target = n.GetStringValue(); } }, - {"type", n => { Type = n.GetEnumValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "content", n => { Content = n.GetStringValue(); } }, + { "download_url", n => { DownloadUrl = n.GetStringValue(); } }, + { "encoding", n => { Encoding = n.GetStringValue(); } }, + { "git_url", n => { GitUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "_links", n => { Links = n.GetObjectValue(global::GitHub.Models.ContentFile__links.CreateFromDiscriminatorValue); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "size", n => { Size = n.GetIntValue(); } }, + { "submodule_git_url", n => { SubmoduleGitUrl = n.GetStringValue(); } }, + { "target", n => { Target = n.GetStringValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -165,14 +167,14 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("encoding", Encoding); writer.WriteStringValue("git_url", GitUrl); writer.WriteStringValue("html_url", HtmlUrl); - writer.WriteObjectValue("_links", Links); + writer.WriteObjectValue("_links", Links); writer.WriteStringValue("name", Name); writer.WriteStringValue("path", Path); writer.WriteStringValue("sha", Sha); writer.WriteIntValue("size", Size); writer.WriteStringValue("submodule_git_url", SubmoduleGitUrl); writer.WriteStringValue("target", Target); - writer.WriteEnumValue("type", Type); + writer.WriteEnumValue("type", Type); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/ContentFile__links.cs b/src/GitHub/Models/ContentFile__links.cs index 0519d251..1c1c10fe 100644 --- a/src/GitHub/Models/ContentFile__links.cs +++ b/src/GitHub/Models/ContentFile__links.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ContentFile__links : IAdditionalDataHolder, IParsable + public partial class ContentFile__links : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class ContentFile__links : IAdditionalDataHolder, IParsable public string Self { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ContentFile__links() { @@ -45,12 +47,12 @@ public ContentFile__links() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ContentFile__links CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ContentFile__links CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ContentFile__links(); + return new global::GitHub.Models.ContentFile__links(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"git", n => { Git = n.GetStringValue(); } }, - {"html", n => { Html = n.GetStringValue(); } }, - {"self", n => { Self = n.GetStringValue(); } }, + { "git", n => { Git = n.GetStringValue(); } }, + { "html", n => { Html = n.GetStringValue(); } }, + { "self", n => { Self = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ContentFile_type.cs b/src/GitHub/Models/ContentFile_type.cs index ed80f2fc..9e305750 100644 --- a/src/GitHub/Models/ContentFile_type.cs +++ b/src/GitHub/Models/ContentFile_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum ContentFile_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/ContentSubmodule.cs b/src/GitHub/Models/ContentSubmodule.cs index 9a766a4e..e27ec54a 100644 --- a/src/GitHub/Models/ContentSubmodule.cs +++ b/src/GitHub/Models/ContentSubmodule.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// An object describing a submodule /// - public class ContentSubmodule : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ContentSubmodule : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -39,10 +41,10 @@ public class ContentSubmodule : IAdditionalDataHolder, IParsable /// The _links property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ContentSubmodule__links? Links { get; set; } + public global::GitHub.Models.ContentSubmodule__links? Links { get; set; } #nullable restore #else - public ContentSubmodule__links Links { get; set; } + public global::GitHub.Models.ContentSubmodule__links Links { get; set; } #endif /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -79,7 +81,7 @@ public class ContentSubmodule : IAdditionalDataHolder, IParsable public string SubmoduleGitUrl { get; set; } #endif /// The type property - public ContentSubmodule_type? Type { get; set; } + public global::GitHub.Models.ContentSubmodule_type? Type { get; set; } /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -89,7 +91,7 @@ public class ContentSubmodule : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ContentSubmodule() { @@ -98,12 +100,12 @@ public ContentSubmodule() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ContentSubmodule CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ContentSubmodule CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ContentSubmodule(); + return new global::GitHub.Models.ContentSubmodule(); } /// /// The deserialization information for the current model @@ -113,17 +115,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"download_url", n => { DownloadUrl = n.GetStringValue(); } }, - {"git_url", n => { GitUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"_links", n => { Links = n.GetObjectValue(ContentSubmodule__links.CreateFromDiscriminatorValue); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"size", n => { Size = n.GetIntValue(); } }, - {"submodule_git_url", n => { SubmoduleGitUrl = n.GetStringValue(); } }, - {"type", n => { Type = n.GetEnumValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "download_url", n => { DownloadUrl = n.GetStringValue(); } }, + { "git_url", n => { GitUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "_links", n => { Links = n.GetObjectValue(global::GitHub.Models.ContentSubmodule__links.CreateFromDiscriminatorValue); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "size", n => { Size = n.GetIntValue(); } }, + { "submodule_git_url", n => { SubmoduleGitUrl = n.GetStringValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -136,13 +138,13 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("download_url", DownloadUrl); writer.WriteStringValue("git_url", GitUrl); writer.WriteStringValue("html_url", HtmlUrl); - writer.WriteObjectValue("_links", Links); + writer.WriteObjectValue("_links", Links); writer.WriteStringValue("name", Name); writer.WriteStringValue("path", Path); writer.WriteStringValue("sha", Sha); writer.WriteIntValue("size", Size); writer.WriteStringValue("submodule_git_url", SubmoduleGitUrl); - writer.WriteEnumValue("type", Type); + writer.WriteEnumValue("type", Type); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/ContentSubmodule__links.cs b/src/GitHub/Models/ContentSubmodule__links.cs index 441b5d8f..4e85e505 100644 --- a/src/GitHub/Models/ContentSubmodule__links.cs +++ b/src/GitHub/Models/ContentSubmodule__links.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ContentSubmodule__links : IAdditionalDataHolder, IParsable + public partial class ContentSubmodule__links : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class ContentSubmodule__links : IAdditionalDataHolder, IParsable public string Self { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ContentSubmodule__links() { @@ -45,12 +47,12 @@ public ContentSubmodule__links() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ContentSubmodule__links CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ContentSubmodule__links CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ContentSubmodule__links(); + return new global::GitHub.Models.ContentSubmodule__links(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"git", n => { Git = n.GetStringValue(); } }, - {"html", n => { Html = n.GetStringValue(); } }, - {"self", n => { Self = n.GetStringValue(); } }, + { "git", n => { Git = n.GetStringValue(); } }, + { "html", n => { Html = n.GetStringValue(); } }, + { "self", n => { Self = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ContentSubmodule_type.cs b/src/GitHub/Models/ContentSubmodule_type.cs index 7b6992ea..522ca96f 100644 --- a/src/GitHub/Models/ContentSubmodule_type.cs +++ b/src/GitHub/Models/ContentSubmodule_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum ContentSubmodule_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/ContentSymlink.cs b/src/GitHub/Models/ContentSymlink.cs index 60fb222f..292a75f4 100644 --- a/src/GitHub/Models/ContentSymlink.cs +++ b/src/GitHub/Models/ContentSymlink.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// An object describing a symlink /// - public class ContentSymlink : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ContentSymlink : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -39,10 +41,10 @@ public class ContentSymlink : IAdditionalDataHolder, IParsable /// The _links property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ContentSymlink__links? Links { get; set; } + public global::GitHub.Models.ContentSymlink__links? Links { get; set; } #nullable restore #else - public ContentSymlink__links Links { get; set; } + public global::GitHub.Models.ContentSymlink__links Links { get; set; } #endif /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -79,7 +81,7 @@ public class ContentSymlink : IAdditionalDataHolder, IParsable public string Target { get; set; } #endif /// The type property - public ContentSymlink_type? Type { get; set; } + public global::GitHub.Models.ContentSymlink_type? Type { get; set; } /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -89,7 +91,7 @@ public class ContentSymlink : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ContentSymlink() { @@ -98,12 +100,12 @@ public ContentSymlink() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ContentSymlink CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ContentSymlink CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ContentSymlink(); + return new global::GitHub.Models.ContentSymlink(); } /// /// The deserialization information for the current model @@ -113,17 +115,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"download_url", n => { DownloadUrl = n.GetStringValue(); } }, - {"git_url", n => { GitUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"_links", n => { Links = n.GetObjectValue(ContentSymlink__links.CreateFromDiscriminatorValue); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"size", n => { Size = n.GetIntValue(); } }, - {"target", n => { Target = n.GetStringValue(); } }, - {"type", n => { Type = n.GetEnumValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "download_url", n => { DownloadUrl = n.GetStringValue(); } }, + { "git_url", n => { GitUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "_links", n => { Links = n.GetObjectValue(global::GitHub.Models.ContentSymlink__links.CreateFromDiscriminatorValue); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "size", n => { Size = n.GetIntValue(); } }, + { "target", n => { Target = n.GetStringValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -136,13 +138,13 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("download_url", DownloadUrl); writer.WriteStringValue("git_url", GitUrl); writer.WriteStringValue("html_url", HtmlUrl); - writer.WriteObjectValue("_links", Links); + writer.WriteObjectValue("_links", Links); writer.WriteStringValue("name", Name); writer.WriteStringValue("path", Path); writer.WriteStringValue("sha", Sha); writer.WriteIntValue("size", Size); writer.WriteStringValue("target", Target); - writer.WriteEnumValue("type", Type); + writer.WriteEnumValue("type", Type); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/ContentSymlink__links.cs b/src/GitHub/Models/ContentSymlink__links.cs index ed0af517..1bb40d23 100644 --- a/src/GitHub/Models/ContentSymlink__links.cs +++ b/src/GitHub/Models/ContentSymlink__links.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ContentSymlink__links : IAdditionalDataHolder, IParsable + public partial class ContentSymlink__links : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class ContentSymlink__links : IAdditionalDataHolder, IParsable public string Self { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ContentSymlink__links() { @@ -45,12 +47,12 @@ public ContentSymlink__links() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ContentSymlink__links CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ContentSymlink__links CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ContentSymlink__links(); + return new global::GitHub.Models.ContentSymlink__links(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"git", n => { Git = n.GetStringValue(); } }, - {"html", n => { Html = n.GetStringValue(); } }, - {"self", n => { Self = n.GetStringValue(); } }, + { "git", n => { Git = n.GetStringValue(); } }, + { "html", n => { Html = n.GetStringValue(); } }, + { "self", n => { Self = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ContentSymlink_type.cs b/src/GitHub/Models/ContentSymlink_type.cs index 96373abb..b1fad8e1 100644 --- a/src/GitHub/Models/ContentSymlink_type.cs +++ b/src/GitHub/Models/ContentSymlink_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum ContentSymlink_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/ContentTraffic.cs b/src/GitHub/Models/ContentTraffic.cs index 99f4789e..ffcaf6f0 100644 --- a/src/GitHub/Models/ContentTraffic.cs +++ b/src/GitHub/Models/ContentTraffic.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Content Traffic /// - public class ContentTraffic : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ContentTraffic : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -33,7 +35,7 @@ public class ContentTraffic : IAdditionalDataHolder, IParsable /// The uniques property public int? Uniques { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ContentTraffic() { @@ -42,12 +44,12 @@ public ContentTraffic() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ContentTraffic CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ContentTraffic CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ContentTraffic(); + return new global::GitHub.Models.ContentTraffic(); } /// /// The deserialization information for the current model @@ -57,10 +59,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"count", n => { Count = n.GetIntValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, - {"uniques", n => { Uniques = n.GetIntValue(); } }, + { "count", n => { Count = n.GetIntValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, + { "uniques", n => { Uniques = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/Contributor.cs b/src/GitHub/Models/Contributor.cs index 66b52f87..86bc31be 100644 --- a/src/GitHub/Models/Contributor.cs +++ b/src/GitHub/Models/Contributor.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Contributor /// - public class Contributor : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Contributor : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -163,7 +165,7 @@ public class Contributor : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Contributor() { @@ -172,12 +174,12 @@ public Contributor() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Contributor CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Contributor CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Contributor(); + return new global::GitHub.Models.Contributor(); } /// /// The deserialization information for the current model @@ -187,27 +189,27 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"contributions", n => { Contributions = n.GetIntValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"followers_url", n => { FollowersUrl = n.GetStringValue(); } }, - {"following_url", n => { FollowingUrl = n.GetStringValue(); } }, - {"gists_url", n => { GistsUrl = n.GetStringValue(); } }, - {"gravatar_id", n => { GravatarId = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, - {"received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, - {"repos_url", n => { ReposUrl = n.GetStringValue(); } }, - {"site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, - {"starred_url", n => { StarredUrl = n.GetStringValue(); } }, - {"subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "contributions", n => { Contributions = n.GetIntValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "followers_url", n => { FollowersUrl = n.GetStringValue(); } }, + { "following_url", n => { FollowingUrl = n.GetStringValue(); } }, + { "gists_url", n => { GistsUrl = n.GetStringValue(); } }, + { "gravatar_id", n => { GravatarId = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, + { "received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, + { "repos_url", n => { ReposUrl = n.GetStringValue(); } }, + { "site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, + { "starred_url", n => { StarredUrl = n.GetStringValue(); } }, + { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ContributorActivity.cs b/src/GitHub/Models/ContributorActivity.cs index 86613421..d9b8603a 100644 --- a/src/GitHub/Models/ContributorActivity.cs +++ b/src/GitHub/Models/ContributorActivity.cs @@ -1,37 +1,39 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Contributor Activity /// - public class ContributorActivity : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ContributorActivity : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Author { get; set; } + public global::GitHub.Models.NullableSimpleUser? Author { get; set; } #nullable restore #else - public NullableSimpleUser Author { get; set; } + public global::GitHub.Models.NullableSimpleUser Author { get; set; } #endif /// The total property public int? Total { get; set; } /// The weeks property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Weeks { get; set; } + public List? Weeks { get; set; } #nullable restore #else - public List Weeks { get; set; } + public List Weeks { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ContributorActivity() { @@ -40,12 +42,12 @@ public ContributorActivity() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ContributorActivity CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ContributorActivity CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ContributorActivity(); + return new global::GitHub.Models.ContributorActivity(); } /// /// The deserialization information for the current model @@ -55,9 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author", n => { Author = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"total", n => { Total = n.GetIntValue(); } }, - {"weeks", n => { Weeks = n.GetCollectionOfObjectValues(ContributorActivity_weeks.CreateFromDiscriminatorValue)?.ToList(); } }, + { "author", n => { Author = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "total", n => { Total = n.GetIntValue(); } }, + { "weeks", n => { Weeks = n.GetCollectionOfObjectValues(global::GitHub.Models.ContributorActivity_weeks.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -67,9 +69,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("author", Author); + writer.WriteObjectValue("author", Author); writer.WriteIntValue("total", Total); - writer.WriteCollectionOfObjectValues("weeks", Weeks); + writer.WriteCollectionOfObjectValues("weeks", Weeks); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/ContributorActivity_weeks.cs b/src/GitHub/Models/ContributorActivity_weeks.cs index 27d0917d..66b01bb6 100644 --- a/src/GitHub/Models/ContributorActivity_weeks.cs +++ b/src/GitHub/Models/ContributorActivity_weeks.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ContributorActivity_weeks : IAdditionalDataHolder, IParsable + public partial class ContributorActivity_weeks : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The a property @@ -20,7 +22,7 @@ public class ContributorActivity_weeks : IAdditionalDataHolder, IParsable /// The w property public int? W { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ContributorActivity_weeks() { @@ -29,12 +31,12 @@ public ContributorActivity_weeks() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ContributorActivity_weeks CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ContributorActivity_weeks CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ContributorActivity_weeks(); + return new global::GitHub.Models.ContributorActivity_weeks(); } /// /// The deserialization information for the current model @@ -44,10 +46,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"a", n => { A = n.GetIntValue(); } }, - {"c", n => { C = n.GetIntValue(); } }, - {"d", n => { D = n.GetIntValue(); } }, - {"w", n => { W = n.GetIntValue(); } }, + { "a", n => { A = n.GetIntValue(); } }, + { "c", n => { C = n.GetIntValue(); } }, + { "d", n => { D = n.GetIntValue(); } }, + { "w", n => { W = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/ConvertedNoteToIssueIssueEvent.cs b/src/GitHub/Models/ConvertedNoteToIssueIssueEvent.cs index 5ac4fe88..9f97dda0 100644 --- a/src/GitHub/Models/ConvertedNoteToIssueIssueEvent.cs +++ b/src/GitHub/Models/ConvertedNoteToIssueIssueEvent.cs @@ -1,22 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Converted Note to Issue Issue Event /// - public class ConvertedNoteToIssueIssueEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ConvertedNoteToIssueIssueEvent : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -65,18 +67,18 @@ public class ConvertedNoteToIssueIssueEvent : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Integration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.Integration? PerformedViaGithubApp { get; set; } #nullable restore #else - public Integration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.Integration PerformedViaGithubApp { get; set; } #endif /// The project_card property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ConvertedNoteToIssueIssueEvent_project_card? ProjectCard { get; set; } + public global::GitHub.Models.ConvertedNoteToIssueIssueEvent_project_card? ProjectCard { get; set; } #nullable restore #else - public ConvertedNoteToIssueIssueEvent_project_card ProjectCard { get; set; } + public global::GitHub.Models.ConvertedNoteToIssueIssueEvent_project_card ProjectCard { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +89,7 @@ public class ConvertedNoteToIssueIssueEvent : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ConvertedNoteToIssueIssueEvent() { @@ -96,12 +98,12 @@ public ConvertedNoteToIssueIssueEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ConvertedNoteToIssueIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ConvertedNoteToIssueIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ConvertedNoteToIssueIssueEvent(); + return new global::GitHub.Models.ConvertedNoteToIssueIssueEvent(); } /// /// The deserialization information for the current model @@ -111,16 +113,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(Integration.CreateFromDiscriminatorValue); } }, - {"project_card", n => { ProjectCard = n.GetObjectValue(ConvertedNoteToIssueIssueEvent_project_card.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.Integration.CreateFromDiscriminatorValue); } }, + { "project_card", n => { ProjectCard = n.GetObjectValue(global::GitHub.Models.ConvertedNoteToIssueIssueEvent_project_card.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -130,15 +132,15 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("actor", Actor); writer.WriteStringValue("commit_id", CommitId); writer.WriteStringValue("commit_url", CommitUrl); writer.WriteStringValue("created_at", CreatedAt); writer.WriteStringValue("event", Event); writer.WriteIntValue("id", Id); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); - writer.WriteObjectValue("project_card", ProjectCard); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("project_card", ProjectCard); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/ConvertedNoteToIssueIssueEvent_project_card.cs b/src/GitHub/Models/ConvertedNoteToIssueIssueEvent_project_card.cs index 6af90953..c8eaa21e 100644 --- a/src/GitHub/Models/ConvertedNoteToIssueIssueEvent_project_card.cs +++ b/src/GitHub/Models/ConvertedNoteToIssueIssueEvent_project_card.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ConvertedNoteToIssueIssueEvent_project_card : IAdditionalDataHolder, IParsable + public partial class ConvertedNoteToIssueIssueEvent_project_card : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -48,7 +50,7 @@ public class ConvertedNoteToIssueIssueEvent_project_card : IAdditionalDataHolder public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ConvertedNoteToIssueIssueEvent_project_card() { @@ -57,12 +59,12 @@ public ConvertedNoteToIssueIssueEvent_project_card() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ConvertedNoteToIssueIssueEvent_project_card CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ConvertedNoteToIssueIssueEvent_project_card CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ConvertedNoteToIssueIssueEvent_project_card(); + return new global::GitHub.Models.ConvertedNoteToIssueIssueEvent_project_card(); } /// /// The deserialization information for the current model @@ -72,12 +74,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"column_name", n => { ColumnName = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"previous_column_name", n => { PreviousColumnName = n.GetStringValue(); } }, - {"project_id", n => { ProjectId = n.GetIntValue(); } }, - {"project_url", n => { ProjectUrl = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "column_name", n => { ColumnName = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "previous_column_name", n => { PreviousColumnName = n.GetStringValue(); } }, + { "project_id", n => { ProjectId = n.GetIntValue(); } }, + { "project_url", n => { ProjectUrl = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/CopilotOrganizationDetails.cs b/src/GitHub/Models/CopilotOrganizationDetails.cs index 92c2c029..cd05d181 100644 --- a/src/GitHub/Models/CopilotOrganizationDetails.cs +++ b/src/GitHub/Models/CopilotOrganizationDetails.cs @@ -1,37 +1,39 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Information about the seat breakdown and policies set for an organization with a Copilot Business subscription. /// - public class CopilotOrganizationDetails : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CopilotOrganizationDetails : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The organization policy for allowing or disallowing organization members to use Copilot within their CLI. - public CopilotOrganizationDetails_cli? Cli { get; set; } + public global::GitHub.Models.CopilotOrganizationDetails_cli? Cli { get; set; } /// The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor. - public CopilotOrganizationDetails_ide_chat? IdeChat { get; set; } + public global::GitHub.Models.CopilotOrganizationDetails_ide_chat? IdeChat { get; set; } /// The organization policy for allowing or disallowing organization members to use Copilot features within github.com. - public CopilotOrganizationDetails_platform_chat? PlatformChat { get; set; } + public global::GitHub.Models.CopilotOrganizationDetails_platform_chat? PlatformChat { get; set; } /// The organization policy for allowing or disallowing Copilot to make suggestions that match public code. - public CopilotOrganizationDetails_public_code_suggestions? PublicCodeSuggestions { get; set; } + public global::GitHub.Models.CopilotOrganizationDetails_public_code_suggestions? PublicCodeSuggestions { get; set; } /// The breakdown of Copilot Business seats for the organization. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CopilotSeatBreakdown? SeatBreakdown { get; set; } + public global::GitHub.Models.CopilotSeatBreakdown? SeatBreakdown { get; set; } #nullable restore #else - public CopilotSeatBreakdown SeatBreakdown { get; set; } + public global::GitHub.Models.CopilotSeatBreakdown SeatBreakdown { get; set; } #endif /// The mode of assigning new seats. - public CopilotOrganizationDetails_seat_management_setting? SeatManagementSetting { get; set; } + public global::GitHub.Models.CopilotOrganizationDetails_seat_management_setting? SeatManagementSetting { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopilotOrganizationDetails() { @@ -40,12 +42,12 @@ public CopilotOrganizationDetails() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CopilotOrganizationDetails CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CopilotOrganizationDetails CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopilotOrganizationDetails(); + return new global::GitHub.Models.CopilotOrganizationDetails(); } /// /// The deserialization information for the current model @@ -55,12 +57,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"cli", n => { Cli = n.GetEnumValue(); } }, - {"ide_chat", n => { IdeChat = n.GetEnumValue(); } }, - {"platform_chat", n => { PlatformChat = n.GetEnumValue(); } }, - {"public_code_suggestions", n => { PublicCodeSuggestions = n.GetEnumValue(); } }, - {"seat_breakdown", n => { SeatBreakdown = n.GetObjectValue(CopilotSeatBreakdown.CreateFromDiscriminatorValue); } }, - {"seat_management_setting", n => { SeatManagementSetting = n.GetEnumValue(); } }, + { "cli", n => { Cli = n.GetEnumValue(); } }, + { "ide_chat", n => { IdeChat = n.GetEnumValue(); } }, + { "platform_chat", n => { PlatformChat = n.GetEnumValue(); } }, + { "public_code_suggestions", n => { PublicCodeSuggestions = n.GetEnumValue(); } }, + { "seat_breakdown", n => { SeatBreakdown = n.GetObjectValue(global::GitHub.Models.CopilotSeatBreakdown.CreateFromDiscriminatorValue); } }, + { "seat_management_setting", n => { SeatManagementSetting = n.GetEnumValue(); } }, }; } /// @@ -70,12 +72,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("cli", Cli); - writer.WriteEnumValue("ide_chat", IdeChat); - writer.WriteEnumValue("platform_chat", PlatformChat); - writer.WriteEnumValue("public_code_suggestions", PublicCodeSuggestions); - writer.WriteObjectValue("seat_breakdown", SeatBreakdown); - writer.WriteEnumValue("seat_management_setting", SeatManagementSetting); + writer.WriteEnumValue("cli", Cli); + writer.WriteEnumValue("ide_chat", IdeChat); + writer.WriteEnumValue("platform_chat", PlatformChat); + writer.WriteEnumValue("public_code_suggestions", PublicCodeSuggestions); + writer.WriteObjectValue("seat_breakdown", SeatBreakdown); + writer.WriteEnumValue("seat_management_setting", SeatManagementSetting); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CopilotOrganizationDetails_cli.cs b/src/GitHub/Models/CopilotOrganizationDetails_cli.cs index 127e4a84..b31446b3 100644 --- a/src/GitHub/Models/CopilotOrganizationDetails_cli.cs +++ b/src/GitHub/Models/CopilotOrganizationDetails_cli.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The organization policy for allowing or disallowing organization members to use Copilot within their CLI. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CopilotOrganizationDetails_cli { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Models/CopilotOrganizationDetails_ide_chat.cs b/src/GitHub/Models/CopilotOrganizationDetails_ide_chat.cs index ca7825a3..030587ab 100644 --- a/src/GitHub/Models/CopilotOrganizationDetails_ide_chat.cs +++ b/src/GitHub/Models/CopilotOrganizationDetails_ide_chat.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CopilotOrganizationDetails_ide_chat { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Models/CopilotOrganizationDetails_platform_chat.cs b/src/GitHub/Models/CopilotOrganizationDetails_platform_chat.cs index c3615853..a3f3cc31 100644 --- a/src/GitHub/Models/CopilotOrganizationDetails_platform_chat.cs +++ b/src/GitHub/Models/CopilotOrganizationDetails_platform_chat.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The organization policy for allowing or disallowing organization members to use Copilot features within github.com. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CopilotOrganizationDetails_platform_chat { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Models/CopilotOrganizationDetails_public_code_suggestions.cs b/src/GitHub/Models/CopilotOrganizationDetails_public_code_suggestions.cs index 5ed05f25..00a1d33b 100644 --- a/src/GitHub/Models/CopilotOrganizationDetails_public_code_suggestions.cs +++ b/src/GitHub/Models/CopilotOrganizationDetails_public_code_suggestions.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The organization policy for allowing or disallowing Copilot to make suggestions that match public code. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CopilotOrganizationDetails_public_code_suggestions { [EnumMember(Value = "allow")] diff --git a/src/GitHub/Models/CopilotOrganizationDetails_seat_management_setting.cs b/src/GitHub/Models/CopilotOrganizationDetails_seat_management_setting.cs index f634ea17..e350fafe 100644 --- a/src/GitHub/Models/CopilotOrganizationDetails_seat_management_setting.cs +++ b/src/GitHub/Models/CopilotOrganizationDetails_seat_management_setting.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The mode of assigning new seats. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CopilotOrganizationDetails_seat_management_setting { [EnumMember(Value = "assign_all")] diff --git a/src/GitHub/Models/CopilotSeatBreakdown.cs b/src/GitHub/Models/CopilotSeatBreakdown.cs index 96fc0531..1c73fb09 100644 --- a/src/GitHub/Models/CopilotSeatBreakdown.cs +++ b/src/GitHub/Models/CopilotSeatBreakdown.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The breakdown of Copilot Business seats for the organization. /// - public class CopilotSeatBreakdown : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CopilotSeatBreakdown : IAdditionalDataHolder, IParsable { /// The number of seats that have used Copilot during the current billing cycle. public int? ActiveThisCycle { get; set; } @@ -25,7 +27,7 @@ public class CopilotSeatBreakdown : IAdditionalDataHolder, IParsable /// The total number of seats being billed for the organization as of the current billing cycle. public int? Total { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopilotSeatBreakdown() { @@ -34,12 +36,12 @@ public CopilotSeatBreakdown() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CopilotSeatBreakdown CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CopilotSeatBreakdown CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopilotSeatBreakdown(); + return new global::GitHub.Models.CopilotSeatBreakdown(); } /// /// The deserialization information for the current model @@ -49,12 +51,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"active_this_cycle", n => { ActiveThisCycle = n.GetIntValue(); } }, - {"added_this_cycle", n => { AddedThisCycle = n.GetIntValue(); } }, - {"inactive_this_cycle", n => { InactiveThisCycle = n.GetIntValue(); } }, - {"pending_cancellation", n => { PendingCancellation = n.GetIntValue(); } }, - {"pending_invitation", n => { PendingInvitation = n.GetIntValue(); } }, - {"total", n => { Total = n.GetIntValue(); } }, + { "active_this_cycle", n => { ActiveThisCycle = n.GetIntValue(); } }, + { "added_this_cycle", n => { AddedThisCycle = n.GetIntValue(); } }, + { "inactive_this_cycle", n => { InactiveThisCycle = n.GetIntValue(); } }, + { "pending_cancellation", n => { PendingCancellation = n.GetIntValue(); } }, + { "pending_invitation", n => { PendingInvitation = n.GetIntValue(); } }, + { "total", n => { Total = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/CopilotSeatDetails.cs b/src/GitHub/Models/CopilotSeatDetails.cs index f39f014e..51501c3e 100644 --- a/src/GitHub/Models/CopilotSeatDetails.cs +++ b/src/GitHub/Models/CopilotSeatDetails.cs @@ -1,31 +1,33 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Information about a Copilot Business seat assignment for a user, team, or organization. /// - public class CopilotSeatDetails : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CopilotSeatDetails : IParsable { /// The assignee that has been granted access to GitHub Copilot. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CopilotSeatDetails_assignee? Assignee { get; set; } + public global::GitHub.Models.CopilotSeatDetails_assignee? Assignee { get; set; } #nullable restore #else - public CopilotSeatDetails_assignee Assignee { get; set; } + public global::GitHub.Models.CopilotSeatDetails_assignee Assignee { get; set; } #endif /// The team through which the assignee is granted access to GitHub Copilot, if applicable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CopilotSeatDetails_assigning_team? AssigningTeam { get; set; } + public global::GitHub.Models.CopilotSeatDetails.CopilotSeatDetails_assigning_team? AssigningTeam { get; set; } #nullable restore #else - public CopilotSeatDetails_assigning_team AssigningTeam { get; set; } + public global::GitHub.Models.CopilotSeatDetails.CopilotSeatDetails_assigning_team AssigningTeam { get; set; } #endif /// Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format. public DateTimeOffset? CreatedAt { get; set; } @@ -42,10 +44,10 @@ public class CopilotSeatDetails : IParsable /// The organization to which this seat belongs. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CopilotSeatDetails_organization? Organization { get; set; } + public global::GitHub.Models.CopilotSeatDetails_organization? Organization { get; set; } #nullable restore #else - public CopilotSeatDetails_organization Organization { get; set; } + public global::GitHub.Models.CopilotSeatDetails_organization Organization { get; set; } #endif /// The pending cancellation date for the seat, in `YYYY-MM-DD` format. This will be null unless the assignee's Copilot access has been canceled during the current billing cycle. If the seat has been cancelled, this corresponds to the start of the organization's next billing cycle. public Date? PendingCancellationDate { get; set; } @@ -54,12 +56,12 @@ public class CopilotSeatDetails : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CopilotSeatDetails CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CopilotSeatDetails CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopilotSeatDetails(); + return new global::GitHub.Models.CopilotSeatDetails(); } /// /// The deserialization information for the current model @@ -69,14 +71,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"assignee", n => { Assignee = n.GetObjectValue(CopilotSeatDetails_assignee.CreateFromDiscriminatorValue); } }, - {"assigning_team", n => { AssigningTeam = n.GetObjectValue(CopilotSeatDetails_assigning_team.CreateFromDiscriminatorValue); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"last_activity_at", n => { LastActivityAt = n.GetDateTimeOffsetValue(); } }, - {"last_activity_editor", n => { LastActivityEditor = n.GetStringValue(); } }, - {"organization", n => { Organization = n.GetObjectValue(CopilotSeatDetails_organization.CreateFromDiscriminatorValue); } }, - {"pending_cancellation_date", n => { PendingCancellationDate = n.GetDateValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "assignee", n => { Assignee = n.GetObjectValue(global::GitHub.Models.CopilotSeatDetails_assignee.CreateFromDiscriminatorValue); } }, + { "assigning_team", n => { AssigningTeam = n.GetObjectValue(global::GitHub.Models.CopilotSeatDetails.CopilotSeatDetails_assigning_team.CreateFromDiscriminatorValue); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "last_activity_at", n => { LastActivityAt = n.GetDateTimeOffsetValue(); } }, + { "last_activity_editor", n => { LastActivityEditor = n.GetStringValue(); } }, + { "organization", n => { Organization = n.GetObjectValue(global::GitHub.Models.CopilotSeatDetails_organization.CreateFromDiscriminatorValue); } }, + { "pending_cancellation_date", n => { PendingCancellationDate = n.GetDateValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, }; } /// @@ -86,53 +88,54 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("assignee", Assignee); - writer.WriteObjectValue("assigning_team", AssigningTeam); + writer.WriteObjectValue("assignee", Assignee); + writer.WriteObjectValue("assigning_team", AssigningTeam); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteDateTimeOffsetValue("last_activity_at", LastActivityAt); writer.WriteStringValue("last_activity_editor", LastActivityEditor); - writer.WriteObjectValue("organization", Organization); + writer.WriteObjectValue("organization", Organization); writer.WriteDateValue("pending_cancellation_date", PendingCancellationDate); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class CopilotSeatDetails_assigning_team : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CopilotSeatDetails_assigning_team : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.EnterpriseTeam? EnterpriseTeam { get; set; } + public global::GitHub.Models.EnterpriseTeam? EnterpriseTeam { get; set; } #nullable restore #else - public GitHub.Models.EnterpriseTeam EnterpriseTeam { get; set; } + public global::GitHub.Models.EnterpriseTeam EnterpriseTeam { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Team? Team { get; set; } + public global::GitHub.Models.Team? Team { get; set; } #nullable restore #else - public GitHub.Models.Team Team { get; set; } + public global::GitHub.Models.Team Team { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CopilotSeatDetails_assigning_team CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CopilotSeatDetails.CopilotSeatDetails_assigning_team CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new CopilotSeatDetails_assigning_team(); + var result = new global::GitHub.Models.CopilotSeatDetails.CopilotSeatDetails_assigning_team(); if("enterprise-team".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.EnterpriseTeam = new GitHub.Models.EnterpriseTeam(); + result.EnterpriseTeam = new global::GitHub.Models.EnterpriseTeam(); } else if("team".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.Team = new GitHub.Models.Team(); + result.Team = new global::GitHub.Models.Team(); } return result; } @@ -161,11 +164,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(EnterpriseTeam != null) { - writer.WriteObjectValue(null, EnterpriseTeam); + writer.WriteObjectValue(null, EnterpriseTeam); } else if(Team != null) { - writer.WriteObjectValue(null, Team); + writer.WriteObjectValue(null, Team); } } } diff --git a/src/GitHub/Models/CopilotSeatDetails_assignee.cs b/src/GitHub/Models/CopilotSeatDetails_assignee.cs index ca0f1af3..b4fe28c1 100644 --- a/src/GitHub/Models/CopilotSeatDetails_assignee.cs +++ b/src/GitHub/Models/CopilotSeatDetails_assignee.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The assignee that has been granted access to GitHub Copilot. /// - public class CopilotSeatDetails_assignee : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CopilotSeatDetails_assignee : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopilotSeatDetails_assignee() { @@ -22,12 +24,12 @@ public CopilotSeatDetails_assignee() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CopilotSeatDetails_assignee CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CopilotSeatDetails_assignee CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopilotSeatDetails_assignee(); + return new global::GitHub.Models.CopilotSeatDetails_assignee(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/CopilotSeatDetails_organization.cs b/src/GitHub/Models/CopilotSeatDetails_organization.cs index 4c1ee32f..af399f42 100644 --- a/src/GitHub/Models/CopilotSeatDetails_organization.cs +++ b/src/GitHub/Models/CopilotSeatDetails_organization.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The organization to which this seat belongs. /// - public class CopilotSeatDetails_organization : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CopilotSeatDetails_organization : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopilotSeatDetails_organization() { @@ -22,12 +24,12 @@ public CopilotSeatDetails_organization() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CopilotSeatDetails_organization CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CopilotSeatDetails_organization CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopilotSeatDetails_organization(); + return new global::GitHub.Models.CopilotSeatDetails_organization(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/CopilotUsageMetrics.cs b/src/GitHub/Models/CopilotUsageMetrics.cs index db0ea141..285189c4 100644 --- a/src/GitHub/Models/CopilotUsageMetrics.cs +++ b/src/GitHub/Models/CopilotUsageMetrics.cs @@ -1,23 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Summary of Copilot usage. /// - public class CopilotUsageMetrics : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CopilotUsageMetrics : IParsable { /// Breakdown of Copilot code completions usage by language and editor #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Breakdown { get; set; } + public List? Breakdown { get; set; } #nullable restore #else - public List Breakdown { get; set; } + public List Breakdown { get; set; } #endif /// The date for which the usage metrics are reported, in `YYYY-MM-DD` format. public Date? Day { get; set; } @@ -40,12 +42,12 @@ public class CopilotUsageMetrics : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CopilotUsageMetrics CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CopilotUsageMetrics CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopilotUsageMetrics(); + return new global::GitHub.Models.CopilotUsageMetrics(); } /// /// The deserialization information for the current model @@ -55,16 +57,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"breakdown", n => { Breakdown = n.GetCollectionOfObjectValues(CopilotUsageMetrics_breakdown.CreateFromDiscriminatorValue)?.ToList(); } }, - {"day", n => { Day = n.GetDateValue(); } }, - {"total_acceptances_count", n => { TotalAcceptancesCount = n.GetIntValue(); } }, - {"total_active_chat_users", n => { TotalActiveChatUsers = n.GetIntValue(); } }, - {"total_active_users", n => { TotalActiveUsers = n.GetIntValue(); } }, - {"total_chat_acceptances", n => { TotalChatAcceptances = n.GetIntValue(); } }, - {"total_chat_turns", n => { TotalChatTurns = n.GetIntValue(); } }, - {"total_lines_accepted", n => { TotalLinesAccepted = n.GetIntValue(); } }, - {"total_lines_suggested", n => { TotalLinesSuggested = n.GetIntValue(); } }, - {"total_suggestions_count", n => { TotalSuggestionsCount = n.GetIntValue(); } }, + { "breakdown", n => { Breakdown = n.GetCollectionOfObjectValues(global::GitHub.Models.CopilotUsageMetrics_breakdown.CreateFromDiscriminatorValue)?.AsList(); } }, + { "day", n => { Day = n.GetDateValue(); } }, + { "total_acceptances_count", n => { TotalAcceptancesCount = n.GetIntValue(); } }, + { "total_active_chat_users", n => { TotalActiveChatUsers = n.GetIntValue(); } }, + { "total_active_users", n => { TotalActiveUsers = n.GetIntValue(); } }, + { "total_chat_acceptances", n => { TotalChatAcceptances = n.GetIntValue(); } }, + { "total_chat_turns", n => { TotalChatTurns = n.GetIntValue(); } }, + { "total_lines_accepted", n => { TotalLinesAccepted = n.GetIntValue(); } }, + { "total_lines_suggested", n => { TotalLinesSuggested = n.GetIntValue(); } }, + { "total_suggestions_count", n => { TotalSuggestionsCount = n.GetIntValue(); } }, }; } /// @@ -74,7 +76,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("breakdown", Breakdown); + writer.WriteCollectionOfObjectValues("breakdown", Breakdown); writer.WriteDateValue("day", Day); writer.WriteIntValue("total_acceptances_count", TotalAcceptancesCount); writer.WriteIntValue("total_active_chat_users", TotalActiveChatUsers); diff --git a/src/GitHub/Models/CopilotUsageMetrics_breakdown.cs b/src/GitHub/Models/CopilotUsageMetrics_breakdown.cs index 02d8da31..c8bfcc43 100644 --- a/src/GitHub/Models/CopilotUsageMetrics_breakdown.cs +++ b/src/GitHub/Models/CopilotUsageMetrics_breakdown.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Breakdown of Copilot usage by editor for this language /// - public class CopilotUsageMetrics_breakdown : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CopilotUsageMetrics_breakdown : IAdditionalDataHolder, IParsable { /// The number of Copilot suggestions accepted by users in the editor specified during the day specified. public int? AcceptancesCount { get; set; } @@ -39,7 +41,7 @@ public class CopilotUsageMetrics_breakdown : IAdditionalDataHolder, IParsable /// The number of Copilot suggestions shown to users in the editor specified during the day specified. public int? SuggestionsCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopilotUsageMetrics_breakdown() { @@ -48,12 +50,12 @@ public CopilotUsageMetrics_breakdown() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CopilotUsageMetrics_breakdown CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CopilotUsageMetrics_breakdown CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopilotUsageMetrics_breakdown(); + return new global::GitHub.Models.CopilotUsageMetrics_breakdown(); } /// /// The deserialization information for the current model @@ -63,13 +65,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"acceptances_count", n => { AcceptancesCount = n.GetIntValue(); } }, - {"active_users", n => { ActiveUsers = n.GetIntValue(); } }, - {"editor", n => { Editor = n.GetStringValue(); } }, - {"language", n => { Language = n.GetStringValue(); } }, - {"lines_accepted", n => { LinesAccepted = n.GetIntValue(); } }, - {"lines_suggested", n => { LinesSuggested = n.GetIntValue(); } }, - {"suggestions_count", n => { SuggestionsCount = n.GetIntValue(); } }, + { "acceptances_count", n => { AcceptancesCount = n.GetIntValue(); } }, + { "active_users", n => { ActiveUsers = n.GetIntValue(); } }, + { "editor", n => { Editor = n.GetStringValue(); } }, + { "language", n => { Language = n.GetStringValue(); } }, + { "lines_accepted", n => { LinesAccepted = n.GetIntValue(); } }, + { "lines_suggested", n => { LinesSuggested = n.GetIntValue(); } }, + { "suggestions_count", n => { SuggestionsCount = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/CredentialAuthorization.cs b/src/GitHub/Models/CredentialAuthorization.cs index 94719ffa..81f6f2bf 100644 --- a/src/GitHub/Models/CredentialAuthorization.cs +++ b/src/GitHub/Models/CredentialAuthorization.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Credential Authorization /// - public class CredentialAuthorization : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CredentialAuthorization : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The expiry for the token. This will only be present when the credential is a token. public DateTimeOffset? AuthorizedCredentialExpiresAt { get; set; } - /// The authorized_credential_id property + /// The ID of the underlying token that was authorized by the user. This will remain unchanged across authorizations of the token. public int? AuthorizedCredentialId { get; set; } /// The note given to the token. This will only be present when the credential is a token. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -36,7 +38,7 @@ public class CredentialAuthorization : IAdditionalDataHolder, IParsable public DateTimeOffset? CredentialAccessedAt { get; set; } /// Date when the credential was authorized for use. public DateTimeOffset? CredentialAuthorizedAt { get; set; } - /// Unique identifier for the credential. + /// Unique identifier for the authorization of the credential. Use this to revoke authorization of the underlying token or key. public int? CredentialId { get; set; } /// Human-readable description of the credential type. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -79,7 +81,7 @@ public class CredentialAuthorization : IAdditionalDataHolder, IParsable public string TokenLastEight { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CredentialAuthorization() { @@ -88,12 +90,12 @@ public CredentialAuthorization() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CredentialAuthorization CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CredentialAuthorization CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CredentialAuthorization(); + return new global::GitHub.Models.CredentialAuthorization(); } /// /// The deserialization information for the current model @@ -103,18 +105,18 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"authorized_credential_expires_at", n => { AuthorizedCredentialExpiresAt = n.GetDateTimeOffsetValue(); } }, - {"authorized_credential_id", n => { AuthorizedCredentialId = n.GetIntValue(); } }, - {"authorized_credential_note", n => { AuthorizedCredentialNote = n.GetStringValue(); } }, - {"authorized_credential_title", n => { AuthorizedCredentialTitle = n.GetStringValue(); } }, - {"credential_accessed_at", n => { CredentialAccessedAt = n.GetDateTimeOffsetValue(); } }, - {"credential_authorized_at", n => { CredentialAuthorizedAt = n.GetDateTimeOffsetValue(); } }, - {"credential_id", n => { CredentialId = n.GetIntValue(); } }, - {"credential_type", n => { CredentialType = n.GetStringValue(); } }, - {"fingerprint", n => { Fingerprint = n.GetStringValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"token_last_eight", n => { TokenLastEight = n.GetStringValue(); } }, + { "authorized_credential_expires_at", n => { AuthorizedCredentialExpiresAt = n.GetDateTimeOffsetValue(); } }, + { "authorized_credential_id", n => { AuthorizedCredentialId = n.GetIntValue(); } }, + { "authorized_credential_note", n => { AuthorizedCredentialNote = n.GetStringValue(); } }, + { "authorized_credential_title", n => { AuthorizedCredentialTitle = n.GetStringValue(); } }, + { "credential_accessed_at", n => { CredentialAccessedAt = n.GetDateTimeOffsetValue(); } }, + { "credential_authorized_at", n => { CredentialAuthorizedAt = n.GetDateTimeOffsetValue(); } }, + { "credential_id", n => { CredentialId = n.GetIntValue(); } }, + { "credential_type", n => { CredentialType = n.GetStringValue(); } }, + { "fingerprint", n => { Fingerprint = n.GetStringValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "token_last_eight", n => { TokenLastEight = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/CustomDeploymentRuleApp.cs b/src/GitHub/Models/CustomDeploymentRuleApp.cs index df9b870a..64e1737e 100644 --- a/src/GitHub/Models/CustomDeploymentRuleApp.cs +++ b/src/GitHub/Models/CustomDeploymentRuleApp.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A GitHub App that is providing a custom deployment protection rule. /// - public class CustomDeploymentRuleApp : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CustomDeploymentRuleApp : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -39,7 +41,7 @@ public class CustomDeploymentRuleApp : IAdditionalDataHolder, IParsable public string Slug { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CustomDeploymentRuleApp() { @@ -48,12 +50,12 @@ public CustomDeploymentRuleApp() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CustomDeploymentRuleApp CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CustomDeploymentRuleApp CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CustomDeploymentRuleApp(); + return new global::GitHub.Models.CustomDeploymentRuleApp(); } /// /// The deserialization information for the current model @@ -63,10 +65,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetIntValue(); } }, - {"integration_url", n => { IntegrationUrl = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"slug", n => { Slug = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "integration_url", n => { IntegrationUrl = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "slug", n => { Slug = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/CustomProperty.cs b/src/GitHub/Models/CustomProperty.cs index d5495b9b..d7b5bf90 100644 --- a/src/GitHub/Models/CustomProperty.cs +++ b/src/GitHub/Models/CustomProperty.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Custom property defined on an organization /// - public class CustomProperty : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CustomProperty : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,10 +25,10 @@ public class CustomProperty : IAdditionalDataHolder, IParsable /// Default value of the property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CustomProperty_default_value? DefaultValue { get; set; } + public global::GitHub.Models.CustomProperty.CustomProperty_default_value? DefaultValue { get; set; } #nullable restore #else - public CustomProperty_default_value DefaultValue { get; set; } + public global::GitHub.Models.CustomProperty.CustomProperty_default_value DefaultValue { get; set; } #endif /// Short description of the property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -55,11 +57,11 @@ public class CustomProperty : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// Who can edit the values of the property - public CustomProperty_values_editable_by? ValuesEditableBy { get; set; } + public global::GitHub.Models.CustomProperty_values_editable_by? ValuesEditableBy { get; set; } /// The type of the value for the property - public CustomProperty_value_type? ValueType { get; set; } + public global::GitHub.Models.CustomProperty_value_type? ValueType { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CustomProperty() { @@ -68,12 +70,12 @@ public CustomProperty() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CustomProperty CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CustomProperty CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CustomProperty(); + return new global::GitHub.Models.CustomProperty(); } /// /// The deserialization information for the current model @@ -83,14 +85,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allowed_values", n => { AllowedValues = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"default_value", n => { DefaultValue = n.GetObjectValue(CustomProperty_default_value.CreateFromDiscriminatorValue); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"property_name", n => { PropertyName = n.GetStringValue(); } }, - {"required", n => { Required = n.GetBoolValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"value_type", n => { ValueType = n.GetEnumValue(); } }, - {"values_editable_by", n => { ValuesEditableBy = n.GetEnumValue(); } }, + { "allowed_values", n => { AllowedValues = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "default_value", n => { DefaultValue = n.GetObjectValue(global::GitHub.Models.CustomProperty.CustomProperty_default_value.CreateFromDiscriminatorValue); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "property_name", n => { PropertyName = n.GetStringValue(); } }, + { "required", n => { Required = n.GetBoolValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "value_type", n => { ValueType = n.GetEnumValue(); } }, + { "values_editable_by", n => { ValuesEditableBy = n.GetEnumValue(); } }, }; } /// @@ -101,19 +103,20 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("allowed_values", AllowedValues); - writer.WriteObjectValue("default_value", DefaultValue); + writer.WriteObjectValue("default_value", DefaultValue); writer.WriteStringValue("description", Description); writer.WriteStringValue("property_name", PropertyName); writer.WriteBoolValue("required", Required); writer.WriteStringValue("url", Url); - writer.WriteEnumValue("values_editable_by", ValuesEditableBy); - writer.WriteEnumValue("value_type", ValueType); + writer.WriteEnumValue("values_editable_by", ValuesEditableBy); + writer.WriteEnumValue("value_type", ValueType); writer.WriteAdditionalData(AdditionalData); } /// /// Composed type wrapper for classes /// - public class CustomProperty_default_value : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CustomProperty_default_value : IComposedTypeWrapper, IParsable { /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -126,13 +129,13 @@ public class CustomProperty_default_value : IComposedTypeWrapper, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CustomProperty_default_value CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CustomProperty.CustomProperty_default_value CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new CustomProperty_default_value(); + var result = new global::GitHub.Models.CustomProperty.CustomProperty_default_value(); if(parseNode.GetStringValue() is string stringValue) { result.String = stringValue; diff --git a/src/GitHub/Models/CustomPropertyValue.cs b/src/GitHub/Models/CustomPropertyValue.cs index bc6a1815..2a13e0d6 100644 --- a/src/GitHub/Models/CustomPropertyValue.cs +++ b/src/GitHub/Models/CustomPropertyValue.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Custom property name and associated value /// - public class CustomPropertyValue : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CustomPropertyValue : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,13 +25,13 @@ public class CustomPropertyValue : IAdditionalDataHolder, IParsable /// The value assigned to the property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CustomPropertyValue_value? Value { get; set; } + public global::GitHub.Models.CustomPropertyValue.CustomPropertyValue_value? Value { get; set; } #nullable restore #else - public CustomPropertyValue_value Value { get; set; } + public global::GitHub.Models.CustomPropertyValue.CustomPropertyValue_value Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CustomPropertyValue() { @@ -38,12 +40,12 @@ public CustomPropertyValue() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CustomPropertyValue CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CustomPropertyValue CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CustomPropertyValue(); + return new global::GitHub.Models.CustomPropertyValue(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"property_name", n => { PropertyName = n.GetStringValue(); } }, - {"value", n => { Value = n.GetObjectValue(CustomPropertyValue_value.CreateFromDiscriminatorValue); } }, + { "property_name", n => { PropertyName = n.GetStringValue(); } }, + { "value", n => { Value = n.GetObjectValue(global::GitHub.Models.CustomPropertyValue.CustomPropertyValue_value.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,13 +67,14 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("property_name", PropertyName); - writer.WriteObjectValue("value", Value); + writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); } /// /// Composed type wrapper for classes /// - public class CustomPropertyValue_value : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CustomPropertyValue_value : IComposedTypeWrapper, IParsable { /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -84,13 +87,13 @@ public class CustomPropertyValue_value : IComposedTypeWrapper, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CustomPropertyValue_value CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.CustomPropertyValue.CustomPropertyValue_value CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new CustomPropertyValue_value(); + var result = new global::GitHub.Models.CustomPropertyValue.CustomPropertyValue_value(); if(parseNode.GetStringValue() is string stringValue) { result.String = stringValue; diff --git a/src/GitHub/Models/CustomProperty_value_type.cs b/src/GitHub/Models/CustomProperty_value_type.cs index cec6e70a..8c42530b 100644 --- a/src/GitHub/Models/CustomProperty_value_type.cs +++ b/src/GitHub/Models/CustomProperty_value_type.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The type of the value for the property + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CustomProperty_value_type { [EnumMember(Value = "string")] diff --git a/src/GitHub/Models/CustomProperty_values_editable_by.cs b/src/GitHub/Models/CustomProperty_values_editable_by.cs index 60746356..83745c02 100644 --- a/src/GitHub/Models/CustomProperty_values_editable_by.cs +++ b/src/GitHub/Models/CustomProperty_values_editable_by.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Who can edit the values of the property + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CustomProperty_values_editable_by { [EnumMember(Value = "org_actors")] diff --git a/src/GitHub/Models/Databases503Error.cs b/src/GitHub/Models/Databases503Error.cs index d9ed198a..d47bd512 100644 --- a/src/GitHub/Models/Databases503Error.cs +++ b/src/GitHub/Models/Databases503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Databases503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class Databases503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class Databases503Error : ApiException, IAdditionalDataHolder, IParsable #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Databases503Error() { @@ -46,12 +42,12 @@ public Databases503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Databases503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Databases503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Databases503Error(); + return new global::GitHub.Models.Databases503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/DemilestonedIssueEvent.cs b/src/GitHub/Models/DemilestonedIssueEvent.cs index f767a977..0d3496f8 100644 --- a/src/GitHub/Models/DemilestonedIssueEvent.cs +++ b/src/GitHub/Models/DemilestonedIssueEvent.cs @@ -1,22 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Demilestoned Issue Event /// - public class DemilestonedIssueEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DemilestonedIssueEvent : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -57,10 +59,10 @@ public class DemilestonedIssueEvent : IAdditionalDataHolder, IParsable /// The milestone property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DemilestonedIssueEvent_milestone? Milestone { get; set; } + public global::GitHub.Models.DemilestonedIssueEvent_milestone? Milestone { get; set; } #nullable restore #else - public DemilestonedIssueEvent_milestone Milestone { get; set; } + public global::GitHub.Models.DemilestonedIssueEvent_milestone Milestone { get; set; } #endif /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,10 +75,10 @@ public class DemilestonedIssueEvent : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +89,7 @@ public class DemilestonedIssueEvent : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DemilestonedIssueEvent() { @@ -96,12 +98,12 @@ public DemilestonedIssueEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DemilestonedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DemilestonedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DemilestonedIssueEvent(); + return new global::GitHub.Models.DemilestonedIssueEvent(); } /// /// The deserialization information for the current model @@ -111,16 +113,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"milestone", n => { Milestone = n.GetObjectValue(DemilestonedIssueEvent_milestone.CreateFromDiscriminatorValue); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "milestone", n => { Milestone = n.GetObjectValue(global::GitHub.Models.DemilestonedIssueEvent_milestone.CreateFromDiscriminatorValue); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -130,15 +132,15 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("actor", Actor); writer.WriteStringValue("commit_id", CommitId); writer.WriteStringValue("commit_url", CommitUrl); writer.WriteStringValue("created_at", CreatedAt); writer.WriteStringValue("event", Event); writer.WriteIntValue("id", Id); - writer.WriteObjectValue("milestone", Milestone); + writer.WriteObjectValue("milestone", Milestone); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/DemilestonedIssueEvent_milestone.cs b/src/GitHub/Models/DemilestonedIssueEvent_milestone.cs index 3d7c1d31..0a9442fe 100644 --- a/src/GitHub/Models/DemilestonedIssueEvent_milestone.cs +++ b/src/GitHub/Models/DemilestonedIssueEvent_milestone.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class DemilestonedIssueEvent_milestone : IAdditionalDataHolder, IParsable + public partial class DemilestonedIssueEvent_milestone : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class DemilestonedIssueEvent_milestone : IAdditionalDataHolder, IParsable public string Title { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DemilestonedIssueEvent_milestone() { @@ -29,12 +31,12 @@ public DemilestonedIssueEvent_milestone() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DemilestonedIssueEvent_milestone CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DemilestonedIssueEvent_milestone CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DemilestonedIssueEvent_milestone(); + return new global::GitHub.Models.DemilestonedIssueEvent_milestone(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"title", n => { Title = n.GetStringValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/DependabotAlert.cs b/src/GitHub/Models/DependabotAlert.cs index 4e5608c0..9cfa8e0b 100644 --- a/src/GitHub/Models/DependabotAlert.cs +++ b/src/GitHub/Models/DependabotAlert.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A Dependabot alert. /// - public class DependabotAlert : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DependabotAlert : IParsable { /// The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. public DateTimeOffset? AutoDismissedAt { get; private set; } @@ -17,20 +19,20 @@ public class DependabotAlert : IParsable /// Details for the vulnerable dependency. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DependabotAlert_dependency? Dependency { get; private set; } + public global::GitHub.Models.DependabotAlert_dependency? Dependency { get; private set; } #nullable restore #else - public DependabotAlert_dependency Dependency { get; private set; } + public global::GitHub.Models.DependabotAlert_dependency Dependency { get; private set; } #endif /// The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. public DateTimeOffset? DismissedAt { get; private set; } /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? DismissedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser? DismissedBy { get; set; } #nullable restore #else - public NullableSimpleUser DismissedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser DismissedBy { get; set; } #endif /// An optional comment associated with the alert's dismissal. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -41,7 +43,7 @@ public class DependabotAlert : IParsable public string DismissedComment { get; set; } #endif /// The reason that the alert was dismissed. - public DependabotAlert_dismissed_reason? DismissedReason { get; set; } + public global::GitHub.Models.DependabotAlert_dismissed_reason? DismissedReason { get; set; } /// The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. public DateTimeOffset? FixedAt { get; private set; } /// The GitHub URL of the alert resource. @@ -57,21 +59,21 @@ public class DependabotAlert : IParsable /// Details for the GitHub Security Advisory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DependabotAlertSecurityAdvisory? SecurityAdvisory { get; private set; } + public global::GitHub.Models.DependabotAlertSecurityAdvisory? SecurityAdvisory { get; private set; } #nullable restore #else - public DependabotAlertSecurityAdvisory SecurityAdvisory { get; private set; } + public global::GitHub.Models.DependabotAlertSecurityAdvisory SecurityAdvisory { get; private set; } #endif /// Details pertaining to one vulnerable version range for the advisory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DependabotAlertSecurityVulnerability? SecurityVulnerability { get; private set; } + public global::GitHub.Models.DependabotAlertSecurityVulnerability? SecurityVulnerability { get; private set; } #nullable restore #else - public DependabotAlertSecurityVulnerability SecurityVulnerability { get; private set; } + public global::GitHub.Models.DependabotAlertSecurityVulnerability SecurityVulnerability { get; private set; } #endif /// The state of the Dependabot alert. - public DependabotAlert_state? State { get; private set; } + public global::GitHub.Models.DependabotAlert_state? State { get; private set; } /// The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. public DateTimeOffset? UpdatedAt { get; private set; } /// The REST API URL of the alert resource. @@ -85,12 +87,12 @@ public class DependabotAlert : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DependabotAlert CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DependabotAlert CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DependabotAlert(); + return new global::GitHub.Models.DependabotAlert(); } /// /// The deserialization information for the current model @@ -100,21 +102,21 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"auto_dismissed_at", n => { AutoDismissedAt = n.GetDateTimeOffsetValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"dependency", n => { Dependency = n.GetObjectValue(DependabotAlert_dependency.CreateFromDiscriminatorValue); } }, - {"dismissed_at", n => { DismissedAt = n.GetDateTimeOffsetValue(); } }, - {"dismissed_by", n => { DismissedBy = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"dismissed_comment", n => { DismissedComment = n.GetStringValue(); } }, - {"dismissed_reason", n => { DismissedReason = n.GetEnumValue(); } }, - {"fixed_at", n => { FixedAt = n.GetDateTimeOffsetValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"number", n => { Number = n.GetIntValue(); } }, - {"security_advisory", n => { SecurityAdvisory = n.GetObjectValue(DependabotAlertSecurityAdvisory.CreateFromDiscriminatorValue); } }, - {"security_vulnerability", n => { SecurityVulnerability = n.GetObjectValue(DependabotAlertSecurityVulnerability.CreateFromDiscriminatorValue); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "auto_dismissed_at", n => { AutoDismissedAt = n.GetDateTimeOffsetValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "dependency", n => { Dependency = n.GetObjectValue(global::GitHub.Models.DependabotAlert_dependency.CreateFromDiscriminatorValue); } }, + { "dismissed_at", n => { DismissedAt = n.GetDateTimeOffsetValue(); } }, + { "dismissed_by", n => { DismissedBy = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "dismissed_comment", n => { DismissedComment = n.GetStringValue(); } }, + { "dismissed_reason", n => { DismissedReason = n.GetEnumValue(); } }, + { "fixed_at", n => { FixedAt = n.GetDateTimeOffsetValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "number", n => { Number = n.GetIntValue(); } }, + { "security_advisory", n => { SecurityAdvisory = n.GetObjectValue(global::GitHub.Models.DependabotAlertSecurityAdvisory.CreateFromDiscriminatorValue); } }, + { "security_vulnerability", n => { SecurityVulnerability = n.GetObjectValue(global::GitHub.Models.DependabotAlertSecurityVulnerability.CreateFromDiscriminatorValue); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -124,9 +126,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("dismissed_by", DismissedBy); + writer.WriteObjectValue("dismissed_by", DismissedBy); writer.WriteStringValue("dismissed_comment", DismissedComment); - writer.WriteEnumValue("dismissed_reason", DismissedReason); + writer.WriteEnumValue("dismissed_reason", DismissedReason); } } } diff --git a/src/GitHub/Models/DependabotAlertPackage.cs b/src/GitHub/Models/DependabotAlertPackage.cs index 2b040aed..156b0aa5 100644 --- a/src/GitHub/Models/DependabotAlertPackage.cs +++ b/src/GitHub/Models/DependabotAlertPackage.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Details for the vulnerable package. /// - public class DependabotAlertPackage : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DependabotAlertPackage : IParsable { /// The package's language or package management ecosystem. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -29,12 +31,12 @@ public class DependabotAlertPackage : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DependabotAlertPackage CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DependabotAlertPackage CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DependabotAlertPackage(); + return new global::GitHub.Models.DependabotAlertPackage(); } /// /// The deserialization information for the current model @@ -44,8 +46,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"ecosystem", n => { Ecosystem = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "ecosystem", n => { Ecosystem = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/DependabotAlertSecurityAdvisory.cs b/src/GitHub/Models/DependabotAlertSecurityAdvisory.cs index bba038d1..cd4c9011 100644 --- a/src/GitHub/Models/DependabotAlertSecurityAdvisory.cs +++ b/src/GitHub/Models/DependabotAlertSecurityAdvisory.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Details for the GitHub Security Advisory. /// - public class DependabotAlertSecurityAdvisory : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DependabotAlertSecurityAdvisory : IParsable { /// The unique CVE ID assigned to the advisory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -21,18 +23,18 @@ public class DependabotAlertSecurityAdvisory : IParsable /// Details for the advisory pertaining to the Common Vulnerability Scoring System. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DependabotAlertSecurityAdvisory_cvss? Cvss { get; private set; } + public global::GitHub.Models.DependabotAlertSecurityAdvisory_cvss? Cvss { get; private set; } #nullable restore #else - public DependabotAlertSecurityAdvisory_cvss Cvss { get; private set; } + public global::GitHub.Models.DependabotAlertSecurityAdvisory_cvss Cvss { get; private set; } #endif /// Details for the advisory pertaining to Common Weakness Enumeration. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Cwes { get; private set; } + public List? Cwes { get; private set; } #nullable restore #else - public List Cwes { get; private set; } + public List Cwes { get; private set; } #endif /// A long-form Markdown-supported description of the advisory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -53,23 +55,23 @@ public class DependabotAlertSecurityAdvisory : IParsable /// Values that identify this advisory among security information sources. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Identifiers { get; private set; } + public List? Identifiers { get; private set; } #nullable restore #else - public List Identifiers { get; private set; } + public List Identifiers { get; private set; } #endif /// The time that the advisory was published in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. public DateTimeOffset? PublishedAt { get; private set; } /// Links to additional advisory information. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? References { get; private set; } + public List? References { get; private set; } #nullable restore #else - public List References { get; private set; } + public List References { get; private set; } #endif /// The severity of the advisory. - public DependabotAlertSecurityAdvisory_severity? Severity { get; private set; } + public global::GitHub.Models.DependabotAlertSecurityAdvisory_severity? Severity { get; private set; } /// A short, plain text summary of the advisory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -83,22 +85,22 @@ public class DependabotAlertSecurityAdvisory : IParsable /// Vulnerable version range information for the advisory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Vulnerabilities { get; private set; } + public List? Vulnerabilities { get; private set; } #nullable restore #else - public List Vulnerabilities { get; private set; } + public List Vulnerabilities { get; private set; } #endif /// The time that the advisory was withdrawn in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. public DateTimeOffset? WithdrawnAt { get; private set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DependabotAlertSecurityAdvisory CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DependabotAlertSecurityAdvisory CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DependabotAlertSecurityAdvisory(); + return new global::GitHub.Models.DependabotAlertSecurityAdvisory(); } /// /// The deserialization information for the current model @@ -108,19 +110,19 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"cve_id", n => { CveId = n.GetStringValue(); } }, - {"cvss", n => { Cvss = n.GetObjectValue(DependabotAlertSecurityAdvisory_cvss.CreateFromDiscriminatorValue); } }, - {"cwes", n => { Cwes = n.GetCollectionOfObjectValues(DependabotAlertSecurityAdvisory_cwes.CreateFromDiscriminatorValue)?.ToList(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"ghsa_id", n => { GhsaId = n.GetStringValue(); } }, - {"identifiers", n => { Identifiers = n.GetCollectionOfObjectValues(DependabotAlertSecurityAdvisory_identifiers.CreateFromDiscriminatorValue)?.ToList(); } }, - {"published_at", n => { PublishedAt = n.GetDateTimeOffsetValue(); } }, - {"references", n => { References = n.GetCollectionOfObjectValues(DependabotAlertSecurityAdvisory_references.CreateFromDiscriminatorValue)?.ToList(); } }, - {"severity", n => { Severity = n.GetEnumValue(); } }, - {"summary", n => { Summary = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"vulnerabilities", n => { Vulnerabilities = n.GetCollectionOfObjectValues(DependabotAlertSecurityVulnerability.CreateFromDiscriminatorValue)?.ToList(); } }, - {"withdrawn_at", n => { WithdrawnAt = n.GetDateTimeOffsetValue(); } }, + { "cve_id", n => { CveId = n.GetStringValue(); } }, + { "cvss", n => { Cvss = n.GetObjectValue(global::GitHub.Models.DependabotAlertSecurityAdvisory_cvss.CreateFromDiscriminatorValue); } }, + { "cwes", n => { Cwes = n.GetCollectionOfObjectValues(global::GitHub.Models.DependabotAlertSecurityAdvisory_cwes.CreateFromDiscriminatorValue)?.AsList(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "ghsa_id", n => { GhsaId = n.GetStringValue(); } }, + { "identifiers", n => { Identifiers = n.GetCollectionOfObjectValues(global::GitHub.Models.DependabotAlertSecurityAdvisory_identifiers.CreateFromDiscriminatorValue)?.AsList(); } }, + { "published_at", n => { PublishedAt = n.GetDateTimeOffsetValue(); } }, + { "references", n => { References = n.GetCollectionOfObjectValues(global::GitHub.Models.DependabotAlertSecurityAdvisory_references.CreateFromDiscriminatorValue)?.AsList(); } }, + { "severity", n => { Severity = n.GetEnumValue(); } }, + { "summary", n => { Summary = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "vulnerabilities", n => { Vulnerabilities = n.GetCollectionOfObjectValues(global::GitHub.Models.DependabotAlertSecurityVulnerability.CreateFromDiscriminatorValue)?.AsList(); } }, + { "withdrawn_at", n => { WithdrawnAt = n.GetDateTimeOffsetValue(); } }, }; } /// diff --git a/src/GitHub/Models/DependabotAlertSecurityAdvisory_cvss.cs b/src/GitHub/Models/DependabotAlertSecurityAdvisory_cvss.cs index 65444390..6958894c 100644 --- a/src/GitHub/Models/DependabotAlertSecurityAdvisory_cvss.cs +++ b/src/GitHub/Models/DependabotAlertSecurityAdvisory_cvss.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Details for the advisory pertaining to the Common Vulnerability Scoring System. /// - public class DependabotAlertSecurityAdvisory_cvss : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DependabotAlertSecurityAdvisory_cvss : IParsable { /// The overall CVSS score of the advisory. public double? Score { get; private set; } @@ -23,12 +25,12 @@ public class DependabotAlertSecurityAdvisory_cvss : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DependabotAlertSecurityAdvisory_cvss CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DependabotAlertSecurityAdvisory_cvss CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DependabotAlertSecurityAdvisory_cvss(); + return new global::GitHub.Models.DependabotAlertSecurityAdvisory_cvss(); } /// /// The deserialization information for the current model @@ -38,8 +40,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"score", n => { Score = n.GetDoubleValue(); } }, - {"vector_string", n => { VectorString = n.GetStringValue(); } }, + { "score", n => { Score = n.GetDoubleValue(); } }, + { "vector_string", n => { VectorString = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/DependabotAlertSecurityAdvisory_cwes.cs b/src/GitHub/Models/DependabotAlertSecurityAdvisory_cwes.cs index ea14112a..70cb46e4 100644 --- a/src/GitHub/Models/DependabotAlertSecurityAdvisory_cwes.cs +++ b/src/GitHub/Models/DependabotAlertSecurityAdvisory_cwes.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A CWE weakness assigned to the advisory. /// - public class DependabotAlertSecurityAdvisory_cwes : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DependabotAlertSecurityAdvisory_cwes : IParsable { /// The unique CWE ID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -29,12 +31,12 @@ public class DependabotAlertSecurityAdvisory_cwes : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DependabotAlertSecurityAdvisory_cwes CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DependabotAlertSecurityAdvisory_cwes CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DependabotAlertSecurityAdvisory_cwes(); + return new global::GitHub.Models.DependabotAlertSecurityAdvisory_cwes(); } /// /// The deserialization information for the current model @@ -44,8 +46,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"cwe_id", n => { CweId = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "cwe_id", n => { CweId = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/DependabotAlertSecurityAdvisory_identifiers.cs b/src/GitHub/Models/DependabotAlertSecurityAdvisory_identifiers.cs index 8af3c61a..98cd0f74 100644 --- a/src/GitHub/Models/DependabotAlertSecurityAdvisory_identifiers.cs +++ b/src/GitHub/Models/DependabotAlertSecurityAdvisory_identifiers.cs @@ -1,17 +1,19 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// An advisory identifier. /// - public class DependabotAlertSecurityAdvisory_identifiers : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DependabotAlertSecurityAdvisory_identifiers : IParsable { /// The type of advisory identifier. - public DependabotAlertSecurityAdvisory_identifiers_type? Type { get; private set; } + public global::GitHub.Models.DependabotAlertSecurityAdvisory_identifiers_type? Type { get; private set; } /// The value of the advisory identifer. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -23,12 +25,12 @@ public class DependabotAlertSecurityAdvisory_identifiers : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DependabotAlertSecurityAdvisory_identifiers CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DependabotAlertSecurityAdvisory_identifiers CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DependabotAlertSecurityAdvisory_identifiers(); + return new global::GitHub.Models.DependabotAlertSecurityAdvisory_identifiers(); } /// /// The deserialization information for the current model @@ -38,8 +40,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"type", n => { Type = n.GetEnumValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/DependabotAlertSecurityAdvisory_identifiers_type.cs b/src/GitHub/Models/DependabotAlertSecurityAdvisory_identifiers_type.cs index f9fb9c1d..6d91e381 100644 --- a/src/GitHub/Models/DependabotAlertSecurityAdvisory_identifiers_type.cs +++ b/src/GitHub/Models/DependabotAlertSecurityAdvisory_identifiers_type.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The type of advisory identifier. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum DependabotAlertSecurityAdvisory_identifiers_type { [EnumMember(Value = "CVE")] diff --git a/src/GitHub/Models/DependabotAlertSecurityAdvisory_references.cs b/src/GitHub/Models/DependabotAlertSecurityAdvisory_references.cs index 6c7a171b..7599b5d9 100644 --- a/src/GitHub/Models/DependabotAlertSecurityAdvisory_references.cs +++ b/src/GitHub/Models/DependabotAlertSecurityAdvisory_references.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A link to additional advisory information. /// - public class DependabotAlertSecurityAdvisory_references : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DependabotAlertSecurityAdvisory_references : IParsable { /// The URL of the reference. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -21,12 +23,12 @@ public class DependabotAlertSecurityAdvisory_references : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DependabotAlertSecurityAdvisory_references CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DependabotAlertSecurityAdvisory_references CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DependabotAlertSecurityAdvisory_references(); + return new global::GitHub.Models.DependabotAlertSecurityAdvisory_references(); } /// /// The deserialization information for the current model @@ -36,7 +38,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"url", n => { Url = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/DependabotAlertSecurityAdvisory_severity.cs b/src/GitHub/Models/DependabotAlertSecurityAdvisory_severity.cs index ae1a232f..703d1f1b 100644 --- a/src/GitHub/Models/DependabotAlertSecurityAdvisory_severity.cs +++ b/src/GitHub/Models/DependabotAlertSecurityAdvisory_severity.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The severity of the advisory. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum DependabotAlertSecurityAdvisory_severity { [EnumMember(Value = "low")] diff --git a/src/GitHub/Models/DependabotAlertSecurityVulnerability.cs b/src/GitHub/Models/DependabotAlertSecurityVulnerability.cs index c21d8755..19ead22f 100644 --- a/src/GitHub/Models/DependabotAlertSecurityVulnerability.cs +++ b/src/GitHub/Models/DependabotAlertSecurityVulnerability.cs @@ -1,33 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Details pertaining to one vulnerable version range for the advisory. /// - public class DependabotAlertSecurityVulnerability : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DependabotAlertSecurityVulnerability : IParsable { /// Details pertaining to the package version that patches this vulnerability. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DependabotAlertSecurityVulnerability_first_patched_version? FirstPatchedVersion { get; private set; } + public global::GitHub.Models.DependabotAlertSecurityVulnerability_first_patched_version? FirstPatchedVersion { get; private set; } #nullable restore #else - public DependabotAlertSecurityVulnerability_first_patched_version FirstPatchedVersion { get; private set; } + public global::GitHub.Models.DependabotAlertSecurityVulnerability_first_patched_version FirstPatchedVersion { get; private set; } #endif /// Details for the vulnerable package. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DependabotAlertPackage? Package { get; private set; } + public global::GitHub.Models.DependabotAlertPackage? Package { get; private set; } #nullable restore #else - public DependabotAlertPackage Package { get; private set; } + public global::GitHub.Models.DependabotAlertPackage Package { get; private set; } #endif /// The severity of the vulnerability. - public DependabotAlertSecurityVulnerability_severity? Severity { get; private set; } + public global::GitHub.Models.DependabotAlertSecurityVulnerability_severity? Severity { get; private set; } /// Conditions that identify vulnerable versions of this vulnerability's package. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -39,12 +41,12 @@ public class DependabotAlertSecurityVulnerability : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DependabotAlertSecurityVulnerability CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DependabotAlertSecurityVulnerability CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DependabotAlertSecurityVulnerability(); + return new global::GitHub.Models.DependabotAlertSecurityVulnerability(); } /// /// The deserialization information for the current model @@ -54,10 +56,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"first_patched_version", n => { FirstPatchedVersion = n.GetObjectValue(DependabotAlertSecurityVulnerability_first_patched_version.CreateFromDiscriminatorValue); } }, - {"package", n => { Package = n.GetObjectValue(DependabotAlertPackage.CreateFromDiscriminatorValue); } }, - {"severity", n => { Severity = n.GetEnumValue(); } }, - {"vulnerable_version_range", n => { VulnerableVersionRange = n.GetStringValue(); } }, + { "first_patched_version", n => { FirstPatchedVersion = n.GetObjectValue(global::GitHub.Models.DependabotAlertSecurityVulnerability_first_patched_version.CreateFromDiscriminatorValue); } }, + { "package", n => { Package = n.GetObjectValue(global::GitHub.Models.DependabotAlertPackage.CreateFromDiscriminatorValue); } }, + { "severity", n => { Severity = n.GetEnumValue(); } }, + { "vulnerable_version_range", n => { VulnerableVersionRange = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/DependabotAlertSecurityVulnerability_first_patched_version.cs b/src/GitHub/Models/DependabotAlertSecurityVulnerability_first_patched_version.cs index 506aab2c..dddb1bc3 100644 --- a/src/GitHub/Models/DependabotAlertSecurityVulnerability_first_patched_version.cs +++ b/src/GitHub/Models/DependabotAlertSecurityVulnerability_first_patched_version.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Details pertaining to the package version that patches this vulnerability. /// - public class DependabotAlertSecurityVulnerability_first_patched_version : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DependabotAlertSecurityVulnerability_first_patched_version : IParsable { /// The package version that patches this vulnerability. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -21,12 +23,12 @@ public class DependabotAlertSecurityVulnerability_first_patched_version : IParsa /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DependabotAlertSecurityVulnerability_first_patched_version CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DependabotAlertSecurityVulnerability_first_patched_version CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DependabotAlertSecurityVulnerability_first_patched_version(); + return new global::GitHub.Models.DependabotAlertSecurityVulnerability_first_patched_version(); } /// /// The deserialization information for the current model @@ -36,7 +38,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"identifier", n => { Identifier = n.GetStringValue(); } }, + { "identifier", n => { Identifier = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/DependabotAlertSecurityVulnerability_severity.cs b/src/GitHub/Models/DependabotAlertSecurityVulnerability_severity.cs index b7159660..c7efddd0 100644 --- a/src/GitHub/Models/DependabotAlertSecurityVulnerability_severity.cs +++ b/src/GitHub/Models/DependabotAlertSecurityVulnerability_severity.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The severity of the vulnerability. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum DependabotAlertSecurityVulnerability_severity { [EnumMember(Value = "low")] diff --git a/src/GitHub/Models/DependabotAlertWithRepository.cs b/src/GitHub/Models/DependabotAlertWithRepository.cs index 018a8fc5..5cd0ad33 100644 --- a/src/GitHub/Models/DependabotAlertWithRepository.cs +++ b/src/GitHub/Models/DependabotAlertWithRepository.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A Dependabot alert. /// - public class DependabotAlertWithRepository : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DependabotAlertWithRepository : IParsable { /// The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. public DateTimeOffset? AutoDismissedAt { get; private set; } @@ -17,20 +19,20 @@ public class DependabotAlertWithRepository : IParsable /// Details for the vulnerable dependency. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DependabotAlertWithRepository_dependency? Dependency { get; private set; } + public global::GitHub.Models.DependabotAlertWithRepository_dependency? Dependency { get; private set; } #nullable restore #else - public DependabotAlertWithRepository_dependency Dependency { get; private set; } + public global::GitHub.Models.DependabotAlertWithRepository_dependency Dependency { get; private set; } #endif /// The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. public DateTimeOffset? DismissedAt { get; private set; } /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? DismissedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser? DismissedBy { get; set; } #nullable restore #else - public NullableSimpleUser DismissedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser DismissedBy { get; set; } #endif /// An optional comment associated with the alert's dismissal. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -41,7 +43,7 @@ public class DependabotAlertWithRepository : IParsable public string DismissedComment { get; set; } #endif /// The reason that the alert was dismissed. - public DependabotAlertWithRepository_dismissed_reason? DismissedReason { get; set; } + public global::GitHub.Models.DependabotAlertWithRepository_dismissed_reason? DismissedReason { get; set; } /// The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. public DateTimeOffset? FixedAt { get; private set; } /// The GitHub URL of the alert resource. @@ -57,29 +59,29 @@ public class DependabotAlertWithRepository : IParsable /// A GitHub repository. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleRepository? Repository { get; set; } + public global::GitHub.Models.SimpleRepository? Repository { get; set; } #nullable restore #else - public SimpleRepository Repository { get; set; } + public global::GitHub.Models.SimpleRepository Repository { get; set; } #endif /// Details for the GitHub Security Advisory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DependabotAlertSecurityAdvisory? SecurityAdvisory { get; private set; } + public global::GitHub.Models.DependabotAlertSecurityAdvisory? SecurityAdvisory { get; private set; } #nullable restore #else - public DependabotAlertSecurityAdvisory SecurityAdvisory { get; private set; } + public global::GitHub.Models.DependabotAlertSecurityAdvisory SecurityAdvisory { get; private set; } #endif /// Details pertaining to one vulnerable version range for the advisory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DependabotAlertSecurityVulnerability? SecurityVulnerability { get; private set; } + public global::GitHub.Models.DependabotAlertSecurityVulnerability? SecurityVulnerability { get; private set; } #nullable restore #else - public DependabotAlertSecurityVulnerability SecurityVulnerability { get; private set; } + public global::GitHub.Models.DependabotAlertSecurityVulnerability SecurityVulnerability { get; private set; } #endif /// The state of the Dependabot alert. - public DependabotAlertWithRepository_state? State { get; private set; } + public global::GitHub.Models.DependabotAlertWithRepository_state? State { get; private set; } /// The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. public DateTimeOffset? UpdatedAt { get; private set; } /// The REST API URL of the alert resource. @@ -93,12 +95,12 @@ public class DependabotAlertWithRepository : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DependabotAlertWithRepository CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DependabotAlertWithRepository CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DependabotAlertWithRepository(); + return new global::GitHub.Models.DependabotAlertWithRepository(); } /// /// The deserialization information for the current model @@ -108,22 +110,22 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"auto_dismissed_at", n => { AutoDismissedAt = n.GetDateTimeOffsetValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"dependency", n => { Dependency = n.GetObjectValue(DependabotAlertWithRepository_dependency.CreateFromDiscriminatorValue); } }, - {"dismissed_at", n => { DismissedAt = n.GetDateTimeOffsetValue(); } }, - {"dismissed_by", n => { DismissedBy = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"dismissed_comment", n => { DismissedComment = n.GetStringValue(); } }, - {"dismissed_reason", n => { DismissedReason = n.GetEnumValue(); } }, - {"fixed_at", n => { FixedAt = n.GetDateTimeOffsetValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"number", n => { Number = n.GetIntValue(); } }, - {"repository", n => { Repository = n.GetObjectValue(SimpleRepository.CreateFromDiscriminatorValue); } }, - {"security_advisory", n => { SecurityAdvisory = n.GetObjectValue(DependabotAlertSecurityAdvisory.CreateFromDiscriminatorValue); } }, - {"security_vulnerability", n => { SecurityVulnerability = n.GetObjectValue(DependabotAlertSecurityVulnerability.CreateFromDiscriminatorValue); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "auto_dismissed_at", n => { AutoDismissedAt = n.GetDateTimeOffsetValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "dependency", n => { Dependency = n.GetObjectValue(global::GitHub.Models.DependabotAlertWithRepository_dependency.CreateFromDiscriminatorValue); } }, + { "dismissed_at", n => { DismissedAt = n.GetDateTimeOffsetValue(); } }, + { "dismissed_by", n => { DismissedBy = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "dismissed_comment", n => { DismissedComment = n.GetStringValue(); } }, + { "dismissed_reason", n => { DismissedReason = n.GetEnumValue(); } }, + { "fixed_at", n => { FixedAt = n.GetDateTimeOffsetValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "number", n => { Number = n.GetIntValue(); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.SimpleRepository.CreateFromDiscriminatorValue); } }, + { "security_advisory", n => { SecurityAdvisory = n.GetObjectValue(global::GitHub.Models.DependabotAlertSecurityAdvisory.CreateFromDiscriminatorValue); } }, + { "security_vulnerability", n => { SecurityVulnerability = n.GetObjectValue(global::GitHub.Models.DependabotAlertSecurityVulnerability.CreateFromDiscriminatorValue); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -133,10 +135,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("dismissed_by", DismissedBy); + writer.WriteObjectValue("dismissed_by", DismissedBy); writer.WriteStringValue("dismissed_comment", DismissedComment); - writer.WriteEnumValue("dismissed_reason", DismissedReason); - writer.WriteObjectValue("repository", Repository); + writer.WriteEnumValue("dismissed_reason", DismissedReason); + writer.WriteObjectValue("repository", Repository); } } } diff --git a/src/GitHub/Models/DependabotAlertWithRepository_dependency.cs b/src/GitHub/Models/DependabotAlertWithRepository_dependency.cs index f3ee2a01..0c148b0d 100644 --- a/src/GitHub/Models/DependabotAlertWithRepository_dependency.cs +++ b/src/GitHub/Models/DependabotAlertWithRepository_dependency.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Details for the vulnerable dependency. /// - public class DependabotAlertWithRepository_dependency : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DependabotAlertWithRepository_dependency : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,15 +25,15 @@ public class DependabotAlertWithRepository_dependency : IAdditionalDataHolder, I /// Details for the vulnerable package. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DependabotAlertPackage? Package { get; private set; } + public global::GitHub.Models.DependabotAlertPackage? Package { get; private set; } #nullable restore #else - public DependabotAlertPackage Package { get; private set; } + public global::GitHub.Models.DependabotAlertPackage Package { get; private set; } #endif /// The execution scope of the vulnerable dependency. - public DependabotAlertWithRepository_dependency_scope? Scope { get; private set; } + public global::GitHub.Models.DependabotAlertWithRepository_dependency_scope? Scope { get; private set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DependabotAlertWithRepository_dependency() { @@ -40,12 +42,12 @@ public DependabotAlertWithRepository_dependency() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DependabotAlertWithRepository_dependency CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DependabotAlertWithRepository_dependency CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DependabotAlertWithRepository_dependency(); + return new global::GitHub.Models.DependabotAlertWithRepository_dependency(); } /// /// The deserialization information for the current model @@ -55,9 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"manifest_path", n => { ManifestPath = n.GetStringValue(); } }, - {"package", n => { Package = n.GetObjectValue(DependabotAlertPackage.CreateFromDiscriminatorValue); } }, - {"scope", n => { Scope = n.GetEnumValue(); } }, + { "manifest_path", n => { ManifestPath = n.GetStringValue(); } }, + { "package", n => { Package = n.GetObjectValue(global::GitHub.Models.DependabotAlertPackage.CreateFromDiscriminatorValue); } }, + { "scope", n => { Scope = n.GetEnumValue(); } }, }; } /// diff --git a/src/GitHub/Models/DependabotAlertWithRepository_dependency_scope.cs b/src/GitHub/Models/DependabotAlertWithRepository_dependency_scope.cs index d3d1853e..0f1a4d8a 100644 --- a/src/GitHub/Models/DependabotAlertWithRepository_dependency_scope.cs +++ b/src/GitHub/Models/DependabotAlertWithRepository_dependency_scope.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The execution scope of the vulnerable dependency. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum DependabotAlertWithRepository_dependency_scope { [EnumMember(Value = "development")] diff --git a/src/GitHub/Models/DependabotAlertWithRepository_dismissed_reason.cs b/src/GitHub/Models/DependabotAlertWithRepository_dismissed_reason.cs index e86e5680..8b677957 100644 --- a/src/GitHub/Models/DependabotAlertWithRepository_dismissed_reason.cs +++ b/src/GitHub/Models/DependabotAlertWithRepository_dismissed_reason.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The reason that the alert was dismissed. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum DependabotAlertWithRepository_dismissed_reason { [EnumMember(Value = "fix_started")] diff --git a/src/GitHub/Models/DependabotAlertWithRepository_state.cs b/src/GitHub/Models/DependabotAlertWithRepository_state.cs index 029a3cf4..8d19e6fc 100644 --- a/src/GitHub/Models/DependabotAlertWithRepository_state.cs +++ b/src/GitHub/Models/DependabotAlertWithRepository_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The state of the Dependabot alert. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum DependabotAlertWithRepository_state { [EnumMember(Value = "auto_dismissed")] diff --git a/src/GitHub/Models/DependabotAlert_dependency.cs b/src/GitHub/Models/DependabotAlert_dependency.cs index 1a8156dd..3132cab9 100644 --- a/src/GitHub/Models/DependabotAlert_dependency.cs +++ b/src/GitHub/Models/DependabotAlert_dependency.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Details for the vulnerable dependency. /// - public class DependabotAlert_dependency : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DependabotAlert_dependency : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,15 +25,15 @@ public class DependabotAlert_dependency : IAdditionalDataHolder, IParsable /// Details for the vulnerable package. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DependabotAlertPackage? Package { get; private set; } + public global::GitHub.Models.DependabotAlertPackage? Package { get; private set; } #nullable restore #else - public DependabotAlertPackage Package { get; private set; } + public global::GitHub.Models.DependabotAlertPackage Package { get; private set; } #endif /// The execution scope of the vulnerable dependency. - public DependabotAlert_dependency_scope? Scope { get; private set; } + public global::GitHub.Models.DependabotAlert_dependency_scope? Scope { get; private set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DependabotAlert_dependency() { @@ -40,12 +42,12 @@ public DependabotAlert_dependency() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DependabotAlert_dependency CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DependabotAlert_dependency CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DependabotAlert_dependency(); + return new global::GitHub.Models.DependabotAlert_dependency(); } /// /// The deserialization information for the current model @@ -55,9 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"manifest_path", n => { ManifestPath = n.GetStringValue(); } }, - {"package", n => { Package = n.GetObjectValue(DependabotAlertPackage.CreateFromDiscriminatorValue); } }, - {"scope", n => { Scope = n.GetEnumValue(); } }, + { "manifest_path", n => { ManifestPath = n.GetStringValue(); } }, + { "package", n => { Package = n.GetObjectValue(global::GitHub.Models.DependabotAlertPackage.CreateFromDiscriminatorValue); } }, + { "scope", n => { Scope = n.GetEnumValue(); } }, }; } /// diff --git a/src/GitHub/Models/DependabotAlert_dependency_scope.cs b/src/GitHub/Models/DependabotAlert_dependency_scope.cs index 17d04e6e..d740cb07 100644 --- a/src/GitHub/Models/DependabotAlert_dependency_scope.cs +++ b/src/GitHub/Models/DependabotAlert_dependency_scope.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The execution scope of the vulnerable dependency. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum DependabotAlert_dependency_scope { [EnumMember(Value = "development")] diff --git a/src/GitHub/Models/DependabotAlert_dismissed_reason.cs b/src/GitHub/Models/DependabotAlert_dismissed_reason.cs index 3d2b0b2f..8e003b13 100644 --- a/src/GitHub/Models/DependabotAlert_dismissed_reason.cs +++ b/src/GitHub/Models/DependabotAlert_dismissed_reason.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The reason that the alert was dismissed. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum DependabotAlert_dismissed_reason { [EnumMember(Value = "fix_started")] diff --git a/src/GitHub/Models/DependabotAlert_state.cs b/src/GitHub/Models/DependabotAlert_state.cs index 0bae74cb..d6493a95 100644 --- a/src/GitHub/Models/DependabotAlert_state.cs +++ b/src/GitHub/Models/DependabotAlert_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The state of the Dependabot alert. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum DependabotAlert_state { [EnumMember(Value = "auto_dismissed")] diff --git a/src/GitHub/Models/DependabotPublicKey.cs b/src/GitHub/Models/DependabotPublicKey.cs index 7e740e1a..76373134 100644 --- a/src/GitHub/Models/DependabotPublicKey.cs +++ b/src/GitHub/Models/DependabotPublicKey.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The public key used for setting Dependabot Secrets. /// - public class DependabotPublicKey : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DependabotPublicKey : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class DependabotPublicKey : IAdditionalDataHolder, IParsable public string KeyId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DependabotPublicKey() { @@ -38,12 +40,12 @@ public DependabotPublicKey() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DependabotPublicKey CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DependabotPublicKey CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DependabotPublicKey(); + return new global::GitHub.Models.DependabotPublicKey(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"key", n => { Key = n.GetStringValue(); } }, - {"key_id", n => { KeyId = n.GetStringValue(); } }, + { "key", n => { Key = n.GetStringValue(); } }, + { "key_id", n => { KeyId = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/DependabotSecret.cs b/src/GitHub/Models/DependabotSecret.cs index 2b051365..57260c6a 100644 --- a/src/GitHub/Models/DependabotSecret.cs +++ b/src/GitHub/Models/DependabotSecret.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Set secrets for Dependabot. /// - public class DependabotSecret : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DependabotSecret : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -25,7 +27,7 @@ public class DependabotSecret : IAdditionalDataHolder, IParsable /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DependabotSecret() { @@ -34,12 +36,12 @@ public DependabotSecret() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DependabotSecret CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DependabotSecret CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DependabotSecret(); + return new global::GitHub.Models.DependabotSecret(); } /// /// The deserialization information for the current model @@ -49,9 +51,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, }; } /// diff --git a/src/GitHub/Models/DependencyGraphDiff.cs b/src/GitHub/Models/DependencyGraphDiff.cs index 8e4da2b4..5b1b5e77 100644 --- a/src/GitHub/Models/DependencyGraphDiff.cs +++ b/src/GitHub/Models/DependencyGraphDiff.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class DependencyGraphDiff : IAdditionalDataHolder, IParsable + public partial class DependencyGraphDiff : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The change_type property - public DependencyGraphDiff_change_type? ChangeType { get; set; } + public global::GitHub.Models.DependencyGraphDiff_change_type? ChangeType { get; set; } /// The ecosystem property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -54,7 +56,7 @@ public class DependencyGraphDiff : IAdditionalDataHolder, IParsable public string PackageUrl { get; set; } #endif /// Where the dependency is utilized. `development` means that the dependency is only utilized in the development environment. `runtime` means that the dependency is utilized at runtime and in the development environment. - public DependencyGraphDiff_scope? Scope { get; set; } + public global::GitHub.Models.DependencyGraphDiff_scope? Scope { get; set; } /// The source_repository_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -74,13 +76,13 @@ public class DependencyGraphDiff : IAdditionalDataHolder, IParsable /// The vulnerabilities property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Vulnerabilities { get; set; } + public List? Vulnerabilities { get; set; } #nullable restore #else - public List Vulnerabilities { get; set; } + public List Vulnerabilities { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DependencyGraphDiff() { @@ -89,12 +91,12 @@ public DependencyGraphDiff() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DependencyGraphDiff CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DependencyGraphDiff CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DependencyGraphDiff(); + return new global::GitHub.Models.DependencyGraphDiff(); } /// /// The deserialization information for the current model @@ -104,16 +106,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"change_type", n => { ChangeType = n.GetEnumValue(); } }, - {"ecosystem", n => { Ecosystem = n.GetStringValue(); } }, - {"license", n => { License = n.GetStringValue(); } }, - {"manifest", n => { Manifest = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"package_url", n => { PackageUrl = n.GetStringValue(); } }, - {"scope", n => { Scope = n.GetEnumValue(); } }, - {"source_repository_url", n => { SourceRepositoryUrl = n.GetStringValue(); } }, - {"version", n => { Version = n.GetStringValue(); } }, - {"vulnerabilities", n => { Vulnerabilities = n.GetCollectionOfObjectValues(DependencyGraphDiff_vulnerabilities.CreateFromDiscriminatorValue)?.ToList(); } }, + { "change_type", n => { ChangeType = n.GetEnumValue(); } }, + { "ecosystem", n => { Ecosystem = n.GetStringValue(); } }, + { "license", n => { License = n.GetStringValue(); } }, + { "manifest", n => { Manifest = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "package_url", n => { PackageUrl = n.GetStringValue(); } }, + { "scope", n => { Scope = n.GetEnumValue(); } }, + { "source_repository_url", n => { SourceRepositoryUrl = n.GetStringValue(); } }, + { "version", n => { Version = n.GetStringValue(); } }, + { "vulnerabilities", n => { Vulnerabilities = n.GetCollectionOfObjectValues(global::GitHub.Models.DependencyGraphDiff_vulnerabilities.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -123,16 +125,16 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("change_type", ChangeType); + writer.WriteEnumValue("change_type", ChangeType); writer.WriteStringValue("ecosystem", Ecosystem); writer.WriteStringValue("license", License); writer.WriteStringValue("manifest", Manifest); writer.WriteStringValue("name", Name); writer.WriteStringValue("package_url", PackageUrl); - writer.WriteEnumValue("scope", Scope); + writer.WriteEnumValue("scope", Scope); writer.WriteStringValue("source_repository_url", SourceRepositoryUrl); writer.WriteStringValue("version", Version); - writer.WriteCollectionOfObjectValues("vulnerabilities", Vulnerabilities); + writer.WriteCollectionOfObjectValues("vulnerabilities", Vulnerabilities); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/DependencyGraphDiff_change_type.cs b/src/GitHub/Models/DependencyGraphDiff_change_type.cs index 0985a446..7ebf9a4b 100644 --- a/src/GitHub/Models/DependencyGraphDiff_change_type.cs +++ b/src/GitHub/Models/DependencyGraphDiff_change_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum DependencyGraphDiff_change_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/DependencyGraphDiff_scope.cs b/src/GitHub/Models/DependencyGraphDiff_scope.cs index 2d3ef870..41d7e6d5 100644 --- a/src/GitHub/Models/DependencyGraphDiff_scope.cs +++ b/src/GitHub/Models/DependencyGraphDiff_scope.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Where the dependency is utilized. `development` means that the dependency is only utilized in the development environment. `runtime` means that the dependency is utilized at runtime and in the development environment. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum DependencyGraphDiff_scope { [EnumMember(Value = "unknown")] diff --git a/src/GitHub/Models/DependencyGraphDiff_vulnerabilities.cs b/src/GitHub/Models/DependencyGraphDiff_vulnerabilities.cs index 4d80efcd..66e88d8f 100644 --- a/src/GitHub/Models/DependencyGraphDiff_vulnerabilities.cs +++ b/src/GitHub/Models/DependencyGraphDiff_vulnerabilities.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class DependencyGraphDiff_vulnerabilities : IAdditionalDataHolder, IParsable + public partial class DependencyGraphDiff_vulnerabilities : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -44,7 +46,7 @@ public class DependencyGraphDiff_vulnerabilities : IAdditionalDataHolder, IParsa public string Severity { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DependencyGraphDiff_vulnerabilities() { @@ -53,12 +55,12 @@ public DependencyGraphDiff_vulnerabilities() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DependencyGraphDiff_vulnerabilities CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DependencyGraphDiff_vulnerabilities CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DependencyGraphDiff_vulnerabilities(); + return new global::GitHub.Models.DependencyGraphDiff_vulnerabilities(); } /// /// The deserialization information for the current model @@ -68,10 +70,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"advisory_ghsa_id", n => { AdvisoryGhsaId = n.GetStringValue(); } }, - {"advisory_summary", n => { AdvisorySummary = n.GetStringValue(); } }, - {"advisory_url", n => { AdvisoryUrl = n.GetStringValue(); } }, - {"severity", n => { Severity = n.GetStringValue(); } }, + { "advisory_ghsa_id", n => { AdvisoryGhsaId = n.GetStringValue(); } }, + { "advisory_summary", n => { AdvisorySummary = n.GetStringValue(); } }, + { "advisory_url", n => { AdvisoryUrl = n.GetStringValue(); } }, + { "severity", n => { Severity = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/DependencyGraphSpdxSbom.cs b/src/GitHub/Models/DependencyGraphSpdxSbom.cs index 9e19ba12..5b80b871 100644 --- a/src/GitHub/Models/DependencyGraphSpdxSbom.cs +++ b/src/GitHub/Models/DependencyGraphSpdxSbom.cs @@ -1,27 +1,29 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A schema for the SPDX JSON format returned by the Dependency Graph. /// - public class DependencyGraphSpdxSbom : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DependencyGraphSpdxSbom : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The sbom property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DependencyGraphSpdxSbom_sbom? Sbom { get; set; } + public global::GitHub.Models.DependencyGraphSpdxSbom_sbom? Sbom { get; set; } #nullable restore #else - public DependencyGraphSpdxSbom_sbom Sbom { get; set; } + public global::GitHub.Models.DependencyGraphSpdxSbom_sbom Sbom { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DependencyGraphSpdxSbom() { @@ -30,12 +32,12 @@ public DependencyGraphSpdxSbom() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DependencyGraphSpdxSbom CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DependencyGraphSpdxSbom CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DependencyGraphSpdxSbom(); + return new global::GitHub.Models.DependencyGraphSpdxSbom(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"sbom", n => { Sbom = n.GetObjectValue(DependencyGraphSpdxSbom_sbom.CreateFromDiscriminatorValue); } }, + { "sbom", n => { Sbom = n.GetObjectValue(global::GitHub.Models.DependencyGraphSpdxSbom_sbom.CreateFromDiscriminatorValue); } }, }; } /// @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("sbom", Sbom); + writer.WriteObjectValue("sbom", Sbom); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/DependencyGraphSpdxSbom_sbom.cs b/src/GitHub/Models/DependencyGraphSpdxSbom_sbom.cs index f445a31a..6f4f3876 100644 --- a/src/GitHub/Models/DependencyGraphSpdxSbom_sbom.cs +++ b/src/GitHub/Models/DependencyGraphSpdxSbom_sbom.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class DependencyGraphSpdxSbom_sbom : IAdditionalDataHolder, IParsable + public partial class DependencyGraphSpdxSbom_sbom : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,10 +16,10 @@ public class DependencyGraphSpdxSbom_sbom : IAdditionalDataHolder, IParsable /// The creationInfo property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DependencyGraphSpdxSbom_sbom_creationInfo? CreationInfo { get; set; } + public global::GitHub.Models.DependencyGraphSpdxSbom_sbom_creationInfo? CreationInfo { get; set; } #nullable restore #else - public DependencyGraphSpdxSbom_sbom_creationInfo CreationInfo { get; set; } + public global::GitHub.Models.DependencyGraphSpdxSbom_sbom_creationInfo CreationInfo { get; set; } #endif /// The license under which the SPDX document is licensed. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -54,10 +56,10 @@ public class DependencyGraphSpdxSbom_sbom : IAdditionalDataHolder, IParsable /// The packages property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Packages { get; set; } + public List? Packages { get; set; } #nullable restore #else - public List Packages { get; set; } + public List Packages { get; set; } #endif /// The SPDX identifier for the SPDX document. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -76,7 +78,7 @@ public class DependencyGraphSpdxSbom_sbom : IAdditionalDataHolder, IParsable public string SpdxVersion { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DependencyGraphSpdxSbom_sbom() { @@ -85,12 +87,12 @@ public DependencyGraphSpdxSbom_sbom() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DependencyGraphSpdxSbom_sbom CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DependencyGraphSpdxSbom_sbom CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DependencyGraphSpdxSbom_sbom(); + return new global::GitHub.Models.DependencyGraphSpdxSbom_sbom(); } /// /// The deserialization information for the current model @@ -100,14 +102,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"creationInfo", n => { CreationInfo = n.GetObjectValue(DependencyGraphSpdxSbom_sbom_creationInfo.CreateFromDiscriminatorValue); } }, - {"dataLicense", n => { DataLicense = n.GetStringValue(); } }, - {"documentDescribes", n => { DocumentDescribes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"documentNamespace", n => { DocumentNamespace = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"packages", n => { Packages = n.GetCollectionOfObjectValues(DependencyGraphSpdxSbom_sbom_packages.CreateFromDiscriminatorValue)?.ToList(); } }, - {"SPDXID", n => { SPDXID = n.GetStringValue(); } }, - {"spdxVersion", n => { SpdxVersion = n.GetStringValue(); } }, + { "creationInfo", n => { CreationInfo = n.GetObjectValue(global::GitHub.Models.DependencyGraphSpdxSbom_sbom_creationInfo.CreateFromDiscriminatorValue); } }, + { "dataLicense", n => { DataLicense = n.GetStringValue(); } }, + { "documentDescribes", n => { DocumentDescribes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "documentNamespace", n => { DocumentNamespace = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "packages", n => { Packages = n.GetCollectionOfObjectValues(global::GitHub.Models.DependencyGraphSpdxSbom_sbom_packages.CreateFromDiscriminatorValue)?.AsList(); } }, + { "SPDXID", n => { SPDXID = n.GetStringValue(); } }, + { "spdxVersion", n => { SpdxVersion = n.GetStringValue(); } }, }; } /// @@ -117,12 +119,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("creationInfo", CreationInfo); + writer.WriteObjectValue("creationInfo", CreationInfo); writer.WriteStringValue("dataLicense", DataLicense); writer.WriteCollectionOfPrimitiveValues("documentDescribes", DocumentDescribes); writer.WriteStringValue("documentNamespace", DocumentNamespace); writer.WriteStringValue("name", Name); - writer.WriteCollectionOfObjectValues("packages", Packages); + writer.WriteCollectionOfObjectValues("packages", Packages); writer.WriteStringValue("SPDXID", SPDXID); writer.WriteStringValue("spdxVersion", SpdxVersion); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/DependencyGraphSpdxSbom_sbom_creationInfo.cs b/src/GitHub/Models/DependencyGraphSpdxSbom_sbom_creationInfo.cs index ce6deb96..034a148c 100644 --- a/src/GitHub/Models/DependencyGraphSpdxSbom_sbom_creationInfo.cs +++ b/src/GitHub/Models/DependencyGraphSpdxSbom_sbom_creationInfo.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class DependencyGraphSpdxSbom_sbom_creationInfo : IAdditionalDataHolder, IParsable + public partial class DependencyGraphSpdxSbom_sbom_creationInfo : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class DependencyGraphSpdxSbom_sbom_creationInfo : IAdditionalDataHolder, public List Creators { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DependencyGraphSpdxSbom_sbom_creationInfo() { @@ -37,12 +39,12 @@ public DependencyGraphSpdxSbom_sbom_creationInfo() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DependencyGraphSpdxSbom_sbom_creationInfo CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DependencyGraphSpdxSbom_sbom_creationInfo CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DependencyGraphSpdxSbom_sbom_creationInfo(); + return new global::GitHub.Models.DependencyGraphSpdxSbom_sbom_creationInfo(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created", n => { Created = n.GetStringValue(); } }, - {"creators", n => { Creators = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "created", n => { Created = n.GetStringValue(); } }, + { "creators", n => { Creators = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Models/DependencyGraphSpdxSbom_sbom_packages.cs b/src/GitHub/Models/DependencyGraphSpdxSbom_sbom_packages.cs index 9cc74084..d37a3405 100644 --- a/src/GitHub/Models/DependencyGraphSpdxSbom_sbom_packages.cs +++ b/src/GitHub/Models/DependencyGraphSpdxSbom_sbom_packages.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class DependencyGraphSpdxSbom_sbom_packages : IAdditionalDataHolder, IParsable + public partial class DependencyGraphSpdxSbom_sbom_packages : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,10 +32,10 @@ public class DependencyGraphSpdxSbom_sbom_packages : IAdditionalDataHolder, IPar /// The externalRefs property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ExternalRefs { get; set; } + public List? ExternalRefs { get; set; } #nullable restore #else - public List ExternalRefs { get; set; } + public List ExternalRefs { get; set; } #endif /// Whether the package's file content has been subjected toanalysis during the creation of the SPDX document. public bool? FilesAnalyzed { get; set; } @@ -86,7 +88,7 @@ public class DependencyGraphSpdxSbom_sbom_packages : IAdditionalDataHolder, IPar public string VersionInfo { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DependencyGraphSpdxSbom_sbom_packages() { @@ -95,12 +97,12 @@ public DependencyGraphSpdxSbom_sbom_packages() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DependencyGraphSpdxSbom_sbom_packages CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DependencyGraphSpdxSbom_sbom_packages CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DependencyGraphSpdxSbom_sbom_packages(); + return new global::GitHub.Models.DependencyGraphSpdxSbom_sbom_packages(); } /// /// The deserialization information for the current model @@ -110,16 +112,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"copyrightText", n => { CopyrightText = n.GetStringValue(); } }, - {"downloadLocation", n => { DownloadLocation = n.GetStringValue(); } }, - {"externalRefs", n => { ExternalRefs = n.GetCollectionOfObjectValues(DependencyGraphSpdxSbom_sbom_packages_externalRefs.CreateFromDiscriminatorValue)?.ToList(); } }, - {"filesAnalyzed", n => { FilesAnalyzed = n.GetBoolValue(); } }, - {"licenseConcluded", n => { LicenseConcluded = n.GetStringValue(); } }, - {"licenseDeclared", n => { LicenseDeclared = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"SPDXID", n => { SPDXID = n.GetStringValue(); } }, - {"supplier", n => { Supplier = n.GetStringValue(); } }, - {"versionInfo", n => { VersionInfo = n.GetStringValue(); } }, + { "copyrightText", n => { CopyrightText = n.GetStringValue(); } }, + { "downloadLocation", n => { DownloadLocation = n.GetStringValue(); } }, + { "externalRefs", n => { ExternalRefs = n.GetCollectionOfObjectValues(global::GitHub.Models.DependencyGraphSpdxSbom_sbom_packages_externalRefs.CreateFromDiscriminatorValue)?.AsList(); } }, + { "filesAnalyzed", n => { FilesAnalyzed = n.GetBoolValue(); } }, + { "licenseConcluded", n => { LicenseConcluded = n.GetStringValue(); } }, + { "licenseDeclared", n => { LicenseDeclared = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "SPDXID", n => { SPDXID = n.GetStringValue(); } }, + { "supplier", n => { Supplier = n.GetStringValue(); } }, + { "versionInfo", n => { VersionInfo = n.GetStringValue(); } }, }; } /// @@ -131,7 +133,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("copyrightText", CopyrightText); writer.WriteStringValue("downloadLocation", DownloadLocation); - writer.WriteCollectionOfObjectValues("externalRefs", ExternalRefs); + writer.WriteCollectionOfObjectValues("externalRefs", ExternalRefs); writer.WriteBoolValue("filesAnalyzed", FilesAnalyzed); writer.WriteStringValue("licenseConcluded", LicenseConcluded); writer.WriteStringValue("licenseDeclared", LicenseDeclared); diff --git a/src/GitHub/Models/DependencyGraphSpdxSbom_sbom_packages_externalRefs.cs b/src/GitHub/Models/DependencyGraphSpdxSbom_sbom_packages_externalRefs.cs index f59cd0dd..3372ec27 100644 --- a/src/GitHub/Models/DependencyGraphSpdxSbom_sbom_packages_externalRefs.cs +++ b/src/GitHub/Models/DependencyGraphSpdxSbom_sbom_packages_externalRefs.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class DependencyGraphSpdxSbom_sbom_packages_externalRefs : IAdditionalDataHolder, IParsable + public partial class DependencyGraphSpdxSbom_sbom_packages_externalRefs : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class DependencyGraphSpdxSbom_sbom_packages_externalRefs : IAdditionalDat public string ReferenceType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DependencyGraphSpdxSbom_sbom_packages_externalRefs() { @@ -45,12 +47,12 @@ public DependencyGraphSpdxSbom_sbom_packages_externalRefs() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DependencyGraphSpdxSbom_sbom_packages_externalRefs CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DependencyGraphSpdxSbom_sbom_packages_externalRefs CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DependencyGraphSpdxSbom_sbom_packages_externalRefs(); + return new global::GitHub.Models.DependencyGraphSpdxSbom_sbom_packages_externalRefs(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"referenceCategory", n => { ReferenceCategory = n.GetStringValue(); } }, - {"referenceLocator", n => { ReferenceLocator = n.GetStringValue(); } }, - {"referenceType", n => { ReferenceType = n.GetStringValue(); } }, + { "referenceCategory", n => { ReferenceCategory = n.GetStringValue(); } }, + { "referenceLocator", n => { ReferenceLocator = n.GetStringValue(); } }, + { "referenceType", n => { ReferenceType = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/DeployKey.cs b/src/GitHub/Models/DeployKey.cs index c16b6f74..fc0b8fbf 100644 --- a/src/GitHub/Models/DeployKey.cs +++ b/src/GitHub/Models/DeployKey.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// An SSH key granting access to a single repository. /// - public class DeployKey : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DeployKey : IAdditionalDataHolder, IParsable { /// The added_by property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -67,7 +69,7 @@ public class DeployKey : IAdditionalDataHolder, IParsable /// The verified property public bool? Verified { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DeployKey() { @@ -76,12 +78,12 @@ public DeployKey() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DeployKey CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DeployKey CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeployKey(); + return new global::GitHub.Models.DeployKey(); } /// /// The deserialization information for the current model @@ -91,15 +93,15 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"added_by", n => { AddedBy = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"key", n => { Key = n.GetStringValue(); } }, - {"last_used", n => { LastUsed = n.GetStringValue(); } }, - {"read_only", n => { ReadOnly = n.GetBoolValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"verified", n => { Verified = n.GetBoolValue(); } }, + { "added_by", n => { AddedBy = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "key", n => { Key = n.GetStringValue(); } }, + { "last_used", n => { LastUsed = n.GetStringValue(); } }, + { "read_only", n => { ReadOnly = n.GetBoolValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "verified", n => { Verified = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/Deployment.cs b/src/GitHub/Models/Deployment.cs index 274cc29d..a912214b 100644 --- a/src/GitHub/Models/Deployment.cs +++ b/src/GitHub/Models/Deployment.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A request for a specific ref(branch,sha,tag) to be deployed /// - public class Deployment : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Deployment : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -17,10 +19,10 @@ public class Deployment : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Creator { get; set; } + public global::GitHub.Models.NullableSimpleUser? Creator { get; set; } #nullable restore #else - public NullableSimpleUser Creator { get; set; } + public global::GitHub.Models.NullableSimpleUser Creator { get; set; } #endif /// The description property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -67,10 +69,10 @@ public class Deployment : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// Specifies if the given environment is one that end-users directly interact with. Default: false. public bool? ProductionEnvironment { get; set; } @@ -127,7 +129,7 @@ public class Deployment : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Deployment() { @@ -136,12 +138,12 @@ public Deployment() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Deployment CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Deployment CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Deployment(); + return new global::GitHub.Models.Deployment(); } /// /// The deserialization information for the current model @@ -151,24 +153,24 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"creator", n => { Creator = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"environment", n => { Environment = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"original_environment", n => { OriginalEnvironment = n.GetStringValue(); } }, - {"payload", n => { Payload = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"production_environment", n => { ProductionEnvironment = n.GetBoolValue(); } }, - {"ref", n => { Ref = n.GetStringValue(); } }, - {"repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, - {"task", n => { Task = n.GetStringValue(); } }, - {"transient_environment", n => { TransientEnvironment = n.GetBoolValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "creator", n => { Creator = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "environment", n => { Environment = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "original_environment", n => { OriginalEnvironment = n.GetStringValue(); } }, + { "payload", n => { Payload = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "production_environment", n => { ProductionEnvironment = n.GetBoolValue(); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, + { "repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, + { "task", n => { Task = n.GetStringValue(); } }, + { "transient_environment", n => { TransientEnvironment = n.GetBoolValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -179,14 +181,14 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); - writer.WriteObjectValue("creator", Creator); + writer.WriteObjectValue("creator", Creator); writer.WriteStringValue("description", Description); writer.WriteStringValue("environment", Environment); writer.WriteLongValue("id", Id); writer.WriteStringValue("node_id", NodeId); writer.WriteStringValue("original_environment", OriginalEnvironment); writer.WriteStringValue("payload", Payload); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); writer.WriteBoolValue("production_environment", ProductionEnvironment); writer.WriteStringValue("ref", Ref); writer.WriteStringValue("repository_url", RepositoryUrl); diff --git a/src/GitHub/Models/DeploymentBranchPolicy.cs b/src/GitHub/Models/DeploymentBranchPolicy.cs index dfeb1797..93dbed44 100644 --- a/src/GitHub/Models/DeploymentBranchPolicy.cs +++ b/src/GitHub/Models/DeploymentBranchPolicy.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Details of a deployment branch or tag policy. /// - public class DeploymentBranchPolicy : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DeploymentBranchPolicy : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -31,9 +33,9 @@ public class DeploymentBranchPolicy : IAdditionalDataHolder, IParsable public string NodeId { get; set; } #endif /// Whether this rule targets a branch or tag. - public DeploymentBranchPolicy_type? Type { get; set; } + public global::GitHub.Models.DeploymentBranchPolicy_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DeploymentBranchPolicy() { @@ -42,12 +44,12 @@ public DeploymentBranchPolicy() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DeploymentBranchPolicy CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DeploymentBranchPolicy CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeploymentBranchPolicy(); + return new global::GitHub.Models.DeploymentBranchPolicy(); } /// /// The deserialization information for the current model @@ -57,10 +59,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -73,7 +75,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("id", Id); writer.WriteStringValue("name", Name); writer.WriteStringValue("node_id", NodeId); - writer.WriteEnumValue("type", Type); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/DeploymentBranchPolicyNamePattern.cs b/src/GitHub/Models/DeploymentBranchPolicyNamePattern.cs index 6644dcce..6b8df2f1 100644 --- a/src/GitHub/Models/DeploymentBranchPolicyNamePattern.cs +++ b/src/GitHub/Models/DeploymentBranchPolicyNamePattern.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class DeploymentBranchPolicyNamePattern : IAdditionalDataHolder, IParsable + public partial class DeploymentBranchPolicyNamePattern : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class DeploymentBranchPolicyNamePattern : IAdditionalDataHolder, IParsabl public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DeploymentBranchPolicyNamePattern() { @@ -29,12 +31,12 @@ public DeploymentBranchPolicyNamePattern() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DeploymentBranchPolicyNamePattern CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DeploymentBranchPolicyNamePattern CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeploymentBranchPolicyNamePattern(); + return new global::GitHub.Models.DeploymentBranchPolicyNamePattern(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/DeploymentBranchPolicyNamePatternWithType.cs b/src/GitHub/Models/DeploymentBranchPolicyNamePatternWithType.cs index cc0e9086..6f37dc56 100644 --- a/src/GitHub/Models/DeploymentBranchPolicyNamePatternWithType.cs +++ b/src/GitHub/Models/DeploymentBranchPolicyNamePatternWithType.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class DeploymentBranchPolicyNamePatternWithType : IAdditionalDataHolder, IParsable + public partial class DeploymentBranchPolicyNamePatternWithType : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,9 +22,9 @@ public class DeploymentBranchPolicyNamePatternWithType : IAdditionalDataHolder, public string Name { get; set; } #endif /// Whether this rule targets a branch or tag - public DeploymentBranchPolicyNamePatternWithType_type? Type { get; set; } + public global::GitHub.Models.DeploymentBranchPolicyNamePatternWithType_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DeploymentBranchPolicyNamePatternWithType() { @@ -31,12 +33,12 @@ public DeploymentBranchPolicyNamePatternWithType() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DeploymentBranchPolicyNamePatternWithType CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DeploymentBranchPolicyNamePatternWithType CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeploymentBranchPolicyNamePatternWithType(); + return new global::GitHub.Models.DeploymentBranchPolicyNamePatternWithType(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); - writer.WriteEnumValue("type", Type); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/DeploymentBranchPolicyNamePatternWithType_type.cs b/src/GitHub/Models/DeploymentBranchPolicyNamePatternWithType_type.cs index 068ed7b9..758ead45 100644 --- a/src/GitHub/Models/DeploymentBranchPolicyNamePatternWithType_type.cs +++ b/src/GitHub/Models/DeploymentBranchPolicyNamePatternWithType_type.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Whether this rule targets a branch or tag + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum DeploymentBranchPolicyNamePatternWithType_type { [EnumMember(Value = "branch")] diff --git a/src/GitHub/Models/DeploymentBranchPolicySettings.cs b/src/GitHub/Models/DeploymentBranchPolicySettings.cs index 081efe79..ccde2e49 100644 --- a/src/GitHub/Models/DeploymentBranchPolicySettings.cs +++ b/src/GitHub/Models/DeploymentBranchPolicySettings.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`. /// - public class DeploymentBranchPolicySettings : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DeploymentBranchPolicySettings : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -17,7 +19,7 @@ public class DeploymentBranchPolicySettings : IAdditionalDataHolder, IParsable /// Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`. public bool? ProtectedBranches { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DeploymentBranchPolicySettings() { @@ -26,12 +28,12 @@ public DeploymentBranchPolicySettings() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DeploymentBranchPolicySettings CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DeploymentBranchPolicySettings CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeploymentBranchPolicySettings(); + return new global::GitHub.Models.DeploymentBranchPolicySettings(); } /// /// The deserialization information for the current model @@ -41,8 +43,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"custom_branch_policies", n => { CustomBranchPolicies = n.GetBoolValue(); } }, - {"protected_branches", n => { ProtectedBranches = n.GetBoolValue(); } }, + { "custom_branch_policies", n => { CustomBranchPolicies = n.GetBoolValue(); } }, + { "protected_branches", n => { ProtectedBranches = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/DeploymentBranchPolicy_type.cs b/src/GitHub/Models/DeploymentBranchPolicy_type.cs index fc0c854b..50872d2f 100644 --- a/src/GitHub/Models/DeploymentBranchPolicy_type.cs +++ b/src/GitHub/Models/DeploymentBranchPolicy_type.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Whether this rule targets a branch or tag. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum DeploymentBranchPolicy_type { [EnumMember(Value = "branch")] diff --git a/src/GitHub/Models/DeploymentProtectionRule.cs b/src/GitHub/Models/DeploymentProtectionRule.cs index 98258e62..8c3d5881 100644 --- a/src/GitHub/Models/DeploymentProtectionRule.cs +++ b/src/GitHub/Models/DeploymentProtectionRule.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Deployment protection rule /// - public class DeploymentProtectionRule : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DeploymentProtectionRule : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// A GitHub App that is providing a custom deployment protection rule. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CustomDeploymentRuleApp? App { get; set; } + public global::GitHub.Models.CustomDeploymentRuleApp? App { get; set; } #nullable restore #else - public CustomDeploymentRuleApp App { get; set; } + public global::GitHub.Models.CustomDeploymentRuleApp App { get; set; } #endif /// Whether the deployment protection rule is enabled for the environment. public bool? Enabled { get; set; } @@ -33,7 +35,7 @@ public class DeploymentProtectionRule : IAdditionalDataHolder, IParsable public string NodeId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DeploymentProtectionRule() { @@ -42,12 +44,12 @@ public DeploymentProtectionRule() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DeploymentProtectionRule CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DeploymentProtectionRule CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeploymentProtectionRule(); + return new global::GitHub.Models.DeploymentProtectionRule(); } /// /// The deserialization information for the current model @@ -57,10 +59,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"app", n => { App = n.GetObjectValue(CustomDeploymentRuleApp.CreateFromDiscriminatorValue); } }, - {"enabled", n => { Enabled = n.GetBoolValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, + { "app", n => { App = n.GetObjectValue(global::GitHub.Models.CustomDeploymentRuleApp.CreateFromDiscriminatorValue); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, }; } /// @@ -70,7 +72,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("app", App); + writer.WriteObjectValue("app", App); writer.WriteBoolValue("enabled", Enabled); writer.WriteIntValue("id", Id); writer.WriteStringValue("node_id", NodeId); diff --git a/src/GitHub/Models/DeploymentReviewerType.cs b/src/GitHub/Models/DeploymentReviewerType.cs index 383876f4..2883bfba 100644 --- a/src/GitHub/Models/DeploymentReviewerType.cs +++ b/src/GitHub/Models/DeploymentReviewerType.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The type of reviewer. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum DeploymentReviewerType { [EnumMember(Value = "User")] diff --git a/src/GitHub/Models/DeploymentSimple.cs b/src/GitHub/Models/DeploymentSimple.cs index 3749e6b3..5c324482 100644 --- a/src/GitHub/Models/DeploymentSimple.cs +++ b/src/GitHub/Models/DeploymentSimple.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A deployment created as the result of an Actions check run from a workflow that references an environment /// - public class DeploymentSimple : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DeploymentSimple : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -51,10 +53,10 @@ public class DeploymentSimple : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// Specifies if the given environment is one that end-users directly interact with. Default: false. public bool? ProductionEnvironment { get; set; } @@ -95,7 +97,7 @@ public class DeploymentSimple : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DeploymentSimple() { @@ -104,12 +106,12 @@ public DeploymentSimple() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DeploymentSimple CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DeploymentSimple CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeploymentSimple(); + return new global::GitHub.Models.DeploymentSimple(); } /// /// The deserialization information for the current model @@ -119,20 +121,20 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"environment", n => { Environment = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"original_environment", n => { OriginalEnvironment = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"production_environment", n => { ProductionEnvironment = n.GetBoolValue(); } }, - {"repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, - {"statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, - {"task", n => { Task = n.GetStringValue(); } }, - {"transient_environment", n => { TransientEnvironment = n.GetBoolValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "environment", n => { Environment = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "original_environment", n => { OriginalEnvironment = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "production_environment", n => { ProductionEnvironment = n.GetBoolValue(); } }, + { "repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, + { "statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, + { "task", n => { Task = n.GetStringValue(); } }, + { "transient_environment", n => { TransientEnvironment = n.GetBoolValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -148,7 +150,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("id", Id); writer.WriteStringValue("node_id", NodeId); writer.WriteStringValue("original_environment", OriginalEnvironment); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); writer.WriteBoolValue("production_environment", ProductionEnvironment); writer.WriteStringValue("repository_url", RepositoryUrl); writer.WriteStringValue("statuses_url", StatusesUrl); diff --git a/src/GitHub/Models/DeploymentStatus.cs b/src/GitHub/Models/DeploymentStatus.cs index 1c9d678a..f3449734 100644 --- a/src/GitHub/Models/DeploymentStatus.cs +++ b/src/GitHub/Models/DeploymentStatus.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The status of a deployment. /// - public class DeploymentStatus : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DeploymentStatus : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -17,10 +19,10 @@ public class DeploymentStatus : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Creator { get; set; } + public global::GitHub.Models.NullableSimpleUser? Creator { get; set; } #nullable restore #else - public NullableSimpleUser Creator { get; set; } + public global::GitHub.Models.NullableSimpleUser Creator { get; set; } #endif /// The deployment_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -75,10 +77,10 @@ public class DeploymentStatus : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// The repository_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -89,7 +91,7 @@ public class DeploymentStatus : IAdditionalDataHolder, IParsable public string RepositoryUrl { get; set; } #endif /// The state of the status. - public DeploymentStatus_state? State { get; set; } + public global::GitHub.Models.DeploymentStatus_state? State { get; set; } /// Deprecated: the URL to associate with this status. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -109,7 +111,7 @@ public class DeploymentStatus : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DeploymentStatus() { @@ -118,12 +120,12 @@ public DeploymentStatus() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DeploymentStatus CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DeploymentStatus CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeploymentStatus(); + return new global::GitHub.Models.DeploymentStatus(); } /// /// The deserialization information for the current model @@ -133,21 +135,21 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"creator", n => { Creator = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"deployment_url", n => { DeploymentUrl = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"environment", n => { Environment = n.GetStringValue(); } }, - {"environment_url", n => { EnvironmentUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"log_url", n => { LogUrl = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"target_url", n => { TargetUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "creator", n => { Creator = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "deployment_url", n => { DeploymentUrl = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "environment", n => { Environment = n.GetStringValue(); } }, + { "environment_url", n => { EnvironmentUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "log_url", n => { LogUrl = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "target_url", n => { TargetUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -158,7 +160,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); - writer.WriteObjectValue("creator", Creator); + writer.WriteObjectValue("creator", Creator); writer.WriteStringValue("deployment_url", DeploymentUrl); writer.WriteStringValue("description", Description); writer.WriteStringValue("environment", Environment); @@ -166,9 +168,9 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteLongValue("id", Id); writer.WriteStringValue("log_url", LogUrl); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); writer.WriteStringValue("repository_url", RepositoryUrl); - writer.WriteEnumValue("state", State); + writer.WriteEnumValue("state", State); writer.WriteStringValue("target_url", TargetUrl); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); diff --git a/src/GitHub/Models/DeploymentStatus_state.cs b/src/GitHub/Models/DeploymentStatus_state.cs index 337276c5..b1995fb4 100644 --- a/src/GitHub/Models/DeploymentStatus_state.cs +++ b/src/GitHub/Models/DeploymentStatus_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The state of the status. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum DeploymentStatus_state { [EnumMember(Value = "error")] diff --git a/src/GitHub/Models/DiffEntry.cs b/src/GitHub/Models/DiffEntry.cs index 41cb88c9..6c87e347 100644 --- a/src/GitHub/Models/DiffEntry.cs +++ b/src/GitHub/Models/DiffEntry.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Diff Entry /// - public class DiffEntry : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DiffEntry : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -75,9 +77,9 @@ public class DiffEntry : IAdditionalDataHolder, IParsable public string Sha { get; set; } #endif /// The status property - public DiffEntry_status? Status { get; set; } + public global::GitHub.Models.DiffEntry_status? Status { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DiffEntry() { @@ -86,12 +88,12 @@ public DiffEntry() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DiffEntry CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.DiffEntry CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DiffEntry(); + return new global::GitHub.Models.DiffEntry(); } /// /// The deserialization information for the current model @@ -101,17 +103,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"additions", n => { Additions = n.GetIntValue(); } }, - {"blob_url", n => { BlobUrl = n.GetStringValue(); } }, - {"changes", n => { Changes = n.GetIntValue(); } }, - {"contents_url", n => { ContentsUrl = n.GetStringValue(); } }, - {"deletions", n => { Deletions = n.GetIntValue(); } }, - {"filename", n => { Filename = n.GetStringValue(); } }, - {"patch", n => { Patch = n.GetStringValue(); } }, - {"previous_filename", n => { PreviousFilename = n.GetStringValue(); } }, - {"raw_url", n => { RawUrl = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, + { "additions", n => { Additions = n.GetIntValue(); } }, + { "blob_url", n => { BlobUrl = n.GetStringValue(); } }, + { "changes", n => { Changes = n.GetIntValue(); } }, + { "contents_url", n => { ContentsUrl = n.GetStringValue(); } }, + { "deletions", n => { Deletions = n.GetIntValue(); } }, + { "filename", n => { Filename = n.GetStringValue(); } }, + { "patch", n => { Patch = n.GetStringValue(); } }, + { "previous_filename", n => { PreviousFilename = n.GetStringValue(); } }, + { "raw_url", n => { RawUrl = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, }; } /// @@ -131,7 +133,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("previous_filename", PreviousFilename); writer.WriteStringValue("raw_url", RawUrl); writer.WriteStringValue("sha", Sha); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("status", Status); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/DiffEntry_status.cs b/src/GitHub/Models/DiffEntry_status.cs index 719854f3..62ec7a60 100644 --- a/src/GitHub/Models/DiffEntry_status.cs +++ b/src/GitHub/Models/DiffEntry_status.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum DiffEntry_status #pragma warning restore CS1591 diff --git a/src/GitHub/Models/Email.cs b/src/GitHub/Models/Email.cs index 69c8eb6b..49a39b04 100644 --- a/src/GitHub/Models/Email.cs +++ b/src/GitHub/Models/Email.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Email /// - public class Email : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Email : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -33,7 +35,7 @@ public class Email : IAdditionalDataHolder, IParsable public string Visibility { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Email() { @@ -42,12 +44,12 @@ public Email() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Email CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Email CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Email(); + return new global::GitHub.Models.Email(); } /// /// The deserialization information for the current model @@ -57,10 +59,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"email", n => { EmailProp = n.GetStringValue(); } }, - {"primary", n => { Primary = n.GetBoolValue(); } }, - {"verified", n => { Verified = n.GetBoolValue(); } }, - {"visibility", n => { Visibility = n.GetStringValue(); } }, + { "email", n => { EmailProp = n.GetStringValue(); } }, + { "primary", n => { Primary = n.GetBoolValue(); } }, + { "verified", n => { Verified = n.GetBoolValue(); } }, + { "visibility", n => { Visibility = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/EmptyObject.cs b/src/GitHub/Models/EmptyObject.cs index 7c0f74ff..d08487c4 100644 --- a/src/GitHub/Models/EmptyObject.cs +++ b/src/GitHub/Models/EmptyObject.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// An object without any properties. /// - public class EmptyObject : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EmptyObject : IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static EmptyObject CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.EmptyObject CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EmptyObject(); + return new global::GitHub.Models.EmptyObject(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/EmptyObject503Error.cs b/src/GitHub/Models/EmptyObject503Error.cs index c992e6fb..79e2c219 100644 --- a/src/GitHub/Models/EmptyObject503Error.cs +++ b/src/GitHub/Models/EmptyObject503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class EmptyObject503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class EmptyObject503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class EmptyObject503Error : ApiException, IAdditionalDataHolder, IParsabl #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public EmptyObject503Error() { @@ -46,12 +42,12 @@ public EmptyObject503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static EmptyObject503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.EmptyObject503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EmptyObject503Error(); + return new global::GitHub.Models.EmptyObject503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/EnabledOrganizations.cs b/src/GitHub/Models/EnabledOrganizations.cs index ab704cd1..b3909b4f 100644 --- a/src/GitHub/Models/EnabledOrganizations.cs +++ b/src/GitHub/Models/EnabledOrganizations.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum EnabledOrganizations { [EnumMember(Value = "all")] diff --git a/src/GitHub/Models/EnabledRepositories.cs b/src/GitHub/Models/EnabledRepositories.cs index a2c02ac3..372538d0 100644 --- a/src/GitHub/Models/EnabledRepositories.cs +++ b/src/GitHub/Models/EnabledRepositories.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The policy that controls the repositories in the organization that are allowed to run GitHub Actions. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum EnabledRepositories { [EnumMember(Value = "all")] diff --git a/src/GitHub/Models/Enterprise.cs b/src/GitHub/Models/Enterprise.cs index a508037b..e970cd32 100644 --- a/src/GitHub/Models/Enterprise.cs +++ b/src/GitHub/Models/Enterprise.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// An enterprise on GitHub. /// - public class Enterprise : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Enterprise : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -75,7 +77,7 @@ public class Enterprise : IAdditionalDataHolder, IParsable public string WebsiteUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Enterprise() { @@ -84,12 +86,12 @@ public Enterprise() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Enterprise CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Enterprise CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Enterprise(); + return new global::GitHub.Models.Enterprise(); } /// /// The deserialization information for the current model @@ -99,16 +101,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"slug", n => { Slug = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"website_url", n => { WebsiteUrl = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "slug", n => { Slug = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "website_url", n => { WebsiteUrl = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/EnterpriseSecurityAnalysisSettings.cs b/src/GitHub/Models/EnterpriseSecurityAnalysisSettings.cs index 7929d318..e1aa6d46 100644 --- a/src/GitHub/Models/EnterpriseSecurityAnalysisSettings.cs +++ b/src/GitHub/Models/EnterpriseSecurityAnalysisSettings.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class EnterpriseSecurityAnalysisSettings : IAdditionalDataHolder, IParsable + public partial class EnterpriseSecurityAnalysisSettings : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -32,7 +34,7 @@ public class EnterpriseSecurityAnalysisSettings : IAdditionalDataHolder, IParsab /// Whether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this enterprise. public bool? SecretScanningValidityChecksEnabled { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public EnterpriseSecurityAnalysisSettings() { @@ -41,12 +43,12 @@ public EnterpriseSecurityAnalysisSettings() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static EnterpriseSecurityAnalysisSettings CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.EnterpriseSecurityAnalysisSettings CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EnterpriseSecurityAnalysisSettings(); + return new global::GitHub.Models.EnterpriseSecurityAnalysisSettings(); } /// /// The deserialization information for the current model @@ -56,13 +58,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"advanced_security_enabled_for_new_repositories", n => { AdvancedSecurityEnabledForNewRepositories = n.GetBoolValue(); } }, - {"advanced_security_enabled_for_new_user_namespace_repositories", n => { AdvancedSecurityEnabledForNewUserNamespaceRepositories = n.GetBoolValue(); } }, - {"dependabot_alerts_enabled_for_new_repositories", n => { DependabotAlertsEnabledForNewRepositories = n.GetBoolValue(); } }, - {"secret_scanning_enabled_for_new_repositories", n => { SecretScanningEnabledForNewRepositories = n.GetBoolValue(); } }, - {"secret_scanning_push_protection_custom_link", n => { SecretScanningPushProtectionCustomLink = n.GetStringValue(); } }, - {"secret_scanning_push_protection_enabled_for_new_repositories", n => { SecretScanningPushProtectionEnabledForNewRepositories = n.GetBoolValue(); } }, - {"secret_scanning_validity_checks_enabled", n => { SecretScanningValidityChecksEnabled = n.GetBoolValue(); } }, + { "advanced_security_enabled_for_new_repositories", n => { AdvancedSecurityEnabledForNewRepositories = n.GetBoolValue(); } }, + { "advanced_security_enabled_for_new_user_namespace_repositories", n => { AdvancedSecurityEnabledForNewUserNamespaceRepositories = n.GetBoolValue(); } }, + { "dependabot_alerts_enabled_for_new_repositories", n => { DependabotAlertsEnabledForNewRepositories = n.GetBoolValue(); } }, + { "secret_scanning_enabled_for_new_repositories", n => { SecretScanningEnabledForNewRepositories = n.GetBoolValue(); } }, + { "secret_scanning_push_protection_custom_link", n => { SecretScanningPushProtectionCustomLink = n.GetStringValue(); } }, + { "secret_scanning_push_protection_enabled_for_new_repositories", n => { SecretScanningPushProtectionEnabledForNewRepositories = n.GetBoolValue(); } }, + { "secret_scanning_validity_checks_enabled", n => { SecretScanningValidityChecksEnabled = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/EnterpriseTeam.cs b/src/GitHub/Models/EnterpriseTeam.cs index 91b07ee3..fb9082be 100644 --- a/src/GitHub/Models/EnterpriseTeam.cs +++ b/src/GitHub/Models/EnterpriseTeam.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Group of enterprise owners and/or members /// - public class EnterpriseTeam : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EnterpriseTeam : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -69,7 +71,7 @@ public class EnterpriseTeam : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public EnterpriseTeam() { @@ -78,12 +80,12 @@ public EnterpriseTeam() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static EnterpriseTeam CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.EnterpriseTeam CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EnterpriseTeam(); + return new global::GitHub.Models.EnterpriseTeam(); } /// /// The deserialization information for the current model @@ -93,16 +95,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"group_id", n => { GroupId = n.GetIntValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"members_url", n => { MembersUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"slug", n => { Slug = n.GetStringValue(); } }, - {"sync_to_organizations", n => { SyncToOrganizations = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "group_id", n => { GroupId = n.GetIntValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "members_url", n => { MembersUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "slug", n => { Slug = n.GetStringValue(); } }, + { "sync_to_organizations", n => { SyncToOrganizations = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/EnvironmentApprovals.cs b/src/GitHub/Models/EnvironmentApprovals.cs index c45d045a..62714a46 100644 --- a/src/GitHub/Models/EnvironmentApprovals.cs +++ b/src/GitHub/Models/EnvironmentApprovals.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// An entry in the reviews log for environment deployments /// - public class EnvironmentApprovals : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EnvironmentApprovals : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,23 +25,23 @@ public class EnvironmentApprovals : IAdditionalDataHolder, IParsable /// The list of environments that were approved or rejected #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Environments { get; set; } + public List? Environments { get; set; } #nullable restore #else - public List Environments { get; set; } + public List Environments { get; set; } #endif /// Whether deployment to the environment(s) was approved or rejected or pending (with comments) - public EnvironmentApprovals_state? State { get; set; } + public global::GitHub.Models.EnvironmentApprovals_state? State { get; set; } /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? User { get; set; } + public global::GitHub.Models.SimpleUser? User { get; set; } #nullable restore #else - public SimpleUser User { get; set; } + public global::GitHub.Models.SimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public EnvironmentApprovals() { @@ -48,12 +50,12 @@ public EnvironmentApprovals() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static EnvironmentApprovals CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.EnvironmentApprovals CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EnvironmentApprovals(); + return new global::GitHub.Models.EnvironmentApprovals(); } /// /// The deserialization information for the current model @@ -63,10 +65,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"comment", n => { Comment = n.GetStringValue(); } }, - {"environments", n => { Environments = n.GetCollectionOfObjectValues(EnvironmentApprovals_environments.CreateFromDiscriminatorValue)?.ToList(); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"user", n => { User = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, + { "comment", n => { Comment = n.GetStringValue(); } }, + { "environments", n => { Environments = n.GetCollectionOfObjectValues(global::GitHub.Models.EnvironmentApprovals_environments.CreateFromDiscriminatorValue)?.AsList(); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -77,9 +79,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("comment", Comment); - writer.WriteCollectionOfObjectValues("environments", Environments); - writer.WriteEnumValue("state", State); - writer.WriteObjectValue("user", User); + writer.WriteCollectionOfObjectValues("environments", Environments); + writer.WriteEnumValue("state", State); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/EnvironmentApprovals_environments.cs b/src/GitHub/Models/EnvironmentApprovals_environments.cs index 18f7fdd0..ec473238 100644 --- a/src/GitHub/Models/EnvironmentApprovals_environments.cs +++ b/src/GitHub/Models/EnvironmentApprovals_environments.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class EnvironmentApprovals_environments : IAdditionalDataHolder, IParsable + public partial class EnvironmentApprovals_environments : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -50,7 +52,7 @@ public class EnvironmentApprovals_environments : IAdditionalDataHolder, IParsabl public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public EnvironmentApprovals_environments() { @@ -59,12 +61,12 @@ public EnvironmentApprovals_environments() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static EnvironmentApprovals_environments CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.EnvironmentApprovals_environments CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EnvironmentApprovals_environments(); + return new global::GitHub.Models.EnvironmentApprovals_environments(); } /// /// The deserialization information for the current model @@ -74,13 +76,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/EnvironmentApprovals_state.cs b/src/GitHub/Models/EnvironmentApprovals_state.cs index e7f19728..011f87d4 100644 --- a/src/GitHub/Models/EnvironmentApprovals_state.cs +++ b/src/GitHub/Models/EnvironmentApprovals_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Whether deployment to the environment(s) was approved or rejected or pending (with comments) + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum EnvironmentApprovals_state { [EnumMember(Value = "approved")] diff --git a/src/GitHub/Models/EnvironmentObject.cs b/src/GitHub/Models/EnvironmentObject.cs index 3f2733c8..6c47c439 100644 --- a/src/GitHub/Models/EnvironmentObject.cs +++ b/src/GitHub/Models/EnvironmentObject.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Details of a deployment environment /// - public class EnvironmentObject : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EnvironmentObject : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -17,10 +19,10 @@ public class EnvironmentObject : IAdditionalDataHolder, IParsable /// The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DeploymentBranchPolicySettings? DeploymentBranchPolicy { get; set; } + public global::GitHub.Models.DeploymentBranchPolicySettings? DeploymentBranchPolicy { get; set; } #nullable restore #else - public DeploymentBranchPolicySettings DeploymentBranchPolicy { get; set; } + public global::GitHub.Models.DeploymentBranchPolicySettings DeploymentBranchPolicy { get; set; } #endif /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -51,10 +53,10 @@ public class EnvironmentObject : IAdditionalDataHolder, IParsable /// Built-in deployment protection rules for the environment. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ProtectionRules { get; set; } + public List? ProtectionRules { get; set; } #nullable restore #else - public List ProtectionRules { get; set; } + public List ProtectionRules { get; set; } #endif /// The time that the environment was last updated, in ISO 8601 format. public DateTimeOffset? UpdatedAt { get; set; } @@ -67,7 +69,7 @@ public class EnvironmentObject : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public EnvironmentObject() { @@ -76,12 +78,12 @@ public EnvironmentObject() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static EnvironmentObject CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.EnvironmentObject CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EnvironmentObject(); + return new global::GitHub.Models.EnvironmentObject(); } /// /// The deserialization information for the current model @@ -91,15 +93,15 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"deployment_branch_policy", n => { DeploymentBranchPolicy = n.GetObjectValue(DeploymentBranchPolicySettings.CreateFromDiscriminatorValue); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"protection_rules", n => { ProtectionRules = n.GetCollectionOfObjectValues(Environment_protection_rules.CreateFromDiscriminatorValue)?.ToList(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "deployment_branch_policy", n => { DeploymentBranchPolicy = n.GetObjectValue(global::GitHub.Models.DeploymentBranchPolicySettings.CreateFromDiscriminatorValue); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "protection_rules", n => { ProtectionRules = n.GetCollectionOfObjectValues(global::GitHub.Models.EnvironmentObject.Environment_protection_rules.CreateFromDiscriminatorValue)?.AsList(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -110,57 +112,58 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); - writer.WriteObjectValue("deployment_branch_policy", DeploymentBranchPolicy); + writer.WriteObjectValue("deployment_branch_policy", DeploymentBranchPolicy); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteLongValue("id", Id); writer.WriteStringValue("name", Name); writer.WriteStringValue("node_id", NodeId); - writer.WriteCollectionOfObjectValues("protection_rules", ProtectionRules); + writer.WriteCollectionOfObjectValues("protection_rules", ProtectionRules); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } /// - /// Composed type wrapper for classes , , + /// Composed type wrapper for classes , , /// - public class Environment_protection_rules : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Environment_protection_rules : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Environment_protection_rulesMember1? EnvironmentProtectionRulesMember1 { get; set; } + public global::GitHub.Models.Environment_protection_rulesMember1? EnvironmentProtectionRulesMember1 { get; set; } #nullable restore #else - public Environment_protection_rulesMember1 EnvironmentProtectionRulesMember1 { get; set; } + public global::GitHub.Models.Environment_protection_rulesMember1 EnvironmentProtectionRulesMember1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Environment_protection_rulesMember2? EnvironmentProtectionRulesMember2 { get; set; } + public global::GitHub.Models.Environment_protection_rulesMember2? EnvironmentProtectionRulesMember2 { get; set; } #nullable restore #else - public Environment_protection_rulesMember2 EnvironmentProtectionRulesMember2 { get; set; } + public global::GitHub.Models.Environment_protection_rulesMember2 EnvironmentProtectionRulesMember2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Environment_protection_rulesMember3? EnvironmentProtectionRulesMember3 { get; set; } + public global::GitHub.Models.Environment_protection_rulesMember3? EnvironmentProtectionRulesMember3 { get; set; } #nullable restore #else - public Environment_protection_rulesMember3 EnvironmentProtectionRulesMember3 { get; set; } + public global::GitHub.Models.Environment_protection_rulesMember3 EnvironmentProtectionRulesMember3 { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Environment_protection_rules CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.EnvironmentObject.Environment_protection_rules CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - var result = new Environment_protection_rules(); - result.EnvironmentProtectionRulesMember1 = new Environment_protection_rulesMember1(); - result.EnvironmentProtectionRulesMember2 = new Environment_protection_rulesMember2(); - result.EnvironmentProtectionRulesMember3 = new Environment_protection_rulesMember3(); + var result = new global::GitHub.Models.EnvironmentObject.Environment_protection_rules(); + result.EnvironmentProtectionRulesMember1 = new global::GitHub.Models.Environment_protection_rulesMember1(); + result.EnvironmentProtectionRulesMember2 = new global::GitHub.Models.Environment_protection_rulesMember2(); + result.EnvironmentProtectionRulesMember3 = new global::GitHub.Models.Environment_protection_rulesMember3(); return result; } /// @@ -182,7 +185,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue(null, EnvironmentProtectionRulesMember1, EnvironmentProtectionRulesMember2, EnvironmentProtectionRulesMember3); + writer.WriteObjectValue(null, EnvironmentProtectionRulesMember1, EnvironmentProtectionRulesMember2, EnvironmentProtectionRulesMember3); } } } diff --git a/src/GitHub/Models/Environment_protection_rulesMember1.cs b/src/GitHub/Models/Environment_protection_rulesMember1.cs index 64f46d4b..32784372 100644 --- a/src/GitHub/Models/Environment_protection_rulesMember1.cs +++ b/src/GitHub/Models/Environment_protection_rulesMember1.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Environment_protection_rulesMember1 : IAdditionalDataHolder, IParsable + public partial class Environment_protection_rulesMember1 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -32,7 +34,7 @@ public class Environment_protection_rulesMember1 : IAdditionalDataHolder, IParsa /// The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days). public int? WaitTimer { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Environment_protection_rulesMember1() { @@ -41,12 +43,12 @@ public Environment_protection_rulesMember1() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Environment_protection_rulesMember1 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Environment_protection_rulesMember1 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Environment_protection_rulesMember1(); + return new global::GitHub.Models.Environment_protection_rulesMember1(); } /// /// The deserialization information for the current model @@ -56,10 +58,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"wait_timer", n => { WaitTimer = n.GetIntValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "wait_timer", n => { WaitTimer = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/Environment_protection_rulesMember2.cs b/src/GitHub/Models/Environment_protection_rulesMember2.cs index 53d13366..e9e10fab 100644 --- a/src/GitHub/Models/Environment_protection_rulesMember2.cs +++ b/src/GitHub/Models/Environment_protection_rulesMember2.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Environment_protection_rulesMember2 : IAdditionalDataHolder, IParsable + public partial class Environment_protection_rulesMember2 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -26,10 +28,10 @@ public class Environment_protection_rulesMember2 : IAdditionalDataHolder, IParsa /// The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Reviewers { get; set; } + public List? Reviewers { get; set; } #nullable restore #else - public List Reviewers { get; set; } + public List Reviewers { get; set; } #endif /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -40,7 +42,7 @@ public class Environment_protection_rulesMember2 : IAdditionalDataHolder, IParsa public string Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Environment_protection_rulesMember2() { @@ -49,12 +51,12 @@ public Environment_protection_rulesMember2() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Environment_protection_rulesMember2 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Environment_protection_rulesMember2 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Environment_protection_rulesMember2(); + return new global::GitHub.Models.Environment_protection_rulesMember2(); } /// /// The deserialization information for the current model @@ -64,11 +66,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"prevent_self_review", n => { PreventSelfReview = n.GetBoolValue(); } }, - {"reviewers", n => { Reviewers = n.GetCollectionOfObjectValues(Environment_protection_rulesMember2_reviewers.CreateFromDiscriminatorValue)?.ToList(); } }, - {"type", n => { Type = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "prevent_self_review", n => { PreventSelfReview = n.GetBoolValue(); } }, + { "reviewers", n => { Reviewers = n.GetCollectionOfObjectValues(global::GitHub.Models.Environment_protection_rulesMember2_reviewers.CreateFromDiscriminatorValue)?.AsList(); } }, + { "type", n => { Type = n.GetStringValue(); } }, }; } /// @@ -81,7 +83,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("id", Id); writer.WriteStringValue("node_id", NodeId); writer.WriteBoolValue("prevent_self_review", PreventSelfReview); - writer.WriteCollectionOfObjectValues("reviewers", Reviewers); + writer.WriteCollectionOfObjectValues("reviewers", Reviewers); writer.WriteStringValue("type", Type); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/Environment_protection_rulesMember2_reviewers.cs b/src/GitHub/Models/Environment_protection_rulesMember2_reviewers.cs index 5a76c626..921f687d 100644 --- a/src/GitHub/Models/Environment_protection_rulesMember2_reviewers.cs +++ b/src/GitHub/Models/Environment_protection_rulesMember2_reviewers.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Environment_protection_rulesMember2_reviewers : IAdditionalDataHolder, IParsable + public partial class Environment_protection_rulesMember2_reviewers : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,15 +16,15 @@ public class Environment_protection_rulesMember2_reviewers : IAdditionalDataHold /// The reviewer property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Environment_protection_rulesMember2_reviewers_reviewer? Reviewer { get; set; } + public global::GitHub.Models.Environment_protection_rulesMember2_reviewers.Environment_protection_rulesMember2_reviewers_reviewer? Reviewer { get; set; } #nullable restore #else - public Environment_protection_rulesMember2_reviewers_reviewer Reviewer { get; set; } + public global::GitHub.Models.Environment_protection_rulesMember2_reviewers.Environment_protection_rulesMember2_reviewers_reviewer Reviewer { get; set; } #endif /// The type of reviewer. - public DeploymentReviewerType? Type { get; set; } + public global::GitHub.Models.DeploymentReviewerType? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Environment_protection_rulesMember2_reviewers() { @@ -31,12 +33,12 @@ public Environment_protection_rulesMember2_reviewers() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Environment_protection_rulesMember2_reviewers CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Environment_protection_rulesMember2_reviewers CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Environment_protection_rulesMember2_reviewers(); + return new global::GitHub.Models.Environment_protection_rulesMember2_reviewers(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"reviewer", n => { Reviewer = n.GetObjectValue(Environment_protection_rulesMember2_reviewers_reviewer.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "reviewer", n => { Reviewer = n.GetObjectValue(global::GitHub.Models.Environment_protection_rulesMember2_reviewers.Environment_protection_rulesMember2_reviewers_reviewer.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -57,42 +59,43 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("reviewer", Reviewer); - writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("reviewer", Reviewer); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class Environment_protection_rulesMember2_reviewers_reviewer : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Environment_protection_rulesMember2_reviewers_reviewer : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SimpleUser? SimpleUser { get; set; } + public global::GitHub.Models.SimpleUser? SimpleUser { get; set; } #nullable restore #else - public GitHub.Models.SimpleUser SimpleUser { get; set; } + public global::GitHub.Models.SimpleUser SimpleUser { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Team? Team { get; set; } + public global::GitHub.Models.Team? Team { get; set; } #nullable restore #else - public GitHub.Models.Team Team { get; set; } + public global::GitHub.Models.Team Team { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Environment_protection_rulesMember2_reviewers_reviewer CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Environment_protection_rulesMember2_reviewers.Environment_protection_rulesMember2_reviewers_reviewer CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - var result = new Environment_protection_rulesMember2_reviewers_reviewer(); - result.SimpleUser = new GitHub.Models.SimpleUser(); - result.Team = new GitHub.Models.Team(); + var result = new global::GitHub.Models.Environment_protection_rulesMember2_reviewers.Environment_protection_rulesMember2_reviewers_reviewer(); + result.SimpleUser = new global::GitHub.Models.SimpleUser(); + result.Team = new global::GitHub.Models.Team(); return result; } /// @@ -114,7 +117,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue(null, SimpleUser, Team); + writer.WriteObjectValue(null, SimpleUser, Team); } } } diff --git a/src/GitHub/Models/Environment_protection_rulesMember3.cs b/src/GitHub/Models/Environment_protection_rulesMember3.cs index a8d7da7c..6f2bc6e9 100644 --- a/src/GitHub/Models/Environment_protection_rulesMember3.cs +++ b/src/GitHub/Models/Environment_protection_rulesMember3.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Environment_protection_rulesMember3 : IAdditionalDataHolder, IParsable + public partial class Environment_protection_rulesMember3 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,7 +32,7 @@ public class Environment_protection_rulesMember3 : IAdditionalDataHolder, IParsa public string Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Environment_protection_rulesMember3() { @@ -39,12 +41,12 @@ public Environment_protection_rulesMember3() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Environment_protection_rulesMember3 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Environment_protection_rulesMember3 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Environment_protection_rulesMember3(); + return new global::GitHub.Models.Environment_protection_rulesMember3(); } /// /// The deserialization information for the current model @@ -54,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Event.cs b/src/GitHub/Models/Event.cs index 9db84444..d879d858 100644 --- a/src/GitHub/Models/Event.cs +++ b/src/GitHub/Models/Event.cs @@ -1,22 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Event /// - public class Event : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Event : IAdditionalDataHolder, IParsable { /// Actor #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Actor? Actor { get; set; } + public global::GitHub.Models.Actor? Actor { get; set; } #nullable restore #else - public GitHub.Models.Actor Actor { get; set; } + public global::GitHub.Models.Actor Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -33,28 +35,28 @@ public class Event : IAdditionalDataHolder, IParsable /// Actor #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Actor? Org { get; set; } + public global::GitHub.Models.Actor? Org { get; set; } #nullable restore #else - public GitHub.Models.Actor Org { get; set; } + public global::GitHub.Models.Actor Org { get; set; } #endif /// The payload property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Event_payload? Payload { get; set; } + public global::GitHub.Models.Event_payload? Payload { get; set; } #nullable restore #else - public Event_payload Payload { get; set; } + public global::GitHub.Models.Event_payload Payload { get; set; } #endif /// The public property public bool? Public { get; set; } /// The repo property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Event_repo? Repo { get; set; } + public global::GitHub.Models.Event_repo? Repo { get; set; } #nullable restore #else - public Event_repo Repo { get; set; } + public global::GitHub.Models.Event_repo Repo { get; set; } #endif /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -65,7 +67,7 @@ public class Event : IAdditionalDataHolder, IParsable public string Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Event() { @@ -74,12 +76,12 @@ public Event() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Event CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Event CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Event(); + return new global::GitHub.Models.Event(); } /// /// The deserialization information for the current model @@ -89,14 +91,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(GitHub.Models.Actor.CreateFromDiscriminatorValue); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"org", n => { Org = n.GetObjectValue(GitHub.Models.Actor.CreateFromDiscriminatorValue); } }, - {"payload", n => { Payload = n.GetObjectValue(Event_payload.CreateFromDiscriminatorValue); } }, - {"public", n => { Public = n.GetBoolValue(); } }, - {"repo", n => { Repo = n.GetObjectValue(Event_repo.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.Actor.CreateFromDiscriminatorValue); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "org", n => { Org = n.GetObjectValue(global::GitHub.Models.Actor.CreateFromDiscriminatorValue); } }, + { "payload", n => { Payload = n.GetObjectValue(global::GitHub.Models.Event_payload.CreateFromDiscriminatorValue); } }, + { "public", n => { Public = n.GetBoolValue(); } }, + { "repo", n => { Repo = n.GetObjectValue(global::GitHub.Models.Event_repo.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetStringValue(); } }, }; } /// @@ -106,13 +108,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("actor", Actor); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteStringValue("id", Id); - writer.WriteObjectValue("org", Org); - writer.WriteObjectValue("payload", Payload); + writer.WriteObjectValue("org", Org); + writer.WriteObjectValue("payload", Payload); writer.WriteBoolValue("public", Public); - writer.WriteObjectValue("repo", Repo); + writer.WriteObjectValue("repo", Repo); writer.WriteStringValue("type", Type); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/Event_payload.cs b/src/GitHub/Models/Event_payload.cs index 72bffebc..e584f42f 100644 --- a/src/GitHub/Models/Event_payload.cs +++ b/src/GitHub/Models/Event_payload.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Event_payload : IAdditionalDataHolder, IParsable + public partial class Event_payload : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The action property @@ -22,29 +24,29 @@ public class Event_payload : IAdditionalDataHolder, IParsable /// Comments provide a way for people to collaborate on an issue. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public IssueComment? Comment { get; set; } + public global::GitHub.Models.IssueComment? Comment { get; set; } #nullable restore #else - public IssueComment Comment { get; set; } + public global::GitHub.Models.IssueComment Comment { get; set; } #endif /// Issues are a great way to keep track of tasks, enhancements, and bugs for your projects. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Issue? Issue { get; set; } + public global::GitHub.Models.Issue? Issue { get; set; } #nullable restore #else - public GitHub.Models.Issue Issue { get; set; } + public global::GitHub.Models.Issue Issue { get; set; } #endif /// The pages property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Pages { get; set; } + public List? Pages { get; set; } #nullable restore #else - public List Pages { get; set; } + public List Pages { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Event_payload() { @@ -53,12 +55,12 @@ public Event_payload() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Event_payload CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Event_payload CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Event_payload(); + return new global::GitHub.Models.Event_payload(); } /// /// The deserialization information for the current model @@ -68,10 +70,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"action", n => { Action = n.GetStringValue(); } }, - {"comment", n => { Comment = n.GetObjectValue(IssueComment.CreateFromDiscriminatorValue); } }, - {"issue", n => { Issue = n.GetObjectValue(GitHub.Models.Issue.CreateFromDiscriminatorValue); } }, - {"pages", n => { Pages = n.GetCollectionOfObjectValues(Event_payload_pages.CreateFromDiscriminatorValue)?.ToList(); } }, + { "action", n => { Action = n.GetStringValue(); } }, + { "comment", n => { Comment = n.GetObjectValue(global::GitHub.Models.IssueComment.CreateFromDiscriminatorValue); } }, + { "issue", n => { Issue = n.GetObjectValue(global::GitHub.Models.Issue.CreateFromDiscriminatorValue); } }, + { "pages", n => { Pages = n.GetCollectionOfObjectValues(global::GitHub.Models.Event_payload_pages.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -82,9 +84,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("action", Action); - writer.WriteObjectValue("comment", Comment); - writer.WriteObjectValue("issue", Issue); - writer.WriteCollectionOfObjectValues("pages", Pages); + writer.WriteObjectValue("comment", Comment); + writer.WriteObjectValue("issue", Issue); + writer.WriteCollectionOfObjectValues("pages", Pages); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/Event_payload_pages.cs b/src/GitHub/Models/Event_payload_pages.cs index f8a41dfa..3e6e9495 100644 --- a/src/GitHub/Models/Event_payload_pages.cs +++ b/src/GitHub/Models/Event_payload_pages.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Event_payload_pages : IAdditionalDataHolder, IParsable + public partial class Event_payload_pages : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The action property @@ -60,7 +62,7 @@ public class Event_payload_pages : IAdditionalDataHolder, IParsable public string Title { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Event_payload_pages() { @@ -69,12 +71,12 @@ public Event_payload_pages() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Event_payload_pages CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Event_payload_pages CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Event_payload_pages(); + return new global::GitHub.Models.Event_payload_pages(); } /// /// The deserialization information for the current model @@ -84,12 +86,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"action", n => { Action = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"page_name", n => { PageName = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"summary", n => { Summary = n.GetStringValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, + { "action", n => { Action = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "page_name", n => { PageName = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "summary", n => { Summary = n.GetStringValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Event_repo.cs b/src/GitHub/Models/Event_repo.cs index 16381d83..6e28d135 100644 --- a/src/GitHub/Models/Event_repo.cs +++ b/src/GitHub/Models/Event_repo.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Event_repo : IAdditionalDataHolder, IParsable + public partial class Event_repo : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,7 +32,7 @@ public class Event_repo : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Event_repo() { @@ -39,12 +41,12 @@ public Event_repo() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Event_repo CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Event_repo CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Event_repo(); + return new global::GitHub.Models.Event_repo(); } /// /// The deserialization information for the current model @@ -54,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Events503Error.cs b/src/GitHub/Models/Events503Error.cs index fa294d41..730af9a1 100644 --- a/src/GitHub/Models/Events503Error.cs +++ b/src/GitHub/Models/Events503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Events503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class Events503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class Events503Error : ApiException, IAdditionalDataHolder, IParsable #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Events503Error() { @@ -46,12 +42,12 @@ public Events503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Events503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Events503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Events503Error(); + return new global::GitHub.Models.Events503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/ExternalGroup.cs b/src/GitHub/Models/ExternalGroup.cs index 58a97bdc..f7215747 100644 --- a/src/GitHub/Models/ExternalGroup.cs +++ b/src/GitHub/Models/ExternalGroup.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Information about an external group's usage and its members /// - public class ExternalGroup : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ExternalGroup : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -25,18 +27,18 @@ public class ExternalGroup : IAdditionalDataHolder, IParsable /// An array of external members linked to this group #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Members { get; set; } + public List? Members { get; set; } #nullable restore #else - public List Members { get; set; } + public List Members { get; set; } #endif /// An array of teams linked to this group #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Teams { get; set; } + public List? Teams { get; set; } #nullable restore #else - public List Teams { get; set; } + public List Teams { get; set; } #endif /// The date when the group was last updated_at #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -47,7 +49,7 @@ public class ExternalGroup : IAdditionalDataHolder, IParsable public string UpdatedAt { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ExternalGroup() { @@ -56,12 +58,12 @@ public ExternalGroup() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ExternalGroup CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ExternalGroup CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ExternalGroup(); + return new global::GitHub.Models.ExternalGroup(); } /// /// The deserialization information for the current model @@ -71,11 +73,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"group_id", n => { GroupId = n.GetIntValue(); } }, - {"group_name", n => { GroupName = n.GetStringValue(); } }, - {"members", n => { Members = n.GetCollectionOfObjectValues(ExternalGroup_members.CreateFromDiscriminatorValue)?.ToList(); } }, - {"teams", n => { Teams = n.GetCollectionOfObjectValues(ExternalGroup_teams.CreateFromDiscriminatorValue)?.ToList(); } }, - {"updated_at", n => { UpdatedAt = n.GetStringValue(); } }, + { "group_id", n => { GroupId = n.GetIntValue(); } }, + { "group_name", n => { GroupName = n.GetStringValue(); } }, + { "members", n => { Members = n.GetCollectionOfObjectValues(global::GitHub.Models.ExternalGroup_members.CreateFromDiscriminatorValue)?.AsList(); } }, + { "teams", n => { Teams = n.GetCollectionOfObjectValues(global::GitHub.Models.ExternalGroup_teams.CreateFromDiscriminatorValue)?.AsList(); } }, + { "updated_at", n => { UpdatedAt = n.GetStringValue(); } }, }; } /// @@ -87,8 +89,8 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("group_id", GroupId); writer.WriteStringValue("group_name", GroupName); - writer.WriteCollectionOfObjectValues("members", Members); - writer.WriteCollectionOfObjectValues("teams", Teams); + writer.WriteCollectionOfObjectValues("members", Members); + writer.WriteCollectionOfObjectValues("teams", Teams); writer.WriteStringValue("updated_at", UpdatedAt); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/ExternalGroup_members.cs b/src/GitHub/Models/ExternalGroup_members.cs index 4809b8c5..65a8fb41 100644 --- a/src/GitHub/Models/ExternalGroup_members.cs +++ b/src/GitHub/Models/ExternalGroup_members.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ExternalGroup_members : IAdditionalDataHolder, IParsable + public partial class ExternalGroup_members : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -38,7 +40,7 @@ public class ExternalGroup_members : IAdditionalDataHolder, IParsable public string MemberName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ExternalGroup_members() { @@ -47,12 +49,12 @@ public ExternalGroup_members() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ExternalGroup_members CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ExternalGroup_members CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ExternalGroup_members(); + return new global::GitHub.Models.ExternalGroup_members(); } /// /// The deserialization information for the current model @@ -62,10 +64,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"member_email", n => { MemberEmail = n.GetStringValue(); } }, - {"member_id", n => { MemberId = n.GetIntValue(); } }, - {"member_login", n => { MemberLogin = n.GetStringValue(); } }, - {"member_name", n => { MemberName = n.GetStringValue(); } }, + { "member_email", n => { MemberEmail = n.GetStringValue(); } }, + { "member_id", n => { MemberId = n.GetIntValue(); } }, + { "member_login", n => { MemberLogin = n.GetStringValue(); } }, + { "member_name", n => { MemberName = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ExternalGroup_teams.cs b/src/GitHub/Models/ExternalGroup_teams.cs index 81f0b95c..27ac7853 100644 --- a/src/GitHub/Models/ExternalGroup_teams.cs +++ b/src/GitHub/Models/ExternalGroup_teams.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ExternalGroup_teams : IAdditionalDataHolder, IParsable + public partial class ExternalGroup_teams : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class ExternalGroup_teams : IAdditionalDataHolder, IParsable public string TeamName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ExternalGroup_teams() { @@ -31,12 +33,12 @@ public ExternalGroup_teams() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ExternalGroup_teams CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ExternalGroup_teams CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ExternalGroup_teams(); + return new global::GitHub.Models.ExternalGroup_teams(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"team_id", n => { TeamId = n.GetIntValue(); } }, - {"team_name", n => { TeamName = n.GetStringValue(); } }, + { "team_id", n => { TeamId = n.GetIntValue(); } }, + { "team_name", n => { TeamName = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ExternalGroups.cs b/src/GitHub/Models/ExternalGroups.cs index d48854e8..fe10b318 100644 --- a/src/GitHub/Models/ExternalGroups.cs +++ b/src/GitHub/Models/ExternalGroups.cs @@ -1,27 +1,29 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A list of external groups available to be connected to a team /// - public class ExternalGroups : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ExternalGroups : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// An array of external groups available to be mapped to a team #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Groups { get; set; } + public List? Groups { get; set; } #nullable restore #else - public List Groups { get; set; } + public List Groups { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ExternalGroups() { @@ -30,12 +32,12 @@ public ExternalGroups() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ExternalGroups CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ExternalGroups CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ExternalGroups(); + return new global::GitHub.Models.ExternalGroups(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"groups", n => { Groups = n.GetCollectionOfObjectValues(ExternalGroups_groups.CreateFromDiscriminatorValue)?.ToList(); } }, + { "groups", n => { Groups = n.GetCollectionOfObjectValues(global::GitHub.Models.ExternalGroups_groups.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("groups", Groups); + writer.WriteCollectionOfObjectValues("groups", Groups); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/ExternalGroups_groups.cs b/src/GitHub/Models/ExternalGroups_groups.cs index 1afa8af5..c1a73f17 100644 --- a/src/GitHub/Models/ExternalGroups_groups.cs +++ b/src/GitHub/Models/ExternalGroups_groups.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ExternalGroups_groups : IAdditionalDataHolder, IParsable + public partial class ExternalGroups_groups : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,7 +32,7 @@ public class ExternalGroups_groups : IAdditionalDataHolder, IParsable public string UpdatedAt { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ExternalGroups_groups() { @@ -39,12 +41,12 @@ public ExternalGroups_groups() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ExternalGroups_groups CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ExternalGroups_groups CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ExternalGroups_groups(); + return new global::GitHub.Models.ExternalGroups_groups(); } /// /// The deserialization information for the current model @@ -54,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"group_id", n => { GroupId = n.GetIntValue(); } }, - {"group_name", n => { GroupName = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetStringValue(); } }, + { "group_id", n => { GroupId = n.GetIntValue(); } }, + { "group_name", n => { GroupName = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Feed.cs b/src/GitHub/Models/Feed.cs index fcedb585..69b740fc 100644 --- a/src/GitHub/Models/Feed.cs +++ b/src/GitHub/Models/Feed.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Feed /// - public class Feed : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Feed : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -55,10 +57,10 @@ public class Feed : IAdditionalDataHolder, IParsable /// The _links property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Feed__links? Links { get; set; } + public global::GitHub.Models.Feed__links? Links { get; set; } #nullable restore #else - public Feed__links Links { get; set; } + public global::GitHub.Models.Feed__links Links { get; set; } #endif /// A feed of discussions for a given repository and category. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -101,7 +103,7 @@ public class Feed : IAdditionalDataHolder, IParsable public string UserUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Feed() { @@ -110,12 +112,12 @@ public Feed() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Feed CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Feed CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Feed(); + return new global::GitHub.Models.Feed(); } /// /// The deserialization information for the current model @@ -125,17 +127,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"current_user_actor_url", n => { CurrentUserActorUrl = n.GetStringValue(); } }, - {"current_user_organization_url", n => { CurrentUserOrganizationUrl = n.GetStringValue(); } }, - {"current_user_organization_urls", n => { CurrentUserOrganizationUrls = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"current_user_public_url", n => { CurrentUserPublicUrl = n.GetStringValue(); } }, - {"current_user_url", n => { CurrentUserUrl = n.GetStringValue(); } }, - {"_links", n => { Links = n.GetObjectValue(Feed__links.CreateFromDiscriminatorValue); } }, - {"repository_discussions_category_url", n => { RepositoryDiscussionsCategoryUrl = n.GetStringValue(); } }, - {"repository_discussions_url", n => { RepositoryDiscussionsUrl = n.GetStringValue(); } }, - {"security_advisories_url", n => { SecurityAdvisoriesUrl = n.GetStringValue(); } }, - {"timeline_url", n => { TimelineUrl = n.GetStringValue(); } }, - {"user_url", n => { UserUrl = n.GetStringValue(); } }, + { "current_user_actor_url", n => { CurrentUserActorUrl = n.GetStringValue(); } }, + { "current_user_organization_url", n => { CurrentUserOrganizationUrl = n.GetStringValue(); } }, + { "current_user_organization_urls", n => { CurrentUserOrganizationUrls = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "current_user_public_url", n => { CurrentUserPublicUrl = n.GetStringValue(); } }, + { "current_user_url", n => { CurrentUserUrl = n.GetStringValue(); } }, + { "_links", n => { Links = n.GetObjectValue(global::GitHub.Models.Feed__links.CreateFromDiscriminatorValue); } }, + { "repository_discussions_category_url", n => { RepositoryDiscussionsCategoryUrl = n.GetStringValue(); } }, + { "repository_discussions_url", n => { RepositoryDiscussionsUrl = n.GetStringValue(); } }, + { "security_advisories_url", n => { SecurityAdvisoriesUrl = n.GetStringValue(); } }, + { "timeline_url", n => { TimelineUrl = n.GetStringValue(); } }, + { "user_url", n => { UserUrl = n.GetStringValue(); } }, }; } /// @@ -150,7 +152,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteCollectionOfPrimitiveValues("current_user_organization_urls", CurrentUserOrganizationUrls); writer.WriteStringValue("current_user_public_url", CurrentUserPublicUrl); writer.WriteStringValue("current_user_url", CurrentUserUrl); - writer.WriteObjectValue("_links", Links); + writer.WriteObjectValue("_links", Links); writer.WriteStringValue("repository_discussions_category_url", RepositoryDiscussionsCategoryUrl); writer.WriteStringValue("repository_discussions_url", RepositoryDiscussionsUrl); writer.WriteStringValue("security_advisories_url", SecurityAdvisoriesUrl); diff --git a/src/GitHub/Models/Feed__links.cs b/src/GitHub/Models/Feed__links.cs index 4ad8743f..8da10077 100644 --- a/src/GitHub/Models/Feed__links.cs +++ b/src/GitHub/Models/Feed__links.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Feed__links : IAdditionalDataHolder, IParsable + public partial class Feed__links : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,85 +16,85 @@ public class Feed__links : IAdditionalDataHolder, IParsable /// Hypermedia Link with Type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public LinkWithType? CurrentUser { get; set; } + public global::GitHub.Models.LinkWithType? CurrentUser { get; set; } #nullable restore #else - public LinkWithType CurrentUser { get; set; } + public global::GitHub.Models.LinkWithType CurrentUser { get; set; } #endif /// Hypermedia Link with Type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public LinkWithType? CurrentUserActor { get; set; } + public global::GitHub.Models.LinkWithType? CurrentUserActor { get; set; } #nullable restore #else - public LinkWithType CurrentUserActor { get; set; } + public global::GitHub.Models.LinkWithType CurrentUserActor { get; set; } #endif /// Hypermedia Link with Type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public LinkWithType? CurrentUserOrganization { get; set; } + public global::GitHub.Models.LinkWithType? CurrentUserOrganization { get; set; } #nullable restore #else - public LinkWithType CurrentUserOrganization { get; set; } + public global::GitHub.Models.LinkWithType CurrentUserOrganization { get; set; } #endif /// The current_user_organizations property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? CurrentUserOrganizations { get; set; } + public List? CurrentUserOrganizations { get; set; } #nullable restore #else - public List CurrentUserOrganizations { get; set; } + public List CurrentUserOrganizations { get; set; } #endif /// Hypermedia Link with Type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public LinkWithType? CurrentUserPublic { get; set; } + public global::GitHub.Models.LinkWithType? CurrentUserPublic { get; set; } #nullable restore #else - public LinkWithType CurrentUserPublic { get; set; } + public global::GitHub.Models.LinkWithType CurrentUserPublic { get; set; } #endif /// Hypermedia Link with Type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public LinkWithType? RepositoryDiscussions { get; set; } + public global::GitHub.Models.LinkWithType? RepositoryDiscussions { get; set; } #nullable restore #else - public LinkWithType RepositoryDiscussions { get; set; } + public global::GitHub.Models.LinkWithType RepositoryDiscussions { get; set; } #endif /// Hypermedia Link with Type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public LinkWithType? RepositoryDiscussionsCategory { get; set; } + public global::GitHub.Models.LinkWithType? RepositoryDiscussionsCategory { get; set; } #nullable restore #else - public LinkWithType RepositoryDiscussionsCategory { get; set; } + public global::GitHub.Models.LinkWithType RepositoryDiscussionsCategory { get; set; } #endif /// Hypermedia Link with Type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public LinkWithType? SecurityAdvisories { get; set; } + public global::GitHub.Models.LinkWithType? SecurityAdvisories { get; set; } #nullable restore #else - public LinkWithType SecurityAdvisories { get; set; } + public global::GitHub.Models.LinkWithType SecurityAdvisories { get; set; } #endif /// Hypermedia Link with Type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public LinkWithType? Timeline { get; set; } + public global::GitHub.Models.LinkWithType? Timeline { get; set; } #nullable restore #else - public LinkWithType Timeline { get; set; } + public global::GitHub.Models.LinkWithType Timeline { get; set; } #endif /// Hypermedia Link with Type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public LinkWithType? User { get; set; } + public global::GitHub.Models.LinkWithType? User { get; set; } #nullable restore #else - public LinkWithType User { get; set; } + public global::GitHub.Models.LinkWithType User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Feed__links() { @@ -101,12 +103,12 @@ public Feed__links() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Feed__links CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Feed__links CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Feed__links(); + return new global::GitHub.Models.Feed__links(); } /// /// The deserialization information for the current model @@ -116,16 +118,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"current_user", n => { CurrentUser = n.GetObjectValue(LinkWithType.CreateFromDiscriminatorValue); } }, - {"current_user_actor", n => { CurrentUserActor = n.GetObjectValue(LinkWithType.CreateFromDiscriminatorValue); } }, - {"current_user_organization", n => { CurrentUserOrganization = n.GetObjectValue(LinkWithType.CreateFromDiscriminatorValue); } }, - {"current_user_organizations", n => { CurrentUserOrganizations = n.GetCollectionOfObjectValues(LinkWithType.CreateFromDiscriminatorValue)?.ToList(); } }, - {"current_user_public", n => { CurrentUserPublic = n.GetObjectValue(LinkWithType.CreateFromDiscriminatorValue); } }, - {"repository_discussions", n => { RepositoryDiscussions = n.GetObjectValue(LinkWithType.CreateFromDiscriminatorValue); } }, - {"repository_discussions_category", n => { RepositoryDiscussionsCategory = n.GetObjectValue(LinkWithType.CreateFromDiscriminatorValue); } }, - {"security_advisories", n => { SecurityAdvisories = n.GetObjectValue(LinkWithType.CreateFromDiscriminatorValue); } }, - {"timeline", n => { Timeline = n.GetObjectValue(LinkWithType.CreateFromDiscriminatorValue); } }, - {"user", n => { User = n.GetObjectValue(LinkWithType.CreateFromDiscriminatorValue); } }, + { "current_user", n => { CurrentUser = n.GetObjectValue(global::GitHub.Models.LinkWithType.CreateFromDiscriminatorValue); } }, + { "current_user_actor", n => { CurrentUserActor = n.GetObjectValue(global::GitHub.Models.LinkWithType.CreateFromDiscriminatorValue); } }, + { "current_user_organization", n => { CurrentUserOrganization = n.GetObjectValue(global::GitHub.Models.LinkWithType.CreateFromDiscriminatorValue); } }, + { "current_user_organizations", n => { CurrentUserOrganizations = n.GetCollectionOfObjectValues(global::GitHub.Models.LinkWithType.CreateFromDiscriminatorValue)?.AsList(); } }, + { "current_user_public", n => { CurrentUserPublic = n.GetObjectValue(global::GitHub.Models.LinkWithType.CreateFromDiscriminatorValue); } }, + { "repository_discussions", n => { RepositoryDiscussions = n.GetObjectValue(global::GitHub.Models.LinkWithType.CreateFromDiscriminatorValue); } }, + { "repository_discussions_category", n => { RepositoryDiscussionsCategory = n.GetObjectValue(global::GitHub.Models.LinkWithType.CreateFromDiscriminatorValue); } }, + { "security_advisories", n => { SecurityAdvisories = n.GetObjectValue(global::GitHub.Models.LinkWithType.CreateFromDiscriminatorValue); } }, + { "timeline", n => { Timeline = n.GetObjectValue(global::GitHub.Models.LinkWithType.CreateFromDiscriminatorValue); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.LinkWithType.CreateFromDiscriminatorValue); } }, }; } /// @@ -135,16 +137,16 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("current_user", CurrentUser); - writer.WriteObjectValue("current_user_actor", CurrentUserActor); - writer.WriteObjectValue("current_user_organization", CurrentUserOrganization); - writer.WriteCollectionOfObjectValues("current_user_organizations", CurrentUserOrganizations); - writer.WriteObjectValue("current_user_public", CurrentUserPublic); - writer.WriteObjectValue("repository_discussions", RepositoryDiscussions); - writer.WriteObjectValue("repository_discussions_category", RepositoryDiscussionsCategory); - writer.WriteObjectValue("security_advisories", SecurityAdvisories); - writer.WriteObjectValue("timeline", Timeline); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("current_user", CurrentUser); + writer.WriteObjectValue("current_user_actor", CurrentUserActor); + writer.WriteObjectValue("current_user_organization", CurrentUserOrganization); + writer.WriteCollectionOfObjectValues("current_user_organizations", CurrentUserOrganizations); + writer.WriteObjectValue("current_user_public", CurrentUserPublic); + writer.WriteObjectValue("repository_discussions", RepositoryDiscussions); + writer.WriteObjectValue("repository_discussions_category", RepositoryDiscussionsCategory); + writer.WriteObjectValue("security_advisories", SecurityAdvisories); + writer.WriteObjectValue("timeline", Timeline); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/FileCommit.cs b/src/GitHub/Models/FileCommit.cs index f70e609d..c84a686e 100644 --- a/src/GitHub/Models/FileCommit.cs +++ b/src/GitHub/Models/FileCommit.cs @@ -1,35 +1,37 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// File Commit /// - public class FileCommit : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class FileCommit : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The commit property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public FileCommit_commit? Commit { get; set; } + public global::GitHub.Models.FileCommit_commit? Commit { get; set; } #nullable restore #else - public FileCommit_commit Commit { get; set; } + public global::GitHub.Models.FileCommit_commit Commit { get; set; } #endif /// The content property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public FileCommit_content? Content { get; set; } + public global::GitHub.Models.FileCommit_content? Content { get; set; } #nullable restore #else - public FileCommit_content Content { get; set; } + public global::GitHub.Models.FileCommit_content Content { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FileCommit() { @@ -38,12 +40,12 @@ public FileCommit() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static FileCommit CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.FileCommit CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FileCommit(); + return new global::GitHub.Models.FileCommit(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"commit", n => { Commit = n.GetObjectValue(FileCommit_commit.CreateFromDiscriminatorValue); } }, - {"content", n => { Content = n.GetObjectValue(FileCommit_content.CreateFromDiscriminatorValue); } }, + { "commit", n => { Commit = n.GetObjectValue(global::GitHub.Models.FileCommit_commit.CreateFromDiscriminatorValue); } }, + { "content", n => { Content = n.GetObjectValue(global::GitHub.Models.FileCommit_content.CreateFromDiscriminatorValue); } }, }; } /// @@ -64,8 +66,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("commit", Commit); - writer.WriteObjectValue("content", Content); + writer.WriteObjectValue("commit", Commit); + writer.WriteObjectValue("content", Content); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/FileCommit503Error.cs b/src/GitHub/Models/FileCommit503Error.cs index e68cc9e1..4519cabb 100644 --- a/src/GitHub/Models/FileCommit503Error.cs +++ b/src/GitHub/Models/FileCommit503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class FileCommit503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class FileCommit503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class FileCommit503Error : ApiException, IAdditionalDataHolder, IParsable #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FileCommit503Error() { @@ -46,12 +42,12 @@ public FileCommit503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static FileCommit503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.FileCommit503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FileCommit503Error(); + return new global::GitHub.Models.FileCommit503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/FileCommit_commit.cs b/src/GitHub/Models/FileCommit_commit.cs index 975d0cf5..16741360 100644 --- a/src/GitHub/Models/FileCommit_commit.cs +++ b/src/GitHub/Models/FileCommit_commit.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class FileCommit_commit : IAdditionalDataHolder, IParsable + public partial class FileCommit_commit : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,18 +16,18 @@ public class FileCommit_commit : IAdditionalDataHolder, IParsable /// The author property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public FileCommit_commit_author? Author { get; set; } + public global::GitHub.Models.FileCommit_commit_author? Author { get; set; } #nullable restore #else - public FileCommit_commit_author Author { get; set; } + public global::GitHub.Models.FileCommit_commit_author Author { get; set; } #endif /// The committer property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public FileCommit_commit_committer? Committer { get; set; } + public global::GitHub.Models.FileCommit_commit_committer? Committer { get; set; } #nullable restore #else - public FileCommit_commit_committer Committer { get; set; } + public global::GitHub.Models.FileCommit_commit_committer Committer { get; set; } #endif /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -54,10 +56,10 @@ public class FileCommit_commit : IAdditionalDataHolder, IParsable /// The parents property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Parents { get; set; } + public List? Parents { get; set; } #nullable restore #else - public List Parents { get; set; } + public List Parents { get; set; } #endif /// The sha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -70,10 +72,10 @@ public class FileCommit_commit : IAdditionalDataHolder, IParsable /// The tree property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public FileCommit_commit_tree? Tree { get; set; } + public global::GitHub.Models.FileCommit_commit_tree? Tree { get; set; } #nullable restore #else - public FileCommit_commit_tree Tree { get; set; } + public global::GitHub.Models.FileCommit_commit_tree Tree { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -86,13 +88,13 @@ public class FileCommit_commit : IAdditionalDataHolder, IParsable /// The verification property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public FileCommit_commit_verification? Verification { get; set; } + public global::GitHub.Models.FileCommit_commit_verification? Verification { get; set; } #nullable restore #else - public FileCommit_commit_verification Verification { get; set; } + public global::GitHub.Models.FileCommit_commit_verification Verification { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FileCommit_commit() { @@ -101,12 +103,12 @@ public FileCommit_commit() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static FileCommit_commit CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.FileCommit_commit CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FileCommit_commit(); + return new global::GitHub.Models.FileCommit_commit(); } /// /// The deserialization information for the current model @@ -116,16 +118,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author", n => { Author = n.GetObjectValue(FileCommit_commit_author.CreateFromDiscriminatorValue); } }, - {"committer", n => { Committer = n.GetObjectValue(FileCommit_commit_committer.CreateFromDiscriminatorValue); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"parents", n => { Parents = n.GetCollectionOfObjectValues(FileCommit_commit_parents.CreateFromDiscriminatorValue)?.ToList(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"tree", n => { Tree = n.GetObjectValue(FileCommit_commit_tree.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"verification", n => { Verification = n.GetObjectValue(FileCommit_commit_verification.CreateFromDiscriminatorValue); } }, + { "author", n => { Author = n.GetObjectValue(global::GitHub.Models.FileCommit_commit_author.CreateFromDiscriminatorValue); } }, + { "committer", n => { Committer = n.GetObjectValue(global::GitHub.Models.FileCommit_commit_committer.CreateFromDiscriminatorValue); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "parents", n => { Parents = n.GetCollectionOfObjectValues(global::GitHub.Models.FileCommit_commit_parents.CreateFromDiscriminatorValue)?.AsList(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "tree", n => { Tree = n.GetObjectValue(global::GitHub.Models.FileCommit_commit_tree.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "verification", n => { Verification = n.GetObjectValue(global::GitHub.Models.FileCommit_commit_verification.CreateFromDiscriminatorValue); } }, }; } /// @@ -135,16 +137,16 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("author", Author); - writer.WriteObjectValue("committer", Committer); + writer.WriteObjectValue("author", Author); + writer.WriteObjectValue("committer", Committer); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteStringValue("message", Message); writer.WriteStringValue("node_id", NodeId); - writer.WriteCollectionOfObjectValues("parents", Parents); + writer.WriteCollectionOfObjectValues("parents", Parents); writer.WriteStringValue("sha", Sha); - writer.WriteObjectValue("tree", Tree); + writer.WriteObjectValue("tree", Tree); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("verification", Verification); + writer.WriteObjectValue("verification", Verification); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/FileCommit_commit_author.cs b/src/GitHub/Models/FileCommit_commit_author.cs index 2040b5f3..40f3a6fa 100644 --- a/src/GitHub/Models/FileCommit_commit_author.cs +++ b/src/GitHub/Models/FileCommit_commit_author.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class FileCommit_commit_author : IAdditionalDataHolder, IParsable + public partial class FileCommit_commit_author : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class FileCommit_commit_author : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FileCommit_commit_author() { @@ -45,12 +47,12 @@ public FileCommit_commit_author() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static FileCommit_commit_author CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.FileCommit_commit_author CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FileCommit_commit_author(); + return new global::GitHub.Models.FileCommit_commit_author(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"date", n => { Date = n.GetStringValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "date", n => { Date = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/FileCommit_commit_committer.cs b/src/GitHub/Models/FileCommit_commit_committer.cs index 15a847be..b48bf5d2 100644 --- a/src/GitHub/Models/FileCommit_commit_committer.cs +++ b/src/GitHub/Models/FileCommit_commit_committer.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class FileCommit_commit_committer : IAdditionalDataHolder, IParsable + public partial class FileCommit_commit_committer : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class FileCommit_commit_committer : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FileCommit_commit_committer() { @@ -45,12 +47,12 @@ public FileCommit_commit_committer() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static FileCommit_commit_committer CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.FileCommit_commit_committer CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FileCommit_commit_committer(); + return new global::GitHub.Models.FileCommit_commit_committer(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"date", n => { Date = n.GetStringValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "date", n => { Date = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/FileCommit_commit_parents.cs b/src/GitHub/Models/FileCommit_commit_parents.cs index dbbe7c31..3602ac9a 100644 --- a/src/GitHub/Models/FileCommit_commit_parents.cs +++ b/src/GitHub/Models/FileCommit_commit_parents.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class FileCommit_commit_parents : IAdditionalDataHolder, IParsable + public partial class FileCommit_commit_parents : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class FileCommit_commit_parents : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FileCommit_commit_parents() { @@ -45,12 +47,12 @@ public FileCommit_commit_parents() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static FileCommit_commit_parents CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.FileCommit_commit_parents CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FileCommit_commit_parents(); + return new global::GitHub.Models.FileCommit_commit_parents(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/FileCommit_commit_tree.cs b/src/GitHub/Models/FileCommit_commit_tree.cs index 0b59ba8e..e73f5a2a 100644 --- a/src/GitHub/Models/FileCommit_commit_tree.cs +++ b/src/GitHub/Models/FileCommit_commit_tree.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class FileCommit_commit_tree : IAdditionalDataHolder, IParsable + public partial class FileCommit_commit_tree : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class FileCommit_commit_tree : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FileCommit_commit_tree() { @@ -37,12 +39,12 @@ public FileCommit_commit_tree() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static FileCommit_commit_tree CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.FileCommit_commit_tree CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FileCommit_commit_tree(); + return new global::GitHub.Models.FileCommit_commit_tree(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"sha", n => { Sha = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/FileCommit_commit_verification.cs b/src/GitHub/Models/FileCommit_commit_verification.cs index df0eb1b1..9ca5feb7 100644 --- a/src/GitHub/Models/FileCommit_commit_verification.cs +++ b/src/GitHub/Models/FileCommit_commit_verification.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class FileCommit_commit_verification : IAdditionalDataHolder, IParsable + public partial class FileCommit_commit_verification : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -38,7 +40,7 @@ public class FileCommit_commit_verification : IAdditionalDataHolder, IParsable /// The verified property public bool? Verified { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FileCommit_commit_verification() { @@ -47,12 +49,12 @@ public FileCommit_commit_verification() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static FileCommit_commit_verification CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.FileCommit_commit_verification CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FileCommit_commit_verification(); + return new global::GitHub.Models.FileCommit_commit_verification(); } /// /// The deserialization information for the current model @@ -62,10 +64,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"payload", n => { Payload = n.GetStringValue(); } }, - {"reason", n => { Reason = n.GetStringValue(); } }, - {"signature", n => { Signature = n.GetStringValue(); } }, - {"verified", n => { Verified = n.GetBoolValue(); } }, + { "payload", n => { Payload = n.GetStringValue(); } }, + { "reason", n => { Reason = n.GetStringValue(); } }, + { "signature", n => { Signature = n.GetStringValue(); } }, + { "verified", n => { Verified = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/FileCommit_content.cs b/src/GitHub/Models/FileCommit_content.cs index 5c6a33e2..c5a49bd1 100644 --- a/src/GitHub/Models/FileCommit_content.cs +++ b/src/GitHub/Models/FileCommit_content.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class FileCommit_content : IAdditionalDataHolder, IParsable + public partial class FileCommit_content : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -38,10 +40,10 @@ public class FileCommit_content : IAdditionalDataHolder, IParsable /// The _links property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public FileCommit_content__links? Links { get; set; } + public global::GitHub.Models.FileCommit_content__links? Links { get; set; } #nullable restore #else - public FileCommit_content__links Links { get; set; } + public global::GitHub.Models.FileCommit_content__links Links { get; set; } #endif /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -86,7 +88,7 @@ public class FileCommit_content : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FileCommit_content() { @@ -95,12 +97,12 @@ public FileCommit_content() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static FileCommit_content CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.FileCommit_content CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FileCommit_content(); + return new global::GitHub.Models.FileCommit_content(); } /// /// The deserialization information for the current model @@ -110,16 +112,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"download_url", n => { DownloadUrl = n.GetStringValue(); } }, - {"git_url", n => { GitUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"_links", n => { Links = n.GetObjectValue(FileCommit_content__links.CreateFromDiscriminatorValue); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"size", n => { Size = n.GetIntValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "download_url", n => { DownloadUrl = n.GetStringValue(); } }, + { "git_url", n => { GitUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "_links", n => { Links = n.GetObjectValue(global::GitHub.Models.FileCommit_content__links.CreateFromDiscriminatorValue); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "size", n => { Size = n.GetIntValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -132,7 +134,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("download_url", DownloadUrl); writer.WriteStringValue("git_url", GitUrl); writer.WriteStringValue("html_url", HtmlUrl); - writer.WriteObjectValue("_links", Links); + writer.WriteObjectValue("_links", Links); writer.WriteStringValue("name", Name); writer.WriteStringValue("path", Path); writer.WriteStringValue("sha", Sha); diff --git a/src/GitHub/Models/FileCommit_content__links.cs b/src/GitHub/Models/FileCommit_content__links.cs index 91ebc295..fadb20fd 100644 --- a/src/GitHub/Models/FileCommit_content__links.cs +++ b/src/GitHub/Models/FileCommit_content__links.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class FileCommit_content__links : IAdditionalDataHolder, IParsable + public partial class FileCommit_content__links : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class FileCommit_content__links : IAdditionalDataHolder, IParsable public string Self { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FileCommit_content__links() { @@ -45,12 +47,12 @@ public FileCommit_content__links() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static FileCommit_content__links CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.FileCommit_content__links CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FileCommit_content__links(); + return new global::GitHub.Models.FileCommit_content__links(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"git", n => { Git = n.GetStringValue(); } }, - {"html", n => { Html = n.GetStringValue(); } }, - {"self", n => { Self = n.GetStringValue(); } }, + { "git", n => { Git = n.GetStringValue(); } }, + { "html", n => { Html = n.GetStringValue(); } }, + { "self", n => { Self = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Files503Error.cs b/src/GitHub/Models/Files503Error.cs index db3d42a7..73c0302e 100644 --- a/src/GitHub/Models/Files503Error.cs +++ b/src/GitHub/Models/Files503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Files503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class Files503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class Files503Error : ApiException, IAdditionalDataHolder, IParsable #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Files503Error() { @@ -46,12 +42,12 @@ public Files503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Files503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Files503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Files503Error(); + return new global::GitHub.Models.Files503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/FullRepository.cs b/src/GitHub/Models/FullRepository.cs index d9af1d7b..e6a43054 100644 --- a/src/GitHub/Models/FullRepository.cs +++ b/src/GitHub/Models/FullRepository.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Full Repository /// - public class FullRepository : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class FullRepository : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -71,10 +73,10 @@ public class FullRepository : IAdditionalDataHolder, IParsable /// Code of Conduct Simple #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CodeOfConductSimple? CodeOfConduct { get; set; } + public global::GitHub.Models.CodeOfConductSimple? CodeOfConduct { get; set; } #nullable restore #else - public CodeOfConductSimple CodeOfConduct { get; set; } + public global::GitHub.Models.CodeOfConductSimple CodeOfConduct { get; set; } #endif /// The collaborators_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,10 +131,10 @@ public class FullRepository : IAdditionalDataHolder, IParsable /// The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public FullRepository_custom_properties? CustomProperties { get; set; } + public global::GitHub.Models.FullRepository_custom_properties? CustomProperties { get; set; } #nullable restore #else - public FullRepository_custom_properties CustomProperties { get; set; } + public global::GitHub.Models.FullRepository_custom_properties CustomProperties { get; set; } #endif /// The default_branch property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -331,10 +333,10 @@ public class FullRepository : IAdditionalDataHolder, IParsable /// License Simple #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableLicenseSimple? License { get; set; } + public global::GitHub.Models.NullableLicenseSimple? License { get; set; } #nullable restore #else - public NullableLicenseSimple License { get; set; } + public global::GitHub.Models.NullableLicenseSimple License { get; set; } #endif /// The master_branch property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -345,9 +347,9 @@ public class FullRepository : IAdditionalDataHolder, IParsable public string MasterBranch { get; set; } #endif /// 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. - public FullRepository_merge_commit_message? MergeCommitMessage { get; set; } + public global::GitHub.Models.FullRepository_merge_commit_message? MergeCommitMessage { get; set; } /// 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). - public FullRepository_merge_commit_title? MergeCommitTitle { get; set; } + public global::GitHub.Models.FullRepository_merge_commit_title? MergeCommitTitle { get; set; } /// The merges_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -405,34 +407,34 @@ public class FullRepository : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Organization { get; set; } + public global::GitHub.Models.NullableSimpleUser? Organization { get; set; } #nullable restore #else - public NullableSimpleUser Organization { get; set; } + public global::GitHub.Models.NullableSimpleUser Organization { get; set; } #endif /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Owner { get; set; } + public global::GitHub.Models.SimpleUser? Owner { get; set; } #nullable restore #else - public SimpleUser Owner { get; set; } + public global::GitHub.Models.SimpleUser Owner { get; set; } #endif /// A repository on GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Repository? Parent { get; set; } + public global::GitHub.Models.Repository? Parent { get; set; } #nullable restore #else - public Repository Parent { get; set; } + public global::GitHub.Models.Repository Parent { get; set; } #endif /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public FullRepository_permissions? Permissions { get; set; } + public global::GitHub.Models.FullRepository_permissions? Permissions { get; set; } #nullable restore #else - public FullRepository_permissions Permissions { get; set; } + public global::GitHub.Models.FullRepository_permissions Permissions { get; set; } #endif /// The private property public bool? Private { get; set; } @@ -457,25 +459,25 @@ public class FullRepository : IAdditionalDataHolder, IParsable /// The security_and_analysis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SecurityAndAnalysis? SecurityAndAnalysis { get; set; } + public global::GitHub.Models.SecurityAndAnalysis? SecurityAndAnalysis { get; set; } #nullable restore #else - public GitHub.Models.SecurityAndAnalysis SecurityAndAnalysis { get; set; } + public global::GitHub.Models.SecurityAndAnalysis SecurityAndAnalysis { get; set; } #endif /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. public int? Size { get; set; } /// A repository on GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Repository? Source { get; set; } + public global::GitHub.Models.Repository? Source { get; set; } #nullable restore #else - public Repository Source { get; set; } + public global::GitHub.Models.Repository Source { get; set; } #endif /// 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. - public FullRepository_squash_merge_commit_message? SquashMergeCommitMessage { get; set; } + public global::GitHub.Models.FullRepository_squash_merge_commit_message? SquashMergeCommitMessage { get; set; } /// 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). - public FullRepository_squash_merge_commit_title? SquashMergeCommitTitle { get; set; } + public global::GitHub.Models.FullRepository_squash_merge_commit_title? SquashMergeCommitTitle { get; set; } /// The ssh_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -555,10 +557,10 @@ public class FullRepository : IAdditionalDataHolder, IParsable /// A repository on GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableRepository? TemplateRepository { get; set; } + public global::GitHub.Models.NullableRepository? TemplateRepository { get; set; } #nullable restore #else - public NullableRepository TemplateRepository { get; set; } + public global::GitHub.Models.NullableRepository TemplateRepository { get; set; } #endif /// The topics property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -603,7 +605,7 @@ public class FullRepository : IAdditionalDataHolder, IParsable /// The web_commit_signoff_required property public bool? WebCommitSignoffRequired { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FullRepository() { @@ -612,12 +614,12 @@ public FullRepository() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static FullRepository CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.FullRepository CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FullRepository(); + return new global::GitHub.Models.FullRepository(); } /// /// The deserialization information for the current model @@ -627,109 +629,109 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allow_auto_merge", n => { AllowAutoMerge = n.GetBoolValue(); } }, - {"allow_forking", n => { AllowForking = n.GetBoolValue(); } }, - {"allow_merge_commit", n => { AllowMergeCommit = n.GetBoolValue(); } }, - {"allow_rebase_merge", n => { AllowRebaseMerge = n.GetBoolValue(); } }, - {"allow_squash_merge", n => { AllowSquashMerge = n.GetBoolValue(); } }, - {"allow_update_branch", n => { AllowUpdateBranch = n.GetBoolValue(); } }, - {"anonymous_access_enabled", n => { AnonymousAccessEnabled = n.GetBoolValue(); } }, - {"archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, - {"archived", n => { Archived = n.GetBoolValue(); } }, - {"assignees_url", n => { AssigneesUrl = n.GetStringValue(); } }, - {"blobs_url", n => { BlobsUrl = n.GetStringValue(); } }, - {"branches_url", n => { BranchesUrl = n.GetStringValue(); } }, - {"clone_url", n => { CloneUrl = n.GetStringValue(); } }, - {"code_of_conduct", n => { CodeOfConduct = n.GetObjectValue(CodeOfConductSimple.CreateFromDiscriminatorValue); } }, - {"collaborators_url", n => { CollaboratorsUrl = n.GetStringValue(); } }, - {"comments_url", n => { CommentsUrl = n.GetStringValue(); } }, - {"commits_url", n => { CommitsUrl = n.GetStringValue(); } }, - {"compare_url", n => { CompareUrl = n.GetStringValue(); } }, - {"contents_url", n => { ContentsUrl = n.GetStringValue(); } }, - {"contributors_url", n => { ContributorsUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"custom_properties", n => { CustomProperties = n.GetObjectValue(FullRepository_custom_properties.CreateFromDiscriminatorValue); } }, - {"default_branch", n => { DefaultBranch = n.GetStringValue(); } }, - {"delete_branch_on_merge", n => { DeleteBranchOnMerge = n.GetBoolValue(); } }, - {"deployments_url", n => { DeploymentsUrl = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"disabled", n => { Disabled = n.GetBoolValue(); } }, - {"downloads_url", n => { DownloadsUrl = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"fork", n => { Fork = n.GetBoolValue(); } }, - {"forks", n => { Forks = n.GetIntValue(); } }, - {"forks_count", n => { ForksCount = n.GetIntValue(); } }, - {"forks_url", n => { ForksUrl = n.GetStringValue(); } }, - {"full_name", n => { FullName = n.GetStringValue(); } }, - {"git_commits_url", n => { GitCommitsUrl = n.GetStringValue(); } }, - {"git_refs_url", n => { GitRefsUrl = n.GetStringValue(); } }, - {"git_tags_url", n => { GitTagsUrl = n.GetStringValue(); } }, - {"git_url", n => { GitUrl = n.GetStringValue(); } }, - {"has_discussions", n => { HasDiscussions = n.GetBoolValue(); } }, - {"has_downloads", n => { HasDownloads = n.GetBoolValue(); } }, - {"has_issues", n => { HasIssues = n.GetBoolValue(); } }, - {"has_pages", n => { HasPages = n.GetBoolValue(); } }, - {"has_projects", n => { HasProjects = n.GetBoolValue(); } }, - {"has_wiki", n => { HasWiki = n.GetBoolValue(); } }, - {"homepage", n => { Homepage = n.GetStringValue(); } }, - {"hooks_url", n => { HooksUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"is_template", n => { IsTemplate = n.GetBoolValue(); } }, - {"issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, - {"issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } }, - {"issues_url", n => { IssuesUrl = n.GetStringValue(); } }, - {"keys_url", n => { KeysUrl = n.GetStringValue(); } }, - {"labels_url", n => { LabelsUrl = n.GetStringValue(); } }, - {"language", n => { Language = n.GetStringValue(); } }, - {"languages_url", n => { LanguagesUrl = n.GetStringValue(); } }, - {"license", n => { License = n.GetObjectValue(NullableLicenseSimple.CreateFromDiscriminatorValue); } }, - {"master_branch", n => { MasterBranch = n.GetStringValue(); } }, - {"merge_commit_message", n => { MergeCommitMessage = n.GetEnumValue(); } }, - {"merge_commit_title", n => { MergeCommitTitle = n.GetEnumValue(); } }, - {"merges_url", n => { MergesUrl = n.GetStringValue(); } }, - {"milestones_url", n => { MilestonesUrl = n.GetStringValue(); } }, - {"mirror_url", n => { MirrorUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"network_count", n => { NetworkCount = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, - {"open_issues", n => { OpenIssues = n.GetIntValue(); } }, - {"open_issues_count", n => { OpenIssuesCount = n.GetIntValue(); } }, - {"organization", n => { Organization = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"owner", n => { Owner = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"parent", n => { Parent = n.GetObjectValue(Repository.CreateFromDiscriminatorValue); } }, - {"permissions", n => { Permissions = n.GetObjectValue(FullRepository_permissions.CreateFromDiscriminatorValue); } }, - {"private", n => { Private = n.GetBoolValue(); } }, - {"pulls_url", n => { PullsUrl = n.GetStringValue(); } }, - {"pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, - {"releases_url", n => { ReleasesUrl = n.GetStringValue(); } }, - {"security_and_analysis", n => { SecurityAndAnalysis = n.GetObjectValue(GitHub.Models.SecurityAndAnalysis.CreateFromDiscriminatorValue); } }, - {"size", n => { Size = n.GetIntValue(); } }, - {"source", n => { Source = n.GetObjectValue(Repository.CreateFromDiscriminatorValue); } }, - {"squash_merge_commit_message", n => { SquashMergeCommitMessage = n.GetEnumValue(); } }, - {"squash_merge_commit_title", n => { SquashMergeCommitTitle = n.GetEnumValue(); } }, - {"ssh_url", n => { SshUrl = n.GetStringValue(); } }, - {"stargazers_count", n => { StargazersCount = n.GetIntValue(); } }, - {"stargazers_url", n => { StargazersUrl = n.GetStringValue(); } }, - {"statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, - {"subscribers_count", n => { SubscribersCount = n.GetIntValue(); } }, - {"subscribers_url", n => { SubscribersUrl = n.GetStringValue(); } }, - {"subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, - {"svn_url", n => { SvnUrl = n.GetStringValue(); } }, - {"tags_url", n => { TagsUrl = n.GetStringValue(); } }, - {"teams_url", n => { TeamsUrl = n.GetStringValue(); } }, - {"temp_clone_token", n => { TempCloneToken = n.GetStringValue(); } }, - {"template_repository", n => { TemplateRepository = n.GetObjectValue(NullableRepository.CreateFromDiscriminatorValue); } }, - {"topics", n => { Topics = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"trees_url", n => { TreesUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"use_squash_pr_title_as_default", n => { UseSquashPrTitleAsDefault = n.GetBoolValue(); } }, - {"visibility", n => { Visibility = n.GetStringValue(); } }, - {"watchers", n => { Watchers = n.GetIntValue(); } }, - {"watchers_count", n => { WatchersCount = n.GetIntValue(); } }, - {"web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, + { "allow_auto_merge", n => { AllowAutoMerge = n.GetBoolValue(); } }, + { "allow_forking", n => { AllowForking = n.GetBoolValue(); } }, + { "allow_merge_commit", n => { AllowMergeCommit = n.GetBoolValue(); } }, + { "allow_rebase_merge", n => { AllowRebaseMerge = n.GetBoolValue(); } }, + { "allow_squash_merge", n => { AllowSquashMerge = n.GetBoolValue(); } }, + { "allow_update_branch", n => { AllowUpdateBranch = n.GetBoolValue(); } }, + { "anonymous_access_enabled", n => { AnonymousAccessEnabled = n.GetBoolValue(); } }, + { "archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, + { "archived", n => { Archived = n.GetBoolValue(); } }, + { "assignees_url", n => { AssigneesUrl = n.GetStringValue(); } }, + { "blobs_url", n => { BlobsUrl = n.GetStringValue(); } }, + { "branches_url", n => { BranchesUrl = n.GetStringValue(); } }, + { "clone_url", n => { CloneUrl = n.GetStringValue(); } }, + { "code_of_conduct", n => { CodeOfConduct = n.GetObjectValue(global::GitHub.Models.CodeOfConductSimple.CreateFromDiscriminatorValue); } }, + { "collaborators_url", n => { CollaboratorsUrl = n.GetStringValue(); } }, + { "comments_url", n => { CommentsUrl = n.GetStringValue(); } }, + { "commits_url", n => { CommitsUrl = n.GetStringValue(); } }, + { "compare_url", n => { CompareUrl = n.GetStringValue(); } }, + { "contents_url", n => { ContentsUrl = n.GetStringValue(); } }, + { "contributors_url", n => { ContributorsUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "custom_properties", n => { CustomProperties = n.GetObjectValue(global::GitHub.Models.FullRepository_custom_properties.CreateFromDiscriminatorValue); } }, + { "default_branch", n => { DefaultBranch = n.GetStringValue(); } }, + { "delete_branch_on_merge", n => { DeleteBranchOnMerge = n.GetBoolValue(); } }, + { "deployments_url", n => { DeploymentsUrl = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "disabled", n => { Disabled = n.GetBoolValue(); } }, + { "downloads_url", n => { DownloadsUrl = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "fork", n => { Fork = n.GetBoolValue(); } }, + { "forks", n => { Forks = n.GetIntValue(); } }, + { "forks_count", n => { ForksCount = n.GetIntValue(); } }, + { "forks_url", n => { ForksUrl = n.GetStringValue(); } }, + { "full_name", n => { FullName = n.GetStringValue(); } }, + { "git_commits_url", n => { GitCommitsUrl = n.GetStringValue(); } }, + { "git_refs_url", n => { GitRefsUrl = n.GetStringValue(); } }, + { "git_tags_url", n => { GitTagsUrl = n.GetStringValue(); } }, + { "git_url", n => { GitUrl = n.GetStringValue(); } }, + { "has_discussions", n => { HasDiscussions = n.GetBoolValue(); } }, + { "has_downloads", n => { HasDownloads = n.GetBoolValue(); } }, + { "has_issues", n => { HasIssues = n.GetBoolValue(); } }, + { "has_pages", n => { HasPages = n.GetBoolValue(); } }, + { "has_projects", n => { HasProjects = n.GetBoolValue(); } }, + { "has_wiki", n => { HasWiki = n.GetBoolValue(); } }, + { "homepage", n => { Homepage = n.GetStringValue(); } }, + { "hooks_url", n => { HooksUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "is_template", n => { IsTemplate = n.GetBoolValue(); } }, + { "issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, + { "issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } }, + { "issues_url", n => { IssuesUrl = n.GetStringValue(); } }, + { "keys_url", n => { KeysUrl = n.GetStringValue(); } }, + { "labels_url", n => { LabelsUrl = n.GetStringValue(); } }, + { "language", n => { Language = n.GetStringValue(); } }, + { "languages_url", n => { LanguagesUrl = n.GetStringValue(); } }, + { "license", n => { License = n.GetObjectValue(global::GitHub.Models.NullableLicenseSimple.CreateFromDiscriminatorValue); } }, + { "master_branch", n => { MasterBranch = n.GetStringValue(); } }, + { "merge_commit_message", n => { MergeCommitMessage = n.GetEnumValue(); } }, + { "merge_commit_title", n => { MergeCommitTitle = n.GetEnumValue(); } }, + { "merges_url", n => { MergesUrl = n.GetStringValue(); } }, + { "milestones_url", n => { MilestonesUrl = n.GetStringValue(); } }, + { "mirror_url", n => { MirrorUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "network_count", n => { NetworkCount = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, + { "open_issues", n => { OpenIssues = n.GetIntValue(); } }, + { "open_issues_count", n => { OpenIssuesCount = n.GetIntValue(); } }, + { "organization", n => { Organization = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "parent", n => { Parent = n.GetObjectValue(global::GitHub.Models.Repository.CreateFromDiscriminatorValue); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.FullRepository_permissions.CreateFromDiscriminatorValue); } }, + { "private", n => { Private = n.GetBoolValue(); } }, + { "pulls_url", n => { PullsUrl = n.GetStringValue(); } }, + { "pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, + { "releases_url", n => { ReleasesUrl = n.GetStringValue(); } }, + { "security_and_analysis", n => { SecurityAndAnalysis = n.GetObjectValue(global::GitHub.Models.SecurityAndAnalysis.CreateFromDiscriminatorValue); } }, + { "size", n => { Size = n.GetIntValue(); } }, + { "source", n => { Source = n.GetObjectValue(global::GitHub.Models.Repository.CreateFromDiscriminatorValue); } }, + { "squash_merge_commit_message", n => { SquashMergeCommitMessage = n.GetEnumValue(); } }, + { "squash_merge_commit_title", n => { SquashMergeCommitTitle = n.GetEnumValue(); } }, + { "ssh_url", n => { SshUrl = n.GetStringValue(); } }, + { "stargazers_count", n => { StargazersCount = n.GetIntValue(); } }, + { "stargazers_url", n => { StargazersUrl = n.GetStringValue(); } }, + { "statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, + { "subscribers_count", n => { SubscribersCount = n.GetIntValue(); } }, + { "subscribers_url", n => { SubscribersUrl = n.GetStringValue(); } }, + { "subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, + { "svn_url", n => { SvnUrl = n.GetStringValue(); } }, + { "tags_url", n => { TagsUrl = n.GetStringValue(); } }, + { "teams_url", n => { TeamsUrl = n.GetStringValue(); } }, + { "temp_clone_token", n => { TempCloneToken = n.GetStringValue(); } }, + { "template_repository", n => { TemplateRepository = n.GetObjectValue(global::GitHub.Models.NullableRepository.CreateFromDiscriminatorValue); } }, + { "topics", n => { Topics = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "trees_url", n => { TreesUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "use_squash_pr_title_as_default", n => { UseSquashPrTitleAsDefault = n.GetBoolValue(); } }, + { "visibility", n => { Visibility = n.GetStringValue(); } }, + { "watchers", n => { Watchers = n.GetIntValue(); } }, + { "watchers_count", n => { WatchersCount = n.GetIntValue(); } }, + { "web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, }; } /// @@ -752,7 +754,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("blobs_url", BlobsUrl); writer.WriteStringValue("branches_url", BranchesUrl); writer.WriteStringValue("clone_url", CloneUrl); - writer.WriteObjectValue("code_of_conduct", CodeOfConduct); + writer.WriteObjectValue("code_of_conduct", CodeOfConduct); writer.WriteStringValue("collaborators_url", CollaboratorsUrl); writer.WriteStringValue("comments_url", CommentsUrl); writer.WriteStringValue("commits_url", CommitsUrl); @@ -760,7 +762,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("contents_url", ContentsUrl); writer.WriteStringValue("contributors_url", ContributorsUrl); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); - writer.WriteObjectValue("custom_properties", CustomProperties); + writer.WriteObjectValue("custom_properties", CustomProperties); writer.WriteStringValue("default_branch", DefaultBranch); writer.WriteBoolValue("delete_branch_on_merge", DeleteBranchOnMerge); writer.WriteStringValue("deployments_url", DeploymentsUrl); @@ -795,10 +797,10 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("labels_url", LabelsUrl); writer.WriteStringValue("language", Language); writer.WriteStringValue("languages_url", LanguagesUrl); - writer.WriteObjectValue("license", License); + writer.WriteObjectValue("license", License); writer.WriteStringValue("master_branch", MasterBranch); - writer.WriteEnumValue("merge_commit_message", MergeCommitMessage); - writer.WriteEnumValue("merge_commit_title", MergeCommitTitle); + writer.WriteEnumValue("merge_commit_message", MergeCommitMessage); + writer.WriteEnumValue("merge_commit_title", MergeCommitTitle); writer.WriteStringValue("merges_url", MergesUrl); writer.WriteStringValue("milestones_url", MilestonesUrl); writer.WriteStringValue("mirror_url", MirrorUrl); @@ -808,19 +810,19 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("notifications_url", NotificationsUrl); writer.WriteIntValue("open_issues", OpenIssues); writer.WriteIntValue("open_issues_count", OpenIssuesCount); - writer.WriteObjectValue("organization", Organization); - writer.WriteObjectValue("owner", Owner); - writer.WriteObjectValue("parent", Parent); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("organization", Organization); + writer.WriteObjectValue("owner", Owner); + writer.WriteObjectValue("parent", Parent); + writer.WriteObjectValue("permissions", Permissions); writer.WriteBoolValue("private", Private); writer.WriteStringValue("pulls_url", PullsUrl); writer.WriteDateTimeOffsetValue("pushed_at", PushedAt); writer.WriteStringValue("releases_url", ReleasesUrl); - writer.WriteObjectValue("security_and_analysis", SecurityAndAnalysis); + writer.WriteObjectValue("security_and_analysis", SecurityAndAnalysis); writer.WriteIntValue("size", Size); - writer.WriteObjectValue("source", Source); - writer.WriteEnumValue("squash_merge_commit_message", SquashMergeCommitMessage); - writer.WriteEnumValue("squash_merge_commit_title", SquashMergeCommitTitle); + writer.WriteObjectValue("source", Source); + writer.WriteEnumValue("squash_merge_commit_message", SquashMergeCommitMessage); + writer.WriteEnumValue("squash_merge_commit_title", SquashMergeCommitTitle); writer.WriteStringValue("ssh_url", SshUrl); writer.WriteIntValue("stargazers_count", StargazersCount); writer.WriteStringValue("stargazers_url", StargazersUrl); @@ -832,7 +834,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("tags_url", TagsUrl); writer.WriteStringValue("teams_url", TeamsUrl); writer.WriteStringValue("temp_clone_token", TempCloneToken); - writer.WriteObjectValue("template_repository", TemplateRepository); + writer.WriteObjectValue("template_repository", TemplateRepository); writer.WriteCollectionOfPrimitiveValues("topics", Topics); writer.WriteStringValue("trees_url", TreesUrl); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); diff --git a/src/GitHub/Models/FullRepository_custom_properties.cs b/src/GitHub/Models/FullRepository_custom_properties.cs index c35e9564..23bf3a6a 100644 --- a/src/GitHub/Models/FullRepository_custom_properties.cs +++ b/src/GitHub/Models/FullRepository_custom_properties.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. /// - public class FullRepository_custom_properties : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class FullRepository_custom_properties : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FullRepository_custom_properties() { @@ -22,12 +24,12 @@ public FullRepository_custom_properties() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static FullRepository_custom_properties CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.FullRepository_custom_properties CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FullRepository_custom_properties(); + return new global::GitHub.Models.FullRepository_custom_properties(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/FullRepository_merge_commit_message.cs b/src/GitHub/Models/FullRepository_merge_commit_message.cs index 37429693..42c8f560 100644 --- a/src/GitHub/Models/FullRepository_merge_commit_message.cs +++ b/src/GitHub/Models/FullRepository_merge_commit_message.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// 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. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum FullRepository_merge_commit_message { [EnumMember(Value = "PR_BODY")] diff --git a/src/GitHub/Models/FullRepository_merge_commit_title.cs b/src/GitHub/Models/FullRepository_merge_commit_title.cs index 71e6d7d8..81558835 100644 --- a/src/GitHub/Models/FullRepository_merge_commit_title.cs +++ b/src/GitHub/Models/FullRepository_merge_commit_title.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// 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). + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum FullRepository_merge_commit_title { [EnumMember(Value = "PR_TITLE")] diff --git a/src/GitHub/Models/FullRepository_permissions.cs b/src/GitHub/Models/FullRepository_permissions.cs index 60dd6d34..8afe44a2 100644 --- a/src/GitHub/Models/FullRepository_permissions.cs +++ b/src/GitHub/Models/FullRepository_permissions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class FullRepository_permissions : IAdditionalDataHolder, IParsable + public partial class FullRepository_permissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class FullRepository_permissions : IAdditionalDataHolder, IParsable /// The triage property public bool? Triage { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FullRepository_permissions() { @@ -31,12 +33,12 @@ public FullRepository_permissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static FullRepository_permissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.FullRepository_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FullRepository_permissions(); + return new global::GitHub.Models.FullRepository_permissions(); } /// /// The deserialization information for the current model @@ -46,11 +48,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"admin", n => { Admin = n.GetBoolValue(); } }, - {"maintain", n => { Maintain = n.GetBoolValue(); } }, - {"pull", n => { Pull = n.GetBoolValue(); } }, - {"push", n => { Push = n.GetBoolValue(); } }, - {"triage", n => { Triage = n.GetBoolValue(); } }, + { "admin", n => { Admin = n.GetBoolValue(); } }, + { "maintain", n => { Maintain = n.GetBoolValue(); } }, + { "pull", n => { Pull = n.GetBoolValue(); } }, + { "push", n => { Push = n.GetBoolValue(); } }, + { "triage", n => { Triage = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/FullRepository_squash_merge_commit_message.cs b/src/GitHub/Models/FullRepository_squash_merge_commit_message.cs index e7451529..5f3ea95b 100644 --- a/src/GitHub/Models/FullRepository_squash_merge_commit_message.cs +++ b/src/GitHub/Models/FullRepository_squash_merge_commit_message.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// 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. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum FullRepository_squash_merge_commit_message { [EnumMember(Value = "PR_BODY")] diff --git a/src/GitHub/Models/FullRepository_squash_merge_commit_title.cs b/src/GitHub/Models/FullRepository_squash_merge_commit_title.cs index 1e7e5b9f..10f070f4 100644 --- a/src/GitHub/Models/FullRepository_squash_merge_commit_title.cs +++ b/src/GitHub/Models/FullRepository_squash_merge_commit_title.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// 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). + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum FullRepository_squash_merge_commit_title { [EnumMember(Value = "PR_TITLE")] diff --git a/src/GitHub/Models/GetAllCostCenters.cs b/src/GitHub/Models/GetAllCostCenters.cs index 04d8b0c9..65feba41 100644 --- a/src/GitHub/Models/GetAllCostCenters.cs +++ b/src/GitHub/Models/GetAllCostCenters.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GetAllCostCenters : IAdditionalDataHolder, IParsable + public partial class GetAllCostCenters : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,13 +16,13 @@ public class GetAllCostCenters : IAdditionalDataHolder, IParsable /// The costCenters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? CostCenters { get; set; } + public List? CostCenters { get; set; } #nullable restore #else - public List CostCenters { get; set; } + public List CostCenters { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetAllCostCenters() { @@ -29,12 +31,12 @@ public GetAllCostCenters() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GetAllCostCenters CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GetAllCostCenters CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAllCostCenters(); + return new global::GitHub.Models.GetAllCostCenters(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"costCenters", n => { CostCenters = n.GetCollectionOfObjectValues(GetAllCostCenters_costCenters.CreateFromDiscriminatorValue)?.ToList(); } }, + { "costCenters", n => { CostCenters = n.GetCollectionOfObjectValues(global::GitHub.Models.GetAllCostCenters_costCenters.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -54,7 +56,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("costCenters", CostCenters); + writer.WriteCollectionOfObjectValues("costCenters", CostCenters); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/GetAllCostCenters503Error.cs b/src/GitHub/Models/GetAllCostCenters503Error.cs index 1b97e835..942cf44d 100644 --- a/src/GitHub/Models/GetAllCostCenters503Error.cs +++ b/src/GitHub/Models/GetAllCostCenters503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GetAllCostCenters503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class GetAllCostCenters503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class GetAllCostCenters503Error : ApiException, IAdditionalDataHolder, IP #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetAllCostCenters503Error() { @@ -46,12 +42,12 @@ public GetAllCostCenters503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GetAllCostCenters503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GetAllCostCenters503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAllCostCenters503Error(); + return new global::GitHub.Models.GetAllCostCenters503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/GetAllCostCenters_costCenters.cs b/src/GitHub/Models/GetAllCostCenters_costCenters.cs index 9f8cd741..d552a1a8 100644 --- a/src/GitHub/Models/GetAllCostCenters_costCenters.cs +++ b/src/GitHub/Models/GetAllCostCenters_costCenters.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GetAllCostCenters_costCenters : IAdditionalDataHolder, IParsable + public partial class GetAllCostCenters_costCenters : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,13 +32,13 @@ public class GetAllCostCenters_costCenters : IAdditionalDataHolder, IParsable /// The resources property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Resources { get; set; } + public List? Resources { get; set; } #nullable restore #else - public List Resources { get; set; } + public List Resources { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetAllCostCenters_costCenters() { @@ -45,12 +47,12 @@ public GetAllCostCenters_costCenters() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GetAllCostCenters_costCenters CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GetAllCostCenters_costCenters CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAllCostCenters_costCenters(); + return new global::GitHub.Models.GetAllCostCenters_costCenters(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"resources", n => { Resources = n.GetCollectionOfObjectValues(GetAllCostCenters_costCenters_resources.CreateFromDiscriminatorValue)?.ToList(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "resources", n => { Resources = n.GetCollectionOfObjectValues(global::GitHub.Models.GetAllCostCenters_costCenters_resources.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -74,7 +76,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("id", Id); writer.WriteStringValue("name", Name); - writer.WriteCollectionOfObjectValues("resources", Resources); + writer.WriteCollectionOfObjectValues("resources", Resources); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/GetAllCostCenters_costCenters_resources.cs b/src/GitHub/Models/GetAllCostCenters_costCenters_resources.cs index 0b3016ff..5936b405 100644 --- a/src/GitHub/Models/GetAllCostCenters_costCenters_resources.cs +++ b/src/GitHub/Models/GetAllCostCenters_costCenters_resources.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GetAllCostCenters_costCenters_resources : IAdditionalDataHolder, IParsable + public partial class GetAllCostCenters_costCenters_resources : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class GetAllCostCenters_costCenters_resources : IAdditionalDataHolder, IP public string Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetAllCostCenters_costCenters_resources() { @@ -37,12 +39,12 @@ public GetAllCostCenters_costCenters_resources() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GetAllCostCenters_costCenters_resources CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GetAllCostCenters_costCenters_resources CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAllCostCenters_costCenters_resources(); + return new global::GitHub.Models.GetAllCostCenters_costCenters_resources(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/GetConsumedLicenses.cs b/src/GitHub/Models/GetConsumedLicenses.cs index 53492e40..b47bc371 100644 --- a/src/GitHub/Models/GetConsumedLicenses.cs +++ b/src/GitHub/Models/GetConsumedLicenses.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A breakdown of the licenses consumed by an enterprise. /// - public class GetConsumedLicenses : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GetConsumedLicenses : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -19,13 +21,13 @@ public class GetConsumedLicenses : IAdditionalDataHolder, IParsable /// The users property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Users { get; set; } + public List? Users { get; set; } #nullable restore #else - public List Users { get; set; } + public List Users { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetConsumedLicenses() { @@ -34,12 +36,12 @@ public GetConsumedLicenses() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GetConsumedLicenses CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GetConsumedLicenses CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetConsumedLicenses(); + return new global::GitHub.Models.GetConsumedLicenses(); } /// /// The deserialization information for the current model @@ -49,9 +51,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"total_seats_consumed", n => { TotalSeatsConsumed = n.GetIntValue(); } }, - {"total_seats_purchased", n => { TotalSeatsPurchased = n.GetIntValue(); } }, - {"users", n => { Users = n.GetCollectionOfObjectValues(GetConsumedLicenses_users.CreateFromDiscriminatorValue)?.ToList(); } }, + { "total_seats_consumed", n => { TotalSeatsConsumed = n.GetIntValue(); } }, + { "total_seats_purchased", n => { TotalSeatsPurchased = n.GetIntValue(); } }, + { "users", n => { Users = n.GetCollectionOfObjectValues(global::GitHub.Models.GetConsumedLicenses_users.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -63,7 +65,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("total_seats_consumed", TotalSeatsConsumed); writer.WriteIntValue("total_seats_purchased", TotalSeatsPurchased); - writer.WriteCollectionOfObjectValues("users", Users); + writer.WriteCollectionOfObjectValues("users", Users); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/GetConsumedLicenses_users.cs b/src/GitHub/Models/GetConsumedLicenses_users.cs index 5f1d454f..be143020 100644 --- a/src/GitHub/Models/GetConsumedLicenses_users.cs +++ b/src/GitHub/Models/GetConsumedLicenses_users.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GetConsumedLicenses_users : IAdditionalDataHolder, IParsable + public partial class GetConsumedLicenses_users : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -126,7 +128,7 @@ public class GetConsumedLicenses_users : IAdditionalDataHolder, IParsable /// The visual_studio_subscription_user property public bool? VisualStudioSubscriptionUser { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetConsumedLicenses_users() { @@ -135,12 +137,12 @@ public GetConsumedLicenses_users() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GetConsumedLicenses_users CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GetConsumedLicenses_users CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetConsumedLicenses_users(); + return new global::GitHub.Models.GetConsumedLicenses_users(); } /// /// The deserialization information for the current model @@ -150,24 +152,24 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enterprise_server_emails", n => { EnterpriseServerEmails = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"enterprise_server_user", n => { EnterpriseServerUser = n.GetBoolValue(); } }, - {"enterprise_server_user_ids", n => { EnterpriseServerUserIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"github_com_enterprise_roles", n => { GithubComEnterpriseRoles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"github_com_login", n => { GithubComLogin = n.GetStringValue(); } }, - {"github_com_member_roles", n => { GithubComMemberRoles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"github_com_name", n => { GithubComName = n.GetStringValue(); } }, - {"github_com_orgs_with_pending_invites", n => { GithubComOrgsWithPendingInvites = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"github_com_profile", n => { GithubComProfile = n.GetStringValue(); } }, - {"github_com_saml_name_id", n => { GithubComSamlNameId = n.GetStringValue(); } }, - {"github_com_two_factor_auth", n => { GithubComTwoFactorAuth = n.GetBoolValue(); } }, - {"github_com_user", n => { GithubComUser = n.GetBoolValue(); } }, - {"github_com_verified_domain_emails", n => { GithubComVerifiedDomainEmails = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"license_type", n => { LicenseType = n.GetStringValue(); } }, - {"total_user_accounts", n => { TotalUserAccounts = n.GetIntValue(); } }, - {"visual_studio_license_status", n => { VisualStudioLicenseStatus = n.GetStringValue(); } }, - {"visual_studio_subscription_email", n => { VisualStudioSubscriptionEmail = n.GetStringValue(); } }, - {"visual_studio_subscription_user", n => { VisualStudioSubscriptionUser = n.GetBoolValue(); } }, + { "enterprise_server_emails", n => { EnterpriseServerEmails = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "enterprise_server_user", n => { EnterpriseServerUser = n.GetBoolValue(); } }, + { "enterprise_server_user_ids", n => { EnterpriseServerUserIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "github_com_enterprise_roles", n => { GithubComEnterpriseRoles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "github_com_login", n => { GithubComLogin = n.GetStringValue(); } }, + { "github_com_member_roles", n => { GithubComMemberRoles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "github_com_name", n => { GithubComName = n.GetStringValue(); } }, + { "github_com_orgs_with_pending_invites", n => { GithubComOrgsWithPendingInvites = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "github_com_profile", n => { GithubComProfile = n.GetStringValue(); } }, + { "github_com_saml_name_id", n => { GithubComSamlNameId = n.GetStringValue(); } }, + { "github_com_two_factor_auth", n => { GithubComTwoFactorAuth = n.GetBoolValue(); } }, + { "github_com_user", n => { GithubComUser = n.GetBoolValue(); } }, + { "github_com_verified_domain_emails", n => { GithubComVerifiedDomainEmails = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "license_type", n => { LicenseType = n.GetStringValue(); } }, + { "total_user_accounts", n => { TotalUserAccounts = n.GetIntValue(); } }, + { "visual_studio_license_status", n => { VisualStudioLicenseStatus = n.GetStringValue(); } }, + { "visual_studio_subscription_email", n => { VisualStudioSubscriptionEmail = n.GetStringValue(); } }, + { "visual_studio_subscription_user", n => { VisualStudioSubscriptionUser = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/GetLicenseSyncStatus.cs b/src/GitHub/Models/GetLicenseSyncStatus.cs index 26d2bcf4..2a02ba5c 100644 --- a/src/GitHub/Models/GetLicenseSyncStatus.cs +++ b/src/GitHub/Models/GetLicenseSyncStatus.cs @@ -1,27 +1,29 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Information about the status of a license sync job for an enterprise. /// - public class GetLicenseSyncStatus : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GetLicenseSyncStatus : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The server_instances property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ServerInstances { get; set; } + public List? ServerInstances { get; set; } #nullable restore #else - public List ServerInstances { get; set; } + public List ServerInstances { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetLicenseSyncStatus() { @@ -30,12 +32,12 @@ public GetLicenseSyncStatus() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GetLicenseSyncStatus CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GetLicenseSyncStatus CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetLicenseSyncStatus(); + return new global::GitHub.Models.GetLicenseSyncStatus(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"server_instances", n => { ServerInstances = n.GetCollectionOfObjectValues(GetLicenseSyncStatus_server_instances.CreateFromDiscriminatorValue)?.ToList(); } }, + { "server_instances", n => { ServerInstances = n.GetCollectionOfObjectValues(global::GitHub.Models.GetLicenseSyncStatus_server_instances.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("server_instances", ServerInstances); + writer.WriteCollectionOfObjectValues("server_instances", ServerInstances); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/GetLicenseSyncStatus_server_instances.cs b/src/GitHub/Models/GetLicenseSyncStatus_server_instances.cs index bcd20ea5..b04ec4f0 100644 --- a/src/GitHub/Models/GetLicenseSyncStatus_server_instances.cs +++ b/src/GitHub/Models/GetLicenseSyncStatus_server_instances.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GetLicenseSyncStatus_server_instances : IAdditionalDataHolder, IParsable + public partial class GetLicenseSyncStatus_server_instances : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,10 +24,10 @@ public class GetLicenseSyncStatus_server_instances : IAdditionalDataHolder, IPar /// The last_sync property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GetLicenseSyncStatus_server_instances_last_sync? LastSync { get; set; } + public global::GitHub.Models.GetLicenseSyncStatus_server_instances_last_sync? LastSync { get; set; } #nullable restore #else - public GetLicenseSyncStatus_server_instances_last_sync LastSync { get; set; } + public global::GitHub.Models.GetLicenseSyncStatus_server_instances_last_sync LastSync { get; set; } #endif /// The server_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -36,7 +38,7 @@ public class GetLicenseSyncStatus_server_instances : IAdditionalDataHolder, IPar public string ServerId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetLicenseSyncStatus_server_instances() { @@ -45,12 +47,12 @@ public GetLicenseSyncStatus_server_instances() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GetLicenseSyncStatus_server_instances CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GetLicenseSyncStatus_server_instances CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetLicenseSyncStatus_server_instances(); + return new global::GitHub.Models.GetLicenseSyncStatus_server_instances(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"hostname", n => { Hostname = n.GetStringValue(); } }, - {"last_sync", n => { LastSync = n.GetObjectValue(GetLicenseSyncStatus_server_instances_last_sync.CreateFromDiscriminatorValue); } }, - {"server_id", n => { ServerId = n.GetStringValue(); } }, + { "hostname", n => { Hostname = n.GetStringValue(); } }, + { "last_sync", n => { LastSync = n.GetObjectValue(global::GitHub.Models.GetLicenseSyncStatus_server_instances_last_sync.CreateFromDiscriminatorValue); } }, + { "server_id", n => { ServerId = n.GetStringValue(); } }, }; } /// @@ -73,7 +75,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("hostname", Hostname); - writer.WriteObjectValue("last_sync", LastSync); + writer.WriteObjectValue("last_sync", LastSync); writer.WriteStringValue("server_id", ServerId); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/GetLicenseSyncStatus_server_instances_last_sync.cs b/src/GitHub/Models/GetLicenseSyncStatus_server_instances_last_sync.cs index 8da385c7..fb1837c1 100644 --- a/src/GitHub/Models/GetLicenseSyncStatus_server_instances_last_sync.cs +++ b/src/GitHub/Models/GetLicenseSyncStatus_server_instances_last_sync.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GetLicenseSyncStatus_server_instances_last_sync : IAdditionalDataHolder, IParsable + public partial class GetLicenseSyncStatus_server_instances_last_sync : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class GetLicenseSyncStatus_server_instances_last_sync : IAdditionalDataHo public string Status { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetLicenseSyncStatus_server_instances_last_sync() { @@ -45,12 +47,12 @@ public GetLicenseSyncStatus_server_instances_last_sync() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GetLicenseSyncStatus_server_instances_last_sync CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GetLicenseSyncStatus_server_instances_last_sync CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetLicenseSyncStatus_server_instances_last_sync(); + return new global::GitHub.Models.GetLicenseSyncStatus_server_instances_last_sync(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"date", n => { Date = n.GetStringValue(); } }, - {"error", n => { Error = n.GetStringValue(); } }, - {"status", n => { Status = n.GetStringValue(); } }, + { "date", n => { Date = n.GetStringValue(); } }, + { "error", n => { Error = n.GetStringValue(); } }, + { "status", n => { Status = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/GistComment.cs b/src/GitHub/Models/GistComment.cs index 463ea3f9..04d88052 100644 --- a/src/GitHub/Models/GistComment.cs +++ b/src/GitHub/Models/GistComment.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A comment made to a gist. /// - public class GistComment : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GistComment : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// How the author is associated with the repository. - public GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } + public global::GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } /// The comment text. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -47,13 +49,13 @@ public class GistComment : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? User { get; set; } + public global::GitHub.Models.NullableSimpleUser? User { get; set; } #nullable restore #else - public NullableSimpleUser User { get; set; } + public global::GitHub.Models.NullableSimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GistComment() { @@ -62,12 +64,12 @@ public GistComment() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GistComment CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GistComment CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GistComment(); + return new global::GitHub.Models.GistComment(); } /// /// The deserialization information for the current model @@ -77,14 +79,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, - {"body", n => { Body = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -94,14 +96,14 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("author_association", AuthorAssociation); + writer.WriteEnumValue("author_association", AuthorAssociation); writer.WriteStringValue("body", Body); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteIntValue("id", Id); writer.WriteStringValue("node_id", NodeId); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/GistComment403Error.cs b/src/GitHub/Models/GistComment403Error.cs index 3249737a..9a9d2163 100644 --- a/src/GitHub/Models/GistComment403Error.cs +++ b/src/GitHub/Models/GistComment403Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GistComment403Error : ApiException, IAdditionalDataHolder, IParsable + public partial class GistComment403Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,10 +17,10 @@ public class GistComment403Error : ApiException, IAdditionalDataHolder, IParsabl /// The block property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GistComment403Error_block? Block { get; set; } + public global::GitHub.Models.GistComment403Error_block? Block { get; set; } #nullable restore #else - public GistComment403Error_block Block { get; set; } + public global::GitHub.Models.GistComment403Error_block Block { get; set; } #endif /// The documentation_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -28,16 +30,10 @@ public class GistComment403Error : ApiException, IAdditionalDataHolder, IParsabl #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GistComment403Error() { @@ -46,12 +42,12 @@ public GistComment403Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GistComment403Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GistComment403Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GistComment403Error(); + return new global::GitHub.Models.GistComment403Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"block", n => { Block = n.GetObjectValue(GistComment403Error_block.CreateFromDiscriminatorValue); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "block", n => { Block = n.GetObjectValue(global::GitHub.Models.GistComment403Error_block.CreateFromDiscriminatorValue); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -73,9 +68,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("block", Block); + writer.WriteObjectValue("block", Block); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/GistComment403Error_block.cs b/src/GitHub/Models/GistComment403Error_block.cs index 41c4df83..99df3053 100644 --- a/src/GitHub/Models/GistComment403Error_block.cs +++ b/src/GitHub/Models/GistComment403Error_block.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GistComment403Error_block : IAdditionalDataHolder, IParsable + public partial class GistComment403Error_block : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class GistComment403Error_block : IAdditionalDataHolder, IParsable public string Reason { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GistComment403Error_block() { @@ -45,12 +47,12 @@ public GistComment403Error_block() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GistComment403Error_block CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GistComment403Error_block CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GistComment403Error_block(); + return new global::GitHub.Models.GistComment403Error_block(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"reason", n => { Reason = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "reason", n => { Reason = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/GistCommit.cs b/src/GitHub/Models/GistCommit.cs index cf7d8dd1..2357c77b 100644 --- a/src/GitHub/Models/GistCommit.cs +++ b/src/GitHub/Models/GistCommit.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Gist Commit /// - public class GistCommit : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GistCommit : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The change_status property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GistCommit_change_status? ChangeStatus { get; set; } + public global::GitHub.Models.GistCommit_change_status? ChangeStatus { get; set; } #nullable restore #else - public GistCommit_change_status ChangeStatus { get; set; } + public global::GitHub.Models.GistCommit_change_status ChangeStatus { get; set; } #endif /// The committed_at property public DateTimeOffset? CommittedAt { get; set; } @@ -33,10 +35,10 @@ public class GistCommit : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? User { get; set; } + public global::GitHub.Models.NullableSimpleUser? User { get; set; } #nullable restore #else - public NullableSimpleUser User { get; set; } + public global::GitHub.Models.NullableSimpleUser User { get; set; } #endif /// The version property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -47,7 +49,7 @@ public class GistCommit : IAdditionalDataHolder, IParsable public string Version { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GistCommit() { @@ -56,12 +58,12 @@ public GistCommit() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GistCommit CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GistCommit CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GistCommit(); + return new global::GitHub.Models.GistCommit(); } /// /// The deserialization information for the current model @@ -71,11 +73,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"change_status", n => { ChangeStatus = n.GetObjectValue(GistCommit_change_status.CreateFromDiscriminatorValue); } }, - {"committed_at", n => { CommittedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"version", n => { Version = n.GetStringValue(); } }, + { "change_status", n => { ChangeStatus = n.GetObjectValue(global::GitHub.Models.GistCommit_change_status.CreateFromDiscriminatorValue); } }, + { "committed_at", n => { CommittedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "version", n => { Version = n.GetStringValue(); } }, }; } /// @@ -85,10 +87,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("change_status", ChangeStatus); + writer.WriteObjectValue("change_status", ChangeStatus); writer.WriteDateTimeOffsetValue("committed_at", CommittedAt); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteStringValue("version", Version); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/GistCommit_change_status.cs b/src/GitHub/Models/GistCommit_change_status.cs index e03890d4..f874f4a6 100644 --- a/src/GitHub/Models/GistCommit_change_status.cs +++ b/src/GitHub/Models/GistCommit_change_status.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GistCommit_change_status : IAdditionalDataHolder, IParsable + public partial class GistCommit_change_status : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -18,7 +20,7 @@ public class GistCommit_change_status : IAdditionalDataHolder, IParsable /// The total property public int? Total { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GistCommit_change_status() { @@ -27,12 +29,12 @@ public GistCommit_change_status() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GistCommit_change_status CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GistCommit_change_status CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GistCommit_change_status(); + return new global::GitHub.Models.GistCommit_change_status(); } /// /// The deserialization information for the current model @@ -42,9 +44,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"additions", n => { Additions = n.GetIntValue(); } }, - {"deletions", n => { Deletions = n.GetIntValue(); } }, - {"total", n => { Total = n.GetIntValue(); } }, + { "additions", n => { Additions = n.GetIntValue(); } }, + { "deletions", n => { Deletions = n.GetIntValue(); } }, + { "total", n => { Total = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/GistHistory.cs b/src/GitHub/Models/GistHistory.cs index 5e11fc43..7bec74dc 100644 --- a/src/GitHub/Models/GistHistory.cs +++ b/src/GitHub/Models/GistHistory.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Gist History /// - public class GistHistory : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GistHistory : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The change_status property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GistHistory_change_status? ChangeStatus { get; set; } + public global::GitHub.Models.GistHistory_change_status? ChangeStatus { get; set; } #nullable restore #else - public GistHistory_change_status ChangeStatus { get; set; } + public global::GitHub.Models.GistHistory_change_status ChangeStatus { get; set; } #endif /// The committed_at property public DateTimeOffset? CommittedAt { get; set; } @@ -33,10 +35,10 @@ public class GistHistory : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? User { get; set; } + public global::GitHub.Models.NullableSimpleUser? User { get; set; } #nullable restore #else - public NullableSimpleUser User { get; set; } + public global::GitHub.Models.NullableSimpleUser User { get; set; } #endif /// The version property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -47,7 +49,7 @@ public class GistHistory : IAdditionalDataHolder, IParsable public string Version { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GistHistory() { @@ -56,12 +58,12 @@ public GistHistory() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GistHistory CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GistHistory CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GistHistory(); + return new global::GitHub.Models.GistHistory(); } /// /// The deserialization information for the current model @@ -71,11 +73,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"change_status", n => { ChangeStatus = n.GetObjectValue(GistHistory_change_status.CreateFromDiscriminatorValue); } }, - {"committed_at", n => { CommittedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"version", n => { Version = n.GetStringValue(); } }, + { "change_status", n => { ChangeStatus = n.GetObjectValue(global::GitHub.Models.GistHistory_change_status.CreateFromDiscriminatorValue); } }, + { "committed_at", n => { CommittedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "version", n => { Version = n.GetStringValue(); } }, }; } /// @@ -85,10 +87,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("change_status", ChangeStatus); + writer.WriteObjectValue("change_status", ChangeStatus); writer.WriteDateTimeOffsetValue("committed_at", CommittedAt); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteStringValue("version", Version); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/GistHistory_change_status.cs b/src/GitHub/Models/GistHistory_change_status.cs index 1a055133..365da6a9 100644 --- a/src/GitHub/Models/GistHistory_change_status.cs +++ b/src/GitHub/Models/GistHistory_change_status.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GistHistory_change_status : IAdditionalDataHolder, IParsable + public partial class GistHistory_change_status : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -18,7 +20,7 @@ public class GistHistory_change_status : IAdditionalDataHolder, IParsable /// The total property public int? Total { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GistHistory_change_status() { @@ -27,12 +29,12 @@ public GistHistory_change_status() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GistHistory_change_status CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GistHistory_change_status CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GistHistory_change_status(); + return new global::GitHub.Models.GistHistory_change_status(); } /// /// The deserialization information for the current model @@ -42,9 +44,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"additions", n => { Additions = n.GetIntValue(); } }, - {"deletions", n => { Deletions = n.GetIntValue(); } }, - {"total", n => { Total = n.GetIntValue(); } }, + { "additions", n => { Additions = n.GetIntValue(); } }, + { "deletions", n => { Deletions = n.GetIntValue(); } }, + { "total", n => { Total = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/GistSimple.cs b/src/GitHub/Models/GistSimple.cs index f6f7810c..78b300f8 100644 --- a/src/GitHub/Models/GistSimple.cs +++ b/src/GitHub/Models/GistSimple.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Gist Simple /// - public class GistSimple : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GistSimple : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -49,27 +51,27 @@ public class GistSimple : IAdditionalDataHolder, IParsable /// The files property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GistSimple_files? Files { get; set; } + public global::GitHub.Models.GistSimple_files? Files { get; set; } #nullable restore #else - public GistSimple_files Files { get; set; } + public global::GitHub.Models.GistSimple_files Files { get; set; } #endif /// Gist #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GistSimple_fork_of? ForkOf { get; set; } + public global::GitHub.Models.GistSimple_fork_of? ForkOf { get; set; } #nullable restore #else - public GistSimple_fork_of ForkOf { get; set; } + public global::GitHub.Models.GistSimple_fork_of ForkOf { get; set; } #endif /// The forks property [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Forks { get; set; } + public List? Forks { get; set; } #nullable restore #else - public List Forks { get; set; } + public List Forks { get; set; } #endif /// The forks_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -99,10 +101,10 @@ public class GistSimple : IAdditionalDataHolder, IParsable [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? History { get; set; } + public List? History { get; set; } #nullable restore #else - public List History { get; set; } + public List History { get; set; } #endif /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -131,10 +133,10 @@ public class GistSimple : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Owner { get; set; } + public global::GitHub.Models.SimpleUser? Owner { get; set; } #nullable restore #else - public SimpleUser Owner { get; set; } + public global::GitHub.Models.SimpleUser Owner { get; set; } #endif /// The public property public bool? Public { get; set; } @@ -165,7 +167,7 @@ public class GistSimple : IAdditionalDataHolder, IParsable public string User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GistSimple() { @@ -174,12 +176,12 @@ public GistSimple() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GistSimple CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GistSimple CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GistSimple(); + return new global::GitHub.Models.GistSimple(); } /// /// The deserialization information for the current model @@ -189,27 +191,27 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"comments", n => { Comments = n.GetIntValue(); } }, - {"comments_url", n => { CommentsUrl = n.GetStringValue(); } }, - {"commits_url", n => { CommitsUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"files", n => { Files = n.GetObjectValue(GistSimple_files.CreateFromDiscriminatorValue); } }, - {"fork_of", n => { ForkOf = n.GetObjectValue(GistSimple_fork_of.CreateFromDiscriminatorValue); } }, - {"forks", n => { Forks = n.GetCollectionOfObjectValues(GistSimple_forks.CreateFromDiscriminatorValue)?.ToList(); } }, - {"forks_url", n => { ForksUrl = n.GetStringValue(); } }, - {"git_pull_url", n => { GitPullUrl = n.GetStringValue(); } }, - {"git_push_url", n => { GitPushUrl = n.GetStringValue(); } }, - {"history", n => { History = n.GetCollectionOfObjectValues(GistHistory.CreateFromDiscriminatorValue)?.ToList(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"public", n => { Public = n.GetBoolValue(); } }, - {"truncated", n => { Truncated = n.GetBoolValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"user", n => { User = n.GetStringValue(); } }, + { "comments", n => { Comments = n.GetIntValue(); } }, + { "comments_url", n => { CommentsUrl = n.GetStringValue(); } }, + { "commits_url", n => { CommitsUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "files", n => { Files = n.GetObjectValue(global::GitHub.Models.GistSimple_files.CreateFromDiscriminatorValue); } }, + { "fork_of", n => { ForkOf = n.GetObjectValue(global::GitHub.Models.GistSimple_fork_of.CreateFromDiscriminatorValue); } }, + { "forks", n => { Forks = n.GetCollectionOfObjectValues(global::GitHub.Models.GistSimple_forks.CreateFromDiscriminatorValue)?.AsList(); } }, + { "forks_url", n => { ForksUrl = n.GetStringValue(); } }, + { "git_pull_url", n => { GitPullUrl = n.GetStringValue(); } }, + { "git_push_url", n => { GitPushUrl = n.GetStringValue(); } }, + { "history", n => { History = n.GetCollectionOfObjectValues(global::GitHub.Models.GistHistory.CreateFromDiscriminatorValue)?.AsList(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "public", n => { Public = n.GetBoolValue(); } }, + { "truncated", n => { Truncated = n.GetBoolValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "user", n => { User = n.GetStringValue(); } }, }; } /// @@ -224,17 +226,17 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("commits_url", CommitsUrl); writer.WriteStringValue("created_at", CreatedAt); writer.WriteStringValue("description", Description); - writer.WriteObjectValue("files", Files); - writer.WriteObjectValue("fork_of", ForkOf); - writer.WriteCollectionOfObjectValues("forks", Forks); + writer.WriteObjectValue("files", Files); + writer.WriteObjectValue("fork_of", ForkOf); + writer.WriteCollectionOfObjectValues("forks", Forks); writer.WriteStringValue("forks_url", ForksUrl); writer.WriteStringValue("git_pull_url", GitPullUrl); writer.WriteStringValue("git_push_url", GitPushUrl); - writer.WriteCollectionOfObjectValues("history", History); + writer.WriteCollectionOfObjectValues("history", History); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteStringValue("id", Id); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("owner", Owner); + writer.WriteObjectValue("owner", Owner); writer.WriteBoolValue("public", Public); writer.WriteBoolValue("truncated", Truncated); writer.WriteStringValue("updated_at", UpdatedAt); diff --git a/src/GitHub/Models/GistSimple403Error.cs b/src/GitHub/Models/GistSimple403Error.cs index 21cbd9e4..c055086e 100644 --- a/src/GitHub/Models/GistSimple403Error.cs +++ b/src/GitHub/Models/GistSimple403Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GistSimple403Error : ApiException, IAdditionalDataHolder, IParsable + public partial class GistSimple403Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,10 +17,10 @@ public class GistSimple403Error : ApiException, IAdditionalDataHolder, IParsable /// The block property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GistSimple403Error_block? Block { get; set; } + public global::GitHub.Models.GistSimple403Error_block? Block { get; set; } #nullable restore #else - public GistSimple403Error_block Block { get; set; } + public global::GitHub.Models.GistSimple403Error_block Block { get; set; } #endif /// The documentation_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -28,16 +30,10 @@ public class GistSimple403Error : ApiException, IAdditionalDataHolder, IParsable #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GistSimple403Error() { @@ -46,12 +42,12 @@ public GistSimple403Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GistSimple403Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GistSimple403Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GistSimple403Error(); + return new global::GitHub.Models.GistSimple403Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"block", n => { Block = n.GetObjectValue(GistSimple403Error_block.CreateFromDiscriminatorValue); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "block", n => { Block = n.GetObjectValue(global::GitHub.Models.GistSimple403Error_block.CreateFromDiscriminatorValue); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -73,9 +68,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("block", Block); + writer.WriteObjectValue("block", Block); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/GistSimple403Error_block.cs b/src/GitHub/Models/GistSimple403Error_block.cs index e7459d02..31a90107 100644 --- a/src/GitHub/Models/GistSimple403Error_block.cs +++ b/src/GitHub/Models/GistSimple403Error_block.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GistSimple403Error_block : IAdditionalDataHolder, IParsable + public partial class GistSimple403Error_block : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class GistSimple403Error_block : IAdditionalDataHolder, IParsable public string Reason { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GistSimple403Error_block() { @@ -45,12 +47,12 @@ public GistSimple403Error_block() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GistSimple403Error_block CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GistSimple403Error_block CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GistSimple403Error_block(); + return new global::GitHub.Models.GistSimple403Error_block(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"reason", n => { Reason = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "reason", n => { Reason = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/GistSimple_files.cs b/src/GitHub/Models/GistSimple_files.cs index eb2e2f00..af435fae 100644 --- a/src/GitHub/Models/GistSimple_files.cs +++ b/src/GitHub/Models/GistSimple_files.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GistSimple_files : IAdditionalDataHolder, IParsable + public partial class GistSimple_files : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GistSimple_files() { @@ -21,12 +23,12 @@ public GistSimple_files() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GistSimple_files CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GistSimple_files CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GistSimple_files(); + return new global::GitHub.Models.GistSimple_files(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/GistSimple_fork_of.cs b/src/GitHub/Models/GistSimple_fork_of.cs index 940ea15e..1918bd7b 100644 --- a/src/GitHub/Models/GistSimple_fork_of.cs +++ b/src/GitHub/Models/GistSimple_fork_of.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Gist /// - public class GistSimple_fork_of : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GistSimple_fork_of : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -43,10 +45,10 @@ public class GistSimple_fork_of : IAdditionalDataHolder, IParsable /// The files property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GistSimple_fork_of_files? Files { get; set; } + public global::GitHub.Models.GistSimple_fork_of_files? Files { get; set; } #nullable restore #else - public GistSimple_fork_of_files Files { get; set; } + public global::GitHub.Models.GistSimple_fork_of_files Files { get; set; } #endif /// The forks property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,10 +117,10 @@ public class GistSimple_fork_of : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Owner { get; set; } + public global::GitHub.Models.NullableSimpleUser? Owner { get; set; } #nullable restore #else - public NullableSimpleUser Owner { get; set; } + public global::GitHub.Models.NullableSimpleUser Owner { get; set; } #endif /// The public property public bool? Public { get; set; } @@ -137,13 +139,13 @@ public class GistSimple_fork_of : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? User { get; set; } + public global::GitHub.Models.NullableSimpleUser? User { get; set; } #nullable restore #else - public NullableSimpleUser User { get; set; } + public global::GitHub.Models.NullableSimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GistSimple_fork_of() { @@ -152,12 +154,12 @@ public GistSimple_fork_of() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GistSimple_fork_of CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GistSimple_fork_of CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GistSimple_fork_of(); + return new global::GitHub.Models.GistSimple_fork_of(); } /// /// The deserialization information for the current model @@ -167,26 +169,26 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"comments", n => { Comments = n.GetIntValue(); } }, - {"comments_url", n => { CommentsUrl = n.GetStringValue(); } }, - {"commits_url", n => { CommitsUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"files", n => { Files = n.GetObjectValue(GistSimple_fork_of_files.CreateFromDiscriminatorValue); } }, - {"forks", n => { Forks = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, - {"forks_url", n => { ForksUrl = n.GetStringValue(); } }, - {"git_pull_url", n => { GitPullUrl = n.GetStringValue(); } }, - {"git_push_url", n => { GitPushUrl = n.GetStringValue(); } }, - {"history", n => { History = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"public", n => { Public = n.GetBoolValue(); } }, - {"truncated", n => { Truncated = n.GetBoolValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "comments", n => { Comments = n.GetIntValue(); } }, + { "comments_url", n => { CommentsUrl = n.GetStringValue(); } }, + { "commits_url", n => { CommitsUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "files", n => { Files = n.GetObjectValue(global::GitHub.Models.GistSimple_fork_of_files.CreateFromDiscriminatorValue); } }, + { "forks", n => { Forks = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "forks_url", n => { ForksUrl = n.GetStringValue(); } }, + { "git_pull_url", n => { GitPullUrl = n.GetStringValue(); } }, + { "git_push_url", n => { GitPushUrl = n.GetStringValue(); } }, + { "history", n => { History = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "public", n => { Public = n.GetBoolValue(); } }, + { "truncated", n => { Truncated = n.GetBoolValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -201,7 +203,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("commits_url", CommitsUrl); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteStringValue("description", Description); - writer.WriteObjectValue("files", Files); + writer.WriteObjectValue("files", Files); writer.WriteObjectValue("forks", Forks); writer.WriteStringValue("forks_url", ForksUrl); writer.WriteStringValue("git_pull_url", GitPullUrl); @@ -210,12 +212,12 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("html_url", HtmlUrl); writer.WriteStringValue("id", Id); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("owner", Owner); + writer.WriteObjectValue("owner", Owner); writer.WriteBoolValue("public", Public); writer.WriteBoolValue("truncated", Truncated); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/GistSimple_fork_of_files.cs b/src/GitHub/Models/GistSimple_fork_of_files.cs index 201f133f..f850eee6 100644 --- a/src/GitHub/Models/GistSimple_fork_of_files.cs +++ b/src/GitHub/Models/GistSimple_fork_of_files.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GistSimple_fork_of_files : IAdditionalDataHolder, IParsable + public partial class GistSimple_fork_of_files : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GistSimple_fork_of_files() { @@ -21,12 +23,12 @@ public GistSimple_fork_of_files() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GistSimple_fork_of_files CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GistSimple_fork_of_files CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GistSimple_fork_of_files(); + return new global::GitHub.Models.GistSimple_fork_of_files(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/GistSimple_forks.cs b/src/GitHub/Models/GistSimple_forks.cs index e37d69be..98cb8365 100644 --- a/src/GitHub/Models/GistSimple_forks.cs +++ b/src/GitHub/Models/GistSimple_forks.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GistSimple_forks : IAdditionalDataHolder, IParsable + public partial class GistSimple_forks : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -34,13 +36,13 @@ public class GistSimple_forks : IAdditionalDataHolder, IParsable /// Public User #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PublicUser? User { get; set; } + public global::GitHub.Models.PublicUser? User { get; set; } #nullable restore #else - public PublicUser User { get; set; } + public global::GitHub.Models.PublicUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GistSimple_forks() { @@ -49,12 +51,12 @@ public GistSimple_forks() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GistSimple_forks CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GistSimple_forks CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GistSimple_forks(); + return new global::GitHub.Models.GistSimple_forks(); } /// /// The deserialization information for the current model @@ -64,11 +66,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(PublicUser.CreateFromDiscriminatorValue); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.PublicUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -82,7 +84,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("id", Id); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/GitCommit.cs b/src/GitHub/Models/GitCommit.cs index 137b45b5..514530b9 100644 --- a/src/GitHub/Models/GitCommit.cs +++ b/src/GitHub/Models/GitCommit.cs @@ -1,32 +1,34 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Low-level Git commit operations within a repository /// - public class GitCommit : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GitCommit : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// Identifying information for the git-user #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitCommit_author? Author { get; set; } + public global::GitHub.Models.GitCommit_author? Author { get; set; } #nullable restore #else - public GitCommit_author Author { get; set; } + public global::GitHub.Models.GitCommit_author Author { get; set; } #endif /// Identifying information for the git-user #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitCommit_committer? Committer { get; set; } + public global::GitHub.Models.GitCommit_committer? Committer { get; set; } #nullable restore #else - public GitCommit_committer Committer { get; set; } + public global::GitHub.Models.GitCommit_committer Committer { get; set; } #endif /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -55,10 +57,10 @@ public class GitCommit : IAdditionalDataHolder, IParsable /// The parents property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Parents { get; set; } + public List? Parents { get; set; } #nullable restore #else - public List Parents { get; set; } + public List Parents { get; set; } #endif /// SHA for the commit #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -71,10 +73,10 @@ public class GitCommit : IAdditionalDataHolder, IParsable /// The tree property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitCommit_tree? Tree { get; set; } + public global::GitHub.Models.GitCommit_tree? Tree { get; set; } #nullable restore #else - public GitCommit_tree Tree { get; set; } + public global::GitHub.Models.GitCommit_tree Tree { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,13 +89,13 @@ public class GitCommit : IAdditionalDataHolder, IParsable /// The verification property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitCommit_verification? Verification { get; set; } + public global::GitHub.Models.GitCommit_verification? Verification { get; set; } #nullable restore #else - public GitCommit_verification Verification { get; set; } + public global::GitHub.Models.GitCommit_verification Verification { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GitCommit() { @@ -102,12 +104,12 @@ public GitCommit() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GitCommit CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GitCommit CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GitCommit(); + return new global::GitHub.Models.GitCommit(); } /// /// The deserialization information for the current model @@ -117,16 +119,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author", n => { Author = n.GetObjectValue(GitCommit_author.CreateFromDiscriminatorValue); } }, - {"committer", n => { Committer = n.GetObjectValue(GitCommit_committer.CreateFromDiscriminatorValue); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"parents", n => { Parents = n.GetCollectionOfObjectValues(GitCommit_parents.CreateFromDiscriminatorValue)?.ToList(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"tree", n => { Tree = n.GetObjectValue(GitCommit_tree.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"verification", n => { Verification = n.GetObjectValue(GitCommit_verification.CreateFromDiscriminatorValue); } }, + { "author", n => { Author = n.GetObjectValue(global::GitHub.Models.GitCommit_author.CreateFromDiscriminatorValue); } }, + { "committer", n => { Committer = n.GetObjectValue(global::GitHub.Models.GitCommit_committer.CreateFromDiscriminatorValue); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "parents", n => { Parents = n.GetCollectionOfObjectValues(global::GitHub.Models.GitCommit_parents.CreateFromDiscriminatorValue)?.AsList(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "tree", n => { Tree = n.GetObjectValue(global::GitHub.Models.GitCommit_tree.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "verification", n => { Verification = n.GetObjectValue(global::GitHub.Models.GitCommit_verification.CreateFromDiscriminatorValue); } }, }; } /// @@ -136,16 +138,16 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("author", Author); - writer.WriteObjectValue("committer", Committer); + writer.WriteObjectValue("author", Author); + writer.WriteObjectValue("committer", Committer); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteStringValue("message", Message); writer.WriteStringValue("node_id", NodeId); - writer.WriteCollectionOfObjectValues("parents", Parents); + writer.WriteCollectionOfObjectValues("parents", Parents); writer.WriteStringValue("sha", Sha); - writer.WriteObjectValue("tree", Tree); + writer.WriteObjectValue("tree", Tree); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("verification", Verification); + writer.WriteObjectValue("verification", Verification); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/GitCommit_author.cs b/src/GitHub/Models/GitCommit_author.cs index 9012cbbf..a2cca92e 100644 --- a/src/GitHub/Models/GitCommit_author.cs +++ b/src/GitHub/Models/GitCommit_author.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Identifying information for the git-user /// - public class GitCommit_author : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GitCommit_author : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -31,7 +33,7 @@ public class GitCommit_author : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GitCommit_author() { @@ -40,12 +42,12 @@ public GitCommit_author() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GitCommit_author CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GitCommit_author CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GitCommit_author(); + return new global::GitHub.Models.GitCommit_author(); } /// /// The deserialization information for the current model @@ -55,9 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"date", n => { Date = n.GetDateTimeOffsetValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "date", n => { Date = n.GetDateTimeOffsetValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/GitCommit_committer.cs b/src/GitHub/Models/GitCommit_committer.cs index f1f44656..56c15c11 100644 --- a/src/GitHub/Models/GitCommit_committer.cs +++ b/src/GitHub/Models/GitCommit_committer.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Identifying information for the git-user /// - public class GitCommit_committer : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GitCommit_committer : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -31,7 +33,7 @@ public class GitCommit_committer : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GitCommit_committer() { @@ -40,12 +42,12 @@ public GitCommit_committer() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GitCommit_committer CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GitCommit_committer CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GitCommit_committer(); + return new global::GitHub.Models.GitCommit_committer(); } /// /// The deserialization information for the current model @@ -55,9 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"date", n => { Date = n.GetDateTimeOffsetValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "date", n => { Date = n.GetDateTimeOffsetValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/GitCommit_parents.cs b/src/GitHub/Models/GitCommit_parents.cs index 0714e28b..a6d3c68b 100644 --- a/src/GitHub/Models/GitCommit_parents.cs +++ b/src/GitHub/Models/GitCommit_parents.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GitCommit_parents : IAdditionalDataHolder, IParsable + public partial class GitCommit_parents : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class GitCommit_parents : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GitCommit_parents() { @@ -45,12 +47,12 @@ public GitCommit_parents() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GitCommit_parents CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GitCommit_parents CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GitCommit_parents(); + return new global::GitHub.Models.GitCommit_parents(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/GitCommit_tree.cs b/src/GitHub/Models/GitCommit_tree.cs index c20b133a..0c51f004 100644 --- a/src/GitHub/Models/GitCommit_tree.cs +++ b/src/GitHub/Models/GitCommit_tree.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GitCommit_tree : IAdditionalDataHolder, IParsable + public partial class GitCommit_tree : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class GitCommit_tree : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GitCommit_tree() { @@ -37,12 +39,12 @@ public GitCommit_tree() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GitCommit_tree CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GitCommit_tree CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GitCommit_tree(); + return new global::GitHub.Models.GitCommit_tree(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"sha", n => { Sha = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/GitCommit_verification.cs b/src/GitHub/Models/GitCommit_verification.cs index 57a2c1b3..7dbf787e 100644 --- a/src/GitHub/Models/GitCommit_verification.cs +++ b/src/GitHub/Models/GitCommit_verification.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GitCommit_verification : IAdditionalDataHolder, IParsable + public partial class GitCommit_verification : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -38,7 +40,7 @@ public class GitCommit_verification : IAdditionalDataHolder, IParsable /// The verified property public bool? Verified { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GitCommit_verification() { @@ -47,12 +49,12 @@ public GitCommit_verification() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GitCommit_verification CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GitCommit_verification CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GitCommit_verification(); + return new global::GitHub.Models.GitCommit_verification(); } /// /// The deserialization information for the current model @@ -62,10 +64,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"payload", n => { Payload = n.GetStringValue(); } }, - {"reason", n => { Reason = n.GetStringValue(); } }, - {"signature", n => { Signature = n.GetStringValue(); } }, - {"verified", n => { Verified = n.GetBoolValue(); } }, + { "payload", n => { Payload = n.GetStringValue(); } }, + { "reason", n => { Reason = n.GetStringValue(); } }, + { "signature", n => { Signature = n.GetStringValue(); } }, + { "verified", n => { Verified = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/GitRef.cs b/src/GitHub/Models/GitRef.cs index f614c6c6..8322ca07 100644 --- a/src/GitHub/Models/GitRef.cs +++ b/src/GitHub/Models/GitRef.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Git references within a repository /// - public class GitRef : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GitRef : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,10 +25,10 @@ public class GitRef : IAdditionalDataHolder, IParsable /// The object property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitRef_object? Object { get; set; } + public global::GitHub.Models.GitRef_object? Object { get; set; } #nullable restore #else - public GitRef_object Object { get; set; } + public global::GitHub.Models.GitRef_object Object { get; set; } #endif /// The ref property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -45,7 +47,7 @@ public class GitRef : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GitRef() { @@ -54,12 +56,12 @@ public GitRef() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GitRef CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GitRef CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GitRef(); + return new global::GitHub.Models.GitRef(); } /// /// The deserialization information for the current model @@ -69,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"object", n => { Object = n.GetObjectValue(GitRef_object.CreateFromDiscriminatorValue); } }, - {"ref", n => { Ref = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "object", n => { Object = n.GetObjectValue(global::GitHub.Models.GitRef_object.CreateFromDiscriminatorValue); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -83,7 +85,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("object", Object); + writer.WriteObjectValue("object", Object); writer.WriteStringValue("ref", Ref); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/GitRef_object.cs b/src/GitHub/Models/GitRef_object.cs index c540841b..aa1427b2 100644 --- a/src/GitHub/Models/GitRef_object.cs +++ b/src/GitHub/Models/GitRef_object.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GitRef_object : IAdditionalDataHolder, IParsable + public partial class GitRef_object : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class GitRef_object : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GitRef_object() { @@ -45,12 +47,12 @@ public GitRef_object() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GitRef_object CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GitRef_object CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GitRef_object(); + return new global::GitHub.Models.GitRef_object(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"sha", n => { Sha = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/GitTag.cs b/src/GitHub/Models/GitTag.cs index a3f9d47b..e15ccaa4 100644 --- a/src/GitHub/Models/GitTag.cs +++ b/src/GitHub/Models/GitTag.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Metadata for a Git tag /// - public class GitTag : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GitTag : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -31,10 +33,10 @@ public class GitTag : IAdditionalDataHolder, IParsable /// The object property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitTag_object? Object { get; set; } + public global::GitHub.Models.GitTag_object? Object { get; set; } #nullable restore #else - public GitTag_object Object { get; set; } + public global::GitHub.Models.GitTag_object Object { get; set; } #endif /// The sha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -55,10 +57,10 @@ public class GitTag : IAdditionalDataHolder, IParsable /// The tagger property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitTag_tagger? Tagger { get; set; } + public global::GitHub.Models.GitTag_tagger? Tagger { get; set; } #nullable restore #else - public GitTag_tagger Tagger { get; set; } + public global::GitHub.Models.GitTag_tagger Tagger { get; set; } #endif /// URL for the tag #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -71,13 +73,13 @@ public class GitTag : IAdditionalDataHolder, IParsable /// The verification property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Verification? Verification { get; set; } + public global::GitHub.Models.Verification? Verification { get; set; } #nullable restore #else - public GitHub.Models.Verification Verification { get; set; } + public global::GitHub.Models.Verification Verification { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GitTag() { @@ -86,12 +88,12 @@ public GitTag() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GitTag CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GitTag CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GitTag(); + return new global::GitHub.Models.GitTag(); } /// /// The deserialization information for the current model @@ -101,14 +103,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"message", n => { Message = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"object", n => { Object = n.GetObjectValue(GitTag_object.CreateFromDiscriminatorValue); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"tag", n => { Tag = n.GetStringValue(); } }, - {"tagger", n => { Tagger = n.GetObjectValue(GitTag_tagger.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"verification", n => { Verification = n.GetObjectValue(GitHub.Models.Verification.CreateFromDiscriminatorValue); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "object", n => { Object = n.GetObjectValue(global::GitHub.Models.GitTag_object.CreateFromDiscriminatorValue); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "tag", n => { Tag = n.GetStringValue(); } }, + { "tagger", n => { Tagger = n.GetObjectValue(global::GitHub.Models.GitTag_tagger.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "verification", n => { Verification = n.GetObjectValue(global::GitHub.Models.Verification.CreateFromDiscriminatorValue); } }, }; } /// @@ -120,12 +122,12 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("message", Message); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("object", Object); + writer.WriteObjectValue("object", Object); writer.WriteStringValue("sha", Sha); writer.WriteStringValue("tag", Tag); - writer.WriteObjectValue("tagger", Tagger); + writer.WriteObjectValue("tagger", Tagger); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("verification", Verification); + writer.WriteObjectValue("verification", Verification); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/GitTag_object.cs b/src/GitHub/Models/GitTag_object.cs index 9ee20b99..ce68b8e6 100644 --- a/src/GitHub/Models/GitTag_object.cs +++ b/src/GitHub/Models/GitTag_object.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GitTag_object : IAdditionalDataHolder, IParsable + public partial class GitTag_object : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class GitTag_object : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GitTag_object() { @@ -45,12 +47,12 @@ public GitTag_object() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GitTag_object CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GitTag_object CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GitTag_object(); + return new global::GitHub.Models.GitTag_object(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"sha", n => { Sha = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/GitTag_tagger.cs b/src/GitHub/Models/GitTag_tagger.cs index 49f31d65..ac02dab4 100644 --- a/src/GitHub/Models/GitTag_tagger.cs +++ b/src/GitHub/Models/GitTag_tagger.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GitTag_tagger : IAdditionalDataHolder, IParsable + public partial class GitTag_tagger : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class GitTag_tagger : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GitTag_tagger() { @@ -45,12 +47,12 @@ public GitTag_tagger() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GitTag_tagger CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GitTag_tagger CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GitTag_tagger(); + return new global::GitHub.Models.GitTag_tagger(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"date", n => { Date = n.GetStringValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "date", n => { Date = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/GitTree.cs b/src/GitHub/Models/GitTree.cs index bc74ae83..de7fac32 100644 --- a/src/GitHub/Models/GitTree.cs +++ b/src/GitHub/Models/GitTree.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The hierarchy between files in a Git repository. /// - public class GitTree : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GitTree : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,10 +25,10 @@ public class GitTree : IAdditionalDataHolder, IParsable /// Objects specifying a tree structure #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Tree { get; set; } + public List? Tree { get; set; } #nullable restore #else - public List Tree { get; set; } + public List Tree { get; set; } #endif /// The truncated property public bool? Truncated { get; set; } @@ -39,7 +41,7 @@ public class GitTree : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GitTree() { @@ -48,12 +50,12 @@ public GitTree() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GitTree CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GitTree CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GitTree(); + return new global::GitHub.Models.GitTree(); } /// /// The deserialization information for the current model @@ -63,10 +65,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"sha", n => { Sha = n.GetStringValue(); } }, - {"tree", n => { Tree = n.GetCollectionOfObjectValues(GitTree_tree.CreateFromDiscriminatorValue)?.ToList(); } }, - {"truncated", n => { Truncated = n.GetBoolValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "tree", n => { Tree = n.GetCollectionOfObjectValues(global::GitHub.Models.GitTree_tree.CreateFromDiscriminatorValue)?.AsList(); } }, + { "truncated", n => { Truncated = n.GetBoolValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -77,7 +79,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("sha", Sha); - writer.WriteCollectionOfObjectValues("tree", Tree); + writer.WriteCollectionOfObjectValues("tree", Tree); writer.WriteBoolValue("truncated", Truncated); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/GitTree_tree.cs b/src/GitHub/Models/GitTree_tree.cs index bd141069..cf5ddf1b 100644 --- a/src/GitHub/Models/GitTree_tree.cs +++ b/src/GitHub/Models/GitTree_tree.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GitTree_tree : IAdditionalDataHolder, IParsable + public partial class GitTree_tree : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -54,7 +56,7 @@ public class GitTree_tree : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GitTree_tree() { @@ -63,12 +65,12 @@ public GitTree_tree() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GitTree_tree CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GitTree_tree CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GitTree_tree(); + return new global::GitHub.Models.GitTree_tree(); } /// /// The deserialization information for the current model @@ -78,12 +80,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"mode", n => { Mode = n.GetStringValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"size", n => { Size = n.GetIntValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "mode", n => { Mode = n.GetStringValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "size", n => { Size = n.GetIntValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/GitignoreTemplate.cs b/src/GitHub/Models/GitignoreTemplate.cs index 51515e5b..3a056194 100644 --- a/src/GitHub/Models/GitignoreTemplate.cs +++ b/src/GitHub/Models/GitignoreTemplate.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Gitignore Template /// - public class GitignoreTemplate : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GitignoreTemplate : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class GitignoreTemplate : IAdditionalDataHolder, IParsable public string Source { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GitignoreTemplate() { @@ -38,12 +40,12 @@ public GitignoreTemplate() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GitignoreTemplate CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GitignoreTemplate CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GitignoreTemplate(); + return new global::GitHub.Models.GitignoreTemplate(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, - {"source", n => { Source = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "source", n => { Source = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/GlobalAdvisory.cs b/src/GitHub/Models/GlobalAdvisory.cs index cc440443..7ee41e71 100644 --- a/src/GitHub/Models/GlobalAdvisory.cs +++ b/src/GitHub/Models/GlobalAdvisory.cs @@ -1,22 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A GitHub Security Advisory. /// - public class GlobalAdvisory : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GlobalAdvisory : IParsable { /// The users who contributed to the advisory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Credits { get; private set; } + public List? Credits { get; private set; } #nullable restore #else - public List Credits { get; private set; } + public List Credits { get; private set; } #endif /// The Common Vulnerabilities and Exposures (CVE) ID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -29,18 +31,18 @@ public class GlobalAdvisory : IParsable /// The cvss property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GlobalAdvisory_cvss? Cvss { get; set; } + public global::GitHub.Models.GlobalAdvisory_cvss? Cvss { get; set; } #nullable restore #else - public GlobalAdvisory_cvss Cvss { get; set; } + public global::GitHub.Models.GlobalAdvisory_cvss Cvss { get; set; } #endif /// The cwes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Cwes { get; set; } + public List? Cwes { get; set; } #nullable restore #else - public List Cwes { get; set; } + public List Cwes { get; set; } #endif /// A detailed description of what the advisory entails. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -49,6 +51,14 @@ public class GlobalAdvisory : IParsable #nullable restore #else public string Description { get; set; } +#endif + /// The epss property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::GitHub.Models.GlobalAdvisory_epss? Epss { get; set; } +#nullable restore +#else + public global::GitHub.Models.GlobalAdvisory_epss Epss { get; set; } #endif /// The GitHub Security Advisory ID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -71,10 +81,10 @@ public class GlobalAdvisory : IParsable /// The identifiers property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Identifiers { get; private set; } + public List? Identifiers { get; private set; } #nullable restore #else - public List Identifiers { get; private set; } + public List Identifiers { get; private set; } #endif /// The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format.This field is only populated when the advisory is imported from the National Vulnerability Database. public DateTimeOffset? NvdPublishedAt { get; private set; } @@ -97,7 +107,7 @@ public class GlobalAdvisory : IParsable public string RepositoryAdvisoryUrl { get; private set; } #endif /// The severity of the advisory. - public GlobalAdvisory_severity? Severity { get; set; } + public global::GitHub.Models.GlobalAdvisory_severity? Severity { get; set; } /// The URL of the advisory's source code. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -115,7 +125,7 @@ public class GlobalAdvisory : IParsable public string Summary { get; set; } #endif /// The type of advisory. - public GlobalAdvisory_type? Type { get; private set; } + public global::GitHub.Models.GlobalAdvisory_type? Type { get; private set; } /// The date and time of when the advisory was last updated, in ISO 8601 format. public DateTimeOffset? UpdatedAt { get; private set; } /// The API URL for the advisory. @@ -129,22 +139,22 @@ public class GlobalAdvisory : IParsable /// The products and respective version ranges affected by the advisory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Vulnerabilities { get; set; } + public List? Vulnerabilities { get; set; } #nullable restore #else - public List Vulnerabilities { get; set; } + public List Vulnerabilities { get; set; } #endif /// The date and time of when the advisory was withdrawn, in ISO 8601 format. public DateTimeOffset? WithdrawnAt { get; private set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GlobalAdvisory CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GlobalAdvisory CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GlobalAdvisory(); + return new global::GitHub.Models.GlobalAdvisory(); } /// /// The deserialization information for the current model @@ -154,27 +164,28 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"credits", n => { Credits = n.GetCollectionOfObjectValues(GlobalAdvisory_credits.CreateFromDiscriminatorValue)?.ToList(); } }, - {"cve_id", n => { CveId = n.GetStringValue(); } }, - {"cvss", n => { Cvss = n.GetObjectValue(GlobalAdvisory_cvss.CreateFromDiscriminatorValue); } }, - {"cwes", n => { Cwes = n.GetCollectionOfObjectValues(GlobalAdvisory_cwes.CreateFromDiscriminatorValue)?.ToList(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"ghsa_id", n => { GhsaId = n.GetStringValue(); } }, - {"github_reviewed_at", n => { GithubReviewedAt = n.GetDateTimeOffsetValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"identifiers", n => { Identifiers = n.GetCollectionOfObjectValues(GlobalAdvisory_identifiers.CreateFromDiscriminatorValue)?.ToList(); } }, - {"nvd_published_at", n => { NvdPublishedAt = n.GetDateTimeOffsetValue(); } }, - {"published_at", n => { PublishedAt = n.GetDateTimeOffsetValue(); } }, - {"references", n => { References = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"repository_advisory_url", n => { RepositoryAdvisoryUrl = n.GetStringValue(); } }, - {"severity", n => { Severity = n.GetEnumValue(); } }, - {"source_code_location", n => { SourceCodeLocation = n.GetStringValue(); } }, - {"summary", n => { Summary = n.GetStringValue(); } }, - {"type", n => { Type = n.GetEnumValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"vulnerabilities", n => { Vulnerabilities = n.GetCollectionOfObjectValues(Vulnerability.CreateFromDiscriminatorValue)?.ToList(); } }, - {"withdrawn_at", n => { WithdrawnAt = n.GetDateTimeOffsetValue(); } }, + { "credits", n => { Credits = n.GetCollectionOfObjectValues(global::GitHub.Models.GlobalAdvisory_credits.CreateFromDiscriminatorValue)?.AsList(); } }, + { "cve_id", n => { CveId = n.GetStringValue(); } }, + { "cvss", n => { Cvss = n.GetObjectValue(global::GitHub.Models.GlobalAdvisory_cvss.CreateFromDiscriminatorValue); } }, + { "cwes", n => { Cwes = n.GetCollectionOfObjectValues(global::GitHub.Models.GlobalAdvisory_cwes.CreateFromDiscriminatorValue)?.AsList(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "epss", n => { Epss = n.GetObjectValue(global::GitHub.Models.GlobalAdvisory_epss.CreateFromDiscriminatorValue); } }, + { "ghsa_id", n => { GhsaId = n.GetStringValue(); } }, + { "github_reviewed_at", n => { GithubReviewedAt = n.GetDateTimeOffsetValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "identifiers", n => { Identifiers = n.GetCollectionOfObjectValues(global::GitHub.Models.GlobalAdvisory_identifiers.CreateFromDiscriminatorValue)?.AsList(); } }, + { "nvd_published_at", n => { NvdPublishedAt = n.GetDateTimeOffsetValue(); } }, + { "published_at", n => { PublishedAt = n.GetDateTimeOffsetValue(); } }, + { "references", n => { References = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "repository_advisory_url", n => { RepositoryAdvisoryUrl = n.GetStringValue(); } }, + { "severity", n => { Severity = n.GetEnumValue(); } }, + { "source_code_location", n => { SourceCodeLocation = n.GetStringValue(); } }, + { "summary", n => { Summary = n.GetStringValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "vulnerabilities", n => { Vulnerabilities = n.GetCollectionOfObjectValues(global::GitHub.Models.Vulnerability.CreateFromDiscriminatorValue)?.AsList(); } }, + { "withdrawn_at", n => { WithdrawnAt = n.GetDateTimeOffsetValue(); } }, }; } /// @@ -184,14 +195,15 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cvss", Cvss); - writer.WriteCollectionOfObjectValues("cwes", Cwes); + writer.WriteObjectValue("cvss", Cvss); + writer.WriteCollectionOfObjectValues("cwes", Cwes); writer.WriteStringValue("description", Description); + writer.WriteObjectValue("epss", Epss); writer.WriteCollectionOfPrimitiveValues("references", References); - writer.WriteEnumValue("severity", Severity); + writer.WriteEnumValue("severity", Severity); writer.WriteStringValue("source_code_location", SourceCodeLocation); writer.WriteStringValue("summary", Summary); - writer.WriteCollectionOfObjectValues("vulnerabilities", Vulnerabilities); + writer.WriteCollectionOfObjectValues("vulnerabilities", Vulnerabilities); } } } diff --git a/src/GitHub/Models/GlobalAdvisory_credits.cs b/src/GitHub/Models/GlobalAdvisory_credits.cs index 9fe98d04..57579f70 100644 --- a/src/GitHub/Models/GlobalAdvisory_credits.cs +++ b/src/GitHub/Models/GlobalAdvisory_credits.cs @@ -1,28 +1,30 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GlobalAdvisory_credits : IAdditionalDataHolder, IParsable + public partial class GlobalAdvisory_credits : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The type of credit the user is receiving. - public SecurityAdvisoryCreditTypes? Type { get; set; } + public global::GitHub.Models.SecurityAdvisoryCreditTypes? Type { get; set; } /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? User { get; set; } + public global::GitHub.Models.SimpleUser? User { get; set; } #nullable restore #else - public SimpleUser User { get; set; } + public global::GitHub.Models.SimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GlobalAdvisory_credits() { @@ -31,12 +33,12 @@ public GlobalAdvisory_credits() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GlobalAdvisory_credits CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GlobalAdvisory_credits CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GlobalAdvisory_credits(); + return new global::GitHub.Models.GlobalAdvisory_credits(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"type", n => { Type = n.GetEnumValue(); } }, - {"user", n => { User = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetEnumValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -57,8 +59,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("type", Type); - writer.WriteObjectValue("user", User); + writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/GlobalAdvisory_cvss.cs b/src/GitHub/Models/GlobalAdvisory_cvss.cs index dd0a83a4..58f83fd0 100644 --- a/src/GitHub/Models/GlobalAdvisory_cvss.cs +++ b/src/GitHub/Models/GlobalAdvisory_cvss.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GlobalAdvisory_cvss : IAdditionalDataHolder, IParsable + public partial class GlobalAdvisory_cvss : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class GlobalAdvisory_cvss : IAdditionalDataHolder, IParsable public string VectorString { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GlobalAdvisory_cvss() { @@ -31,12 +33,12 @@ public GlobalAdvisory_cvss() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GlobalAdvisory_cvss CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GlobalAdvisory_cvss CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GlobalAdvisory_cvss(); + return new global::GitHub.Models.GlobalAdvisory_cvss(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"score", n => { Score = n.GetDoubleValue(); } }, - {"vector_string", n => { VectorString = n.GetStringValue(); } }, + { "score", n => { Score = n.GetDoubleValue(); } }, + { "vector_string", n => { VectorString = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/GlobalAdvisory_cwes.cs b/src/GitHub/Models/GlobalAdvisory_cwes.cs index 15b7bbe5..4d57ab0b 100644 --- a/src/GitHub/Models/GlobalAdvisory_cwes.cs +++ b/src/GitHub/Models/GlobalAdvisory_cwes.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GlobalAdvisory_cwes : IAdditionalDataHolder, IParsable + public partial class GlobalAdvisory_cwes : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class GlobalAdvisory_cwes : IAdditionalDataHolder, IParsable public string Name { get; private set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GlobalAdvisory_cwes() { @@ -37,12 +39,12 @@ public GlobalAdvisory_cwes() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GlobalAdvisory_cwes CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GlobalAdvisory_cwes CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GlobalAdvisory_cwes(); + return new global::GitHub.Models.GlobalAdvisory_cwes(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"cwe_id", n => { CweId = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "cwe_id", n => { CweId = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/GlobalAdvisory_epss.cs b/src/GitHub/Models/GlobalAdvisory_epss.cs new file mode 100644 index 00000000..7e4114b0 --- /dev/null +++ b/src/GitHub/Models/GlobalAdvisory_epss.cs @@ -0,0 +1,61 @@ +// +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + #pragma warning disable CS1591 + public partial class GlobalAdvisory_epss : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The percentage property + public double? Percentage { get; set; } + /// The percentile property + public double? Percentile { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public GlobalAdvisory_epss() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::GitHub.Models.GlobalAdvisory_epss CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Models.GlobalAdvisory_epss(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "percentage", n => { Percentage = n.GetDoubleValue(); } }, + { "percentile", n => { Percentile = n.GetDoubleValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteDoubleValue("percentage", Percentage); + writer.WriteDoubleValue("percentile", Percentile); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/GitHub/Models/GlobalAdvisory_identifiers.cs b/src/GitHub/Models/GlobalAdvisory_identifiers.cs index de70002a..03827a85 100644 --- a/src/GitHub/Models/GlobalAdvisory_identifiers.cs +++ b/src/GitHub/Models/GlobalAdvisory_identifiers.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GlobalAdvisory_identifiers : IAdditionalDataHolder, IParsable + public partial class GlobalAdvisory_identifiers : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The type of identifier. - public GlobalAdvisory_identifiers_type? Type { get; set; } + public global::GitHub.Models.GlobalAdvisory_identifiers_type? Type { get; set; } /// The identifier value. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -22,7 +24,7 @@ public class GlobalAdvisory_identifiers : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GlobalAdvisory_identifiers() { @@ -31,12 +33,12 @@ public GlobalAdvisory_identifiers() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GlobalAdvisory_identifiers CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GlobalAdvisory_identifiers CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GlobalAdvisory_identifiers(); + return new global::GitHub.Models.GlobalAdvisory_identifiers(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"type", n => { Type = n.GetEnumValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, }; } /// @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("type", Type); + writer.WriteEnumValue("type", Type); writer.WriteStringValue("value", Value); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/GlobalAdvisory_identifiers_type.cs b/src/GitHub/Models/GlobalAdvisory_identifiers_type.cs index 0026efe3..f7e4f408 100644 --- a/src/GitHub/Models/GlobalAdvisory_identifiers_type.cs +++ b/src/GitHub/Models/GlobalAdvisory_identifiers_type.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The type of identifier. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum GlobalAdvisory_identifiers_type { [EnumMember(Value = "CVE")] diff --git a/src/GitHub/Models/GlobalAdvisory_severity.cs b/src/GitHub/Models/GlobalAdvisory_severity.cs index a5312c19..5592fba6 100644 --- a/src/GitHub/Models/GlobalAdvisory_severity.cs +++ b/src/GitHub/Models/GlobalAdvisory_severity.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The severity of the advisory. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum GlobalAdvisory_severity { [EnumMember(Value = "critical")] diff --git a/src/GitHub/Models/GlobalAdvisory_type.cs b/src/GitHub/Models/GlobalAdvisory_type.cs index 326ced48..e8fb2ca7 100644 --- a/src/GitHub/Models/GlobalAdvisory_type.cs +++ b/src/GitHub/Models/GlobalAdvisory_type.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The type of advisory. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum GlobalAdvisory_type { [EnumMember(Value = "reviewed")] diff --git a/src/GitHub/Models/GpgKey.cs b/src/GitHub/Models/GpgKey.cs index 42e5620d..08088a79 100644 --- a/src/GitHub/Models/GpgKey.cs +++ b/src/GitHub/Models/GpgKey.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A unique encryption key /// - public class GpgKey : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GpgKey : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -25,10 +27,10 @@ public class GpgKey : IAdditionalDataHolder, IParsable /// The emails property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Emails { get; set; } + public List? Emails { get; set; } #nullable restore #else - public List Emails { get; set; } + public List Emails { get; set; } #endif /// The expires_at property public DateTimeOffset? ExpiresAt { get; set; } @@ -73,13 +75,13 @@ public class GpgKey : IAdditionalDataHolder, IParsable /// The subkeys property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Subkeys { get; set; } + public List? Subkeys { get; set; } #nullable restore #else - public List Subkeys { get; set; } + public List Subkeys { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GpgKey() { @@ -88,12 +90,12 @@ public GpgKey() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GpgKey CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GpgKey CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GpgKey(); + return new global::GitHub.Models.GpgKey(); } /// /// The deserialization information for the current model @@ -103,21 +105,21 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"can_certify", n => { CanCertify = n.GetBoolValue(); } }, - {"can_encrypt_comms", n => { CanEncryptComms = n.GetBoolValue(); } }, - {"can_encrypt_storage", n => { CanEncryptStorage = n.GetBoolValue(); } }, - {"can_sign", n => { CanSign = n.GetBoolValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"emails", n => { Emails = n.GetCollectionOfObjectValues(GpgKey_emails.CreateFromDiscriminatorValue)?.ToList(); } }, - {"expires_at", n => { ExpiresAt = n.GetDateTimeOffsetValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"key_id", n => { KeyId = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"primary_key_id", n => { PrimaryKeyId = n.GetIntValue(); } }, - {"public_key", n => { PublicKey = n.GetStringValue(); } }, - {"raw_key", n => { RawKey = n.GetStringValue(); } }, - {"revoked", n => { Revoked = n.GetBoolValue(); } }, - {"subkeys", n => { Subkeys = n.GetCollectionOfObjectValues(GpgKey_subkeys.CreateFromDiscriminatorValue)?.ToList(); } }, + { "can_certify", n => { CanCertify = n.GetBoolValue(); } }, + { "can_encrypt_comms", n => { CanEncryptComms = n.GetBoolValue(); } }, + { "can_encrypt_storage", n => { CanEncryptStorage = n.GetBoolValue(); } }, + { "can_sign", n => { CanSign = n.GetBoolValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "emails", n => { Emails = n.GetCollectionOfObjectValues(global::GitHub.Models.GpgKey_emails.CreateFromDiscriminatorValue)?.AsList(); } }, + { "expires_at", n => { ExpiresAt = n.GetDateTimeOffsetValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "key_id", n => { KeyId = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "primary_key_id", n => { PrimaryKeyId = n.GetIntValue(); } }, + { "public_key", n => { PublicKey = n.GetStringValue(); } }, + { "raw_key", n => { RawKey = n.GetStringValue(); } }, + { "revoked", n => { Revoked = n.GetBoolValue(); } }, + { "subkeys", n => { Subkeys = n.GetCollectionOfObjectValues(global::GitHub.Models.GpgKey_subkeys.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -132,7 +134,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("can_encrypt_storage", CanEncryptStorage); writer.WriteBoolValue("can_sign", CanSign); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); - writer.WriteCollectionOfObjectValues("emails", Emails); + writer.WriteCollectionOfObjectValues("emails", Emails); writer.WriteDateTimeOffsetValue("expires_at", ExpiresAt); writer.WriteLongValue("id", Id); writer.WriteStringValue("key_id", KeyId); @@ -141,7 +143,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("public_key", PublicKey); writer.WriteStringValue("raw_key", RawKey); writer.WriteBoolValue("revoked", Revoked); - writer.WriteCollectionOfObjectValues("subkeys", Subkeys); + writer.WriteCollectionOfObjectValues("subkeys", Subkeys); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/GpgKey_emails.cs b/src/GitHub/Models/GpgKey_emails.cs index ff735e81..99853953 100644 --- a/src/GitHub/Models/GpgKey_emails.cs +++ b/src/GitHub/Models/GpgKey_emails.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GpgKey_emails : IAdditionalDataHolder, IParsable + public partial class GpgKey_emails : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class GpgKey_emails : IAdditionalDataHolder, IParsable /// The verified property public bool? Verified { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GpgKey_emails() { @@ -31,12 +33,12 @@ public GpgKey_emails() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GpgKey_emails CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GpgKey_emails CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GpgKey_emails(); + return new global::GitHub.Models.GpgKey_emails(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"email", n => { Email = n.GetStringValue(); } }, - {"verified", n => { Verified = n.GetBoolValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "verified", n => { Verified = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/GpgKey_subkeys.cs b/src/GitHub/Models/GpgKey_subkeys.cs index 1c179aad..05d2d1ba 100644 --- a/src/GitHub/Models/GpgKey_subkeys.cs +++ b/src/GitHub/Models/GpgKey_subkeys.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GpgKey_subkeys : IAdditionalDataHolder, IParsable + public partial class GpgKey_subkeys : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,10 +32,10 @@ public class GpgKey_subkeys : IAdditionalDataHolder, IParsable /// The emails property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Emails { get; set; } + public List? Emails { get; set; } #nullable restore #else - public List Emails { get; set; } + public List Emails { get; set; } #endif /// The expires_at property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -82,7 +84,7 @@ public class GpgKey_subkeys : IAdditionalDataHolder, IParsable public UntypedNode Subkeys { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GpgKey_subkeys() { @@ -91,12 +93,12 @@ public GpgKey_subkeys() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GpgKey_subkeys CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GpgKey_subkeys CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GpgKey_subkeys(); + return new global::GitHub.Models.GpgKey_subkeys(); } /// /// The deserialization information for the current model @@ -106,20 +108,20 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"can_certify", n => { CanCertify = n.GetBoolValue(); } }, - {"can_encrypt_comms", n => { CanEncryptComms = n.GetBoolValue(); } }, - {"can_encrypt_storage", n => { CanEncryptStorage = n.GetBoolValue(); } }, - {"can_sign", n => { CanSign = n.GetBoolValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"emails", n => { Emails = n.GetCollectionOfObjectValues(GpgKey_subkeys_emails.CreateFromDiscriminatorValue)?.ToList(); } }, - {"expires_at", n => { ExpiresAt = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"key_id", n => { KeyId = n.GetStringValue(); } }, - {"primary_key_id", n => { PrimaryKeyId = n.GetIntValue(); } }, - {"public_key", n => { PublicKey = n.GetStringValue(); } }, - {"raw_key", n => { RawKey = n.GetStringValue(); } }, - {"revoked", n => { Revoked = n.GetBoolValue(); } }, - {"subkeys", n => { Subkeys = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "can_certify", n => { CanCertify = n.GetBoolValue(); } }, + { "can_encrypt_comms", n => { CanEncryptComms = n.GetBoolValue(); } }, + { "can_encrypt_storage", n => { CanEncryptStorage = n.GetBoolValue(); } }, + { "can_sign", n => { CanSign = n.GetBoolValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "emails", n => { Emails = n.GetCollectionOfObjectValues(global::GitHub.Models.GpgKey_subkeys_emails.CreateFromDiscriminatorValue)?.AsList(); } }, + { "expires_at", n => { ExpiresAt = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "key_id", n => { KeyId = n.GetStringValue(); } }, + { "primary_key_id", n => { PrimaryKeyId = n.GetIntValue(); } }, + { "public_key", n => { PublicKey = n.GetStringValue(); } }, + { "raw_key", n => { RawKey = n.GetStringValue(); } }, + { "revoked", n => { Revoked = n.GetBoolValue(); } }, + { "subkeys", n => { Subkeys = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -134,7 +136,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("can_encrypt_storage", CanEncryptStorage); writer.WriteBoolValue("can_sign", CanSign); writer.WriteStringValue("created_at", CreatedAt); - writer.WriteCollectionOfObjectValues("emails", Emails); + writer.WriteCollectionOfObjectValues("emails", Emails); writer.WriteStringValue("expires_at", ExpiresAt); writer.WriteLongValue("id", Id); writer.WriteStringValue("key_id", KeyId); diff --git a/src/GitHub/Models/GpgKey_subkeys_emails.cs b/src/GitHub/Models/GpgKey_subkeys_emails.cs index d44c5e54..cda5a7ef 100644 --- a/src/GitHub/Models/GpgKey_subkeys_emails.cs +++ b/src/GitHub/Models/GpgKey_subkeys_emails.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GpgKey_subkeys_emails : IAdditionalDataHolder, IParsable + public partial class GpgKey_subkeys_emails : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class GpgKey_subkeys_emails : IAdditionalDataHolder, IParsable /// The verified property public bool? Verified { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GpgKey_subkeys_emails() { @@ -31,12 +33,12 @@ public GpgKey_subkeys_emails() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GpgKey_subkeys_emails CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GpgKey_subkeys_emails CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GpgKey_subkeys_emails(); + return new global::GitHub.Models.GpgKey_subkeys_emails(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"email", n => { Email = n.GetStringValue(); } }, - {"verified", n => { Verified = n.GetBoolValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "verified", n => { Verified = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/Group.cs b/src/GitHub/Models/Group.cs index 0f39850b..8ca89603 100644 --- a/src/GitHub/Models/Group.cs +++ b/src/GitHub/Models/Group.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Group : IAdditionalDataHolder, IParsable + public partial class Group : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,21 +32,21 @@ public class Group : IAdditionalDataHolder, IParsable /// The group members. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Members { get; set; } + public List? Members { get; set; } #nullable restore #else - public List Members { get; set; } + public List Members { get; set; } #endif /// The URIs that are used to indicate the namespaces of the SCIM schemas. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Schemas { get; set; } + public List? Schemas { get; set; } #nullable restore #else - public List Schemas { get; set; } + public List Schemas { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Group() { @@ -53,12 +55,12 @@ public Group() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Group CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Group CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Group(); + return new global::GitHub.Models.Group(); } /// /// The deserialization information for the current model @@ -68,10 +70,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"displayName", n => { DisplayName = n.GetStringValue(); } }, - {"externalId", n => { ExternalId = n.GetStringValue(); } }, - {"members", n => { Members = n.GetCollectionOfObjectValues(Group_members.CreateFromDiscriminatorValue)?.ToList(); } }, - {"schemas", n => { Schemas = n.GetCollectionOfEnumValues()?.ToList(); } }, + { "displayName", n => { DisplayName = n.GetStringValue(); } }, + { "externalId", n => { ExternalId = n.GetStringValue(); } }, + { "members", n => { Members = n.GetCollectionOfObjectValues(global::GitHub.Models.Group_members.CreateFromDiscriminatorValue)?.AsList(); } }, + { "schemas", n => { Schemas = n.GetCollectionOfEnumValues()?.AsList(); } }, }; } /// @@ -83,8 +85,8 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("externalId", ExternalId); - writer.WriteCollectionOfObjectValues("members", Members); - writer.WriteCollectionOfEnumValues("schemas", Schemas); + writer.WriteCollectionOfObjectValues("members", Members); + writer.WriteCollectionOfEnumValues("schemas", Schemas); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/GroupMapping.cs b/src/GitHub/Models/GroupMapping.cs index 2b6acf25..6e9c623b 100644 --- a/src/GitHub/Models/GroupMapping.cs +++ b/src/GitHub/Models/GroupMapping.cs @@ -1,27 +1,29 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// External Groups to be mapped to a team for membership /// - public class GroupMapping : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GroupMapping : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// Array of groups to be mapped to this team #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Groups { get; set; } + public List? Groups { get; set; } #nullable restore #else - public List Groups { get; set; } + public List Groups { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GroupMapping() { @@ -30,12 +32,12 @@ public GroupMapping() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GroupMapping CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GroupMapping CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GroupMapping(); + return new global::GitHub.Models.GroupMapping(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"groups", n => { Groups = n.GetCollectionOfObjectValues(GroupMapping_groups.CreateFromDiscriminatorValue)?.ToList(); } }, + { "groups", n => { Groups = n.GetCollectionOfObjectValues(global::GitHub.Models.GroupMapping_groups.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("groups", Groups); + writer.WriteCollectionOfObjectValues("groups", Groups); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/GroupMapping_groups.cs b/src/GitHub/Models/GroupMapping_groups.cs index 03306d08..3c0d816b 100644 --- a/src/GitHub/Models/GroupMapping_groups.cs +++ b/src/GitHub/Models/GroupMapping_groups.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GroupMapping_groups : IAdditionalDataHolder, IParsable + public partial class GroupMapping_groups : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -52,7 +54,7 @@ public class GroupMapping_groups : IAdditionalDataHolder, IParsable public string SyncedAt { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GroupMapping_groups() { @@ -61,12 +63,12 @@ public GroupMapping_groups() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GroupMapping_groups CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GroupMapping_groups CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GroupMapping_groups(); + return new global::GitHub.Models.GroupMapping_groups(); } /// /// The deserialization information for the current model @@ -76,11 +78,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"group_description", n => { GroupDescription = n.GetStringValue(); } }, - {"group_id", n => { GroupId = n.GetStringValue(); } }, - {"group_name", n => { GroupName = n.GetStringValue(); } }, - {"status", n => { Status = n.GetStringValue(); } }, - {"synced_at", n => { SyncedAt = n.GetStringValue(); } }, + { "group_description", n => { GroupDescription = n.GetStringValue(); } }, + { "group_id", n => { GroupId = n.GetStringValue(); } }, + { "group_name", n => { GroupName = n.GetStringValue(); } }, + { "status", n => { Status = n.GetStringValue(); } }, + { "synced_at", n => { SyncedAt = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/GroupResponse.cs b/src/GitHub/Models/GroupResponse.cs index 7d7cc7e6..60cc066e 100644 --- a/src/GitHub/Models/GroupResponse.cs +++ b/src/GitHub/Models/GroupResponse.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GroupResponse : IAdditionalDataHolder, IParsable + public partial class GroupResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,21 +32,21 @@ public class GroupResponse : IAdditionalDataHolder, IParsable /// The group members. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Members { get; set; } + public List? Members { get; set; } #nullable restore #else - public List Members { get; set; } + public List Members { get; set; } #endif /// The URIs that are used to indicate the namespaces of the SCIM schemas. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Schemas { get; set; } + public List? Schemas { get; set; } #nullable restore #else - public List Schemas { get; set; } + public List Schemas { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GroupResponse() { @@ -53,12 +55,12 @@ public GroupResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GroupResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GroupResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GroupResponse(); + return new global::GitHub.Models.GroupResponse(); } /// /// The deserialization information for the current model @@ -68,10 +70,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"displayName", n => { DisplayName = n.GetStringValue(); } }, - {"externalId", n => { ExternalId = n.GetStringValue(); } }, - {"members", n => { Members = n.GetCollectionOfObjectValues(GroupResponse_members.CreateFromDiscriminatorValue)?.ToList(); } }, - {"schemas", n => { Schemas = n.GetCollectionOfEnumValues()?.ToList(); } }, + { "displayName", n => { DisplayName = n.GetStringValue(); } }, + { "externalId", n => { ExternalId = n.GetStringValue(); } }, + { "members", n => { Members = n.GetCollectionOfObjectValues(global::GitHub.Models.GroupResponse_members.CreateFromDiscriminatorValue)?.AsList(); } }, + { "schemas", n => { Schemas = n.GetCollectionOfEnumValues()?.AsList(); } }, }; } /// @@ -83,8 +85,8 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("externalId", ExternalId); - writer.WriteCollectionOfObjectValues("members", Members); - writer.WriteCollectionOfEnumValues("schemas", Schemas); + writer.WriteCollectionOfObjectValues("members", Members); + writer.WriteCollectionOfEnumValues("schemas", Schemas); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/GroupResponse_members.cs b/src/GitHub/Models/GroupResponse_members.cs index d3a9d83b..16bcc149 100644 --- a/src/GitHub/Models/GroupResponse_members.cs +++ b/src/GitHub/Models/GroupResponse_members.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GroupResponse_members : IAdditionalDataHolder, IParsable + public partial class GroupResponse_members : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class GroupResponse_members : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GroupResponse_members() { @@ -45,12 +47,12 @@ public GroupResponse_members() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GroupResponse_members CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.GroupResponse_members CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GroupResponse_members(); + return new global::GitHub.Models.GroupResponse_members(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"display", n => { Display = n.GetStringValue(); } }, - {"$ref", n => { Ref = n.GetStringValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, + { "display", n => { Display = n.GetStringValue(); } }, + { "$ref", n => { Ref = n.GetStringValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/GroupResponse_schemas.cs b/src/GitHub/Models/GroupResponse_schemas.cs index 0ad943af..69c7f0aa 100644 --- a/src/GitHub/Models/GroupResponse_schemas.cs +++ b/src/GitHub/Models/GroupResponse_schemas.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GroupResponse_schemas #pragma warning restore CS1591 diff --git a/src/GitHub/Models/Group_members.cs b/src/GitHub/Models/Group_members.cs index 9047802f..0de8d840 100644 --- a/src/GitHub/Models/Group_members.cs +++ b/src/GitHub/Models/Group_members.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Group_members : IAdditionalDataHolder, IParsable + public partial class Group_members : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class Group_members : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Group_members() { @@ -37,12 +39,12 @@ public Group_members() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Group_members CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Group_members CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Group_members(); + return new global::GitHub.Models.Group_members(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"displayName", n => { DisplayName = n.GetStringValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, + { "displayName", n => { DisplayName = n.GetStringValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Group_schemas.cs b/src/GitHub/Models/Group_schemas.cs index d8adcf11..75a3df82 100644 --- a/src/GitHub/Models/Group_schemas.cs +++ b/src/GitHub/Models/Group_schemas.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum Group_schemas #pragma warning restore CS1591 diff --git a/src/GitHub/Models/Hook.cs b/src/GitHub/Models/Hook.cs index 1700c808..9cad4fe7 100644 --- a/src/GitHub/Models/Hook.cs +++ b/src/GitHub/Models/Hook.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Webhooks for repositories. /// - public class Hook : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Hook : IAdditionalDataHolder, IParsable { /// Determines whether the hook is actually triggered on pushes. public bool? Active { get; set; } @@ -17,10 +19,10 @@ public class Hook : IAdditionalDataHolder, IParsable /// Configuration object of the webhook #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WebhookConfig? Config { get; set; } + public global::GitHub.Models.WebhookConfig? Config { get; set; } #nullable restore #else - public WebhookConfig Config { get; set; } + public global::GitHub.Models.WebhookConfig Config { get; set; } #endif /// The created_at property public DateTimeOffset? CreatedAt { get; set; } @@ -45,10 +47,10 @@ public class Hook : IAdditionalDataHolder, IParsable /// The last_response property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public HookResponse? LastResponse { get; set; } + public global::GitHub.Models.HookResponse? LastResponse { get; set; } #nullable restore #else - public HookResponse LastResponse { get; set; } + public global::GitHub.Models.HookResponse LastResponse { get; set; } #endif /// The name of a valid service, use 'web' for a webhook. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -93,7 +95,7 @@ public class Hook : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Hook() { @@ -102,12 +104,12 @@ public Hook() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Hook CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Hook CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Hook(); + return new global::GitHub.Models.Hook(); } /// /// The deserialization information for the current model @@ -117,19 +119,19 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"active", n => { Active = n.GetBoolValue(); } }, - {"config", n => { Config = n.GetObjectValue(WebhookConfig.CreateFromDiscriminatorValue); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"deliveries_url", n => { DeliveriesUrl = n.GetStringValue(); } }, - {"events", n => { Events = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"last_response", n => { LastResponse = n.GetObjectValue(HookResponse.CreateFromDiscriminatorValue); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"ping_url", n => { PingUrl = n.GetStringValue(); } }, - {"test_url", n => { TestUrl = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "active", n => { Active = n.GetBoolValue(); } }, + { "config", n => { Config = n.GetObjectValue(global::GitHub.Models.WebhookConfig.CreateFromDiscriminatorValue); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "deliveries_url", n => { DeliveriesUrl = n.GetStringValue(); } }, + { "events", n => { Events = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "last_response", n => { LastResponse = n.GetObjectValue(global::GitHub.Models.HookResponse.CreateFromDiscriminatorValue); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "ping_url", n => { PingUrl = n.GetStringValue(); } }, + { "test_url", n => { TestUrl = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -140,12 +142,12 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("active", Active); - writer.WriteObjectValue("config", Config); + writer.WriteObjectValue("config", Config); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteStringValue("deliveries_url", DeliveriesUrl); writer.WriteCollectionOfPrimitiveValues("events", Events); writer.WriteIntValue("id", Id); - writer.WriteObjectValue("last_response", LastResponse); + writer.WriteObjectValue("last_response", LastResponse); writer.WriteStringValue("name", Name); writer.WriteStringValue("ping_url", PingUrl); writer.WriteStringValue("test_url", TestUrl); diff --git a/src/GitHub/Models/HookDelivery.cs b/src/GitHub/Models/HookDelivery.cs index 7305f183..9e060e70 100644 --- a/src/GitHub/Models/HookDelivery.cs +++ b/src/GitHub/Models/HookDelivery.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Delivery made by a webhook. /// - public class HookDelivery : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class HookDelivery : IAdditionalDataHolder, IParsable { /// The type of activity for the event that triggered the delivery. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -51,18 +53,18 @@ public class HookDelivery : IAdditionalDataHolder, IParsable /// The request property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public HookDelivery_request? Request { get; set; } + public global::GitHub.Models.HookDelivery_request? Request { get; set; } #nullable restore #else - public HookDelivery_request Request { get; set; } + public global::GitHub.Models.HookDelivery_request Request { get; set; } #endif /// The response property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public HookDelivery_response? Response { get; set; } + public global::GitHub.Models.HookDelivery_response? Response { get; set; } #nullable restore #else - public HookDelivery_response Response { get; set; } + public global::GitHub.Models.HookDelivery_response Response { get; set; } #endif /// Description of the status of the attempted delivery #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -85,7 +87,7 @@ public class HookDelivery : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public HookDelivery() { @@ -94,12 +96,12 @@ public HookDelivery() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static HookDelivery CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.HookDelivery CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new HookDelivery(); + return new global::GitHub.Models.HookDelivery(); } /// /// The deserialization information for the current model @@ -109,21 +111,21 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"action", n => { Action = n.GetStringValue(); } }, - {"delivered_at", n => { DeliveredAt = n.GetDateTimeOffsetValue(); } }, - {"duration", n => { Duration = n.GetDoubleValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"guid", n => { Guid = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"installation_id", n => { InstallationId = n.GetIntValue(); } }, - {"redelivery", n => { Redelivery = n.GetBoolValue(); } }, - {"repository_id", n => { RepositoryId = n.GetIntValue(); } }, - {"request", n => { Request = n.GetObjectValue(HookDelivery_request.CreateFromDiscriminatorValue); } }, - {"response", n => { Response = n.GetObjectValue(HookDelivery_response.CreateFromDiscriminatorValue); } }, - {"status", n => { Status = n.GetStringValue(); } }, - {"status_code", n => { StatusCode = n.GetIntValue(); } }, - {"throttled_at", n => { ThrottledAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "action", n => { Action = n.GetStringValue(); } }, + { "delivered_at", n => { DeliveredAt = n.GetDateTimeOffsetValue(); } }, + { "duration", n => { Duration = n.GetDoubleValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "guid", n => { Guid = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "installation_id", n => { InstallationId = n.GetIntValue(); } }, + { "redelivery", n => { Redelivery = n.GetBoolValue(); } }, + { "repository_id", n => { RepositoryId = n.GetIntValue(); } }, + { "request", n => { Request = n.GetObjectValue(global::GitHub.Models.HookDelivery_request.CreateFromDiscriminatorValue); } }, + { "response", n => { Response = n.GetObjectValue(global::GitHub.Models.HookDelivery_response.CreateFromDiscriminatorValue); } }, + { "status", n => { Status = n.GetStringValue(); } }, + { "status_code", n => { StatusCode = n.GetIntValue(); } }, + { "throttled_at", n => { ThrottledAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -142,8 +144,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("installation_id", InstallationId); writer.WriteBoolValue("redelivery", Redelivery); writer.WriteIntValue("repository_id", RepositoryId); - writer.WriteObjectValue("request", Request); - writer.WriteObjectValue("response", Response); + writer.WriteObjectValue("request", Request); + writer.WriteObjectValue("response", Response); writer.WriteStringValue("status", Status); writer.WriteIntValue("status_code", StatusCode); writer.WriteDateTimeOffsetValue("throttled_at", ThrottledAt); diff --git a/src/GitHub/Models/HookDeliveryItem.cs b/src/GitHub/Models/HookDeliveryItem.cs index 1f726518..add634a3 100644 --- a/src/GitHub/Models/HookDeliveryItem.cs +++ b/src/GitHub/Models/HookDeliveryItem.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Delivery made by a webhook, without request and response information. /// - public class HookDeliveryItem : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class HookDeliveryItem : IAdditionalDataHolder, IParsable { /// The type of activity for the event that triggered the delivery. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -61,7 +63,7 @@ public class HookDeliveryItem : IAdditionalDataHolder, IParsable /// Time when the webhook delivery was throttled. public DateTimeOffset? ThrottledAt { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public HookDeliveryItem() { @@ -70,12 +72,12 @@ public HookDeliveryItem() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static HookDeliveryItem CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.HookDeliveryItem CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new HookDeliveryItem(); + return new global::GitHub.Models.HookDeliveryItem(); } /// /// The deserialization information for the current model @@ -85,18 +87,18 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"action", n => { Action = n.GetStringValue(); } }, - {"delivered_at", n => { DeliveredAt = n.GetDateTimeOffsetValue(); } }, - {"duration", n => { Duration = n.GetDoubleValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"guid", n => { Guid = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"installation_id", n => { InstallationId = n.GetIntValue(); } }, - {"redelivery", n => { Redelivery = n.GetBoolValue(); } }, - {"repository_id", n => { RepositoryId = n.GetIntValue(); } }, - {"status", n => { Status = n.GetStringValue(); } }, - {"status_code", n => { StatusCode = n.GetIntValue(); } }, - {"throttled_at", n => { ThrottledAt = n.GetDateTimeOffsetValue(); } }, + { "action", n => { Action = n.GetStringValue(); } }, + { "delivered_at", n => { DeliveredAt = n.GetDateTimeOffsetValue(); } }, + { "duration", n => { Duration = n.GetDoubleValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "guid", n => { Guid = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "installation_id", n => { InstallationId = n.GetIntValue(); } }, + { "redelivery", n => { Redelivery = n.GetBoolValue(); } }, + { "repository_id", n => { RepositoryId = n.GetIntValue(); } }, + { "status", n => { Status = n.GetStringValue(); } }, + { "status_code", n => { StatusCode = n.GetIntValue(); } }, + { "throttled_at", n => { ThrottledAt = n.GetDateTimeOffsetValue(); } }, }; } /// diff --git a/src/GitHub/Models/HookDelivery_request.cs b/src/GitHub/Models/HookDelivery_request.cs index f9a59b4c..9c89f371 100644 --- a/src/GitHub/Models/HookDelivery_request.cs +++ b/src/GitHub/Models/HookDelivery_request.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class HookDelivery_request : IAdditionalDataHolder, IParsable + public partial class HookDelivery_request : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,21 +16,21 @@ public class HookDelivery_request : IAdditionalDataHolder, IParsable /// The request headers sent with the webhook delivery. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public HookDelivery_request_headers? Headers { get; set; } + public global::GitHub.Models.HookDelivery_request_headers? Headers { get; set; } #nullable restore #else - public HookDelivery_request_headers Headers { get; set; } + public global::GitHub.Models.HookDelivery_request_headers Headers { get; set; } #endif /// The webhook payload. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public HookDelivery_request_payload? Payload { get; set; } + public global::GitHub.Models.HookDelivery_request_payload? Payload { get; set; } #nullable restore #else - public HookDelivery_request_payload Payload { get; set; } + public global::GitHub.Models.HookDelivery_request_payload Payload { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public HookDelivery_request() { @@ -37,12 +39,12 @@ public HookDelivery_request() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static HookDelivery_request CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.HookDelivery_request CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new HookDelivery_request(); + return new global::GitHub.Models.HookDelivery_request(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"headers", n => { Headers = n.GetObjectValue(HookDelivery_request_headers.CreateFromDiscriminatorValue); } }, - {"payload", n => { Payload = n.GetObjectValue(HookDelivery_request_payload.CreateFromDiscriminatorValue); } }, + { "headers", n => { Headers = n.GetObjectValue(global::GitHub.Models.HookDelivery_request_headers.CreateFromDiscriminatorValue); } }, + { "payload", n => { Payload = n.GetObjectValue(global::GitHub.Models.HookDelivery_request_payload.CreateFromDiscriminatorValue); } }, }; } /// @@ -63,8 +65,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("headers", Headers); - writer.WriteObjectValue("payload", Payload); + writer.WriteObjectValue("headers", Headers); + writer.WriteObjectValue("payload", Payload); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/HookDelivery_request_headers.cs b/src/GitHub/Models/HookDelivery_request_headers.cs index c76d5ee4..ae0790b5 100644 --- a/src/GitHub/Models/HookDelivery_request_headers.cs +++ b/src/GitHub/Models/HookDelivery_request_headers.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The request headers sent with the webhook delivery. /// - public class HookDelivery_request_headers : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class HookDelivery_request_headers : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public HookDelivery_request_headers() { @@ -22,12 +24,12 @@ public HookDelivery_request_headers() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static HookDelivery_request_headers CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.HookDelivery_request_headers CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new HookDelivery_request_headers(); + return new global::GitHub.Models.HookDelivery_request_headers(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/HookDelivery_request_payload.cs b/src/GitHub/Models/HookDelivery_request_payload.cs index 50841e30..17ceac78 100644 --- a/src/GitHub/Models/HookDelivery_request_payload.cs +++ b/src/GitHub/Models/HookDelivery_request_payload.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The webhook payload. /// - public class HookDelivery_request_payload : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class HookDelivery_request_payload : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public HookDelivery_request_payload() { @@ -22,12 +24,12 @@ public HookDelivery_request_payload() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static HookDelivery_request_payload CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.HookDelivery_request_payload CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new HookDelivery_request_payload(); + return new global::GitHub.Models.HookDelivery_request_payload(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/HookDelivery_response.cs b/src/GitHub/Models/HookDelivery_response.cs index abe42107..cc5aa9f6 100644 --- a/src/GitHub/Models/HookDelivery_response.cs +++ b/src/GitHub/Models/HookDelivery_response.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class HookDelivery_response : IAdditionalDataHolder, IParsable + public partial class HookDelivery_response : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,10 +16,10 @@ public class HookDelivery_response : IAdditionalDataHolder, IParsable /// The response headers received when the delivery was made. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public HookDelivery_response_headers? Headers { get; set; } + public global::GitHub.Models.HookDelivery_response_headers? Headers { get; set; } #nullable restore #else - public HookDelivery_response_headers Headers { get; set; } + public global::GitHub.Models.HookDelivery_response_headers Headers { get; set; } #endif /// The response payload received. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -28,7 +30,7 @@ public class HookDelivery_response : IAdditionalDataHolder, IParsable public string Payload { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public HookDelivery_response() { @@ -37,12 +39,12 @@ public HookDelivery_response() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static HookDelivery_response CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.HookDelivery_response CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new HookDelivery_response(); + return new global::GitHub.Models.HookDelivery_response(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"headers", n => { Headers = n.GetObjectValue(HookDelivery_response_headers.CreateFromDiscriminatorValue); } }, - {"payload", n => { Payload = n.GetStringValue(); } }, + { "headers", n => { Headers = n.GetObjectValue(global::GitHub.Models.HookDelivery_response_headers.CreateFromDiscriminatorValue); } }, + { "payload", n => { Payload = n.GetStringValue(); } }, }; } /// @@ -63,7 +65,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("headers", Headers); + writer.WriteObjectValue("headers", Headers); writer.WriteStringValue("payload", Payload); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/HookDelivery_response_headers.cs b/src/GitHub/Models/HookDelivery_response_headers.cs index 9c977f16..1bebca7e 100644 --- a/src/GitHub/Models/HookDelivery_response_headers.cs +++ b/src/GitHub/Models/HookDelivery_response_headers.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The response headers received when the delivery was made. /// - public class HookDelivery_response_headers : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class HookDelivery_response_headers : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public HookDelivery_response_headers() { @@ -22,12 +24,12 @@ public HookDelivery_response_headers() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static HookDelivery_response_headers CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.HookDelivery_response_headers CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new HookDelivery_response_headers(); + return new global::GitHub.Models.HookDelivery_response_headers(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/HookResponse.cs b/src/GitHub/Models/HookResponse.cs index e316e08b..c6372c69 100644 --- a/src/GitHub/Models/HookResponse.cs +++ b/src/GitHub/Models/HookResponse.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class HookResponse : IAdditionalDataHolder, IParsable + public partial class HookResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,7 +32,7 @@ public class HookResponse : IAdditionalDataHolder, IParsable public string Status { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public HookResponse() { @@ -39,12 +41,12 @@ public HookResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static HookResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.HookResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new HookResponse(); + return new global::GitHub.Models.HookResponse(); } /// /// The deserialization information for the current model @@ -54,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetIntValue(); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"status", n => { Status = n.GetStringValue(); } }, + { "code", n => { Code = n.GetIntValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "status", n => { Status = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Hovercard.cs b/src/GitHub/Models/Hovercard.cs index b44ffcc2..bad0bd71 100644 --- a/src/GitHub/Models/Hovercard.cs +++ b/src/GitHub/Models/Hovercard.cs @@ -1,27 +1,29 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Hovercard /// - public class Hovercard : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Hovercard : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The contexts property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Contexts { get; set; } + public List? Contexts { get; set; } #nullable restore #else - public List Contexts { get; set; } + public List Contexts { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Hovercard() { @@ -30,12 +32,12 @@ public Hovercard() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Hovercard CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Hovercard CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Hovercard(); + return new global::GitHub.Models.Hovercard(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"contexts", n => { Contexts = n.GetCollectionOfObjectValues(Hovercard_contexts.CreateFromDiscriminatorValue)?.ToList(); } }, + { "contexts", n => { Contexts = n.GetCollectionOfObjectValues(global::GitHub.Models.Hovercard_contexts.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("contexts", Contexts); + writer.WriteCollectionOfObjectValues("contexts", Contexts); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/Hovercard_contexts.cs b/src/GitHub/Models/Hovercard_contexts.cs index 57a721fc..cb2daf1d 100644 --- a/src/GitHub/Models/Hovercard_contexts.cs +++ b/src/GitHub/Models/Hovercard_contexts.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Hovercard_contexts : IAdditionalDataHolder, IParsable + public partial class Hovercard_contexts : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class Hovercard_contexts : IAdditionalDataHolder, IParsable public string Octicon { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Hovercard_contexts() { @@ -37,12 +39,12 @@ public Hovercard_contexts() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Hovercard_contexts CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Hovercard_contexts CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Hovercard_contexts(); + return new global::GitHub.Models.Hovercard_contexts(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"message", n => { Message = n.GetStringValue(); } }, - {"octicon", n => { Octicon = n.GetStringValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "octicon", n => { Octicon = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Import.cs b/src/GitHub/Models/Import.cs index 9be4d3b2..b478f90c 100644 --- a/src/GitHub/Models/Import.cs +++ b/src/GitHub/Models/Import.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A repository import from an external source. /// - public class Import : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Import : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -67,10 +69,10 @@ public class Import : IAdditionalDataHolder, IParsable /// The project_choices property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ProjectChoices { get; set; } + public List? ProjectChoices { get; set; } #nullable restore #else - public List ProjectChoices { get; set; } + public List ProjectChoices { get; set; } #endif /// The push_percent property public int? PushPercent { get; set; } @@ -83,7 +85,7 @@ public class Import : IAdditionalDataHolder, IParsable public string RepositoryUrl { get; set; } #endif /// The status property - public Import_status? Status { get; set; } + public global::GitHub.Models.Import_status? Status { get; set; } /// The status_text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -143,7 +145,7 @@ public class Import : IAdditionalDataHolder, IParsable public string VcsUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Import() { @@ -152,12 +154,12 @@ public Import() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Import CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Import CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Import(); + return new global::GitHub.Models.Import(); } /// /// The deserialization information for the current model @@ -167,29 +169,29 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"authors_count", n => { AuthorsCount = n.GetIntValue(); } }, - {"authors_url", n => { AuthorsUrl = n.GetStringValue(); } }, - {"commit_count", n => { CommitCount = n.GetIntValue(); } }, - {"error_message", n => { ErrorMessage = n.GetStringValue(); } }, - {"failed_step", n => { FailedStep = n.GetStringValue(); } }, - {"has_large_files", n => { HasLargeFiles = n.GetBoolValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"import_percent", n => { ImportPercent = n.GetIntValue(); } }, - {"large_files_count", n => { LargeFilesCount = n.GetIntValue(); } }, - {"large_files_size", n => { LargeFilesSize = n.GetIntValue(); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"project_choices", n => { ProjectChoices = n.GetCollectionOfObjectValues(Import_project_choices.CreateFromDiscriminatorValue)?.ToList(); } }, - {"push_percent", n => { PushPercent = n.GetIntValue(); } }, - {"repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, - {"status_text", n => { StatusText = n.GetStringValue(); } }, - {"svc_root", n => { SvcRoot = n.GetStringValue(); } }, - {"svn_root", n => { SvnRoot = n.GetStringValue(); } }, - {"tfvc_project", n => { TfvcProject = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"use_lfs", n => { UseLfs = n.GetBoolValue(); } }, - {"vcs", n => { Vcs = n.GetStringValue(); } }, - {"vcs_url", n => { VcsUrl = n.GetStringValue(); } }, + { "authors_count", n => { AuthorsCount = n.GetIntValue(); } }, + { "authors_url", n => { AuthorsUrl = n.GetStringValue(); } }, + { "commit_count", n => { CommitCount = n.GetIntValue(); } }, + { "error_message", n => { ErrorMessage = n.GetStringValue(); } }, + { "failed_step", n => { FailedStep = n.GetStringValue(); } }, + { "has_large_files", n => { HasLargeFiles = n.GetBoolValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "import_percent", n => { ImportPercent = n.GetIntValue(); } }, + { "large_files_count", n => { LargeFilesCount = n.GetIntValue(); } }, + { "large_files_size", n => { LargeFilesSize = n.GetIntValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "project_choices", n => { ProjectChoices = n.GetCollectionOfObjectValues(global::GitHub.Models.Import_project_choices.CreateFromDiscriminatorValue)?.AsList(); } }, + { "push_percent", n => { PushPercent = n.GetIntValue(); } }, + { "repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + { "status_text", n => { StatusText = n.GetStringValue(); } }, + { "svc_root", n => { SvcRoot = n.GetStringValue(); } }, + { "svn_root", n => { SvnRoot = n.GetStringValue(); } }, + { "tfvc_project", n => { TfvcProject = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "use_lfs", n => { UseLfs = n.GetBoolValue(); } }, + { "vcs", n => { Vcs = n.GetStringValue(); } }, + { "vcs_url", n => { VcsUrl = n.GetStringValue(); } }, }; } /// @@ -210,10 +212,10 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("large_files_count", LargeFilesCount); writer.WriteIntValue("large_files_size", LargeFilesSize); writer.WriteStringValue("message", Message); - writer.WriteCollectionOfObjectValues("project_choices", ProjectChoices); + writer.WriteCollectionOfObjectValues("project_choices", ProjectChoices); writer.WriteIntValue("push_percent", PushPercent); writer.WriteStringValue("repository_url", RepositoryUrl); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("status", Status); writer.WriteStringValue("status_text", StatusText); writer.WriteStringValue("svc_root", SvcRoot); writer.WriteStringValue("svn_root", SvnRoot); diff --git a/src/GitHub/Models/Import_project_choices.cs b/src/GitHub/Models/Import_project_choices.cs index ff81c648..ebccff6f 100644 --- a/src/GitHub/Models/Import_project_choices.cs +++ b/src/GitHub/Models/Import_project_choices.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Import_project_choices : IAdditionalDataHolder, IParsable + public partial class Import_project_choices : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class Import_project_choices : IAdditionalDataHolder, IParsable public string Vcs { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Import_project_choices() { @@ -45,12 +47,12 @@ public Import_project_choices() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Import_project_choices CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Import_project_choices CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Import_project_choices(); + return new global::GitHub.Models.Import_project_choices(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"human_name", n => { HumanName = n.GetStringValue(); } }, - {"tfvc_project", n => { TfvcProject = n.GetStringValue(); } }, - {"vcs", n => { Vcs = n.GetStringValue(); } }, + { "human_name", n => { HumanName = n.GetStringValue(); } }, + { "tfvc_project", n => { TfvcProject = n.GetStringValue(); } }, + { "vcs", n => { Vcs = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Import_status.cs b/src/GitHub/Models/Import_status.cs index 51e1f9c9..578b5466 100644 --- a/src/GitHub/Models/Import_status.cs +++ b/src/GitHub/Models/Import_status.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum Import_status #pragma warning restore CS1591 diff --git a/src/GitHub/Models/Installation.cs b/src/GitHub/Models/Installation.cs index 2a33fc5f..415dc47a 100644 --- a/src/GitHub/Models/Installation.cs +++ b/src/GitHub/Models/Installation.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Installation /// - public class Installation : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Installation : IAdditionalDataHolder, IParsable { /// The access_tokens_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -21,10 +23,10 @@ public class Installation : IAdditionalDataHolder, IParsable /// The account property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Installation_account? Account { get; set; } + public global::GitHub.Models.Installation.Installation_account? Account { get; set; } #nullable restore #else - public Installation_account Account { get; set; } + public global::GitHub.Models.Installation.Installation_account Account { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -71,10 +73,10 @@ public class Installation : IAdditionalDataHolder, IParsable /// The permissions granted to the user access token. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public AppPermissions? Permissions { get; set; } + public global::GitHub.Models.AppPermissions? Permissions { get; set; } #nullable restore #else - public AppPermissions Permissions { get; set; } + public global::GitHub.Models.AppPermissions Permissions { get; set; } #endif /// The repositories_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -85,7 +87,7 @@ public class Installation : IAdditionalDataHolder, IParsable public string RepositoriesUrl { get; set; } #endif /// Describe whether all repositories have been selected or there's a selection involved - public Installation_repository_selection? RepositorySelection { get; set; } + public global::GitHub.Models.Installation_repository_selection? RepositorySelection { get; set; } /// The single_file_name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -107,10 +109,10 @@ public class Installation : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? SuspendedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser? SuspendedBy { get; set; } #nullable restore #else - public NullableSimpleUser SuspendedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser SuspendedBy { get; set; } #endif /// The ID of the user or organization this token is being scoped to. public int? TargetId { get; set; } @@ -125,7 +127,7 @@ public class Installation : IAdditionalDataHolder, IParsable /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Installation() { @@ -134,12 +136,12 @@ public Installation() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Installation CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Installation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Installation(); + return new global::GitHub.Models.Installation(); } /// /// The deserialization information for the current model @@ -149,26 +151,26 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"access_tokens_url", n => { AccessTokensUrl = n.GetStringValue(); } }, - {"account", n => { Account = n.GetObjectValue(Installation_account.CreateFromDiscriminatorValue); } }, - {"app_id", n => { AppId = n.GetIntValue(); } }, - {"app_slug", n => { AppSlug = n.GetStringValue(); } }, - {"contact_email", n => { ContactEmail = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"events", n => { Events = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"has_multiple_single_files", n => { HasMultipleSingleFiles = n.GetBoolValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"permissions", n => { Permissions = n.GetObjectValue(AppPermissions.CreateFromDiscriminatorValue); } }, - {"repositories_url", n => { RepositoriesUrl = n.GetStringValue(); } }, - {"repository_selection", n => { RepositorySelection = n.GetEnumValue(); } }, - {"single_file_name", n => { SingleFileName = n.GetStringValue(); } }, - {"single_file_paths", n => { SingleFilePaths = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"suspended_at", n => { SuspendedAt = n.GetDateTimeOffsetValue(); } }, - {"suspended_by", n => { SuspendedBy = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"target_id", n => { TargetId = n.GetIntValue(); } }, - {"target_type", n => { TargetType = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "access_tokens_url", n => { AccessTokensUrl = n.GetStringValue(); } }, + { "account", n => { Account = n.GetObjectValue(global::GitHub.Models.Installation.Installation_account.CreateFromDiscriminatorValue); } }, + { "app_id", n => { AppId = n.GetIntValue(); } }, + { "app_slug", n => { AppSlug = n.GetStringValue(); } }, + { "contact_email", n => { ContactEmail = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "events", n => { Events = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "has_multiple_single_files", n => { HasMultipleSingleFiles = n.GetBoolValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.AppPermissions.CreateFromDiscriminatorValue); } }, + { "repositories_url", n => { RepositoriesUrl = n.GetStringValue(); } }, + { "repository_selection", n => { RepositorySelection = n.GetEnumValue(); } }, + { "single_file_name", n => { SingleFileName = n.GetStringValue(); } }, + { "single_file_paths", n => { SingleFilePaths = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "suspended_at", n => { SuspendedAt = n.GetDateTimeOffsetValue(); } }, + { "suspended_by", n => { SuspendedBy = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "target_id", n => { TargetId = n.GetIntValue(); } }, + { "target_type", n => { TargetType = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, }; } /// @@ -179,7 +181,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("access_tokens_url", AccessTokensUrl); - writer.WriteObjectValue("account", Account); + writer.WriteObjectValue("account", Account); writer.WriteIntValue("app_id", AppId); writer.WriteStringValue("app_slug", AppSlug); writer.WriteStringValue("contact_email", ContactEmail); @@ -188,50 +190,51 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("has_multiple_single_files", HasMultipleSingleFiles); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteIntValue("id", Id); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("permissions", Permissions); writer.WriteStringValue("repositories_url", RepositoriesUrl); - writer.WriteEnumValue("repository_selection", RepositorySelection); + writer.WriteEnumValue("repository_selection", RepositorySelection); writer.WriteStringValue("single_file_name", SingleFileName); writer.WriteCollectionOfPrimitiveValues("single_file_paths", SingleFilePaths); writer.WriteDateTimeOffsetValue("suspended_at", SuspendedAt); - writer.WriteObjectValue("suspended_by", SuspendedBy); + writer.WriteObjectValue("suspended_by", SuspendedBy); writer.WriteIntValue("target_id", TargetId); writer.WriteStringValue("target_type", TargetType); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteAdditionalData(AdditionalData); } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class Installation_account : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Installation_account : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Enterprise? Enterprise { get; set; } + public global::GitHub.Models.Enterprise? Enterprise { get; set; } #nullable restore #else - public GitHub.Models.Enterprise Enterprise { get; set; } + public global::GitHub.Models.Enterprise Enterprise { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SimpleUser? SimpleUser { get; set; } + public global::GitHub.Models.SimpleUser? SimpleUser { get; set; } #nullable restore #else - public GitHub.Models.SimpleUser SimpleUser { get; set; } + public global::GitHub.Models.SimpleUser SimpleUser { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Installation_account CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Installation.Installation_account CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - var result = new Installation_account(); - result.Enterprise = new GitHub.Models.Enterprise(); - result.SimpleUser = new GitHub.Models.SimpleUser(); + var result = new global::GitHub.Models.Installation.Installation_account(); + result.Enterprise = new global::GitHub.Models.Enterprise(); + result.SimpleUser = new global::GitHub.Models.SimpleUser(); return result; } /// @@ -253,7 +256,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue(null, Enterprise, SimpleUser); + writer.WriteObjectValue(null, Enterprise, SimpleUser); } } } diff --git a/src/GitHub/Models/InstallationToken.cs b/src/GitHub/Models/InstallationToken.cs index 7daa5802..5d2333e8 100644 --- a/src/GitHub/Models/InstallationToken.cs +++ b/src/GitHub/Models/InstallationToken.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Authentication token for a GitHub App installed on a user or org. /// - public class InstallationToken : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InstallationToken : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -25,21 +27,21 @@ public class InstallationToken : IAdditionalDataHolder, IParsable /// The permissions granted to the user access token. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public AppPermissions? Permissions { get; set; } + public global::GitHub.Models.AppPermissions? Permissions { get; set; } #nullable restore #else - public AppPermissions Permissions { get; set; } + public global::GitHub.Models.AppPermissions Permissions { get; set; } #endif /// The repositories property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Repositories { get; set; } + public List? Repositories { get; set; } #nullable restore #else - public List Repositories { get; set; } + public List Repositories { get; set; } #endif /// The repository_selection property - public InstallationToken_repository_selection? RepositorySelection { get; set; } + public global::GitHub.Models.InstallationToken_repository_selection? RepositorySelection { get; set; } /// The single_file property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -65,7 +67,7 @@ public class InstallationToken : IAdditionalDataHolder, IParsable public string Token { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public InstallationToken() { @@ -74,12 +76,12 @@ public InstallationToken() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static InstallationToken CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.InstallationToken CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new InstallationToken(); + return new global::GitHub.Models.InstallationToken(); } /// /// The deserialization information for the current model @@ -89,14 +91,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"expires_at", n => { ExpiresAt = n.GetStringValue(); } }, - {"has_multiple_single_files", n => { HasMultipleSingleFiles = n.GetBoolValue(); } }, - {"permissions", n => { Permissions = n.GetObjectValue(AppPermissions.CreateFromDiscriminatorValue); } }, - {"repositories", n => { Repositories = n.GetCollectionOfObjectValues(Repository.CreateFromDiscriminatorValue)?.ToList(); } }, - {"repository_selection", n => { RepositorySelection = n.GetEnumValue(); } }, - {"single_file", n => { SingleFile = n.GetStringValue(); } }, - {"single_file_paths", n => { SingleFilePaths = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"token", n => { Token = n.GetStringValue(); } }, + { "expires_at", n => { ExpiresAt = n.GetStringValue(); } }, + { "has_multiple_single_files", n => { HasMultipleSingleFiles = n.GetBoolValue(); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.AppPermissions.CreateFromDiscriminatorValue); } }, + { "repositories", n => { Repositories = n.GetCollectionOfObjectValues(global::GitHub.Models.Repository.CreateFromDiscriminatorValue)?.AsList(); } }, + { "repository_selection", n => { RepositorySelection = n.GetEnumValue(); } }, + { "single_file", n => { SingleFile = n.GetStringValue(); } }, + { "single_file_paths", n => { SingleFilePaths = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "token", n => { Token = n.GetStringValue(); } }, }; } /// @@ -108,9 +110,9 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("expires_at", ExpiresAt); writer.WriteBoolValue("has_multiple_single_files", HasMultipleSingleFiles); - writer.WriteObjectValue("permissions", Permissions); - writer.WriteCollectionOfObjectValues("repositories", Repositories); - writer.WriteEnumValue("repository_selection", RepositorySelection); + writer.WriteObjectValue("permissions", Permissions); + writer.WriteCollectionOfObjectValues("repositories", Repositories); + writer.WriteEnumValue("repository_selection", RepositorySelection); writer.WriteStringValue("single_file", SingleFile); writer.WriteCollectionOfPrimitiveValues("single_file_paths", SingleFilePaths); writer.WriteStringValue("token", Token); diff --git a/src/GitHub/Models/InstallationToken_repository_selection.cs b/src/GitHub/Models/InstallationToken_repository_selection.cs index 33cea9ca..b985b428 100644 --- a/src/GitHub/Models/InstallationToken_repository_selection.cs +++ b/src/GitHub/Models/InstallationToken_repository_selection.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum InstallationToken_repository_selection #pragma warning restore CS1591 diff --git a/src/GitHub/Models/Installation_repository_selection.cs b/src/GitHub/Models/Installation_repository_selection.cs index e748550a..a2dd89bd 100644 --- a/src/GitHub/Models/Installation_repository_selection.cs +++ b/src/GitHub/Models/Installation_repository_selection.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Describe whether all repositories have been selected or there's a selection involved + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum Installation_repository_selection { [EnumMember(Value = "all")] diff --git a/src/GitHub/Models/Instances503Error.cs b/src/GitHub/Models/Instances503Error.cs index ff600859..496d2a94 100644 --- a/src/GitHub/Models/Instances503Error.cs +++ b/src/GitHub/Models/Instances503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Instances503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class Instances503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class Instances503Error : ApiException, IAdditionalDataHolder, IParsable #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Instances503Error() { @@ -46,12 +42,12 @@ public Instances503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Instances503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Instances503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Instances503Error(); + return new global::GitHub.Models.Instances503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/Integration.cs b/src/GitHub/Models/Integration.cs index 307eca72..8c596faf 100644 --- a/src/GitHub/Models/Integration.cs +++ b/src/GitHub/Models/Integration.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. /// - public class Integration : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Integration : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -85,10 +87,10 @@ public class Integration : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Owner { get; set; } + public global::GitHub.Models.NullableSimpleUser? Owner { get; set; } #nullable restore #else - public NullableSimpleUser Owner { get; set; } + public global::GitHub.Models.NullableSimpleUser Owner { get; set; } #endif /// The pem property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -101,10 +103,10 @@ public class Integration : IAdditionalDataHolder, IParsable /// The set of permissions for the GitHub app #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Integration_permissions? Permissions { get; set; } + public global::GitHub.Models.Integration_permissions? Permissions { get; set; } #nullable restore #else - public Integration_permissions Permissions { get; set; } + public global::GitHub.Models.Integration_permissions Permissions { get; set; } #endif /// The slug name of the GitHub app #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +127,7 @@ public class Integration : IAdditionalDataHolder, IParsable public string WebhookSecret { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Integration() { @@ -134,12 +136,12 @@ public Integration() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Integration CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Integration CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Integration(); + return new global::GitHub.Models.Integration(); } /// /// The deserialization information for the current model @@ -149,23 +151,23 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"client_id", n => { ClientId = n.GetStringValue(); } }, - {"client_secret", n => { ClientSecret = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"events", n => { Events = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"external_url", n => { ExternalUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"installations_count", n => { InstallationsCount = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"pem", n => { Pem = n.GetStringValue(); } }, - {"permissions", n => { Permissions = n.GetObjectValue(Integration_permissions.CreateFromDiscriminatorValue); } }, - {"slug", n => { Slug = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"webhook_secret", n => { WebhookSecret = n.GetStringValue(); } }, + { "client_id", n => { ClientId = n.GetStringValue(); } }, + { "client_secret", n => { ClientSecret = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "events", n => { Events = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "external_url", n => { ExternalUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "installations_count", n => { InstallationsCount = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "pem", n => { Pem = n.GetStringValue(); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.Integration_permissions.CreateFromDiscriminatorValue); } }, + { "slug", n => { Slug = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "webhook_secret", n => { WebhookSecret = n.GetStringValue(); } }, }; } /// @@ -186,9 +188,9 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("installations_count", InstallationsCount); writer.WriteStringValue("name", Name); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("owner", Owner); + writer.WriteObjectValue("owner", Owner); writer.WriteStringValue("pem", Pem); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("permissions", Permissions); writer.WriteStringValue("slug", Slug); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("webhook_secret", WebhookSecret); diff --git a/src/GitHub/Models/IntegrationInstallationRequest.cs b/src/GitHub/Models/IntegrationInstallationRequest.cs index fef456cd..926acdac 100644 --- a/src/GitHub/Models/IntegrationInstallationRequest.cs +++ b/src/GitHub/Models/IntegrationInstallationRequest.cs @@ -1,22 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Request to install an integration on a target /// - public class IntegrationInstallationRequest : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class IntegrationInstallationRequest : IAdditionalDataHolder, IParsable { /// The account property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public IntegrationInstallationRequest_account? Account { get; set; } + public global::GitHub.Models.IntegrationInstallationRequest.IntegrationInstallationRequest_account? Account { get; set; } #nullable restore #else - public IntegrationInstallationRequest_account Account { get; set; } + public global::GitHub.Models.IntegrationInstallationRequest.IntegrationInstallationRequest_account Account { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -35,13 +37,13 @@ public class IntegrationInstallationRequest : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Requester { get; set; } + public global::GitHub.Models.SimpleUser? Requester { get; set; } #nullable restore #else - public SimpleUser Requester { get; set; } + public global::GitHub.Models.SimpleUser Requester { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IntegrationInstallationRequest() { @@ -50,12 +52,12 @@ public IntegrationInstallationRequest() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IntegrationInstallationRequest CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.IntegrationInstallationRequest CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IntegrationInstallationRequest(); + return new global::GitHub.Models.IntegrationInstallationRequest(); } /// /// The deserialization information for the current model @@ -65,11 +67,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"account", n => { Account = n.GetObjectValue(IntegrationInstallationRequest_account.CreateFromDiscriminatorValue); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"requester", n => { Requester = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, + { "account", n => { Account = n.GetObjectValue(global::GitHub.Models.IntegrationInstallationRequest.IntegrationInstallationRequest_account.CreateFromDiscriminatorValue); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "requester", n => { Requester = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -79,45 +81,46 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("account", Account); + writer.WriteObjectValue("account", Account); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteIntValue("id", Id); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("requester", Requester); + writer.WriteObjectValue("requester", Requester); writer.WriteAdditionalData(AdditionalData); } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class IntegrationInstallationRequest_account : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class IntegrationInstallationRequest_account : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Enterprise? Enterprise { get; set; } + public global::GitHub.Models.Enterprise? Enterprise { get; set; } #nullable restore #else - public GitHub.Models.Enterprise Enterprise { get; set; } + public global::GitHub.Models.Enterprise Enterprise { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SimpleUser? SimpleUser { get; set; } + public global::GitHub.Models.SimpleUser? SimpleUser { get; set; } #nullable restore #else - public GitHub.Models.SimpleUser SimpleUser { get; set; } + public global::GitHub.Models.SimpleUser SimpleUser { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IntegrationInstallationRequest_account CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.IntegrationInstallationRequest.IntegrationInstallationRequest_account CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - var result = new IntegrationInstallationRequest_account(); - result.Enterprise = new GitHub.Models.Enterprise(); - result.SimpleUser = new GitHub.Models.SimpleUser(); + var result = new global::GitHub.Models.IntegrationInstallationRequest.IntegrationInstallationRequest_account(); + result.Enterprise = new global::GitHub.Models.Enterprise(); + result.SimpleUser = new global::GitHub.Models.SimpleUser(); return result; } /// @@ -139,7 +142,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue(null, Enterprise, SimpleUser); + writer.WriteObjectValue(null, Enterprise, SimpleUser); } } } diff --git a/src/GitHub/Models/Integration_permissions.cs b/src/GitHub/Models/Integration_permissions.cs index 7b1866bb..d0ee9123 100644 --- a/src/GitHub/Models/Integration_permissions.cs +++ b/src/GitHub/Models/Integration_permissions.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The set of permissions for the GitHub app /// - public class Integration_permissions : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Integration_permissions : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -53,7 +55,7 @@ public class Integration_permissions : IAdditionalDataHolder, IParsable public string Metadata { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Integration_permissions() { @@ -62,12 +64,12 @@ public Integration_permissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Integration_permissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Integration_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Integration_permissions(); + return new global::GitHub.Models.Integration_permissions(); } /// /// The deserialization information for the current model @@ -77,11 +79,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"checks", n => { Checks = n.GetStringValue(); } }, - {"contents", n => { Contents = n.GetStringValue(); } }, - {"deployments", n => { Deployments = n.GetStringValue(); } }, - {"issues", n => { Issues = n.GetStringValue(); } }, - {"metadata", n => { Metadata = n.GetStringValue(); } }, + { "checks", n => { Checks = n.GetStringValue(); } }, + { "contents", n => { Contents = n.GetStringValue(); } }, + { "deployments", n => { Deployments = n.GetStringValue(); } }, + { "issues", n => { Issues = n.GetStringValue(); } }, + { "metadata", n => { Metadata = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/InteractionExpiry.cs b/src/GitHub/Models/InteractionExpiry.cs index 83e4860d..9bbfd19c 100644 --- a/src/GitHub/Models/InteractionExpiry.cs +++ b/src/GitHub/Models/InteractionExpiry.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The duration of the interaction restriction. Default: `one_day`. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum InteractionExpiry { [EnumMember(Value = "one_day")] diff --git a/src/GitHub/Models/InteractionGroup.cs b/src/GitHub/Models/InteractionGroup.cs index cd1f3591..fad9564d 100644 --- a/src/GitHub/Models/InteractionGroup.cs +++ b/src/GitHub/Models/InteractionGroup.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum InteractionGroup { [EnumMember(Value = "existing_users")] diff --git a/src/GitHub/Models/InteractionLimit.cs b/src/GitHub/Models/InteractionLimit.cs index 03a9bd63..fd0ffa3a 100644 --- a/src/GitHub/Models/InteractionLimit.cs +++ b/src/GitHub/Models/InteractionLimit.cs @@ -1,23 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Limit interactions to a specific type of user for a specified duration /// - public class InteractionLimit : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InteractionLimit : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The duration of the interaction restriction. Default: `one_day`. - public InteractionExpiry? Expiry { get; set; } + public global::GitHub.Models.InteractionExpiry? Expiry { get; set; } /// The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. - public InteractionGroup? Limit { get; set; } + public global::GitHub.Models.InteractionGroup? Limit { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public InteractionLimit() { @@ -26,12 +28,12 @@ public InteractionLimit() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static InteractionLimit CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.InteractionLimit CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new InteractionLimit(); + return new global::GitHub.Models.InteractionLimit(); } /// /// The deserialization information for the current model @@ -41,8 +43,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"expiry", n => { Expiry = n.GetEnumValue(); } }, - {"limit", n => { Limit = n.GetEnumValue(); } }, + { "expiry", n => { Expiry = n.GetEnumValue(); } }, + { "limit", n => { Limit = n.GetEnumValue(); } }, }; } /// @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("expiry", Expiry); - writer.WriteEnumValue("limit", Limit); + writer.WriteEnumValue("expiry", Expiry); + writer.WriteEnumValue("limit", Limit); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/InteractionLimitResponse.cs b/src/GitHub/Models/InteractionLimitResponse.cs index 07502a9c..a21a0420 100644 --- a/src/GitHub/Models/InteractionLimitResponse.cs +++ b/src/GitHub/Models/InteractionLimitResponse.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Interaction limit settings. /// - public class InteractionLimitResponse : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InteractionLimitResponse : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The expires_at property public DateTimeOffset? ExpiresAt { get; set; } /// The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. - public InteractionGroup? Limit { get; set; } + public global::GitHub.Models.InteractionGroup? Limit { get; set; } /// The origin property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -25,7 +27,7 @@ public class InteractionLimitResponse : IAdditionalDataHolder, IParsable public string Origin { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public InteractionLimitResponse() { @@ -34,12 +36,12 @@ public InteractionLimitResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static InteractionLimitResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.InteractionLimitResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new InteractionLimitResponse(); + return new global::GitHub.Models.InteractionLimitResponse(); } /// /// The deserialization information for the current model @@ -49,9 +51,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"expires_at", n => { ExpiresAt = n.GetDateTimeOffsetValue(); } }, - {"limit", n => { Limit = n.GetEnumValue(); } }, - {"origin", n => { Origin = n.GetStringValue(); } }, + { "expires_at", n => { ExpiresAt = n.GetDateTimeOffsetValue(); } }, + { "limit", n => { Limit = n.GetEnumValue(); } }, + { "origin", n => { Origin = n.GetStringValue(); } }, }; } /// @@ -62,7 +64,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("expires_at", ExpiresAt); - writer.WriteEnumValue("limit", Limit); + writer.WriteEnumValue("limit", Limit); writer.WriteStringValue("origin", Origin); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/Issue.cs b/src/GitHub/Models/Issue.cs index e135ee36..c602d5c7 100644 --- a/src/GitHub/Models/Issue.cs +++ b/src/GitHub/Models/Issue.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Issues are a great way to keep track of tasks, enhancements, and bugs for your projects. /// - public class Issue : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Issue : IAdditionalDataHolder, IParsable { /// The active_lock_reason property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -23,21 +25,21 @@ public class Issue : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Assignee { get; set; } + public global::GitHub.Models.NullableSimpleUser? Assignee { get; set; } #nullable restore #else - public NullableSimpleUser Assignee { get; set; } + public global::GitHub.Models.NullableSimpleUser Assignee { get; set; } #endif /// The assignees property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Assignees { get; set; } + public List? Assignees { get; set; } #nullable restore #else - public List Assignees { get; set; } + public List Assignees { get; set; } #endif /// How the author is associated with the repository. - public GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } + public global::GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } /// Contents of the issue #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -67,10 +69,10 @@ public class Issue : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? ClosedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser? ClosedBy { get; set; } #nullable restore #else - public NullableSimpleUser ClosedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser ClosedBy { get; set; } #endif /// The comments property public int? Comments { get; set; } @@ -125,10 +127,10 @@ public class Issue : IAdditionalDataHolder, IParsable /// A collection of related issues and pull requests. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableMilestone? Milestone { get; set; } + public global::GitHub.Models.NullableMilestone? Milestone { get; set; } #nullable restore #else - public NullableMilestone Milestone { get; set; } + public global::GitHub.Models.NullableMilestone Milestone { get; set; } #endif /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,34 +145,34 @@ public class Issue : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// The pull_request property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Issue_pull_request? PullRequest { get; set; } + public global::GitHub.Models.Issue_pull_request? PullRequest { get; set; } #nullable restore #else - public Issue_pull_request PullRequest { get; set; } + public global::GitHub.Models.Issue_pull_request PullRequest { get; set; } #endif /// The reactions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ReactionRollup? Reactions { get; set; } + public global::GitHub.Models.ReactionRollup? Reactions { get; set; } #nullable restore #else - public ReactionRollup Reactions { get; set; } + public global::GitHub.Models.ReactionRollup Reactions { get; set; } #endif /// A repository on GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Repository? Repository { get; set; } + public global::GitHub.Models.Repository? Repository { get; set; } #nullable restore #else - public GitHub.Models.Repository Repository { get; set; } + public global::GitHub.Models.Repository Repository { get; set; } #endif /// The repository_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -189,7 +191,7 @@ public class Issue : IAdditionalDataHolder, IParsable public string State { get; set; } #endif /// The reason for the current state - public Issue_state_reason? StateReason { get; set; } + public global::GitHub.Models.Issue_state_reason? StateReason { get; set; } /// The timeline_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -219,13 +221,13 @@ public class Issue : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? User { get; set; } + public global::GitHub.Models.NullableSimpleUser? User { get; set; } #nullable restore #else - public NullableSimpleUser User { get; set; } + public global::GitHub.Models.NullableSimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Issue() { @@ -234,12 +236,12 @@ public Issue() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Issue CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Issue CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Issue(); + return new global::GitHub.Models.Issue(); } /// /// The deserialization information for the current model @@ -249,40 +251,40 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"active_lock_reason", n => { ActiveLockReason = n.GetStringValue(); } }, - {"assignee", n => { Assignee = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"assignees", n => { Assignees = n.GetCollectionOfObjectValues(SimpleUser.CreateFromDiscriminatorValue)?.ToList(); } }, - {"author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, - {"body", n => { Body = n.GetStringValue(); } }, - {"body_html", n => { BodyHtml = n.GetStringValue(); } }, - {"body_text", n => { BodyText = n.GetStringValue(); } }, - {"closed_at", n => { ClosedAt = n.GetDateTimeOffsetValue(); } }, - {"closed_by", n => { ClosedBy = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"comments", n => { Comments = n.GetIntValue(); } }, - {"comments_url", n => { CommentsUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"draft", n => { Draft = n.GetBoolValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"labels_url", n => { LabelsUrl = n.GetStringValue(); } }, - {"locked", n => { Locked = n.GetBoolValue(); } }, - {"milestone", n => { Milestone = n.GetObjectValue(NullableMilestone.CreateFromDiscriminatorValue); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"number", n => { Number = n.GetIntValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"pull_request", n => { PullRequest = n.GetObjectValue(Issue_pull_request.CreateFromDiscriminatorValue); } }, - {"reactions", n => { Reactions = n.GetObjectValue(ReactionRollup.CreateFromDiscriminatorValue); } }, - {"repository", n => { Repository = n.GetObjectValue(GitHub.Models.Repository.CreateFromDiscriminatorValue); } }, - {"repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, - {"state", n => { State = n.GetStringValue(); } }, - {"state_reason", n => { StateReason = n.GetEnumValue(); } }, - {"timeline_url", n => { TimelineUrl = n.GetStringValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "active_lock_reason", n => { ActiveLockReason = n.GetStringValue(); } }, + { "assignee", n => { Assignee = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "assignees", n => { Assignees = n.GetCollectionOfObjectValues(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue)?.AsList(); } }, + { "author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "body_html", n => { BodyHtml = n.GetStringValue(); } }, + { "body_text", n => { BodyText = n.GetStringValue(); } }, + { "closed_at", n => { ClosedAt = n.GetDateTimeOffsetValue(); } }, + { "closed_by", n => { ClosedBy = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "comments", n => { Comments = n.GetIntValue(); } }, + { "comments_url", n => { CommentsUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "draft", n => { Draft = n.GetBoolValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "labels_url", n => { LabelsUrl = n.GetStringValue(); } }, + { "locked", n => { Locked = n.GetBoolValue(); } }, + { "milestone", n => { Milestone = n.GetObjectValue(global::GitHub.Models.NullableMilestone.CreateFromDiscriminatorValue); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "number", n => { Number = n.GetIntValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "pull_request", n => { PullRequest = n.GetObjectValue(global::GitHub.Models.Issue_pull_request.CreateFromDiscriminatorValue); } }, + { "reactions", n => { Reactions = n.GetObjectValue(global::GitHub.Models.ReactionRollup.CreateFromDiscriminatorValue); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.Repository.CreateFromDiscriminatorValue); } }, + { "repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, + { "state", n => { State = n.GetStringValue(); } }, + { "state_reason", n => { StateReason = n.GetEnumValue(); } }, + { "timeline_url", n => { TimelineUrl = n.GetStringValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -293,14 +295,14 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("active_lock_reason", ActiveLockReason); - writer.WriteObjectValue("assignee", Assignee); - writer.WriteCollectionOfObjectValues("assignees", Assignees); - writer.WriteEnumValue("author_association", AuthorAssociation); + writer.WriteObjectValue("assignee", Assignee); + writer.WriteCollectionOfObjectValues("assignees", Assignees); + writer.WriteEnumValue("author_association", AuthorAssociation); writer.WriteStringValue("body", Body); writer.WriteStringValue("body_html", BodyHtml); writer.WriteStringValue("body_text", BodyText); writer.WriteDateTimeOffsetValue("closed_at", ClosedAt); - writer.WriteObjectValue("closed_by", ClosedBy); + writer.WriteObjectValue("closed_by", ClosedBy); writer.WriteIntValue("comments", Comments); writer.WriteStringValue("comments_url", CommentsUrl); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); @@ -311,21 +313,21 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteCollectionOfPrimitiveValues("labels", Labels); writer.WriteStringValue("labels_url", LabelsUrl); writer.WriteBoolValue("locked", Locked); - writer.WriteObjectValue("milestone", Milestone); + writer.WriteObjectValue("milestone", Milestone); writer.WriteStringValue("node_id", NodeId); writer.WriteIntValue("number", Number); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); - writer.WriteObjectValue("pull_request", PullRequest); - writer.WriteObjectValue("reactions", Reactions); - writer.WriteObjectValue("repository", Repository); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("pull_request", PullRequest); + writer.WriteObjectValue("reactions", Reactions); + writer.WriteObjectValue("repository", Repository); writer.WriteStringValue("repository_url", RepositoryUrl); writer.WriteStringValue("state", State); - writer.WriteEnumValue("state_reason", StateReason); + writer.WriteEnumValue("state_reason", StateReason); writer.WriteStringValue("timeline_url", TimelineUrl); writer.WriteStringValue("title", Title); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/Issue503Error.cs b/src/GitHub/Models/Issue503Error.cs index 9784cfe5..a683331a 100644 --- a/src/GitHub/Models/Issue503Error.cs +++ b/src/GitHub/Models/Issue503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Issue503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class Issue503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class Issue503Error : ApiException, IAdditionalDataHolder, IParsable #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Issue503Error() { @@ -46,12 +42,12 @@ public Issue503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Issue503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Issue503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Issue503Error(); + return new global::GitHub.Models.Issue503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/IssueComment.cs b/src/GitHub/Models/IssueComment.cs index 6d2fb991..63f9f124 100644 --- a/src/GitHub/Models/IssueComment.cs +++ b/src/GitHub/Models/IssueComment.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Comments provide a way for people to collaborate on an issue. /// - public class IssueComment : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class IssueComment : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// How the author is associated with the repository. - public GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } + public global::GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } /// Contents of the issue comment #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -69,18 +71,18 @@ public class IssueComment : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// The reactions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ReactionRollup? Reactions { get; set; } + public global::GitHub.Models.ReactionRollup? Reactions { get; set; } #nullable restore #else - public ReactionRollup Reactions { get; set; } + public global::GitHub.Models.ReactionRollup Reactions { get; set; } #endif /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } @@ -95,13 +97,13 @@ public class IssueComment : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? User { get; set; } + public global::GitHub.Models.NullableSimpleUser? User { get; set; } #nullable restore #else - public NullableSimpleUser User { get; set; } + public global::GitHub.Models.NullableSimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IssueComment() { @@ -110,12 +112,12 @@ public IssueComment() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IssueComment CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.IssueComment CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IssueComment(); + return new global::GitHub.Models.IssueComment(); } /// /// The deserialization information for the current model @@ -125,20 +127,20 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, - {"body", n => { Body = n.GetStringValue(); } }, - {"body_html", n => { BodyHtml = n.GetStringValue(); } }, - {"body_text", n => { BodyText = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"issue_url", n => { IssueUrl = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"reactions", n => { Reactions = n.GetObjectValue(ReactionRollup.CreateFromDiscriminatorValue); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "body_html", n => { BodyHtml = n.GetStringValue(); } }, + { "body_text", n => { BodyText = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "issue_url", n => { IssueUrl = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "reactions", n => { Reactions = n.GetObjectValue(global::GitHub.Models.ReactionRollup.CreateFromDiscriminatorValue); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -148,7 +150,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("author_association", AuthorAssociation); + writer.WriteEnumValue("author_association", AuthorAssociation); writer.WriteStringValue("body", Body); writer.WriteStringValue("body_html", BodyHtml); writer.WriteStringValue("body_text", BodyText); @@ -157,11 +159,11 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteLongValue("id", Id); writer.WriteStringValue("issue_url", IssueUrl); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); - writer.WriteObjectValue("reactions", Reactions); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("reactions", Reactions); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/IssueEvent.cs b/src/GitHub/Models/IssueEvent.cs index 333b7fc2..14d6cec1 100644 --- a/src/GitHub/Models/IssueEvent.cs +++ b/src/GitHub/Models/IssueEvent.cs @@ -1,43 +1,45 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Issue Event /// - public class IssueEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class IssueEvent : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Actor { get; set; } + public global::GitHub.Models.NullableSimpleUser? Actor { get; set; } #nullable restore #else - public NullableSimpleUser Actor { get; set; } + public global::GitHub.Models.NullableSimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Assignee { get; set; } + public global::GitHub.Models.NullableSimpleUser? Assignee { get; set; } #nullable restore #else - public NullableSimpleUser Assignee { get; set; } + public global::GitHub.Models.NullableSimpleUser Assignee { get; set; } #endif /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Assigner { get; set; } + public global::GitHub.Models.NullableSimpleUser? Assigner { get; set; } #nullable restore #else - public NullableSimpleUser Assigner { get; set; } + public global::GitHub.Models.NullableSimpleUser Assigner { get; set; } #endif /// How the author is associated with the repository. - public GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } + public global::GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } /// The commit_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -59,10 +61,10 @@ public class IssueEvent : IAdditionalDataHolder, IParsable /// The dismissed_review property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public IssueEventDismissedReview? DismissedReview { get; set; } + public global::GitHub.Models.IssueEventDismissedReview? DismissedReview { get; set; } #nullable restore #else - public IssueEventDismissedReview DismissedReview { get; set; } + public global::GitHub.Models.IssueEventDismissedReview DismissedReview { get; set; } #endif /// The event property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -77,18 +79,18 @@ public class IssueEvent : IAdditionalDataHolder, IParsable /// Issues are a great way to keep track of tasks, enhancements, and bugs for your projects. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIssue? Issue { get; set; } + public global::GitHub.Models.NullableIssue? Issue { get; set; } #nullable restore #else - public NullableIssue Issue { get; set; } + public global::GitHub.Models.NullableIssue Issue { get; set; } #endif /// Issue Event Label #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public IssueEventLabel? Label { get; set; } + public global::GitHub.Models.IssueEventLabel? Label { get; set; } #nullable restore #else - public IssueEventLabel Label { get; set; } + public global::GitHub.Models.IssueEventLabel Label { get; set; } #endif /// The lock_reason property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -101,10 +103,10 @@ public class IssueEvent : IAdditionalDataHolder, IParsable /// Issue Event Milestone #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public IssueEventMilestone? Milestone { get; set; } + public global::GitHub.Models.IssueEventMilestone? Milestone { get; set; } #nullable restore #else - public IssueEventMilestone Milestone { get; set; } + public global::GitHub.Models.IssueEventMilestone Milestone { get; set; } #endif /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -117,50 +119,50 @@ public class IssueEvent : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// Issue Event Project Card #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public IssueEventProjectCard? ProjectCard { get; set; } + public global::GitHub.Models.IssueEventProjectCard? ProjectCard { get; set; } #nullable restore #else - public IssueEventProjectCard ProjectCard { get; set; } + public global::GitHub.Models.IssueEventProjectCard ProjectCard { get; set; } #endif /// Issue Event Rename #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public IssueEventRename? Rename { get; set; } + public global::GitHub.Models.IssueEventRename? Rename { get; set; } #nullable restore #else - public IssueEventRename Rename { get; set; } + public global::GitHub.Models.IssueEventRename Rename { get; set; } #endif /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? RequestedReviewer { get; set; } + public global::GitHub.Models.NullableSimpleUser? RequestedReviewer { get; set; } #nullable restore #else - public NullableSimpleUser RequestedReviewer { get; set; } + public global::GitHub.Models.NullableSimpleUser RequestedReviewer { get; set; } #endif /// Groups of organization members that gives permissions on specified repositories. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Team? RequestedTeam { get; set; } + public global::GitHub.Models.Team? RequestedTeam { get; set; } #nullable restore #else - public Team RequestedTeam { get; set; } + public global::GitHub.Models.Team RequestedTeam { get; set; } #endif /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? ReviewRequester { get; set; } + public global::GitHub.Models.NullableSimpleUser? ReviewRequester { get; set; } #nullable restore #else - public NullableSimpleUser ReviewRequester { get; set; } + public global::GitHub.Models.NullableSimpleUser ReviewRequester { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -171,7 +173,7 @@ public class IssueEvent : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IssueEvent() { @@ -180,12 +182,12 @@ public IssueEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.IssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IssueEvent(); + return new global::GitHub.Models.IssueEvent(); } /// /// The deserialization information for the current model @@ -195,28 +197,28 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"assignee", n => { Assignee = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"assigner", n => { Assigner = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"dismissed_review", n => { DismissedReview = n.GetObjectValue(IssueEventDismissedReview.CreateFromDiscriminatorValue); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"issue", n => { Issue = n.GetObjectValue(NullableIssue.CreateFromDiscriminatorValue); } }, - {"label", n => { Label = n.GetObjectValue(IssueEventLabel.CreateFromDiscriminatorValue); } }, - {"lock_reason", n => { LockReason = n.GetStringValue(); } }, - {"milestone", n => { Milestone = n.GetObjectValue(IssueEventMilestone.CreateFromDiscriminatorValue); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"project_card", n => { ProjectCard = n.GetObjectValue(IssueEventProjectCard.CreateFromDiscriminatorValue); } }, - {"rename", n => { Rename = n.GetObjectValue(IssueEventRename.CreateFromDiscriminatorValue); } }, - {"requested_reviewer", n => { RequestedReviewer = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"requested_team", n => { RequestedTeam = n.GetObjectValue(Team.CreateFromDiscriminatorValue); } }, - {"review_requester", n => { ReviewRequester = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "assignee", n => { Assignee = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "assigner", n => { Assigner = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "dismissed_review", n => { DismissedReview = n.GetObjectValue(global::GitHub.Models.IssueEventDismissedReview.CreateFromDiscriminatorValue); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "issue", n => { Issue = n.GetObjectValue(global::GitHub.Models.NullableIssue.CreateFromDiscriminatorValue); } }, + { "label", n => { Label = n.GetObjectValue(global::GitHub.Models.IssueEventLabel.CreateFromDiscriminatorValue); } }, + { "lock_reason", n => { LockReason = n.GetStringValue(); } }, + { "milestone", n => { Milestone = n.GetObjectValue(global::GitHub.Models.IssueEventMilestone.CreateFromDiscriminatorValue); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "project_card", n => { ProjectCard = n.GetObjectValue(global::GitHub.Models.IssueEventProjectCard.CreateFromDiscriminatorValue); } }, + { "rename", n => { Rename = n.GetObjectValue(global::GitHub.Models.IssueEventRename.CreateFromDiscriminatorValue); } }, + { "requested_reviewer", n => { RequestedReviewer = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "requested_team", n => { RequestedTeam = n.GetObjectValue(global::GitHub.Models.Team.CreateFromDiscriminatorValue); } }, + { "review_requester", n => { ReviewRequester = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -226,27 +228,27 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); - writer.WriteObjectValue("assignee", Assignee); - writer.WriteObjectValue("assigner", Assigner); - writer.WriteEnumValue("author_association", AuthorAssociation); + writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("assignee", Assignee); + writer.WriteObjectValue("assigner", Assigner); + writer.WriteEnumValue("author_association", AuthorAssociation); writer.WriteStringValue("commit_id", CommitId); writer.WriteStringValue("commit_url", CommitUrl); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); - writer.WriteObjectValue("dismissed_review", DismissedReview); + writer.WriteObjectValue("dismissed_review", DismissedReview); writer.WriteStringValue("event", Event); writer.WriteLongValue("id", Id); - writer.WriteObjectValue("issue", Issue); - writer.WriteObjectValue("label", Label); + writer.WriteObjectValue("issue", Issue); + writer.WriteObjectValue("label", Label); writer.WriteStringValue("lock_reason", LockReason); - writer.WriteObjectValue("milestone", Milestone); + writer.WriteObjectValue("milestone", Milestone); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); - writer.WriteObjectValue("project_card", ProjectCard); - writer.WriteObjectValue("rename", Rename); - writer.WriteObjectValue("requested_reviewer", RequestedReviewer); - writer.WriteObjectValue("requested_team", RequestedTeam); - writer.WriteObjectValue("review_requester", ReviewRequester); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("project_card", ProjectCard); + writer.WriteObjectValue("rename", Rename); + writer.WriteObjectValue("requested_reviewer", RequestedReviewer); + writer.WriteObjectValue("requested_team", RequestedTeam); + writer.WriteObjectValue("review_requester", ReviewRequester); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/IssueEventDismissedReview.cs b/src/GitHub/Models/IssueEventDismissedReview.cs index 83a1408f..b8d75608 100644 --- a/src/GitHub/Models/IssueEventDismissedReview.cs +++ b/src/GitHub/Models/IssueEventDismissedReview.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class IssueEventDismissedReview : IAdditionalDataHolder, IParsable + public partial class IssueEventDismissedReview : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -38,7 +40,7 @@ public class IssueEventDismissedReview : IAdditionalDataHolder, IParsable public string State { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IssueEventDismissedReview() { @@ -47,12 +49,12 @@ public IssueEventDismissedReview() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IssueEventDismissedReview CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.IssueEventDismissedReview CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IssueEventDismissedReview(); + return new global::GitHub.Models.IssueEventDismissedReview(); } /// /// The deserialization information for the current model @@ -62,10 +64,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"dismissal_commit_id", n => { DismissalCommitId = n.GetStringValue(); } }, - {"dismissal_message", n => { DismissalMessage = n.GetStringValue(); } }, - {"review_id", n => { ReviewId = n.GetIntValue(); } }, - {"state", n => { State = n.GetStringValue(); } }, + { "dismissal_commit_id", n => { DismissalCommitId = n.GetStringValue(); } }, + { "dismissal_message", n => { DismissalMessage = n.GetStringValue(); } }, + { "review_id", n => { ReviewId = n.GetIntValue(); } }, + { "state", n => { State = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/IssueEventForIssue.cs b/src/GitHub/Models/IssueEventForIssue.cs index fa51f9dd..ad444923 100644 --- a/src/GitHub/Models/IssueEventForIssue.cs +++ b/src/GitHub/Models/IssueEventForIssue.cs @@ -1,160 +1,162 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// - /// Composed type wrapper for classes , , , , , , , , , , , , , , + /// Composed type wrapper for classes , , , , , , , , , , , , , , /// - public class IssueEventForIssue : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class IssueEventForIssue : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.AddedToProjectIssueEvent? AddedToProjectIssueEvent { get; set; } + public global::GitHub.Models.AddedToProjectIssueEvent? AddedToProjectIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.AddedToProjectIssueEvent AddedToProjectIssueEvent { get; set; } + public global::GitHub.Models.AddedToProjectIssueEvent AddedToProjectIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.AssignedIssueEvent? AssignedIssueEvent { get; set; } + public global::GitHub.Models.AssignedIssueEvent? AssignedIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.AssignedIssueEvent AssignedIssueEvent { get; set; } + public global::GitHub.Models.AssignedIssueEvent AssignedIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.ConvertedNoteToIssueIssueEvent? ConvertedNoteToIssueIssueEvent { get; set; } + public global::GitHub.Models.ConvertedNoteToIssueIssueEvent? ConvertedNoteToIssueIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.ConvertedNoteToIssueIssueEvent ConvertedNoteToIssueIssueEvent { get; set; } + public global::GitHub.Models.ConvertedNoteToIssueIssueEvent ConvertedNoteToIssueIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.DemilestonedIssueEvent? DemilestonedIssueEvent { get; set; } + public global::GitHub.Models.DemilestonedIssueEvent? DemilestonedIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.DemilestonedIssueEvent DemilestonedIssueEvent { get; set; } + public global::GitHub.Models.DemilestonedIssueEvent DemilestonedIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.LabeledIssueEvent? LabeledIssueEvent { get; set; } + public global::GitHub.Models.LabeledIssueEvent? LabeledIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.LabeledIssueEvent LabeledIssueEvent { get; set; } + public global::GitHub.Models.LabeledIssueEvent LabeledIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.LockedIssueEvent? LockedIssueEvent { get; set; } + public global::GitHub.Models.LockedIssueEvent? LockedIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.LockedIssueEvent LockedIssueEvent { get; set; } + public global::GitHub.Models.LockedIssueEvent LockedIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.MilestonedIssueEvent? MilestonedIssueEvent { get; set; } + public global::GitHub.Models.MilestonedIssueEvent? MilestonedIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.MilestonedIssueEvent MilestonedIssueEvent { get; set; } + public global::GitHub.Models.MilestonedIssueEvent MilestonedIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.MovedColumnInProjectIssueEvent? MovedColumnInProjectIssueEvent { get; set; } + public global::GitHub.Models.MovedColumnInProjectIssueEvent? MovedColumnInProjectIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.MovedColumnInProjectIssueEvent MovedColumnInProjectIssueEvent { get; set; } + public global::GitHub.Models.MovedColumnInProjectIssueEvent MovedColumnInProjectIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RemovedFromProjectIssueEvent? RemovedFromProjectIssueEvent { get; set; } + public global::GitHub.Models.RemovedFromProjectIssueEvent? RemovedFromProjectIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.RemovedFromProjectIssueEvent RemovedFromProjectIssueEvent { get; set; } + public global::GitHub.Models.RemovedFromProjectIssueEvent RemovedFromProjectIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RenamedIssueEvent? RenamedIssueEvent { get; set; } + public global::GitHub.Models.RenamedIssueEvent? RenamedIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.RenamedIssueEvent RenamedIssueEvent { get; set; } + public global::GitHub.Models.RenamedIssueEvent RenamedIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.ReviewDismissedIssueEvent? ReviewDismissedIssueEvent { get; set; } + public global::GitHub.Models.ReviewDismissedIssueEvent? ReviewDismissedIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.ReviewDismissedIssueEvent ReviewDismissedIssueEvent { get; set; } + public global::GitHub.Models.ReviewDismissedIssueEvent ReviewDismissedIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.ReviewRequestedIssueEvent? ReviewRequestedIssueEvent { get; set; } + public global::GitHub.Models.ReviewRequestedIssueEvent? ReviewRequestedIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.ReviewRequestedIssueEvent ReviewRequestedIssueEvent { get; set; } + public global::GitHub.Models.ReviewRequestedIssueEvent ReviewRequestedIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.ReviewRequestRemovedIssueEvent? ReviewRequestRemovedIssueEvent { get; set; } + public global::GitHub.Models.ReviewRequestRemovedIssueEvent? ReviewRequestRemovedIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.ReviewRequestRemovedIssueEvent ReviewRequestRemovedIssueEvent { get; set; } + public global::GitHub.Models.ReviewRequestRemovedIssueEvent ReviewRequestRemovedIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.UnassignedIssueEvent? UnassignedIssueEvent { get; set; } + public global::GitHub.Models.UnassignedIssueEvent? UnassignedIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.UnassignedIssueEvent UnassignedIssueEvent { get; set; } + public global::GitHub.Models.UnassignedIssueEvent UnassignedIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.UnlabeledIssueEvent? UnlabeledIssueEvent { get; set; } + public global::GitHub.Models.UnlabeledIssueEvent? UnlabeledIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.UnlabeledIssueEvent UnlabeledIssueEvent { get; set; } + public global::GitHub.Models.UnlabeledIssueEvent UnlabeledIssueEvent { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IssueEventForIssue CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.IssueEventForIssue CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - var result = new IssueEventForIssue(); - result.AddedToProjectIssueEvent = new GitHub.Models.AddedToProjectIssueEvent(); - result.AssignedIssueEvent = new GitHub.Models.AssignedIssueEvent(); - result.ConvertedNoteToIssueIssueEvent = new GitHub.Models.ConvertedNoteToIssueIssueEvent(); - result.DemilestonedIssueEvent = new GitHub.Models.DemilestonedIssueEvent(); - result.LabeledIssueEvent = new GitHub.Models.LabeledIssueEvent(); - result.LockedIssueEvent = new GitHub.Models.LockedIssueEvent(); - result.MilestonedIssueEvent = new GitHub.Models.MilestonedIssueEvent(); - result.MovedColumnInProjectIssueEvent = new GitHub.Models.MovedColumnInProjectIssueEvent(); - result.RemovedFromProjectIssueEvent = new GitHub.Models.RemovedFromProjectIssueEvent(); - result.RenamedIssueEvent = new GitHub.Models.RenamedIssueEvent(); - result.ReviewDismissedIssueEvent = new GitHub.Models.ReviewDismissedIssueEvent(); - result.ReviewRequestedIssueEvent = new GitHub.Models.ReviewRequestedIssueEvent(); - result.ReviewRequestRemovedIssueEvent = new GitHub.Models.ReviewRequestRemovedIssueEvent(); - result.UnassignedIssueEvent = new GitHub.Models.UnassignedIssueEvent(); - result.UnlabeledIssueEvent = new GitHub.Models.UnlabeledIssueEvent(); + var result = new global::GitHub.Models.IssueEventForIssue(); + result.AddedToProjectIssueEvent = new global::GitHub.Models.AddedToProjectIssueEvent(); + result.AssignedIssueEvent = new global::GitHub.Models.AssignedIssueEvent(); + result.ConvertedNoteToIssueIssueEvent = new global::GitHub.Models.ConvertedNoteToIssueIssueEvent(); + result.DemilestonedIssueEvent = new global::GitHub.Models.DemilestonedIssueEvent(); + result.LabeledIssueEvent = new global::GitHub.Models.LabeledIssueEvent(); + result.LockedIssueEvent = new global::GitHub.Models.LockedIssueEvent(); + result.MilestonedIssueEvent = new global::GitHub.Models.MilestonedIssueEvent(); + result.MovedColumnInProjectIssueEvent = new global::GitHub.Models.MovedColumnInProjectIssueEvent(); + result.RemovedFromProjectIssueEvent = new global::GitHub.Models.RemovedFromProjectIssueEvent(); + result.RenamedIssueEvent = new global::GitHub.Models.RenamedIssueEvent(); + result.ReviewDismissedIssueEvent = new global::GitHub.Models.ReviewDismissedIssueEvent(); + result.ReviewRequestedIssueEvent = new global::GitHub.Models.ReviewRequestedIssueEvent(); + result.ReviewRequestRemovedIssueEvent = new global::GitHub.Models.ReviewRequestRemovedIssueEvent(); + result.UnassignedIssueEvent = new global::GitHub.Models.UnassignedIssueEvent(); + result.UnlabeledIssueEvent = new global::GitHub.Models.UnlabeledIssueEvent(); return result; } /// @@ -176,7 +178,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue(null, AddedToProjectIssueEvent, AssignedIssueEvent, ConvertedNoteToIssueIssueEvent, DemilestonedIssueEvent, LabeledIssueEvent, LockedIssueEvent, MilestonedIssueEvent, MovedColumnInProjectIssueEvent, RemovedFromProjectIssueEvent, RenamedIssueEvent, ReviewDismissedIssueEvent, ReviewRequestedIssueEvent, ReviewRequestRemovedIssueEvent, UnassignedIssueEvent, UnlabeledIssueEvent); + writer.WriteObjectValue(null, AddedToProjectIssueEvent, AssignedIssueEvent, ConvertedNoteToIssueIssueEvent, DemilestonedIssueEvent, LabeledIssueEvent, LockedIssueEvent, MilestonedIssueEvent, MovedColumnInProjectIssueEvent, RemovedFromProjectIssueEvent, RenamedIssueEvent, ReviewDismissedIssueEvent, ReviewRequestedIssueEvent, ReviewRequestRemovedIssueEvent, UnassignedIssueEvent, UnlabeledIssueEvent); } } } diff --git a/src/GitHub/Models/IssueEventLabel.cs b/src/GitHub/Models/IssueEventLabel.cs index f7e3552b..e762f9ec 100644 --- a/src/GitHub/Models/IssueEventLabel.cs +++ b/src/GitHub/Models/IssueEventLabel.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Issue Event Label /// - public class IssueEventLabel : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class IssueEventLabel : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class IssueEventLabel : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IssueEventLabel() { @@ -38,12 +40,12 @@ public IssueEventLabel() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IssueEventLabel CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.IssueEventLabel CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IssueEventLabel(); + return new global::GitHub.Models.IssueEventLabel(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"color", n => { Color = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "color", n => { Color = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/IssueEventMilestone.cs b/src/GitHub/Models/IssueEventMilestone.cs index 60e05361..a29bc08c 100644 --- a/src/GitHub/Models/IssueEventMilestone.cs +++ b/src/GitHub/Models/IssueEventMilestone.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Issue Event Milestone /// - public class IssueEventMilestone : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class IssueEventMilestone : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -21,7 +23,7 @@ public class IssueEventMilestone : IAdditionalDataHolder, IParsable public string Title { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IssueEventMilestone() { @@ -30,12 +32,12 @@ public IssueEventMilestone() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IssueEventMilestone CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.IssueEventMilestone CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IssueEventMilestone(); + return new global::GitHub.Models.IssueEventMilestone(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"title", n => { Title = n.GetStringValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/IssueEventProjectCard.cs b/src/GitHub/Models/IssueEventProjectCard.cs index a2043906..945a2d92 100644 --- a/src/GitHub/Models/IssueEventProjectCard.cs +++ b/src/GitHub/Models/IssueEventProjectCard.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Issue Event Project Card /// - public class IssueEventProjectCard : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class IssueEventProjectCard : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -49,7 +51,7 @@ public class IssueEventProjectCard : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IssueEventProjectCard() { @@ -58,12 +60,12 @@ public IssueEventProjectCard() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IssueEventProjectCard CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.IssueEventProjectCard CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IssueEventProjectCard(); + return new global::GitHub.Models.IssueEventProjectCard(); } /// /// The deserialization information for the current model @@ -73,12 +75,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"column_name", n => { ColumnName = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"previous_column_name", n => { PreviousColumnName = n.GetStringValue(); } }, - {"project_id", n => { ProjectId = n.GetIntValue(); } }, - {"project_url", n => { ProjectUrl = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "column_name", n => { ColumnName = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "previous_column_name", n => { PreviousColumnName = n.GetStringValue(); } }, + { "project_id", n => { ProjectId = n.GetIntValue(); } }, + { "project_url", n => { ProjectUrl = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/IssueEventRename.cs b/src/GitHub/Models/IssueEventRename.cs index 791011b9..cf20d40a 100644 --- a/src/GitHub/Models/IssueEventRename.cs +++ b/src/GitHub/Models/IssueEventRename.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Issue Event Rename /// - public class IssueEventRename : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class IssueEventRename : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class IssueEventRename : IAdditionalDataHolder, IParsable public string To { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IssueEventRename() { @@ -38,12 +40,12 @@ public IssueEventRename() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IssueEventRename CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.IssueEventRename CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IssueEventRename(); + return new global::GitHub.Models.IssueEventRename(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"from", n => { From = n.GetStringValue(); } }, - {"to", n => { To = n.GetStringValue(); } }, + { "from", n => { From = n.GetStringValue(); } }, + { "to", n => { To = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/IssueSearchResultItem.cs b/src/GitHub/Models/IssueSearchResultItem.cs index 3662e698..5e15450d 100644 --- a/src/GitHub/Models/IssueSearchResultItem.cs +++ b/src/GitHub/Models/IssueSearchResultItem.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Issue Search Result Item /// - public class IssueSearchResultItem : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class IssueSearchResultItem : IAdditionalDataHolder, IParsable { /// The active_lock_reason property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -23,21 +25,21 @@ public class IssueSearchResultItem : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Assignee { get; set; } + public global::GitHub.Models.NullableSimpleUser? Assignee { get; set; } #nullable restore #else - public NullableSimpleUser Assignee { get; set; } + public global::GitHub.Models.NullableSimpleUser Assignee { get; set; } #endif /// The assignees property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Assignees { get; set; } + public List? Assignees { get; set; } #nullable restore #else - public List Assignees { get; set; } + public List Assignees { get; set; } #endif /// How the author is associated with the repository. - public GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } + public global::GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } /// The body property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -99,10 +101,10 @@ public class IssueSearchResultItem : IAdditionalDataHolder, IParsable /// The labels property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Labels { get; set; } + public List? Labels { get; set; } #nullable restore #else - public List Labels { get; set; } + public List Labels { get; set; } #endif /// The labels_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -117,10 +119,10 @@ public class IssueSearchResultItem : IAdditionalDataHolder, IParsable /// A collection of related issues and pull requests. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableMilestone? Milestone { get; set; } + public global::GitHub.Models.NullableMilestone? Milestone { get; set; } #nullable restore #else - public NullableMilestone Milestone { get; set; } + public global::GitHub.Models.NullableMilestone Milestone { get; set; } #endif /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -135,34 +137,34 @@ public class IssueSearchResultItem : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// The pull_request property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public IssueSearchResultItem_pull_request? PullRequest { get; set; } + public global::GitHub.Models.IssueSearchResultItem_pull_request? PullRequest { get; set; } #nullable restore #else - public IssueSearchResultItem_pull_request PullRequest { get; set; } + public global::GitHub.Models.IssueSearchResultItem_pull_request PullRequest { get; set; } #endif /// The reactions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ReactionRollup? Reactions { get; set; } + public global::GitHub.Models.ReactionRollup? Reactions { get; set; } #nullable restore #else - public ReactionRollup Reactions { get; set; } + public global::GitHub.Models.ReactionRollup Reactions { get; set; } #endif /// A repository on GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Repository? Repository { get; set; } + public global::GitHub.Models.Repository? Repository { get; set; } #nullable restore #else - public GitHub.Models.Repository Repository { get; set; } + public global::GitHub.Models.Repository Repository { get; set; } #endif /// The repository_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -193,10 +195,10 @@ public class IssueSearchResultItem : IAdditionalDataHolder, IParsable /// The text_matches property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? TextMatches { get; set; } + public List? TextMatches { get; set; } #nullable restore #else - public List TextMatches { get; set; } + public List TextMatches { get; set; } #endif /// The timeline_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -227,13 +229,13 @@ public class IssueSearchResultItem : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? User { get; set; } + public global::GitHub.Models.NullableSimpleUser? User { get; set; } #nullable restore #else - public NullableSimpleUser User { get; set; } + public global::GitHub.Models.NullableSimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IssueSearchResultItem() { @@ -242,12 +244,12 @@ public IssueSearchResultItem() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IssueSearchResultItem CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.IssueSearchResultItem CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IssueSearchResultItem(); + return new global::GitHub.Models.IssueSearchResultItem(); } /// /// The deserialization information for the current model @@ -257,41 +259,41 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"active_lock_reason", n => { ActiveLockReason = n.GetStringValue(); } }, - {"assignee", n => { Assignee = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"assignees", n => { Assignees = n.GetCollectionOfObjectValues(SimpleUser.CreateFromDiscriminatorValue)?.ToList(); } }, - {"author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, - {"body", n => { Body = n.GetStringValue(); } }, - {"body_html", n => { BodyHtml = n.GetStringValue(); } }, - {"body_text", n => { BodyText = n.GetStringValue(); } }, - {"closed_at", n => { ClosedAt = n.GetDateTimeOffsetValue(); } }, - {"comments", n => { Comments = n.GetIntValue(); } }, - {"comments_url", n => { CommentsUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"draft", n => { Draft = n.GetBoolValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"labels", n => { Labels = n.GetCollectionOfObjectValues(IssueSearchResultItem_labels.CreateFromDiscriminatorValue)?.ToList(); } }, - {"labels_url", n => { LabelsUrl = n.GetStringValue(); } }, - {"locked", n => { Locked = n.GetBoolValue(); } }, - {"milestone", n => { Milestone = n.GetObjectValue(NullableMilestone.CreateFromDiscriminatorValue); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"number", n => { Number = n.GetIntValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"pull_request", n => { PullRequest = n.GetObjectValue(IssueSearchResultItem_pull_request.CreateFromDiscriminatorValue); } }, - {"reactions", n => { Reactions = n.GetObjectValue(ReactionRollup.CreateFromDiscriminatorValue); } }, - {"repository", n => { Repository = n.GetObjectValue(GitHub.Models.Repository.CreateFromDiscriminatorValue); } }, - {"repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, - {"score", n => { Score = n.GetDoubleValue(); } }, - {"state", n => { State = n.GetStringValue(); } }, - {"state_reason", n => { StateReason = n.GetStringValue(); } }, - {"text_matches", n => { TextMatches = n.GetCollectionOfObjectValues(Issues.CreateFromDiscriminatorValue)?.ToList(); } }, - {"timeline_url", n => { TimelineUrl = n.GetStringValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "active_lock_reason", n => { ActiveLockReason = n.GetStringValue(); } }, + { "assignee", n => { Assignee = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "assignees", n => { Assignees = n.GetCollectionOfObjectValues(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue)?.AsList(); } }, + { "author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "body_html", n => { BodyHtml = n.GetStringValue(); } }, + { "body_text", n => { BodyText = n.GetStringValue(); } }, + { "closed_at", n => { ClosedAt = n.GetDateTimeOffsetValue(); } }, + { "comments", n => { Comments = n.GetIntValue(); } }, + { "comments_url", n => { CommentsUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "draft", n => { Draft = n.GetBoolValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfObjectValues(global::GitHub.Models.IssueSearchResultItem_labels.CreateFromDiscriminatorValue)?.AsList(); } }, + { "labels_url", n => { LabelsUrl = n.GetStringValue(); } }, + { "locked", n => { Locked = n.GetBoolValue(); } }, + { "milestone", n => { Milestone = n.GetObjectValue(global::GitHub.Models.NullableMilestone.CreateFromDiscriminatorValue); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "number", n => { Number = n.GetIntValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "pull_request", n => { PullRequest = n.GetObjectValue(global::GitHub.Models.IssueSearchResultItem_pull_request.CreateFromDiscriminatorValue); } }, + { "reactions", n => { Reactions = n.GetObjectValue(global::GitHub.Models.ReactionRollup.CreateFromDiscriminatorValue); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.Repository.CreateFromDiscriminatorValue); } }, + { "repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, + { "score", n => { Score = n.GetDoubleValue(); } }, + { "state", n => { State = n.GetStringValue(); } }, + { "state_reason", n => { StateReason = n.GetStringValue(); } }, + { "text_matches", n => { TextMatches = n.GetCollectionOfObjectValues(global::GitHub.Models.Issues.CreateFromDiscriminatorValue)?.AsList(); } }, + { "timeline_url", n => { TimelineUrl = n.GetStringValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -302,9 +304,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("active_lock_reason", ActiveLockReason); - writer.WriteObjectValue("assignee", Assignee); - writer.WriteCollectionOfObjectValues("assignees", Assignees); - writer.WriteEnumValue("author_association", AuthorAssociation); + writer.WriteObjectValue("assignee", Assignee); + writer.WriteCollectionOfObjectValues("assignees", Assignees); + writer.WriteEnumValue("author_association", AuthorAssociation); writer.WriteStringValue("body", Body); writer.WriteStringValue("body_html", BodyHtml); writer.WriteStringValue("body_text", BodyText); @@ -316,26 +318,26 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("events_url", EventsUrl); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteLongValue("id", Id); - writer.WriteCollectionOfObjectValues("labels", Labels); + writer.WriteCollectionOfObjectValues("labels", Labels); writer.WriteStringValue("labels_url", LabelsUrl); writer.WriteBoolValue("locked", Locked); - writer.WriteObjectValue("milestone", Milestone); + writer.WriteObjectValue("milestone", Milestone); writer.WriteStringValue("node_id", NodeId); writer.WriteIntValue("number", Number); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); - writer.WriteObjectValue("pull_request", PullRequest); - writer.WriteObjectValue("reactions", Reactions); - writer.WriteObjectValue("repository", Repository); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("pull_request", PullRequest); + writer.WriteObjectValue("reactions", Reactions); + writer.WriteObjectValue("repository", Repository); writer.WriteStringValue("repository_url", RepositoryUrl); writer.WriteDoubleValue("score", Score); writer.WriteStringValue("state", State); writer.WriteStringValue("state_reason", StateReason); - writer.WriteCollectionOfObjectValues("text_matches", TextMatches); + writer.WriteCollectionOfObjectValues("text_matches", TextMatches); writer.WriteStringValue("timeline_url", TimelineUrl); writer.WriteStringValue("title", Title); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/IssueSearchResultItem_labels.cs b/src/GitHub/Models/IssueSearchResultItem_labels.cs index 76a6e62c..a8b171fa 100644 --- a/src/GitHub/Models/IssueSearchResultItem_labels.cs +++ b/src/GitHub/Models/IssueSearchResultItem_labels.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class IssueSearchResultItem_labels : IAdditionalDataHolder, IParsable + public partial class IssueSearchResultItem_labels : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -56,7 +58,7 @@ public class IssueSearchResultItem_labels : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IssueSearchResultItem_labels() { @@ -65,12 +67,12 @@ public IssueSearchResultItem_labels() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IssueSearchResultItem_labels CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.IssueSearchResultItem_labels CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IssueSearchResultItem_labels(); + return new global::GitHub.Models.IssueSearchResultItem_labels(); } /// /// The deserialization information for the current model @@ -80,13 +82,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"color", n => { Color = n.GetStringValue(); } }, - {"default", n => { Default = n.GetBoolValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "color", n => { Color = n.GetStringValue(); } }, + { "default", n => { Default = n.GetBoolValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/IssueSearchResultItem_pull_request.cs b/src/GitHub/Models/IssueSearchResultItem_pull_request.cs index 1bbe6796..7a9f6b87 100644 --- a/src/GitHub/Models/IssueSearchResultItem_pull_request.cs +++ b/src/GitHub/Models/IssueSearchResultItem_pull_request.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class IssueSearchResultItem_pull_request : IAdditionalDataHolder, IParsable + public partial class IssueSearchResultItem_pull_request : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -46,7 +48,7 @@ public class IssueSearchResultItem_pull_request : IAdditionalDataHolder, IParsab public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IssueSearchResultItem_pull_request() { @@ -55,12 +57,12 @@ public IssueSearchResultItem_pull_request() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IssueSearchResultItem_pull_request CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.IssueSearchResultItem_pull_request CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IssueSearchResultItem_pull_request(); + return new global::GitHub.Models.IssueSearchResultItem_pull_request(); } /// /// The deserialization information for the current model @@ -70,11 +72,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"diff_url", n => { DiffUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"merged_at", n => { MergedAt = n.GetDateTimeOffsetValue(); } }, - {"patch_url", n => { PatchUrl = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "diff_url", n => { DiffUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "merged_at", n => { MergedAt = n.GetDateTimeOffsetValue(); } }, + { "patch_url", n => { PatchUrl = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Issue_pull_request.cs b/src/GitHub/Models/Issue_pull_request.cs index aca18444..e0ef4738 100644 --- a/src/GitHub/Models/Issue_pull_request.cs +++ b/src/GitHub/Models/Issue_pull_request.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Issue_pull_request : IAdditionalDataHolder, IParsable + public partial class Issue_pull_request : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -46,7 +48,7 @@ public class Issue_pull_request : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Issue_pull_request() { @@ -55,12 +57,12 @@ public Issue_pull_request() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Issue_pull_request CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Issue_pull_request CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Issue_pull_request(); + return new global::GitHub.Models.Issue_pull_request(); } /// /// The deserialization information for the current model @@ -70,11 +72,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"diff_url", n => { DiffUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"merged_at", n => { MergedAt = n.GetDateTimeOffsetValue(); } }, - {"patch_url", n => { PatchUrl = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "diff_url", n => { DiffUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "merged_at", n => { MergedAt = n.GetDateTimeOffsetValue(); } }, + { "patch_url", n => { PatchUrl = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Issue_state_reason.cs b/src/GitHub/Models/Issue_state_reason.cs index 8c32777a..a4067a40 100644 --- a/src/GitHub/Models/Issue_state_reason.cs +++ b/src/GitHub/Models/Issue_state_reason.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The reason for the current state + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum Issue_state_reason { [EnumMember(Value = "completed")] diff --git a/src/GitHub/Models/Issues.cs b/src/GitHub/Models/Issues.cs index bbd94ec0..0d8080f5 100644 --- a/src/GitHub/Models/Issues.cs +++ b/src/GitHub/Models/Issues.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Issues : IAdditionalDataHolder, IParsable + public partial class Issues : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,10 +24,10 @@ public class Issues : IAdditionalDataHolder, IParsable /// The matches property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Matches { get; set; } + public List? Matches { get; set; } #nullable restore #else - public List Matches { get; set; } + public List Matches { get; set; } #endif /// The object_type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -52,7 +54,7 @@ public class Issues : IAdditionalDataHolder, IParsable public string Property { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Issues() { @@ -61,12 +63,12 @@ public Issues() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Issues CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Issues CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Issues(); + return new global::GitHub.Models.Issues(); } /// /// The deserialization information for the current model @@ -76,11 +78,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"fragment", n => { Fragment = n.GetStringValue(); } }, - {"matches", n => { Matches = n.GetCollectionOfObjectValues(Issues_matches.CreateFromDiscriminatorValue)?.ToList(); } }, - {"object_type", n => { ObjectType = n.GetStringValue(); } }, - {"object_url", n => { ObjectUrl = n.GetStringValue(); } }, - {"property", n => { Property = n.GetStringValue(); } }, + { "fragment", n => { Fragment = n.GetStringValue(); } }, + { "matches", n => { Matches = n.GetCollectionOfObjectValues(global::GitHub.Models.Issues_matches.CreateFromDiscriminatorValue)?.AsList(); } }, + { "object_type", n => { ObjectType = n.GetStringValue(); } }, + { "object_url", n => { ObjectUrl = n.GetStringValue(); } }, + { "property", n => { Property = n.GetStringValue(); } }, }; } /// @@ -91,7 +93,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("fragment", Fragment); - writer.WriteCollectionOfObjectValues("matches", Matches); + writer.WriteCollectionOfObjectValues("matches", Matches); writer.WriteStringValue("object_type", ObjectType); writer.WriteStringValue("object_url", ObjectUrl); writer.WriteStringValue("property", Property); diff --git a/src/GitHub/Models/Issues503Error.cs b/src/GitHub/Models/Issues503Error.cs index b6fc7e81..499fa5e6 100644 --- a/src/GitHub/Models/Issues503Error.cs +++ b/src/GitHub/Models/Issues503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Issues503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class Issues503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class Issues503Error : ApiException, IAdditionalDataHolder, IParsable #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Issues503Error() { @@ -46,12 +42,12 @@ public Issues503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Issues503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Issues503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Issues503Error(); + return new global::GitHub.Models.Issues503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/Issues_matches.cs b/src/GitHub/Models/Issues_matches.cs index a1649292..27416264 100644 --- a/src/GitHub/Models/Issues_matches.cs +++ b/src/GitHub/Models/Issues_matches.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Issues_matches : IAdditionalDataHolder, IParsable + public partial class Issues_matches : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class Issues_matches : IAdditionalDataHolder, IParsable public string Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Issues_matches() { @@ -37,12 +39,12 @@ public Issues_matches() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Issues_matches CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Issues_matches CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Issues_matches(); + return new global::GitHub.Models.Issues_matches(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"indices", n => { Indices = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"text", n => { Text = n.GetStringValue(); } }, + { "indices", n => { Indices = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "text", n => { Text = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Job.cs b/src/GitHub/Models/Job.cs index c9ca20db..c4d968a1 100644 --- a/src/GitHub/Models/Job.cs +++ b/src/GitHub/Models/Job.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Information of a job execution in a workflow run /// - public class Job : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Job : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,7 +25,7 @@ public class Job : IAdditionalDataHolder, IParsable /// The time that the job finished, in ISO 8601 format. public DateTimeOffset? CompletedAt { get; set; } /// The outcome of the job. - public Job_conclusion? Conclusion { get; set; } + public global::GitHub.Models.Job_conclusion? Conclusion { get; set; } /// The time that the job created, in ISO 8601 format. public DateTimeOffset? CreatedAt { get; set; } /// The name of the current branch. @@ -111,14 +113,14 @@ public class Job : IAdditionalDataHolder, IParsable /// The time that the job started, in ISO 8601 format. public DateTimeOffset? StartedAt { get; set; } /// The phase of the lifecycle that the job is currently in. - public Job_status? Status { get; set; } + public global::GitHub.Models.Job_status? Status { get; set; } /// Steps in this job. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Steps { get; set; } + public List? Steps { get; set; } #nullable restore #else - public List Steps { get; set; } + public List Steps { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -137,7 +139,7 @@ public class Job : IAdditionalDataHolder, IParsable public string WorkflowName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Job() { @@ -146,12 +148,12 @@ public Job() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Job CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Job CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Job(); + return new global::GitHub.Models.Job(); } /// /// The deserialization information for the current model @@ -161,29 +163,29 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"check_run_url", n => { CheckRunUrl = n.GetStringValue(); } }, - {"completed_at", n => { CompletedAt = n.GetDateTimeOffsetValue(); } }, - {"conclusion", n => { Conclusion = n.GetEnumValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"head_branch", n => { HeadBranch = n.GetStringValue(); } }, - {"head_sha", n => { HeadSha = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"run_attempt", n => { RunAttempt = n.GetIntValue(); } }, - {"run_id", n => { RunId = n.GetIntValue(); } }, - {"run_url", n => { RunUrl = n.GetStringValue(); } }, - {"runner_group_id", n => { RunnerGroupId = n.GetIntValue(); } }, - {"runner_group_name", n => { RunnerGroupName = n.GetStringValue(); } }, - {"runner_id", n => { RunnerId = n.GetIntValue(); } }, - {"runner_name", n => { RunnerName = n.GetStringValue(); } }, - {"started_at", n => { StartedAt = n.GetDateTimeOffsetValue(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, - {"steps", n => { Steps = n.GetCollectionOfObjectValues(Job_steps.CreateFromDiscriminatorValue)?.ToList(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"workflow_name", n => { WorkflowName = n.GetStringValue(); } }, + { "check_run_url", n => { CheckRunUrl = n.GetStringValue(); } }, + { "completed_at", n => { CompletedAt = n.GetDateTimeOffsetValue(); } }, + { "conclusion", n => { Conclusion = n.GetEnumValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "head_branch", n => { HeadBranch = n.GetStringValue(); } }, + { "head_sha", n => { HeadSha = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "run_attempt", n => { RunAttempt = n.GetIntValue(); } }, + { "run_id", n => { RunId = n.GetIntValue(); } }, + { "run_url", n => { RunUrl = n.GetStringValue(); } }, + { "runner_group_id", n => { RunnerGroupId = n.GetIntValue(); } }, + { "runner_group_name", n => { RunnerGroupName = n.GetStringValue(); } }, + { "runner_id", n => { RunnerId = n.GetIntValue(); } }, + { "runner_name", n => { RunnerName = n.GetStringValue(); } }, + { "started_at", n => { StartedAt = n.GetDateTimeOffsetValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + { "steps", n => { Steps = n.GetCollectionOfObjectValues(global::GitHub.Models.Job_steps.CreateFromDiscriminatorValue)?.AsList(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "workflow_name", n => { WorkflowName = n.GetStringValue(); } }, }; } /// @@ -195,7 +197,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("check_run_url", CheckRunUrl); writer.WriteDateTimeOffsetValue("completed_at", CompletedAt); - writer.WriteEnumValue("conclusion", Conclusion); + writer.WriteEnumValue("conclusion", Conclusion); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteStringValue("head_branch", HeadBranch); writer.WriteStringValue("head_sha", HeadSha); @@ -212,8 +214,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("runner_name", RunnerName); writer.WriteStringValue("run_url", RunUrl); writer.WriteDateTimeOffsetValue("started_at", StartedAt); - writer.WriteEnumValue("status", Status); - writer.WriteCollectionOfObjectValues("steps", Steps); + writer.WriteEnumValue("status", Status); + writer.WriteCollectionOfObjectValues("steps", Steps); writer.WriteStringValue("url", Url); writer.WriteStringValue("workflow_name", WorkflowName); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/Job_conclusion.cs b/src/GitHub/Models/Job_conclusion.cs index c3ecdaf8..37ea4356 100644 --- a/src/GitHub/Models/Job_conclusion.cs +++ b/src/GitHub/Models/Job_conclusion.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The outcome of the job. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum Job_conclusion { [EnumMember(Value = "success")] diff --git a/src/GitHub/Models/Job_status.cs b/src/GitHub/Models/Job_status.cs index 5905fcd4..d0f75d3b 100644 --- a/src/GitHub/Models/Job_status.cs +++ b/src/GitHub/Models/Job_status.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The phase of the lifecycle that the job is currently in. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum Job_status { [EnumMember(Value = "queued")] diff --git a/src/GitHub/Models/Job_steps.cs b/src/GitHub/Models/Job_steps.cs index 04fb95ea..74bd34c3 100644 --- a/src/GitHub/Models/Job_steps.cs +++ b/src/GitHub/Models/Job_steps.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Job_steps : IAdditionalDataHolder, IParsable + public partial class Job_steps : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -34,9 +36,9 @@ public class Job_steps : IAdditionalDataHolder, IParsable /// The time that the step started, in ISO 8601 format. public DateTimeOffset? StartedAt { get; set; } /// The phase of the lifecycle that the job is currently in. - public Job_steps_status? Status { get; set; } + public global::GitHub.Models.Job_steps_status? Status { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Job_steps() { @@ -45,12 +47,12 @@ public Job_steps() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Job_steps CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Job_steps CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Job_steps(); + return new global::GitHub.Models.Job_steps(); } /// /// The deserialization information for the current model @@ -60,12 +62,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"completed_at", n => { CompletedAt = n.GetDateTimeOffsetValue(); } }, - {"conclusion", n => { Conclusion = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"number", n => { Number = n.GetIntValue(); } }, - {"started_at", n => { StartedAt = n.GetDateTimeOffsetValue(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, + { "completed_at", n => { CompletedAt = n.GetDateTimeOffsetValue(); } }, + { "conclusion", n => { Conclusion = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "number", n => { Number = n.GetIntValue(); } }, + { "started_at", n => { StartedAt = n.GetDateTimeOffsetValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, }; } /// @@ -80,7 +82,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteIntValue("number", Number); writer.WriteDateTimeOffsetValue("started_at", StartedAt); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("status", Status); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/Job_steps_status.cs b/src/GitHub/Models/Job_steps_status.cs index 2f16ee88..72fd38e7 100644 --- a/src/GitHub/Models/Job_steps_status.cs +++ b/src/GitHub/Models/Job_steps_status.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The phase of the lifecycle that the job is currently in. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum Job_steps_status { [EnumMember(Value = "queued")] diff --git a/src/GitHub/Models/Key.cs b/src/GitHub/Models/Key.cs index a9149744..83d660f5 100644 --- a/src/GitHub/Models/Key.cs +++ b/src/GitHub/Models/Key.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Key /// - public class Key : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Key : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -45,7 +47,7 @@ public class Key : IAdditionalDataHolder, IParsable /// The verified property public bool? Verified { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Key() { @@ -54,12 +56,12 @@ public Key() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Key CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Key CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Key(); + return new global::GitHub.Models.Key(); } /// /// The deserialization information for the current model @@ -69,13 +71,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"key", n => { KeyProp = n.GetStringValue(); } }, - {"read_only", n => { ReadOnly = n.GetBoolValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"verified", n => { Verified = n.GetBoolValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "key", n => { KeyProp = n.GetStringValue(); } }, + { "read_only", n => { ReadOnly = n.GetBoolValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "verified", n => { Verified = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/KeySimple.cs b/src/GitHub/Models/KeySimple.cs index 324b301b..58d4b285 100644 --- a/src/GitHub/Models/KeySimple.cs +++ b/src/GitHub/Models/KeySimple.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Key Simple /// - public class KeySimple : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class KeySimple : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,7 +25,7 @@ public class KeySimple : IAdditionalDataHolder, IParsable public string Key { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public KeySimple() { @@ -32,12 +34,12 @@ public KeySimple() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static KeySimple CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.KeySimple CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new KeySimple(); + return new global::GitHub.Models.KeySimple(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetIntValue(); } }, - {"key", n => { Key = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "key", n => { Key = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Label.cs b/src/GitHub/Models/Label.cs index f51fd4c2..6baed399 100644 --- a/src/GitHub/Models/Label.cs +++ b/src/GitHub/Models/Label.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Color-coded labels help you categorize and filter your issues (just like labels in Gmail). /// - public class Label : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Label : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -57,7 +59,7 @@ public class Label : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Label() { @@ -66,12 +68,12 @@ public Label() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Label CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Label CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Label(); + return new global::GitHub.Models.Label(); } /// /// The deserialization information for the current model @@ -81,13 +83,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"color", n => { Color = n.GetStringValue(); } }, - {"default", n => { Default = n.GetBoolValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "color", n => { Color = n.GetStringValue(); } }, + { "default", n => { Default = n.GetBoolValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/LabelSearchResultItem.cs b/src/GitHub/Models/LabelSearchResultItem.cs index 6c796f3a..f187e7a8 100644 --- a/src/GitHub/Models/LabelSearchResultItem.cs +++ b/src/GitHub/Models/LabelSearchResultItem.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Label Search Result Item /// - public class LabelSearchResultItem : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class LabelSearchResultItem : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -53,10 +55,10 @@ public class LabelSearchResultItem : IAdditionalDataHolder, IParsable /// The text_matches property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? TextMatches { get; set; } + public List? TextMatches { get; set; } #nullable restore #else - public List TextMatches { get; set; } + public List TextMatches { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -67,7 +69,7 @@ public class LabelSearchResultItem : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LabelSearchResultItem() { @@ -76,12 +78,12 @@ public LabelSearchResultItem() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LabelSearchResultItem CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.LabelSearchResultItem CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LabelSearchResultItem(); + return new global::GitHub.Models.LabelSearchResultItem(); } /// /// The deserialization information for the current model @@ -91,15 +93,15 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"color", n => { Color = n.GetStringValue(); } }, - {"default", n => { Default = n.GetBoolValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"score", n => { Score = n.GetDoubleValue(); } }, - {"text_matches", n => { TextMatches = n.GetCollectionOfObjectValues(Labels.CreateFromDiscriminatorValue)?.ToList(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "color", n => { Color = n.GetStringValue(); } }, + { "default", n => { Default = n.GetBoolValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "score", n => { Score = n.GetDoubleValue(); } }, + { "text_matches", n => { TextMatches = n.GetCollectionOfObjectValues(global::GitHub.Models.Labels.CreateFromDiscriminatorValue)?.AsList(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -116,7 +118,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteStringValue("node_id", NodeId); writer.WriteDoubleValue("score", Score); - writer.WriteCollectionOfObjectValues("text_matches", TextMatches); + writer.WriteCollectionOfObjectValues("text_matches", TextMatches); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/LabeledIssueEvent.cs b/src/GitHub/Models/LabeledIssueEvent.cs index 3b7d0a7f..990f43a8 100644 --- a/src/GitHub/Models/LabeledIssueEvent.cs +++ b/src/GitHub/Models/LabeledIssueEvent.cs @@ -1,22 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Labeled Issue Event /// - public class LabeledIssueEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class LabeledIssueEvent : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -57,10 +59,10 @@ public class LabeledIssueEvent : IAdditionalDataHolder, IParsable /// The label property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public LabeledIssueEvent_label? Label { get; set; } + public global::GitHub.Models.LabeledIssueEvent_label? Label { get; set; } #nullable restore #else - public LabeledIssueEvent_label Label { get; set; } + public global::GitHub.Models.LabeledIssueEvent_label Label { get; set; } #endif /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,10 +75,10 @@ public class LabeledIssueEvent : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +89,7 @@ public class LabeledIssueEvent : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LabeledIssueEvent() { @@ -96,12 +98,12 @@ public LabeledIssueEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LabeledIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.LabeledIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LabeledIssueEvent(); + return new global::GitHub.Models.LabeledIssueEvent(); } /// /// The deserialization information for the current model @@ -111,16 +113,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"label", n => { Label = n.GetObjectValue(LabeledIssueEvent_label.CreateFromDiscriminatorValue); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "label", n => { Label = n.GetObjectValue(global::GitHub.Models.LabeledIssueEvent_label.CreateFromDiscriminatorValue); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -130,15 +132,15 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("actor", Actor); writer.WriteStringValue("commit_id", CommitId); writer.WriteStringValue("commit_url", CommitUrl); writer.WriteStringValue("created_at", CreatedAt); writer.WriteStringValue("event", Event); writer.WriteIntValue("id", Id); - writer.WriteObjectValue("label", Label); + writer.WriteObjectValue("label", Label); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/LabeledIssueEvent_label.cs b/src/GitHub/Models/LabeledIssueEvent_label.cs index 207559f2..f5231e64 100644 --- a/src/GitHub/Models/LabeledIssueEvent_label.cs +++ b/src/GitHub/Models/LabeledIssueEvent_label.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class LabeledIssueEvent_label : IAdditionalDataHolder, IParsable + public partial class LabeledIssueEvent_label : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class LabeledIssueEvent_label : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LabeledIssueEvent_label() { @@ -37,12 +39,12 @@ public LabeledIssueEvent_label() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LabeledIssueEvent_label CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.LabeledIssueEvent_label CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LabeledIssueEvent_label(); + return new global::GitHub.Models.LabeledIssueEvent_label(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"color", n => { Color = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "color", n => { Color = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Labels.cs b/src/GitHub/Models/Labels.cs index 20b1bbbe..d968e3a8 100644 --- a/src/GitHub/Models/Labels.cs +++ b/src/GitHub/Models/Labels.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Labels : IAdditionalDataHolder, IParsable + public partial class Labels : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,10 +24,10 @@ public class Labels : IAdditionalDataHolder, IParsable /// The matches property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Matches { get; set; } + public List? Matches { get; set; } #nullable restore #else - public List Matches { get; set; } + public List Matches { get; set; } #endif /// The object_type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -52,7 +54,7 @@ public class Labels : IAdditionalDataHolder, IParsable public string Property { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Labels() { @@ -61,12 +63,12 @@ public Labels() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Labels CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Labels CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Labels(); + return new global::GitHub.Models.Labels(); } /// /// The deserialization information for the current model @@ -76,11 +78,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"fragment", n => { Fragment = n.GetStringValue(); } }, - {"matches", n => { Matches = n.GetCollectionOfObjectValues(Labels_matches.CreateFromDiscriminatorValue)?.ToList(); } }, - {"object_type", n => { ObjectType = n.GetStringValue(); } }, - {"object_url", n => { ObjectUrl = n.GetStringValue(); } }, - {"property", n => { Property = n.GetStringValue(); } }, + { "fragment", n => { Fragment = n.GetStringValue(); } }, + { "matches", n => { Matches = n.GetCollectionOfObjectValues(global::GitHub.Models.Labels_matches.CreateFromDiscriminatorValue)?.AsList(); } }, + { "object_type", n => { ObjectType = n.GetStringValue(); } }, + { "object_url", n => { ObjectUrl = n.GetStringValue(); } }, + { "property", n => { Property = n.GetStringValue(); } }, }; } /// @@ -91,7 +93,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("fragment", Fragment); - writer.WriteCollectionOfObjectValues("matches", Matches); + writer.WriteCollectionOfObjectValues("matches", Matches); writer.WriteStringValue("object_type", ObjectType); writer.WriteStringValue("object_url", ObjectUrl); writer.WriteStringValue("property", Property); diff --git a/src/GitHub/Models/Labels_matches.cs b/src/GitHub/Models/Labels_matches.cs index e12b5c5e..459059fb 100644 --- a/src/GitHub/Models/Labels_matches.cs +++ b/src/GitHub/Models/Labels_matches.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Labels_matches : IAdditionalDataHolder, IParsable + public partial class Labels_matches : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class Labels_matches : IAdditionalDataHolder, IParsable public string Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Labels_matches() { @@ -37,12 +39,12 @@ public Labels_matches() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Labels_matches CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Labels_matches CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Labels_matches(); + return new global::GitHub.Models.Labels_matches(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"indices", n => { Indices = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"text", n => { Text = n.GetStringValue(); } }, + { "indices", n => { Indices = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "text", n => { Text = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Language.cs b/src/GitHub/Models/Language.cs index 5bbe3a51..eedad297 100644 --- a/src/GitHub/Models/Language.cs +++ b/src/GitHub/Models/Language.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Language /// - public class Language : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Language : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Language() { @@ -22,12 +24,12 @@ public Language() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Language CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Language CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Language(); + return new global::GitHub.Models.Language(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/License.cs b/src/GitHub/Models/License.cs index c0667738..6fd3f7f2 100644 --- a/src/GitHub/Models/License.cs +++ b/src/GitHub/Models/License.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// License /// - public class License : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class License : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -111,7 +113,7 @@ public class License : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public License() { @@ -120,12 +122,12 @@ public License() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static License CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.License CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new License(); + return new global::GitHub.Models.License(); } /// /// The deserialization information for the current model @@ -135,19 +137,19 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"body", n => { Body = n.GetStringValue(); } }, - {"conditions", n => { Conditions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"featured", n => { Featured = n.GetBoolValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"implementation", n => { Implementation = n.GetStringValue(); } }, - {"key", n => { Key = n.GetStringValue(); } }, - {"limitations", n => { Limitations = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"permissions", n => { Permissions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"spdx_id", n => { SpdxId = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "conditions", n => { Conditions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "featured", n => { Featured = n.GetBoolValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "implementation", n => { Implementation = n.GetStringValue(); } }, + { "key", n => { Key = n.GetStringValue(); } }, + { "limitations", n => { Limitations = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "permissions", n => { Permissions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "spdx_id", n => { SpdxId = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/LicenseContent.cs b/src/GitHub/Models/LicenseContent.cs index 60100dd7..1953b9cf 100644 --- a/src/GitHub/Models/LicenseContent.cs +++ b/src/GitHub/Models/LicenseContent.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// License Content /// - public class LicenseContent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class LicenseContent : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -55,18 +57,18 @@ public class LicenseContent : IAdditionalDataHolder, IParsable /// License Simple #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableLicenseSimple? License { get; set; } + public global::GitHub.Models.NullableLicenseSimple? License { get; set; } #nullable restore #else - public NullableLicenseSimple License { get; set; } + public global::GitHub.Models.NullableLicenseSimple License { get; set; } #endif /// The _links property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public LicenseContent__links? Links { get; set; } + public global::GitHub.Models.LicenseContent__links? Links { get; set; } #nullable restore #else - public LicenseContent__links Links { get; set; } + public global::GitHub.Models.LicenseContent__links Links { get; set; } #endif /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -111,7 +113,7 @@ public class LicenseContent : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LicenseContent() { @@ -120,12 +122,12 @@ public LicenseContent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LicenseContent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.LicenseContent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LicenseContent(); + return new global::GitHub.Models.LicenseContent(); } /// /// The deserialization information for the current model @@ -135,19 +137,19 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content", n => { Content = n.GetStringValue(); } }, - {"download_url", n => { DownloadUrl = n.GetStringValue(); } }, - {"encoding", n => { Encoding = n.GetStringValue(); } }, - {"git_url", n => { GitUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"license", n => { License = n.GetObjectValue(NullableLicenseSimple.CreateFromDiscriminatorValue); } }, - {"_links", n => { Links = n.GetObjectValue(LicenseContent__links.CreateFromDiscriminatorValue); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"size", n => { Size = n.GetIntValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "content", n => { Content = n.GetStringValue(); } }, + { "download_url", n => { DownloadUrl = n.GetStringValue(); } }, + { "encoding", n => { Encoding = n.GetStringValue(); } }, + { "git_url", n => { GitUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "license", n => { License = n.GetObjectValue(global::GitHub.Models.NullableLicenseSimple.CreateFromDiscriminatorValue); } }, + { "_links", n => { Links = n.GetObjectValue(global::GitHub.Models.LicenseContent__links.CreateFromDiscriminatorValue); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "size", n => { Size = n.GetIntValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -162,8 +164,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("encoding", Encoding); writer.WriteStringValue("git_url", GitUrl); writer.WriteStringValue("html_url", HtmlUrl); - writer.WriteObjectValue("license", License); - writer.WriteObjectValue("_links", Links); + writer.WriteObjectValue("license", License); + writer.WriteObjectValue("_links", Links); writer.WriteStringValue("name", Name); writer.WriteStringValue("path", Path); writer.WriteStringValue("sha", Sha); diff --git a/src/GitHub/Models/LicenseContent__links.cs b/src/GitHub/Models/LicenseContent__links.cs index 752d3cff..a1fb6e52 100644 --- a/src/GitHub/Models/LicenseContent__links.cs +++ b/src/GitHub/Models/LicenseContent__links.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class LicenseContent__links : IAdditionalDataHolder, IParsable + public partial class LicenseContent__links : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class LicenseContent__links : IAdditionalDataHolder, IParsable public string Self { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LicenseContent__links() { @@ -45,12 +47,12 @@ public LicenseContent__links() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LicenseContent__links CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.LicenseContent__links CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LicenseContent__links(); + return new global::GitHub.Models.LicenseContent__links(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"git", n => { Git = n.GetStringValue(); } }, - {"html", n => { Html = n.GetStringValue(); } }, - {"self", n => { Self = n.GetStringValue(); } }, + { "git", n => { Git = n.GetStringValue(); } }, + { "html", n => { Html = n.GetStringValue(); } }, + { "self", n => { Self = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/LicenseSimple.cs b/src/GitHub/Models/LicenseSimple.cs index 70c3b484..3aed5d7b 100644 --- a/src/GitHub/Models/LicenseSimple.cs +++ b/src/GitHub/Models/LicenseSimple.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// License Simple /// - public class LicenseSimple : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class LicenseSimple : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -61,7 +63,7 @@ public class LicenseSimple : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LicenseSimple() { @@ -70,12 +72,12 @@ public LicenseSimple() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LicenseSimple CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.LicenseSimple CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LicenseSimple(); + return new global::GitHub.Models.LicenseSimple(); } /// /// The deserialization information for the current model @@ -85,12 +87,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"key", n => { Key = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"spdx_id", n => { SpdxId = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "key", n => { Key = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "spdx_id", n => { SpdxId = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Link.cs b/src/GitHub/Models/Link.cs index c1b5cb4f..356acea6 100644 --- a/src/GitHub/Models/Link.cs +++ b/src/GitHub/Models/Link.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Hypermedia Link /// - public class Link : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Link : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -21,7 +23,7 @@ public class Link : IAdditionalDataHolder, IParsable public string Href { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Link() { @@ -30,12 +32,12 @@ public Link() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Link CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Link CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Link(); + return new global::GitHub.Models.Link(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"href", n => { Href = n.GetStringValue(); } }, + { "href", n => { Href = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/LinkWithType.cs b/src/GitHub/Models/LinkWithType.cs index 43576ae5..a89cfe5d 100644 --- a/src/GitHub/Models/LinkWithType.cs +++ b/src/GitHub/Models/LinkWithType.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Hypermedia Link with Type /// - public class LinkWithType : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class LinkWithType : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class LinkWithType : IAdditionalDataHolder, IParsable public string Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LinkWithType() { @@ -38,12 +40,12 @@ public LinkWithType() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LinkWithType CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.LinkWithType CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LinkWithType(); + return new global::GitHub.Models.LinkWithType(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"href", n => { Href = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, + { "href", n => { Href = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Locations503Error.cs b/src/GitHub/Models/Locations503Error.cs index 83afae72..a3c80f53 100644 --- a/src/GitHub/Models/Locations503Error.cs +++ b/src/GitHub/Models/Locations503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Locations503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class Locations503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class Locations503Error : ApiException, IAdditionalDataHolder, IParsable #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Locations503Error() { @@ -46,12 +42,12 @@ public Locations503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Locations503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Locations503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Locations503Error(); + return new global::GitHub.Models.Locations503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/LockedIssueEvent.cs b/src/GitHub/Models/LockedIssueEvent.cs index 8569ea8e..3dbb4f7d 100644 --- a/src/GitHub/Models/LockedIssueEvent.cs +++ b/src/GitHub/Models/LockedIssueEvent.cs @@ -1,22 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Locked Issue Event /// - public class LockedIssueEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class LockedIssueEvent : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -73,10 +75,10 @@ public class LockedIssueEvent : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +89,7 @@ public class LockedIssueEvent : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LockedIssueEvent() { @@ -96,12 +98,12 @@ public LockedIssueEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LockedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.LockedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LockedIssueEvent(); + return new global::GitHub.Models.LockedIssueEvent(); } /// /// The deserialization information for the current model @@ -111,16 +113,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"lock_reason", n => { LockReason = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "lock_reason", n => { LockReason = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -130,7 +132,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("actor", Actor); writer.WriteStringValue("commit_id", CommitId); writer.WriteStringValue("commit_url", CommitUrl); writer.WriteStringValue("created_at", CreatedAt); @@ -138,7 +140,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("id", Id); writer.WriteStringValue("lock_reason", LockReason); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/MarketplaceAccount.cs b/src/GitHub/Models/MarketplaceAccount.cs index 9c31a71e..50a7c335 100644 --- a/src/GitHub/Models/MarketplaceAccount.cs +++ b/src/GitHub/Models/MarketplaceAccount.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class MarketplaceAccount : IAdditionalDataHolder, IParsable + public partial class MarketplaceAccount : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -62,7 +64,7 @@ public class MarketplaceAccount : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MarketplaceAccount() { @@ -71,12 +73,12 @@ public MarketplaceAccount() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MarketplaceAccount CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.MarketplaceAccount CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MarketplaceAccount(); + return new global::GitHub.Models.MarketplaceAccount(); } /// /// The deserialization information for the current model @@ -86,13 +88,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"email", n => { Email = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"organization_billing_email", n => { OrganizationBillingEmail = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "organization_billing_email", n => { OrganizationBillingEmail = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/MarketplaceListingPlan.cs b/src/GitHub/Models/MarketplaceListingPlan.cs index 0cfe13bb..b5e2feac 100644 --- a/src/GitHub/Models/MarketplaceListingPlan.cs +++ b/src/GitHub/Models/MarketplaceListingPlan.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Marketplace Listing Plan /// - public class MarketplaceListingPlan : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class MarketplaceListingPlan : IAdditionalDataHolder, IParsable { /// The accounts_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -53,7 +55,7 @@ public class MarketplaceListingPlan : IAdditionalDataHolder, IParsable /// The number property public int? Number { get; set; } /// The price_model property - public MarketplaceListingPlan_price_model? PriceModel { get; set; } + public global::GitHub.Models.MarketplaceListingPlan_price_model? PriceModel { get; set; } /// The state property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -81,7 +83,7 @@ public class MarketplaceListingPlan : IAdditionalDataHolder, IParsable /// The yearly_price_in_cents property public int? YearlyPriceInCents { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MarketplaceListingPlan() { @@ -90,12 +92,12 @@ public MarketplaceListingPlan() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MarketplaceListingPlan CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.MarketplaceListingPlan CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MarketplaceListingPlan(); + return new global::GitHub.Models.MarketplaceListingPlan(); } /// /// The deserialization information for the current model @@ -105,19 +107,19 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"accounts_url", n => { AccountsUrl = n.GetStringValue(); } }, - {"bullets", n => { Bullets = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"has_free_trial", n => { HasFreeTrial = n.GetBoolValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"monthly_price_in_cents", n => { MonthlyPriceInCents = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"number", n => { Number = n.GetIntValue(); } }, - {"price_model", n => { PriceModel = n.GetEnumValue(); } }, - {"state", n => { State = n.GetStringValue(); } }, - {"unit_name", n => { UnitName = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"yearly_price_in_cents", n => { YearlyPriceInCents = n.GetIntValue(); } }, + { "accounts_url", n => { AccountsUrl = n.GetStringValue(); } }, + { "bullets", n => { Bullets = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "has_free_trial", n => { HasFreeTrial = n.GetBoolValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "monthly_price_in_cents", n => { MonthlyPriceInCents = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "number", n => { Number = n.GetIntValue(); } }, + { "price_model", n => { PriceModel = n.GetEnumValue(); } }, + { "state", n => { State = n.GetStringValue(); } }, + { "unit_name", n => { UnitName = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "yearly_price_in_cents", n => { YearlyPriceInCents = n.GetIntValue(); } }, }; } /// @@ -135,7 +137,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("monthly_price_in_cents", MonthlyPriceInCents); writer.WriteStringValue("name", Name); writer.WriteIntValue("number", Number); - writer.WriteEnumValue("price_model", PriceModel); + writer.WriteEnumValue("price_model", PriceModel); writer.WriteStringValue("state", State); writer.WriteStringValue("unit_name", UnitName); writer.WriteStringValue("url", Url); diff --git a/src/GitHub/Models/MarketplaceListingPlan_price_model.cs b/src/GitHub/Models/MarketplaceListingPlan_price_model.cs index 0b6e5289..12d5a957 100644 --- a/src/GitHub/Models/MarketplaceListingPlan_price_model.cs +++ b/src/GitHub/Models/MarketplaceListingPlan_price_model.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum MarketplaceListingPlan_price_model #pragma warning restore CS1591 diff --git a/src/GitHub/Models/MarketplacePurchase.cs b/src/GitHub/Models/MarketplacePurchase.cs index 9c836121..ff8f7fb4 100644 --- a/src/GitHub/Models/MarketplacePurchase.cs +++ b/src/GitHub/Models/MarketplacePurchase.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Marketplace Purchase /// - public class MarketplacePurchase : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class MarketplacePurchase : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -33,18 +35,18 @@ public class MarketplacePurchase : IAdditionalDataHolder, IParsable /// The marketplace_pending_change property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MarketplacePurchase_marketplace_pending_change? MarketplacePendingChange { get; set; } + public global::GitHub.Models.MarketplacePurchase_marketplace_pending_change? MarketplacePendingChange { get; set; } #nullable restore #else - public MarketplacePurchase_marketplace_pending_change MarketplacePendingChange { get; set; } + public global::GitHub.Models.MarketplacePurchase_marketplace_pending_change MarketplacePendingChange { get; set; } #endif /// The marketplace_purchase property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MarketplacePurchase_marketplace_purchase? MarketplacePurchaseProp { get; set; } + public global::GitHub.Models.MarketplacePurchase_marketplace_purchase? MarketplacePurchaseProp { get; set; } #nullable restore #else - public MarketplacePurchase_marketplace_purchase MarketplacePurchaseProp { get; set; } + public global::GitHub.Models.MarketplacePurchase_marketplace_purchase MarketplacePurchaseProp { get; set; } #endif /// The organization_billing_email property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -71,7 +73,7 @@ public class MarketplacePurchase : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MarketplacePurchase() { @@ -80,12 +82,12 @@ public MarketplacePurchase() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MarketplacePurchase CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.MarketplacePurchase CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MarketplacePurchase(); + return new global::GitHub.Models.MarketplacePurchase(); } /// /// The deserialization information for the current model @@ -95,14 +97,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"email", n => { Email = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"marketplace_pending_change", n => { MarketplacePendingChange = n.GetObjectValue(MarketplacePurchase_marketplace_pending_change.CreateFromDiscriminatorValue); } }, - {"marketplace_purchase", n => { MarketplacePurchaseProp = n.GetObjectValue(MarketplacePurchase_marketplace_purchase.CreateFromDiscriminatorValue); } }, - {"organization_billing_email", n => { OrganizationBillingEmail = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "marketplace_pending_change", n => { MarketplacePendingChange = n.GetObjectValue(global::GitHub.Models.MarketplacePurchase_marketplace_pending_change.CreateFromDiscriminatorValue); } }, + { "marketplace_purchase", n => { MarketplacePurchaseProp = n.GetObjectValue(global::GitHub.Models.MarketplacePurchase_marketplace_purchase.CreateFromDiscriminatorValue); } }, + { "organization_billing_email", n => { OrganizationBillingEmail = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -115,8 +117,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("email", Email); writer.WriteIntValue("id", Id); writer.WriteStringValue("login", Login); - writer.WriteObjectValue("marketplace_pending_change", MarketplacePendingChange); - writer.WriteObjectValue("marketplace_purchase", MarketplacePurchaseProp); + writer.WriteObjectValue("marketplace_pending_change", MarketplacePendingChange); + writer.WriteObjectValue("marketplace_purchase", MarketplacePurchaseProp); writer.WriteStringValue("organization_billing_email", OrganizationBillingEmail); writer.WriteStringValue("type", Type); writer.WriteStringValue("url", Url); diff --git a/src/GitHub/Models/MarketplacePurchase_marketplace_pending_change.cs b/src/GitHub/Models/MarketplacePurchase_marketplace_pending_change.cs index b1509efa..95ff4576 100644 --- a/src/GitHub/Models/MarketplacePurchase_marketplace_pending_change.cs +++ b/src/GitHub/Models/MarketplacePurchase_marketplace_pending_change.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class MarketplacePurchase_marketplace_pending_change : IAdditionalDataHolder, IParsable + public partial class MarketplacePurchase_marketplace_pending_change : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -26,15 +28,15 @@ public class MarketplacePurchase_marketplace_pending_change : IAdditionalDataHol /// Marketplace Listing Plan #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MarketplaceListingPlan? Plan { get; set; } + public global::GitHub.Models.MarketplaceListingPlan? Plan { get; set; } #nullable restore #else - public MarketplaceListingPlan Plan { get; set; } + public global::GitHub.Models.MarketplaceListingPlan Plan { get; set; } #endif /// The unit_count property public int? UnitCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MarketplacePurchase_marketplace_pending_change() { @@ -43,12 +45,12 @@ public MarketplacePurchase_marketplace_pending_change() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MarketplacePurchase_marketplace_pending_change CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.MarketplacePurchase_marketplace_pending_change CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MarketplacePurchase_marketplace_pending_change(); + return new global::GitHub.Models.MarketplacePurchase_marketplace_pending_change(); } /// /// The deserialization information for the current model @@ -58,11 +60,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"effective_date", n => { EffectiveDate = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"is_installed", n => { IsInstalled = n.GetBoolValue(); } }, - {"plan", n => { Plan = n.GetObjectValue(MarketplaceListingPlan.CreateFromDiscriminatorValue); } }, - {"unit_count", n => { UnitCount = n.GetIntValue(); } }, + { "effective_date", n => { EffectiveDate = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "is_installed", n => { IsInstalled = n.GetBoolValue(); } }, + { "plan", n => { Plan = n.GetObjectValue(global::GitHub.Models.MarketplaceListingPlan.CreateFromDiscriminatorValue); } }, + { "unit_count", n => { UnitCount = n.GetIntValue(); } }, }; } /// @@ -75,7 +77,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("effective_date", EffectiveDate); writer.WriteIntValue("id", Id); writer.WriteBoolValue("is_installed", IsInstalled); - writer.WriteObjectValue("plan", Plan); + writer.WriteObjectValue("plan", Plan); writer.WriteIntValue("unit_count", UnitCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/MarketplacePurchase_marketplace_purchase.cs b/src/GitHub/Models/MarketplacePurchase_marketplace_purchase.cs index 5def177b..3cd867a1 100644 --- a/src/GitHub/Models/MarketplacePurchase_marketplace_purchase.cs +++ b/src/GitHub/Models/MarketplacePurchase_marketplace_purchase.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class MarketplacePurchase_marketplace_purchase : IAdditionalDataHolder, IParsable + public partial class MarketplacePurchase_marketplace_purchase : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -42,10 +44,10 @@ public class MarketplacePurchase_marketplace_purchase : IAdditionalDataHolder, I /// Marketplace Listing Plan #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MarketplaceListingPlan? Plan { get; set; } + public global::GitHub.Models.MarketplaceListingPlan? Plan { get; set; } #nullable restore #else - public MarketplaceListingPlan Plan { get; set; } + public global::GitHub.Models.MarketplaceListingPlan Plan { get; set; } #endif /// The unit_count property public int? UnitCount { get; set; } @@ -58,7 +60,7 @@ public class MarketplacePurchase_marketplace_purchase : IAdditionalDataHolder, I public string UpdatedAt { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MarketplacePurchase_marketplace_purchase() { @@ -67,12 +69,12 @@ public MarketplacePurchase_marketplace_purchase() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MarketplacePurchase_marketplace_purchase CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.MarketplacePurchase_marketplace_purchase CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MarketplacePurchase_marketplace_purchase(); + return new global::GitHub.Models.MarketplacePurchase_marketplace_purchase(); } /// /// The deserialization information for the current model @@ -82,14 +84,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"billing_cycle", n => { BillingCycle = n.GetStringValue(); } }, - {"free_trial_ends_on", n => { FreeTrialEndsOn = n.GetStringValue(); } }, - {"is_installed", n => { IsInstalled = n.GetBoolValue(); } }, - {"next_billing_date", n => { NextBillingDate = n.GetStringValue(); } }, - {"on_free_trial", n => { OnFreeTrial = n.GetBoolValue(); } }, - {"plan", n => { Plan = n.GetObjectValue(MarketplaceListingPlan.CreateFromDiscriminatorValue); } }, - {"unit_count", n => { UnitCount = n.GetIntValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetStringValue(); } }, + { "billing_cycle", n => { BillingCycle = n.GetStringValue(); } }, + { "free_trial_ends_on", n => { FreeTrialEndsOn = n.GetStringValue(); } }, + { "is_installed", n => { IsInstalled = n.GetBoolValue(); } }, + { "next_billing_date", n => { NextBillingDate = n.GetStringValue(); } }, + { "on_free_trial", n => { OnFreeTrial = n.GetBoolValue(); } }, + { "plan", n => { Plan = n.GetObjectValue(global::GitHub.Models.MarketplaceListingPlan.CreateFromDiscriminatorValue); } }, + { "unit_count", n => { UnitCount = n.GetIntValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetStringValue(); } }, }; } /// @@ -104,7 +106,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("is_installed", IsInstalled); writer.WriteStringValue("next_billing_date", NextBillingDate); writer.WriteBoolValue("on_free_trial", OnFreeTrial); - writer.WriteObjectValue("plan", Plan); + writer.WriteObjectValue("plan", Plan); writer.WriteIntValue("unit_count", UnitCount); writer.WriteStringValue("updated_at", UpdatedAt); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/MergedUpstream.cs b/src/GitHub/Models/MergedUpstream.cs index eb08300d..ff8ada29 100644 --- a/src/GitHub/Models/MergedUpstream.cs +++ b/src/GitHub/Models/MergedUpstream.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Results of a successful merge upstream request /// - public class MergedUpstream : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class MergedUpstream : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -21,7 +23,7 @@ public class MergedUpstream : IAdditionalDataHolder, IParsable public string BaseBranch { get; set; } #endif /// The merge_type property - public MergedUpstream_merge_type? MergeType { get; set; } + public global::GitHub.Models.MergedUpstream_merge_type? MergeType { get; set; } /// The message property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -31,7 +33,7 @@ public class MergedUpstream : IAdditionalDataHolder, IParsable public string Message { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MergedUpstream() { @@ -40,12 +42,12 @@ public MergedUpstream() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MergedUpstream CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.MergedUpstream CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MergedUpstream(); + return new global::GitHub.Models.MergedUpstream(); } /// /// The deserialization information for the current model @@ -55,9 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"base_branch", n => { BaseBranch = n.GetStringValue(); } }, - {"merge_type", n => { MergeType = n.GetEnumValue(); } }, - {"message", n => { Message = n.GetStringValue(); } }, + { "base_branch", n => { BaseBranch = n.GetStringValue(); } }, + { "merge_type", n => { MergeType = n.GetEnumValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, }; } /// @@ -68,7 +70,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("base_branch", BaseBranch); - writer.WriteEnumValue("merge_type", MergeType); + writer.WriteEnumValue("merge_type", MergeType); writer.WriteStringValue("message", Message); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/MergedUpstream_merge_type.cs b/src/GitHub/Models/MergedUpstream_merge_type.cs index fdd0261b..01e2db06 100644 --- a/src/GitHub/Models/MergedUpstream_merge_type.cs +++ b/src/GitHub/Models/MergedUpstream_merge_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum MergedUpstream_merge_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/Meta.cs b/src/GitHub/Models/Meta.cs index 071a3723..351925c9 100644 --- a/src/GitHub/Models/Meta.cs +++ b/src/GitHub/Models/Meta.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The metadata associated with the creation/updates to the user. /// - public class Meta : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Meta : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -37,9 +39,9 @@ public class Meta : IAdditionalDataHolder, IParsable public string Location { get; set; } #endif /// A type of a resource - public Meta_resourceType? ResourceType { get; set; } + public global::GitHub.Models.Meta_resourceType? ResourceType { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Meta() { @@ -48,12 +50,12 @@ public Meta() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Meta CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Meta CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Meta(); + return new global::GitHub.Models.Meta(); } /// /// The deserialization information for the current model @@ -63,10 +65,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created", n => { Created = n.GetStringValue(); } }, - {"lastModified", n => { LastModified = n.GetStringValue(); } }, - {"location", n => { Location = n.GetStringValue(); } }, - {"resourceType", n => { ResourceType = n.GetEnumValue(); } }, + { "created", n => { Created = n.GetStringValue(); } }, + { "lastModified", n => { LastModified = n.GetStringValue(); } }, + { "location", n => { Location = n.GetStringValue(); } }, + { "resourceType", n => { ResourceType = n.GetEnumValue(); } }, }; } /// @@ -79,7 +81,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("created", Created); writer.WriteStringValue("lastModified", LastModified); writer.WriteStringValue("location", Location); - writer.WriteEnumValue("resourceType", ResourceType); + writer.WriteEnumValue("resourceType", ResourceType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/Meta_resourceType.cs b/src/GitHub/Models/Meta_resourceType.cs index 4e48266e..6aee442a 100644 --- a/src/GitHub/Models/Meta_resourceType.cs +++ b/src/GitHub/Models/Meta_resourceType.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// A type of a resource + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum Meta_resourceType { [EnumMember(Value = "User")] diff --git a/src/GitHub/Models/Metadata.cs b/src/GitHub/Models/Metadata.cs index b4d10aa3..5419d88c 100644 --- a/src/GitHub/Models/Metadata.cs +++ b/src/GitHub/Models/Metadata.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// User-defined metadata to store domain-specific information limited to 8 keys with scalar values. /// - public class Metadata : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Metadata : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Metadata() { @@ -22,12 +24,12 @@ public Metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Metadata(); + return new global::GitHub.Models.Metadata(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/Migration.cs b/src/GitHub/Models/Migration.cs index 997a1571..67fe5f99 100644 --- a/src/GitHub/Models/Migration.cs +++ b/src/GitHub/Models/Migration.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A migration. /// - public class Migration : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Migration : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -65,18 +67,18 @@ public class Migration : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Owner { get; set; } + public global::GitHub.Models.NullableSimpleUser? Owner { get; set; } #nullable restore #else - public NullableSimpleUser Owner { get; set; } + public global::GitHub.Models.NullableSimpleUser Owner { get; set; } #endif /// The repositories included in the migration. Only returned for export migrations. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Repositories { get; set; } + public List? Repositories { get; set; } #nullable restore #else - public List Repositories { get; set; } + public List Repositories { get; set; } #endif /// The state property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +99,7 @@ public class Migration : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Migration() { @@ -106,12 +108,12 @@ public Migration() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Migration CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Migration CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Migration(); + return new global::GitHub.Models.Migration(); } /// /// The deserialization information for the current model @@ -121,24 +123,24 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"exclude", n => { Exclude = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"exclude_attachments", n => { ExcludeAttachments = n.GetBoolValue(); } }, - {"exclude_git_data", n => { ExcludeGitData = n.GetBoolValue(); } }, - {"exclude_metadata", n => { ExcludeMetadata = n.GetBoolValue(); } }, - {"exclude_owner_projects", n => { ExcludeOwnerProjects = n.GetBoolValue(); } }, - {"exclude_releases", n => { ExcludeReleases = n.GetBoolValue(); } }, - {"guid", n => { Guid = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"lock_repositories", n => { LockRepositories = n.GetBoolValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"org_metadata_only", n => { OrgMetadataOnly = n.GetBoolValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"repositories", n => { Repositories = n.GetCollectionOfObjectValues(Repository.CreateFromDiscriminatorValue)?.ToList(); } }, - {"state", n => { State = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "exclude", n => { Exclude = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "exclude_attachments", n => { ExcludeAttachments = n.GetBoolValue(); } }, + { "exclude_git_data", n => { ExcludeGitData = n.GetBoolValue(); } }, + { "exclude_metadata", n => { ExcludeMetadata = n.GetBoolValue(); } }, + { "exclude_owner_projects", n => { ExcludeOwnerProjects = n.GetBoolValue(); } }, + { "exclude_releases", n => { ExcludeReleases = n.GetBoolValue(); } }, + { "guid", n => { Guid = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "lock_repositories", n => { LockRepositories = n.GetBoolValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "org_metadata_only", n => { OrgMetadataOnly = n.GetBoolValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "repositories", n => { Repositories = n.GetCollectionOfObjectValues(global::GitHub.Models.Repository.CreateFromDiscriminatorValue)?.AsList(); } }, + { "state", n => { State = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -161,8 +163,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("lock_repositories", LockRepositories); writer.WriteStringValue("node_id", NodeId); writer.WriteBoolValue("org_metadata_only", OrgMetadataOnly); - writer.WriteObjectValue("owner", Owner); - writer.WriteCollectionOfObjectValues("repositories", Repositories); + writer.WriteObjectValue("owner", Owner); + writer.WriteCollectionOfObjectValues("repositories", Repositories); writer.WriteStringValue("state", State); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); diff --git a/src/GitHub/Models/Milestone.cs b/src/GitHub/Models/Milestone.cs index fe1e10ba..e7f8d69c 100644 --- a/src/GitHub/Models/Milestone.cs +++ b/src/GitHub/Models/Milestone.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A collection of related issues and pull requests. /// - public class Milestone : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Milestone : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -21,10 +23,10 @@ public class Milestone : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Creator { get; set; } + public global::GitHub.Models.NullableSimpleUser? Creator { get; set; } #nullable restore #else - public NullableSimpleUser Creator { get; set; } + public global::GitHub.Models.NullableSimpleUser Creator { get; set; } #endif /// The description property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -67,7 +69,7 @@ public class Milestone : IAdditionalDataHolder, IParsable /// The open_issues property public int? OpenIssues { get; set; } /// The state of the milestone. - public Milestone_state? State { get; set; } + public global::GitHub.Models.Milestone_state? State { get; set; } /// The title of the milestone. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -87,22 +89,22 @@ public class Milestone : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Milestone() { AdditionalData = new Dictionary(); - State = Milestone_state.Open; + State = global::GitHub.Models.Milestone_state.Open; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Milestone CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Milestone CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Milestone(); + return new global::GitHub.Models.Milestone(); } /// /// The deserialization information for the current model @@ -112,22 +114,22 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"closed_at", n => { ClosedAt = n.GetDateTimeOffsetValue(); } }, - {"closed_issues", n => { ClosedIssues = n.GetIntValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"creator", n => { Creator = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"due_on", n => { DueOn = n.GetDateTimeOffsetValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"labels_url", n => { LabelsUrl = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"number", n => { Number = n.GetIntValue(); } }, - {"open_issues", n => { OpenIssues = n.GetIntValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "closed_at", n => { ClosedAt = n.GetDateTimeOffsetValue(); } }, + { "closed_issues", n => { ClosedIssues = n.GetIntValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "creator", n => { Creator = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "due_on", n => { DueOn = n.GetDateTimeOffsetValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "labels_url", n => { LabelsUrl = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "number", n => { Number = n.GetIntValue(); } }, + { "open_issues", n => { OpenIssues = n.GetIntValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -140,7 +142,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("closed_at", ClosedAt); writer.WriteIntValue("closed_issues", ClosedIssues); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); - writer.WriteObjectValue("creator", Creator); + writer.WriteObjectValue("creator", Creator); writer.WriteStringValue("description", Description); writer.WriteDateTimeOffsetValue("due_on", DueOn); writer.WriteStringValue("html_url", HtmlUrl); @@ -149,7 +151,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("node_id", NodeId); writer.WriteIntValue("number", Number); writer.WriteIntValue("open_issues", OpenIssues); - writer.WriteEnumValue("state", State); + writer.WriteEnumValue("state", State); writer.WriteStringValue("title", Title); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); diff --git a/src/GitHub/Models/Milestone_state.cs b/src/GitHub/Models/Milestone_state.cs index 7a06fb05..cf130346 100644 --- a/src/GitHub/Models/Milestone_state.cs +++ b/src/GitHub/Models/Milestone_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The state of the milestone. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum Milestone_state { [EnumMember(Value = "open")] diff --git a/src/GitHub/Models/MilestonedIssueEvent.cs b/src/GitHub/Models/MilestonedIssueEvent.cs index 8bd33a7a..d2164029 100644 --- a/src/GitHub/Models/MilestonedIssueEvent.cs +++ b/src/GitHub/Models/MilestonedIssueEvent.cs @@ -1,22 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Milestoned Issue Event /// - public class MilestonedIssueEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class MilestonedIssueEvent : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -57,10 +59,10 @@ public class MilestonedIssueEvent : IAdditionalDataHolder, IParsable /// The milestone property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MilestonedIssueEvent_milestone? Milestone { get; set; } + public global::GitHub.Models.MilestonedIssueEvent_milestone? Milestone { get; set; } #nullable restore #else - public MilestonedIssueEvent_milestone Milestone { get; set; } + public global::GitHub.Models.MilestonedIssueEvent_milestone Milestone { get; set; } #endif /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,10 +75,10 @@ public class MilestonedIssueEvent : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +89,7 @@ public class MilestonedIssueEvent : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MilestonedIssueEvent() { @@ -96,12 +98,12 @@ public MilestonedIssueEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MilestonedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.MilestonedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MilestonedIssueEvent(); + return new global::GitHub.Models.MilestonedIssueEvent(); } /// /// The deserialization information for the current model @@ -111,16 +113,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"milestone", n => { Milestone = n.GetObjectValue(MilestonedIssueEvent_milestone.CreateFromDiscriminatorValue); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "milestone", n => { Milestone = n.GetObjectValue(global::GitHub.Models.MilestonedIssueEvent_milestone.CreateFromDiscriminatorValue); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -130,15 +132,15 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("actor", Actor); writer.WriteStringValue("commit_id", CommitId); writer.WriteStringValue("commit_url", CommitUrl); writer.WriteStringValue("created_at", CreatedAt); writer.WriteStringValue("event", Event); writer.WriteIntValue("id", Id); - writer.WriteObjectValue("milestone", Milestone); + writer.WriteObjectValue("milestone", Milestone); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/MilestonedIssueEvent_milestone.cs b/src/GitHub/Models/MilestonedIssueEvent_milestone.cs index 3ce0c8b8..a028cf41 100644 --- a/src/GitHub/Models/MilestonedIssueEvent_milestone.cs +++ b/src/GitHub/Models/MilestonedIssueEvent_milestone.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class MilestonedIssueEvent_milestone : IAdditionalDataHolder, IParsable + public partial class MilestonedIssueEvent_milestone : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class MilestonedIssueEvent_milestone : IAdditionalDataHolder, IParsable public string Title { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MilestonedIssueEvent_milestone() { @@ -29,12 +31,12 @@ public MilestonedIssueEvent_milestone() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MilestonedIssueEvent_milestone CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.MilestonedIssueEvent_milestone CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MilestonedIssueEvent_milestone(); + return new global::GitHub.Models.MilestonedIssueEvent_milestone(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"title", n => { Title = n.GetStringValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/MinimalRepository.cs b/src/GitHub/Models/MinimalRepository.cs index adc07680..32486f5a 100644 --- a/src/GitHub/Models/MinimalRepository.cs +++ b/src/GitHub/Models/MinimalRepository.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Minimal Repository /// - public class MinimalRepository : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class MinimalRepository : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -59,10 +61,10 @@ public class MinimalRepository : IAdditionalDataHolder, IParsable /// Code Of Conduct #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.CodeOfConduct? CodeOfConduct { get; set; } + public global::GitHub.Models.CodeOfConduct? CodeOfConduct { get; set; } #nullable restore #else - public GitHub.Models.CodeOfConduct CodeOfConduct { get; set; } + public global::GitHub.Models.CodeOfConduct CodeOfConduct { get; set; } #endif /// The collaborators_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -311,10 +313,10 @@ public class MinimalRepository : IAdditionalDataHolder, IParsable /// The license property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MinimalRepository_license? License { get; set; } + public global::GitHub.Models.MinimalRepository_license? License { get; set; } #nullable restore #else - public MinimalRepository_license License { get; set; } + public global::GitHub.Models.MinimalRepository_license License { get; set; } #endif /// The merges_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -373,18 +375,18 @@ public class MinimalRepository : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Owner { get; set; } + public global::GitHub.Models.SimpleUser? Owner { get; set; } #nullable restore #else - public SimpleUser Owner { get; set; } + public global::GitHub.Models.SimpleUser Owner { get; set; } #endif /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MinimalRepository_permissions? Permissions { get; set; } + public global::GitHub.Models.MinimalRepository_permissions? Permissions { get; set; } #nullable restore #else - public MinimalRepository_permissions Permissions { get; set; } + public global::GitHub.Models.MinimalRepository_permissions Permissions { get; set; } #endif /// The private property public bool? Private { get; set; } @@ -417,10 +419,10 @@ public class MinimalRepository : IAdditionalDataHolder, IParsable /// The security_and_analysis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SecurityAndAnalysis? SecurityAndAnalysis { get; set; } + public global::GitHub.Models.SecurityAndAnalysis? SecurityAndAnalysis { get; set; } #nullable restore #else - public GitHub.Models.SecurityAndAnalysis SecurityAndAnalysis { get; set; } + public global::GitHub.Models.SecurityAndAnalysis SecurityAndAnalysis { get; set; } #endif /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. public int? Size { get; set; } @@ -541,7 +543,7 @@ public class MinimalRepository : IAdditionalDataHolder, IParsable /// The web_commit_signoff_required property public bool? WebCommitSignoffRequired { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MinimalRepository() { @@ -550,12 +552,12 @@ public MinimalRepository() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MinimalRepository CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.MinimalRepository CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MinimalRepository(); + return new global::GitHub.Models.MinimalRepository(); } /// /// The deserialization information for the current model @@ -565,93 +567,93 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allow_forking", n => { AllowForking = n.GetBoolValue(); } }, - {"archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, - {"archived", n => { Archived = n.GetBoolValue(); } }, - {"assignees_url", n => { AssigneesUrl = n.GetStringValue(); } }, - {"blobs_url", n => { BlobsUrl = n.GetStringValue(); } }, - {"branches_url", n => { BranchesUrl = n.GetStringValue(); } }, - {"clone_url", n => { CloneUrl = n.GetStringValue(); } }, - {"code_of_conduct", n => { CodeOfConduct = n.GetObjectValue(GitHub.Models.CodeOfConduct.CreateFromDiscriminatorValue); } }, - {"collaborators_url", n => { CollaboratorsUrl = n.GetStringValue(); } }, - {"comments_url", n => { CommentsUrl = n.GetStringValue(); } }, - {"commits_url", n => { CommitsUrl = n.GetStringValue(); } }, - {"compare_url", n => { CompareUrl = n.GetStringValue(); } }, - {"contents_url", n => { ContentsUrl = n.GetStringValue(); } }, - {"contributors_url", n => { ContributorsUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"default_branch", n => { DefaultBranch = n.GetStringValue(); } }, - {"delete_branch_on_merge", n => { DeleteBranchOnMerge = n.GetBoolValue(); } }, - {"deployments_url", n => { DeploymentsUrl = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"disabled", n => { Disabled = n.GetBoolValue(); } }, - {"downloads_url", n => { DownloadsUrl = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"fork", n => { Fork = n.GetBoolValue(); } }, - {"forks", n => { Forks = n.GetIntValue(); } }, - {"forks_count", n => { ForksCount = n.GetIntValue(); } }, - {"forks_url", n => { ForksUrl = n.GetStringValue(); } }, - {"full_name", n => { FullName = n.GetStringValue(); } }, - {"git_commits_url", n => { GitCommitsUrl = n.GetStringValue(); } }, - {"git_refs_url", n => { GitRefsUrl = n.GetStringValue(); } }, - {"git_tags_url", n => { GitTagsUrl = n.GetStringValue(); } }, - {"git_url", n => { GitUrl = n.GetStringValue(); } }, - {"has_discussions", n => { HasDiscussions = n.GetBoolValue(); } }, - {"has_downloads", n => { HasDownloads = n.GetBoolValue(); } }, - {"has_issues", n => { HasIssues = n.GetBoolValue(); } }, - {"has_pages", n => { HasPages = n.GetBoolValue(); } }, - {"has_projects", n => { HasProjects = n.GetBoolValue(); } }, - {"has_wiki", n => { HasWiki = n.GetBoolValue(); } }, - {"homepage", n => { Homepage = n.GetStringValue(); } }, - {"hooks_url", n => { HooksUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"is_template", n => { IsTemplate = n.GetBoolValue(); } }, - {"issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, - {"issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } }, - {"issues_url", n => { IssuesUrl = n.GetStringValue(); } }, - {"keys_url", n => { KeysUrl = n.GetStringValue(); } }, - {"labels_url", n => { LabelsUrl = n.GetStringValue(); } }, - {"language", n => { Language = n.GetStringValue(); } }, - {"languages_url", n => { LanguagesUrl = n.GetStringValue(); } }, - {"license", n => { License = n.GetObjectValue(MinimalRepository_license.CreateFromDiscriminatorValue); } }, - {"merges_url", n => { MergesUrl = n.GetStringValue(); } }, - {"milestones_url", n => { MilestonesUrl = n.GetStringValue(); } }, - {"mirror_url", n => { MirrorUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"network_count", n => { NetworkCount = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, - {"open_issues", n => { OpenIssues = n.GetIntValue(); } }, - {"open_issues_count", n => { OpenIssuesCount = n.GetIntValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"permissions", n => { Permissions = n.GetObjectValue(MinimalRepository_permissions.CreateFromDiscriminatorValue); } }, - {"private", n => { Private = n.GetBoolValue(); } }, - {"pulls_url", n => { PullsUrl = n.GetStringValue(); } }, - {"pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, - {"releases_url", n => { ReleasesUrl = n.GetStringValue(); } }, - {"role_name", n => { RoleName = n.GetStringValue(); } }, - {"security_and_analysis", n => { SecurityAndAnalysis = n.GetObjectValue(GitHub.Models.SecurityAndAnalysis.CreateFromDiscriminatorValue); } }, - {"size", n => { Size = n.GetIntValue(); } }, - {"ssh_url", n => { SshUrl = n.GetStringValue(); } }, - {"stargazers_count", n => { StargazersCount = n.GetIntValue(); } }, - {"stargazers_url", n => { StargazersUrl = n.GetStringValue(); } }, - {"statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, - {"subscribers_count", n => { SubscribersCount = n.GetIntValue(); } }, - {"subscribers_url", n => { SubscribersUrl = n.GetStringValue(); } }, - {"subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, - {"svn_url", n => { SvnUrl = n.GetStringValue(); } }, - {"tags_url", n => { TagsUrl = n.GetStringValue(); } }, - {"teams_url", n => { TeamsUrl = n.GetStringValue(); } }, - {"temp_clone_token", n => { TempCloneToken = n.GetStringValue(); } }, - {"topics", n => { Topics = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"trees_url", n => { TreesUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"visibility", n => { Visibility = n.GetStringValue(); } }, - {"watchers", n => { Watchers = n.GetIntValue(); } }, - {"watchers_count", n => { WatchersCount = n.GetIntValue(); } }, - {"web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, + { "allow_forking", n => { AllowForking = n.GetBoolValue(); } }, + { "archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, + { "archived", n => { Archived = n.GetBoolValue(); } }, + { "assignees_url", n => { AssigneesUrl = n.GetStringValue(); } }, + { "blobs_url", n => { BlobsUrl = n.GetStringValue(); } }, + { "branches_url", n => { BranchesUrl = n.GetStringValue(); } }, + { "clone_url", n => { CloneUrl = n.GetStringValue(); } }, + { "code_of_conduct", n => { CodeOfConduct = n.GetObjectValue(global::GitHub.Models.CodeOfConduct.CreateFromDiscriminatorValue); } }, + { "collaborators_url", n => { CollaboratorsUrl = n.GetStringValue(); } }, + { "comments_url", n => { CommentsUrl = n.GetStringValue(); } }, + { "commits_url", n => { CommitsUrl = n.GetStringValue(); } }, + { "compare_url", n => { CompareUrl = n.GetStringValue(); } }, + { "contents_url", n => { ContentsUrl = n.GetStringValue(); } }, + { "contributors_url", n => { ContributorsUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "default_branch", n => { DefaultBranch = n.GetStringValue(); } }, + { "delete_branch_on_merge", n => { DeleteBranchOnMerge = n.GetBoolValue(); } }, + { "deployments_url", n => { DeploymentsUrl = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "disabled", n => { Disabled = n.GetBoolValue(); } }, + { "downloads_url", n => { DownloadsUrl = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "fork", n => { Fork = n.GetBoolValue(); } }, + { "forks", n => { Forks = n.GetIntValue(); } }, + { "forks_count", n => { ForksCount = n.GetIntValue(); } }, + { "forks_url", n => { ForksUrl = n.GetStringValue(); } }, + { "full_name", n => { FullName = n.GetStringValue(); } }, + { "git_commits_url", n => { GitCommitsUrl = n.GetStringValue(); } }, + { "git_refs_url", n => { GitRefsUrl = n.GetStringValue(); } }, + { "git_tags_url", n => { GitTagsUrl = n.GetStringValue(); } }, + { "git_url", n => { GitUrl = n.GetStringValue(); } }, + { "has_discussions", n => { HasDiscussions = n.GetBoolValue(); } }, + { "has_downloads", n => { HasDownloads = n.GetBoolValue(); } }, + { "has_issues", n => { HasIssues = n.GetBoolValue(); } }, + { "has_pages", n => { HasPages = n.GetBoolValue(); } }, + { "has_projects", n => { HasProjects = n.GetBoolValue(); } }, + { "has_wiki", n => { HasWiki = n.GetBoolValue(); } }, + { "homepage", n => { Homepage = n.GetStringValue(); } }, + { "hooks_url", n => { HooksUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "is_template", n => { IsTemplate = n.GetBoolValue(); } }, + { "issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, + { "issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } }, + { "issues_url", n => { IssuesUrl = n.GetStringValue(); } }, + { "keys_url", n => { KeysUrl = n.GetStringValue(); } }, + { "labels_url", n => { LabelsUrl = n.GetStringValue(); } }, + { "language", n => { Language = n.GetStringValue(); } }, + { "languages_url", n => { LanguagesUrl = n.GetStringValue(); } }, + { "license", n => { License = n.GetObjectValue(global::GitHub.Models.MinimalRepository_license.CreateFromDiscriminatorValue); } }, + { "merges_url", n => { MergesUrl = n.GetStringValue(); } }, + { "milestones_url", n => { MilestonesUrl = n.GetStringValue(); } }, + { "mirror_url", n => { MirrorUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "network_count", n => { NetworkCount = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, + { "open_issues", n => { OpenIssues = n.GetIntValue(); } }, + { "open_issues_count", n => { OpenIssuesCount = n.GetIntValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.MinimalRepository_permissions.CreateFromDiscriminatorValue); } }, + { "private", n => { Private = n.GetBoolValue(); } }, + { "pulls_url", n => { PullsUrl = n.GetStringValue(); } }, + { "pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, + { "releases_url", n => { ReleasesUrl = n.GetStringValue(); } }, + { "role_name", n => { RoleName = n.GetStringValue(); } }, + { "security_and_analysis", n => { SecurityAndAnalysis = n.GetObjectValue(global::GitHub.Models.SecurityAndAnalysis.CreateFromDiscriminatorValue); } }, + { "size", n => { Size = n.GetIntValue(); } }, + { "ssh_url", n => { SshUrl = n.GetStringValue(); } }, + { "stargazers_count", n => { StargazersCount = n.GetIntValue(); } }, + { "stargazers_url", n => { StargazersUrl = n.GetStringValue(); } }, + { "statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, + { "subscribers_count", n => { SubscribersCount = n.GetIntValue(); } }, + { "subscribers_url", n => { SubscribersUrl = n.GetStringValue(); } }, + { "subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, + { "svn_url", n => { SvnUrl = n.GetStringValue(); } }, + { "tags_url", n => { TagsUrl = n.GetStringValue(); } }, + { "teams_url", n => { TeamsUrl = n.GetStringValue(); } }, + { "temp_clone_token", n => { TempCloneToken = n.GetStringValue(); } }, + { "topics", n => { Topics = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "trees_url", n => { TreesUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "visibility", n => { Visibility = n.GetStringValue(); } }, + { "watchers", n => { Watchers = n.GetIntValue(); } }, + { "watchers_count", n => { WatchersCount = n.GetIntValue(); } }, + { "web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, }; } /// @@ -668,7 +670,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("blobs_url", BlobsUrl); writer.WriteStringValue("branches_url", BranchesUrl); writer.WriteStringValue("clone_url", CloneUrl); - writer.WriteObjectValue("code_of_conduct", CodeOfConduct); + writer.WriteObjectValue("code_of_conduct", CodeOfConduct); writer.WriteStringValue("collaborators_url", CollaboratorsUrl); writer.WriteStringValue("comments_url", CommentsUrl); writer.WriteStringValue("commits_url", CommitsUrl); @@ -710,7 +712,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("labels_url", LabelsUrl); writer.WriteStringValue("language", Language); writer.WriteStringValue("languages_url", LanguagesUrl); - writer.WriteObjectValue("license", License); + writer.WriteObjectValue("license", License); writer.WriteStringValue("merges_url", MergesUrl); writer.WriteStringValue("milestones_url", MilestonesUrl); writer.WriteStringValue("mirror_url", MirrorUrl); @@ -720,14 +722,14 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("notifications_url", NotificationsUrl); writer.WriteIntValue("open_issues", OpenIssues); writer.WriteIntValue("open_issues_count", OpenIssuesCount); - writer.WriteObjectValue("owner", Owner); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("owner", Owner); + writer.WriteObjectValue("permissions", Permissions); writer.WriteBoolValue("private", Private); writer.WriteStringValue("pulls_url", PullsUrl); writer.WriteDateTimeOffsetValue("pushed_at", PushedAt); writer.WriteStringValue("releases_url", ReleasesUrl); writer.WriteStringValue("role_name", RoleName); - writer.WriteObjectValue("security_and_analysis", SecurityAndAnalysis); + writer.WriteObjectValue("security_and_analysis", SecurityAndAnalysis); writer.WriteIntValue("size", Size); writer.WriteStringValue("ssh_url", SshUrl); writer.WriteIntValue("stargazers_count", StargazersCount); diff --git a/src/GitHub/Models/MinimalRepository_license.cs b/src/GitHub/Models/MinimalRepository_license.cs index 46051b93..e659730c 100644 --- a/src/GitHub/Models/MinimalRepository_license.cs +++ b/src/GitHub/Models/MinimalRepository_license.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class MinimalRepository_license : IAdditionalDataHolder, IParsable + public partial class MinimalRepository_license : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -52,7 +54,7 @@ public class MinimalRepository_license : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MinimalRepository_license() { @@ -61,12 +63,12 @@ public MinimalRepository_license() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MinimalRepository_license CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.MinimalRepository_license CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MinimalRepository_license(); + return new global::GitHub.Models.MinimalRepository_license(); } /// /// The deserialization information for the current model @@ -76,11 +78,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"key", n => { Key = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"spdx_id", n => { SpdxId = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "key", n => { Key = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "spdx_id", n => { SpdxId = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/MinimalRepository_permissions.cs b/src/GitHub/Models/MinimalRepository_permissions.cs index 64b3e49c..f151c593 100644 --- a/src/GitHub/Models/MinimalRepository_permissions.cs +++ b/src/GitHub/Models/MinimalRepository_permissions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class MinimalRepository_permissions : IAdditionalDataHolder, IParsable + public partial class MinimalRepository_permissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class MinimalRepository_permissions : IAdditionalDataHolder, IParsable /// The triage property public bool? Triage { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MinimalRepository_permissions() { @@ -31,12 +33,12 @@ public MinimalRepository_permissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MinimalRepository_permissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.MinimalRepository_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MinimalRepository_permissions(); + return new global::GitHub.Models.MinimalRepository_permissions(); } /// /// The deserialization information for the current model @@ -46,11 +48,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"admin", n => { Admin = n.GetBoolValue(); } }, - {"maintain", n => { Maintain = n.GetBoolValue(); } }, - {"pull", n => { Pull = n.GetBoolValue(); } }, - {"push", n => { Push = n.GetBoolValue(); } }, - {"triage", n => { Triage = n.GetBoolValue(); } }, + { "admin", n => { Admin = n.GetBoolValue(); } }, + { "maintain", n => { Maintain = n.GetBoolValue(); } }, + { "pull", n => { Pull = n.GetBoolValue(); } }, + { "push", n => { Push = n.GetBoolValue(); } }, + { "triage", n => { Triage = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/MovedColumnInProjectIssueEvent.cs b/src/GitHub/Models/MovedColumnInProjectIssueEvent.cs index be71c90d..85e8c066 100644 --- a/src/GitHub/Models/MovedColumnInProjectIssueEvent.cs +++ b/src/GitHub/Models/MovedColumnInProjectIssueEvent.cs @@ -1,22 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Moved Column in Project Issue Event /// - public class MovedColumnInProjectIssueEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class MovedColumnInProjectIssueEvent : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -65,18 +67,18 @@ public class MovedColumnInProjectIssueEvent : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// The project_card property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MovedColumnInProjectIssueEvent_project_card? ProjectCard { get; set; } + public global::GitHub.Models.MovedColumnInProjectIssueEvent_project_card? ProjectCard { get; set; } #nullable restore #else - public MovedColumnInProjectIssueEvent_project_card ProjectCard { get; set; } + public global::GitHub.Models.MovedColumnInProjectIssueEvent_project_card ProjectCard { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +89,7 @@ public class MovedColumnInProjectIssueEvent : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MovedColumnInProjectIssueEvent() { @@ -96,12 +98,12 @@ public MovedColumnInProjectIssueEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MovedColumnInProjectIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.MovedColumnInProjectIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MovedColumnInProjectIssueEvent(); + return new global::GitHub.Models.MovedColumnInProjectIssueEvent(); } /// /// The deserialization information for the current model @@ -111,16 +113,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"project_card", n => { ProjectCard = n.GetObjectValue(MovedColumnInProjectIssueEvent_project_card.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "project_card", n => { ProjectCard = n.GetObjectValue(global::GitHub.Models.MovedColumnInProjectIssueEvent_project_card.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -130,15 +132,15 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("actor", Actor); writer.WriteStringValue("commit_id", CommitId); writer.WriteStringValue("commit_url", CommitUrl); writer.WriteStringValue("created_at", CreatedAt); writer.WriteStringValue("event", Event); writer.WriteIntValue("id", Id); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); - writer.WriteObjectValue("project_card", ProjectCard); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("project_card", ProjectCard); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/MovedColumnInProjectIssueEvent_project_card.cs b/src/GitHub/Models/MovedColumnInProjectIssueEvent_project_card.cs index 0e2f744e..393c0799 100644 --- a/src/GitHub/Models/MovedColumnInProjectIssueEvent_project_card.cs +++ b/src/GitHub/Models/MovedColumnInProjectIssueEvent_project_card.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class MovedColumnInProjectIssueEvent_project_card : IAdditionalDataHolder, IParsable + public partial class MovedColumnInProjectIssueEvent_project_card : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -48,7 +50,7 @@ public class MovedColumnInProjectIssueEvent_project_card : IAdditionalDataHolder public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MovedColumnInProjectIssueEvent_project_card() { @@ -57,12 +59,12 @@ public MovedColumnInProjectIssueEvent_project_card() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MovedColumnInProjectIssueEvent_project_card CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.MovedColumnInProjectIssueEvent_project_card CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MovedColumnInProjectIssueEvent_project_card(); + return new global::GitHub.Models.MovedColumnInProjectIssueEvent_project_card(); } /// /// The deserialization information for the current model @@ -72,12 +74,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"column_name", n => { ColumnName = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"previous_column_name", n => { PreviousColumnName = n.GetStringValue(); } }, - {"project_id", n => { ProjectId = n.GetIntValue(); } }, - {"project_url", n => { ProjectUrl = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "column_name", n => { ColumnName = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "previous_column_name", n => { PreviousColumnName = n.GetStringValue(); } }, + { "project_id", n => { ProjectId = n.GetIntValue(); } }, + { "project_url", n => { ProjectUrl = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/NullableCodeOfConductSimple.cs b/src/GitHub/Models/NullableCodeOfConductSimple.cs index 7843ec50..dfd17430 100644 --- a/src/GitHub/Models/NullableCodeOfConductSimple.cs +++ b/src/GitHub/Models/NullableCodeOfConductSimple.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Code of Conduct Simple /// - public class NullableCodeOfConductSimple : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class NullableCodeOfConductSimple : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -45,7 +47,7 @@ public class NullableCodeOfConductSimple : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableCodeOfConductSimple() { @@ -54,12 +56,12 @@ public NullableCodeOfConductSimple() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableCodeOfConductSimple CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableCodeOfConductSimple CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableCodeOfConductSimple(); + return new global::GitHub.Models.NullableCodeOfConductSimple(); } /// /// The deserialization information for the current model @@ -69,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"key", n => { Key = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "key", n => { Key = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/NullableCodespaceMachine.cs b/src/GitHub/Models/NullableCodespaceMachine.cs index 6eeb0402..73a779e1 100644 --- a/src/GitHub/Models/NullableCodespaceMachine.cs +++ b/src/GitHub/Models/NullableCodespaceMachine.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A description of the machine powering a codespace. /// - public class NullableCodespaceMachine : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class NullableCodespaceMachine : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -41,11 +43,11 @@ public class NullableCodespaceMachine : IAdditionalDataHolder, IParsable public string OperatingSystem { get; set; } #endif /// Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status. - public NullableCodespaceMachine_prebuild_availability? PrebuildAvailability { get; set; } + public global::GitHub.Models.NullableCodespaceMachine_prebuild_availability? PrebuildAvailability { get; set; } /// How much storage is available to the codespace. public int? StorageInBytes { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableCodespaceMachine() { @@ -54,12 +56,12 @@ public NullableCodespaceMachine() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableCodespaceMachine CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableCodespaceMachine CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableCodespaceMachine(); + return new global::GitHub.Models.NullableCodespaceMachine(); } /// /// The deserialization information for the current model @@ -69,13 +71,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"cpus", n => { Cpus = n.GetIntValue(); } }, - {"display_name", n => { DisplayName = n.GetStringValue(); } }, - {"memory_in_bytes", n => { MemoryInBytes = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"operating_system", n => { OperatingSystem = n.GetStringValue(); } }, - {"prebuild_availability", n => { PrebuildAvailability = n.GetEnumValue(); } }, - {"storage_in_bytes", n => { StorageInBytes = n.GetIntValue(); } }, + { "cpus", n => { Cpus = n.GetIntValue(); } }, + { "display_name", n => { DisplayName = n.GetStringValue(); } }, + { "memory_in_bytes", n => { MemoryInBytes = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "operating_system", n => { OperatingSystem = n.GetStringValue(); } }, + { "prebuild_availability", n => { PrebuildAvailability = n.GetEnumValue(); } }, + { "storage_in_bytes", n => { StorageInBytes = n.GetIntValue(); } }, }; } /// @@ -90,7 +92,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("memory_in_bytes", MemoryInBytes); writer.WriteStringValue("name", Name); writer.WriteStringValue("operating_system", OperatingSystem); - writer.WriteEnumValue("prebuild_availability", PrebuildAvailability); + writer.WriteEnumValue("prebuild_availability", PrebuildAvailability); writer.WriteIntValue("storage_in_bytes", StorageInBytes); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/NullableCodespaceMachine_prebuild_availability.cs b/src/GitHub/Models/NullableCodespaceMachine_prebuild_availability.cs index 32ed25d9..6d081519 100644 --- a/src/GitHub/Models/NullableCodespaceMachine_prebuild_availability.cs +++ b/src/GitHub/Models/NullableCodespaceMachine_prebuild_availability.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum NullableCodespaceMachine_prebuild_availability { [EnumMember(Value = "none")] diff --git a/src/GitHub/Models/NullableCollaborator.cs b/src/GitHub/Models/NullableCollaborator.cs index 26ed8213..1b894598 100644 --- a/src/GitHub/Models/NullableCollaborator.cs +++ b/src/GitHub/Models/NullableCollaborator.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Collaborator /// - public class NullableCollaborator : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class NullableCollaborator : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -113,10 +115,10 @@ public class NullableCollaborator : IAdditionalDataHolder, IParsable /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableCollaborator_permissions? Permissions { get; set; } + public global::GitHub.Models.NullableCollaborator_permissions? Permissions { get; set; } #nullable restore #else - public NullableCollaborator_permissions Permissions { get; set; } + public global::GitHub.Models.NullableCollaborator_permissions Permissions { get; set; } #endif /// The received_events_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -177,7 +179,7 @@ public class NullableCollaborator : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableCollaborator() { @@ -186,12 +188,12 @@ public NullableCollaborator() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableCollaborator CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableCollaborator CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableCollaborator(); + return new global::GitHub.Models.NullableCollaborator(); } /// /// The deserialization information for the current model @@ -201,28 +203,28 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"followers_url", n => { FollowersUrl = n.GetStringValue(); } }, - {"following_url", n => { FollowingUrl = n.GetStringValue(); } }, - {"gists_url", n => { GistsUrl = n.GetStringValue(); } }, - {"gravatar_id", n => { GravatarId = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, - {"permissions", n => { Permissions = n.GetObjectValue(NullableCollaborator_permissions.CreateFromDiscriminatorValue); } }, - {"received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, - {"repos_url", n => { ReposUrl = n.GetStringValue(); } }, - {"role_name", n => { RoleName = n.GetStringValue(); } }, - {"site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, - {"starred_url", n => { StarredUrl = n.GetStringValue(); } }, - {"subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "followers_url", n => { FollowersUrl = n.GetStringValue(); } }, + { "following_url", n => { FollowingUrl = n.GetStringValue(); } }, + { "gists_url", n => { GistsUrl = n.GetStringValue(); } }, + { "gravatar_id", n => { GravatarId = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.NullableCollaborator_permissions.CreateFromDiscriminatorValue); } }, + { "received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, + { "repos_url", n => { ReposUrl = n.GetStringValue(); } }, + { "role_name", n => { RoleName = n.GetStringValue(); } }, + { "site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, + { "starred_url", n => { StarredUrl = n.GetStringValue(); } }, + { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -245,7 +247,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteStringValue("node_id", NodeId); writer.WriteStringValue("organizations_url", OrganizationsUrl); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("permissions", Permissions); writer.WriteStringValue("received_events_url", ReceivedEventsUrl); writer.WriteStringValue("repos_url", ReposUrl); writer.WriteStringValue("role_name", RoleName); diff --git a/src/GitHub/Models/NullableCollaborator_permissions.cs b/src/GitHub/Models/NullableCollaborator_permissions.cs index 4c11b134..c9712f77 100644 --- a/src/GitHub/Models/NullableCollaborator_permissions.cs +++ b/src/GitHub/Models/NullableCollaborator_permissions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class NullableCollaborator_permissions : IAdditionalDataHolder, IParsable + public partial class NullableCollaborator_permissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class NullableCollaborator_permissions : IAdditionalDataHolder, IParsable /// The triage property public bool? Triage { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableCollaborator_permissions() { @@ -31,12 +33,12 @@ public NullableCollaborator_permissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableCollaborator_permissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableCollaborator_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableCollaborator_permissions(); + return new global::GitHub.Models.NullableCollaborator_permissions(); } /// /// The deserialization information for the current model @@ -46,11 +48,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"admin", n => { Admin = n.GetBoolValue(); } }, - {"maintain", n => { Maintain = n.GetBoolValue(); } }, - {"pull", n => { Pull = n.GetBoolValue(); } }, - {"push", n => { Push = n.GetBoolValue(); } }, - {"triage", n => { Triage = n.GetBoolValue(); } }, + { "admin", n => { Admin = n.GetBoolValue(); } }, + { "maintain", n => { Maintain = n.GetBoolValue(); } }, + { "pull", n => { Pull = n.GetBoolValue(); } }, + { "push", n => { Push = n.GetBoolValue(); } }, + { "triage", n => { Triage = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/NullableCommunityHealthFile.cs b/src/GitHub/Models/NullableCommunityHealthFile.cs index d1df84ba..64194655 100644 --- a/src/GitHub/Models/NullableCommunityHealthFile.cs +++ b/src/GitHub/Models/NullableCommunityHealthFile.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class NullableCommunityHealthFile : IAdditionalDataHolder, IParsable + public partial class NullableCommunityHealthFile : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class NullableCommunityHealthFile : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableCommunityHealthFile() { @@ -37,12 +39,12 @@ public NullableCommunityHealthFile() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableCommunityHealthFile CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableCommunityHealthFile CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableCommunityHealthFile(); + return new global::GitHub.Models.NullableCommunityHealthFile(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/NullableGitUser.cs b/src/GitHub/Models/NullableGitUser.cs index 347f2551..fe153568 100644 --- a/src/GitHub/Models/NullableGitUser.cs +++ b/src/GitHub/Models/NullableGitUser.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Metaproperties for Git author/committer information. /// - public class NullableGitUser : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class NullableGitUser : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -37,7 +39,7 @@ public class NullableGitUser : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableGitUser() { @@ -46,12 +48,12 @@ public NullableGitUser() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableGitUser CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableGitUser CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableGitUser(); + return new global::GitHub.Models.NullableGitUser(); } /// /// The deserialization information for the current model @@ -61,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"date", n => { Date = n.GetStringValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "date", n => { Date = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/NullableIntegration.cs b/src/GitHub/Models/NullableIntegration.cs index 89f6d03b..65b8dd6a 100644 --- a/src/GitHub/Models/NullableIntegration.cs +++ b/src/GitHub/Models/NullableIntegration.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. /// - public class NullableIntegration : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class NullableIntegration : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -85,10 +87,10 @@ public class NullableIntegration : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Owner { get; set; } + public global::GitHub.Models.NullableSimpleUser? Owner { get; set; } #nullable restore #else - public NullableSimpleUser Owner { get; set; } + public global::GitHub.Models.NullableSimpleUser Owner { get; set; } #endif /// The pem property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -101,10 +103,10 @@ public class NullableIntegration : IAdditionalDataHolder, IParsable /// The set of permissions for the GitHub app #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration_permissions? Permissions { get; set; } + public global::GitHub.Models.NullableIntegration_permissions? Permissions { get; set; } #nullable restore #else - public NullableIntegration_permissions Permissions { get; set; } + public global::GitHub.Models.NullableIntegration_permissions Permissions { get; set; } #endif /// The slug name of the GitHub app #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +127,7 @@ public class NullableIntegration : IAdditionalDataHolder, IParsable public string WebhookSecret { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableIntegration() { @@ -134,12 +136,12 @@ public NullableIntegration() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableIntegration CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableIntegration CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableIntegration(); + return new global::GitHub.Models.NullableIntegration(); } /// /// The deserialization information for the current model @@ -149,23 +151,23 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"client_id", n => { ClientId = n.GetStringValue(); } }, - {"client_secret", n => { ClientSecret = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"events", n => { Events = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"external_url", n => { ExternalUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"installations_count", n => { InstallationsCount = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"pem", n => { Pem = n.GetStringValue(); } }, - {"permissions", n => { Permissions = n.GetObjectValue(NullableIntegration_permissions.CreateFromDiscriminatorValue); } }, - {"slug", n => { Slug = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"webhook_secret", n => { WebhookSecret = n.GetStringValue(); } }, + { "client_id", n => { ClientId = n.GetStringValue(); } }, + { "client_secret", n => { ClientSecret = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "events", n => { Events = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "external_url", n => { ExternalUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "installations_count", n => { InstallationsCount = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "pem", n => { Pem = n.GetStringValue(); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.NullableIntegration_permissions.CreateFromDiscriminatorValue); } }, + { "slug", n => { Slug = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "webhook_secret", n => { WebhookSecret = n.GetStringValue(); } }, }; } /// @@ -186,9 +188,9 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("installations_count", InstallationsCount); writer.WriteStringValue("name", Name); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("owner", Owner); + writer.WriteObjectValue("owner", Owner); writer.WriteStringValue("pem", Pem); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("permissions", Permissions); writer.WriteStringValue("slug", Slug); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("webhook_secret", WebhookSecret); diff --git a/src/GitHub/Models/NullableIntegration_permissions.cs b/src/GitHub/Models/NullableIntegration_permissions.cs index 193d23b6..e3c758c2 100644 --- a/src/GitHub/Models/NullableIntegration_permissions.cs +++ b/src/GitHub/Models/NullableIntegration_permissions.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The set of permissions for the GitHub app /// - public class NullableIntegration_permissions : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class NullableIntegration_permissions : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -53,7 +55,7 @@ public class NullableIntegration_permissions : IAdditionalDataHolder, IParsable public string Metadata { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableIntegration_permissions() { @@ -62,12 +64,12 @@ public NullableIntegration_permissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableIntegration_permissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableIntegration_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableIntegration_permissions(); + return new global::GitHub.Models.NullableIntegration_permissions(); } /// /// The deserialization information for the current model @@ -77,11 +79,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"checks", n => { Checks = n.GetStringValue(); } }, - {"contents", n => { Contents = n.GetStringValue(); } }, - {"deployments", n => { Deployments = n.GetStringValue(); } }, - {"issues", n => { Issues = n.GetStringValue(); } }, - {"metadata", n => { Metadata = n.GetStringValue(); } }, + { "checks", n => { Checks = n.GetStringValue(); } }, + { "contents", n => { Contents = n.GetStringValue(); } }, + { "deployments", n => { Deployments = n.GetStringValue(); } }, + { "issues", n => { Issues = n.GetStringValue(); } }, + { "metadata", n => { Metadata = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/NullableIssue.cs b/src/GitHub/Models/NullableIssue.cs index be58d084..916fc791 100644 --- a/src/GitHub/Models/NullableIssue.cs +++ b/src/GitHub/Models/NullableIssue.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Issues are a great way to keep track of tasks, enhancements, and bugs for your projects. /// - public class NullableIssue : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class NullableIssue : IAdditionalDataHolder, IParsable { /// The active_lock_reason property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -23,21 +25,21 @@ public class NullableIssue : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Assignee { get; set; } + public global::GitHub.Models.NullableSimpleUser? Assignee { get; set; } #nullable restore #else - public NullableSimpleUser Assignee { get; set; } + public global::GitHub.Models.NullableSimpleUser Assignee { get; set; } #endif /// The assignees property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Assignees { get; set; } + public List? Assignees { get; set; } #nullable restore #else - public List Assignees { get; set; } + public List Assignees { get; set; } #endif /// How the author is associated with the repository. - public GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } + public global::GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } /// Contents of the issue #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -67,10 +69,10 @@ public class NullableIssue : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? ClosedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser? ClosedBy { get; set; } #nullable restore #else - public NullableSimpleUser ClosedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser ClosedBy { get; set; } #endif /// The comments property public int? Comments { get; set; } @@ -125,10 +127,10 @@ public class NullableIssue : IAdditionalDataHolder, IParsable /// A collection of related issues and pull requests. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableMilestone? Milestone { get; set; } + public global::GitHub.Models.NullableMilestone? Milestone { get; set; } #nullable restore #else - public NullableMilestone Milestone { get; set; } + public global::GitHub.Models.NullableMilestone Milestone { get; set; } #endif /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,34 +145,34 @@ public class NullableIssue : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// The pull_request property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIssue_pull_request? PullRequest { get; set; } + public global::GitHub.Models.NullableIssue_pull_request? PullRequest { get; set; } #nullable restore #else - public NullableIssue_pull_request PullRequest { get; set; } + public global::GitHub.Models.NullableIssue_pull_request PullRequest { get; set; } #endif /// The reactions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ReactionRollup? Reactions { get; set; } + public global::GitHub.Models.ReactionRollup? Reactions { get; set; } #nullable restore #else - public ReactionRollup Reactions { get; set; } + public global::GitHub.Models.ReactionRollup Reactions { get; set; } #endif /// A repository on GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Repository? Repository { get; set; } + public global::GitHub.Models.Repository? Repository { get; set; } #nullable restore #else - public GitHub.Models.Repository Repository { get; set; } + public global::GitHub.Models.Repository Repository { get; set; } #endif /// The repository_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -189,7 +191,7 @@ public class NullableIssue : IAdditionalDataHolder, IParsable public string State { get; set; } #endif /// The reason for the current state - public NullableIssue_state_reason? StateReason { get; set; } + public global::GitHub.Models.NullableIssue_state_reason? StateReason { get; set; } /// The timeline_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -219,13 +221,13 @@ public class NullableIssue : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? User { get; set; } + public global::GitHub.Models.NullableSimpleUser? User { get; set; } #nullable restore #else - public NullableSimpleUser User { get; set; } + public global::GitHub.Models.NullableSimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableIssue() { @@ -234,12 +236,12 @@ public NullableIssue() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableIssue CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableIssue CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableIssue(); + return new global::GitHub.Models.NullableIssue(); } /// /// The deserialization information for the current model @@ -249,40 +251,40 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"active_lock_reason", n => { ActiveLockReason = n.GetStringValue(); } }, - {"assignee", n => { Assignee = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"assignees", n => { Assignees = n.GetCollectionOfObjectValues(SimpleUser.CreateFromDiscriminatorValue)?.ToList(); } }, - {"author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, - {"body", n => { Body = n.GetStringValue(); } }, - {"body_html", n => { BodyHtml = n.GetStringValue(); } }, - {"body_text", n => { BodyText = n.GetStringValue(); } }, - {"closed_at", n => { ClosedAt = n.GetDateTimeOffsetValue(); } }, - {"closed_by", n => { ClosedBy = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"comments", n => { Comments = n.GetIntValue(); } }, - {"comments_url", n => { CommentsUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"draft", n => { Draft = n.GetBoolValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"labels_url", n => { LabelsUrl = n.GetStringValue(); } }, - {"locked", n => { Locked = n.GetBoolValue(); } }, - {"milestone", n => { Milestone = n.GetObjectValue(NullableMilestone.CreateFromDiscriminatorValue); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"number", n => { Number = n.GetIntValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"pull_request", n => { PullRequest = n.GetObjectValue(NullableIssue_pull_request.CreateFromDiscriminatorValue); } }, - {"reactions", n => { Reactions = n.GetObjectValue(ReactionRollup.CreateFromDiscriminatorValue); } }, - {"repository", n => { Repository = n.GetObjectValue(GitHub.Models.Repository.CreateFromDiscriminatorValue); } }, - {"repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, - {"state", n => { State = n.GetStringValue(); } }, - {"state_reason", n => { StateReason = n.GetEnumValue(); } }, - {"timeline_url", n => { TimelineUrl = n.GetStringValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "active_lock_reason", n => { ActiveLockReason = n.GetStringValue(); } }, + { "assignee", n => { Assignee = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "assignees", n => { Assignees = n.GetCollectionOfObjectValues(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue)?.AsList(); } }, + { "author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "body_html", n => { BodyHtml = n.GetStringValue(); } }, + { "body_text", n => { BodyText = n.GetStringValue(); } }, + { "closed_at", n => { ClosedAt = n.GetDateTimeOffsetValue(); } }, + { "closed_by", n => { ClosedBy = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "comments", n => { Comments = n.GetIntValue(); } }, + { "comments_url", n => { CommentsUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "draft", n => { Draft = n.GetBoolValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "labels_url", n => { LabelsUrl = n.GetStringValue(); } }, + { "locked", n => { Locked = n.GetBoolValue(); } }, + { "milestone", n => { Milestone = n.GetObjectValue(global::GitHub.Models.NullableMilestone.CreateFromDiscriminatorValue); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "number", n => { Number = n.GetIntValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "pull_request", n => { PullRequest = n.GetObjectValue(global::GitHub.Models.NullableIssue_pull_request.CreateFromDiscriminatorValue); } }, + { "reactions", n => { Reactions = n.GetObjectValue(global::GitHub.Models.ReactionRollup.CreateFromDiscriminatorValue); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.Repository.CreateFromDiscriminatorValue); } }, + { "repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, + { "state", n => { State = n.GetStringValue(); } }, + { "state_reason", n => { StateReason = n.GetEnumValue(); } }, + { "timeline_url", n => { TimelineUrl = n.GetStringValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -293,14 +295,14 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("active_lock_reason", ActiveLockReason); - writer.WriteObjectValue("assignee", Assignee); - writer.WriteCollectionOfObjectValues("assignees", Assignees); - writer.WriteEnumValue("author_association", AuthorAssociation); + writer.WriteObjectValue("assignee", Assignee); + writer.WriteCollectionOfObjectValues("assignees", Assignees); + writer.WriteEnumValue("author_association", AuthorAssociation); writer.WriteStringValue("body", Body); writer.WriteStringValue("body_html", BodyHtml); writer.WriteStringValue("body_text", BodyText); writer.WriteDateTimeOffsetValue("closed_at", ClosedAt); - writer.WriteObjectValue("closed_by", ClosedBy); + writer.WriteObjectValue("closed_by", ClosedBy); writer.WriteIntValue("comments", Comments); writer.WriteStringValue("comments_url", CommentsUrl); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); @@ -311,21 +313,21 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteCollectionOfPrimitiveValues("labels", Labels); writer.WriteStringValue("labels_url", LabelsUrl); writer.WriteBoolValue("locked", Locked); - writer.WriteObjectValue("milestone", Milestone); + writer.WriteObjectValue("milestone", Milestone); writer.WriteStringValue("node_id", NodeId); writer.WriteIntValue("number", Number); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); - writer.WriteObjectValue("pull_request", PullRequest); - writer.WriteObjectValue("reactions", Reactions); - writer.WriteObjectValue("repository", Repository); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("pull_request", PullRequest); + writer.WriteObjectValue("reactions", Reactions); + writer.WriteObjectValue("repository", Repository); writer.WriteStringValue("repository_url", RepositoryUrl); writer.WriteStringValue("state", State); - writer.WriteEnumValue("state_reason", StateReason); + writer.WriteEnumValue("state_reason", StateReason); writer.WriteStringValue("timeline_url", TimelineUrl); writer.WriteStringValue("title", Title); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/NullableIssue_pull_request.cs b/src/GitHub/Models/NullableIssue_pull_request.cs index 5130aa1f..9324e752 100644 --- a/src/GitHub/Models/NullableIssue_pull_request.cs +++ b/src/GitHub/Models/NullableIssue_pull_request.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class NullableIssue_pull_request : IAdditionalDataHolder, IParsable + public partial class NullableIssue_pull_request : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -46,7 +48,7 @@ public class NullableIssue_pull_request : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableIssue_pull_request() { @@ -55,12 +57,12 @@ public NullableIssue_pull_request() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableIssue_pull_request CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableIssue_pull_request CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableIssue_pull_request(); + return new global::GitHub.Models.NullableIssue_pull_request(); } /// /// The deserialization information for the current model @@ -70,11 +72,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"diff_url", n => { DiffUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"merged_at", n => { MergedAt = n.GetDateTimeOffsetValue(); } }, - {"patch_url", n => { PatchUrl = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "diff_url", n => { DiffUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "merged_at", n => { MergedAt = n.GetDateTimeOffsetValue(); } }, + { "patch_url", n => { PatchUrl = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/NullableIssue_state_reason.cs b/src/GitHub/Models/NullableIssue_state_reason.cs index 9d349de1..10916898 100644 --- a/src/GitHub/Models/NullableIssue_state_reason.cs +++ b/src/GitHub/Models/NullableIssue_state_reason.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The reason for the current state + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum NullableIssue_state_reason { [EnumMember(Value = "completed")] diff --git a/src/GitHub/Models/NullableLicenseSimple.cs b/src/GitHub/Models/NullableLicenseSimple.cs index 37c2ffeb..8c9977c1 100644 --- a/src/GitHub/Models/NullableLicenseSimple.cs +++ b/src/GitHub/Models/NullableLicenseSimple.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// License Simple /// - public class NullableLicenseSimple : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class NullableLicenseSimple : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -61,7 +63,7 @@ public class NullableLicenseSimple : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableLicenseSimple() { @@ -70,12 +72,12 @@ public NullableLicenseSimple() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableLicenseSimple CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableLicenseSimple CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableLicenseSimple(); + return new global::GitHub.Models.NullableLicenseSimple(); } /// /// The deserialization information for the current model @@ -85,12 +87,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"key", n => { Key = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"spdx_id", n => { SpdxId = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "key", n => { Key = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "spdx_id", n => { SpdxId = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/NullableMilestone.cs b/src/GitHub/Models/NullableMilestone.cs index 2e9b52e9..f7d21973 100644 --- a/src/GitHub/Models/NullableMilestone.cs +++ b/src/GitHub/Models/NullableMilestone.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A collection of related issues and pull requests. /// - public class NullableMilestone : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class NullableMilestone : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -21,10 +23,10 @@ public class NullableMilestone : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Creator { get; set; } + public global::GitHub.Models.NullableSimpleUser? Creator { get; set; } #nullable restore #else - public NullableSimpleUser Creator { get; set; } + public global::GitHub.Models.NullableSimpleUser Creator { get; set; } #endif /// The description property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -67,7 +69,7 @@ public class NullableMilestone : IAdditionalDataHolder, IParsable /// The open_issues property public int? OpenIssues { get; set; } /// The state of the milestone. - public NullableMilestone_state? State { get; set; } + public global::GitHub.Models.NullableMilestone_state? State { get; set; } /// The title of the milestone. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -87,22 +89,22 @@ public class NullableMilestone : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableMilestone() { AdditionalData = new Dictionary(); - State = NullableMilestone_state.Open; + State = global::GitHub.Models.NullableMilestone_state.Open; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableMilestone CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableMilestone CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableMilestone(); + return new global::GitHub.Models.NullableMilestone(); } /// /// The deserialization information for the current model @@ -112,22 +114,22 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"closed_at", n => { ClosedAt = n.GetDateTimeOffsetValue(); } }, - {"closed_issues", n => { ClosedIssues = n.GetIntValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"creator", n => { Creator = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"due_on", n => { DueOn = n.GetDateTimeOffsetValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"labels_url", n => { LabelsUrl = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"number", n => { Number = n.GetIntValue(); } }, - {"open_issues", n => { OpenIssues = n.GetIntValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "closed_at", n => { ClosedAt = n.GetDateTimeOffsetValue(); } }, + { "closed_issues", n => { ClosedIssues = n.GetIntValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "creator", n => { Creator = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "due_on", n => { DueOn = n.GetDateTimeOffsetValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "labels_url", n => { LabelsUrl = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "number", n => { Number = n.GetIntValue(); } }, + { "open_issues", n => { OpenIssues = n.GetIntValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -140,7 +142,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("closed_at", ClosedAt); writer.WriteIntValue("closed_issues", ClosedIssues); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); - writer.WriteObjectValue("creator", Creator); + writer.WriteObjectValue("creator", Creator); writer.WriteStringValue("description", Description); writer.WriteDateTimeOffsetValue("due_on", DueOn); writer.WriteStringValue("html_url", HtmlUrl); @@ -149,7 +151,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("node_id", NodeId); writer.WriteIntValue("number", Number); writer.WriteIntValue("open_issues", OpenIssues); - writer.WriteEnumValue("state", State); + writer.WriteEnumValue("state", State); writer.WriteStringValue("title", Title); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); diff --git a/src/GitHub/Models/NullableMilestone_state.cs b/src/GitHub/Models/NullableMilestone_state.cs index 26b930df..b282a9e8 100644 --- a/src/GitHub/Models/NullableMilestone_state.cs +++ b/src/GitHub/Models/NullableMilestone_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The state of the milestone. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum NullableMilestone_state { [EnumMember(Value = "open")] diff --git a/src/GitHub/Models/NullableMinimalRepository.cs b/src/GitHub/Models/NullableMinimalRepository.cs index adbba36c..0b471e30 100644 --- a/src/GitHub/Models/NullableMinimalRepository.cs +++ b/src/GitHub/Models/NullableMinimalRepository.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Minimal Repository /// - public class NullableMinimalRepository : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class NullableMinimalRepository : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -59,10 +61,10 @@ public class NullableMinimalRepository : IAdditionalDataHolder, IParsable /// Code Of Conduct #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.CodeOfConduct? CodeOfConduct { get; set; } + public global::GitHub.Models.CodeOfConduct? CodeOfConduct { get; set; } #nullable restore #else - public GitHub.Models.CodeOfConduct CodeOfConduct { get; set; } + public global::GitHub.Models.CodeOfConduct CodeOfConduct { get; set; } #endif /// The collaborators_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -311,10 +313,10 @@ public class NullableMinimalRepository : IAdditionalDataHolder, IParsable /// The license property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableMinimalRepository_license? License { get; set; } + public global::GitHub.Models.NullableMinimalRepository_license? License { get; set; } #nullable restore #else - public NullableMinimalRepository_license License { get; set; } + public global::GitHub.Models.NullableMinimalRepository_license License { get; set; } #endif /// The merges_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -373,18 +375,18 @@ public class NullableMinimalRepository : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Owner { get; set; } + public global::GitHub.Models.SimpleUser? Owner { get; set; } #nullable restore #else - public SimpleUser Owner { get; set; } + public global::GitHub.Models.SimpleUser Owner { get; set; } #endif /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableMinimalRepository_permissions? Permissions { get; set; } + public global::GitHub.Models.NullableMinimalRepository_permissions? Permissions { get; set; } #nullable restore #else - public NullableMinimalRepository_permissions Permissions { get; set; } + public global::GitHub.Models.NullableMinimalRepository_permissions Permissions { get; set; } #endif /// The private property public bool? Private { get; set; } @@ -417,10 +419,10 @@ public class NullableMinimalRepository : IAdditionalDataHolder, IParsable /// The security_and_analysis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SecurityAndAnalysis? SecurityAndAnalysis { get; set; } + public global::GitHub.Models.SecurityAndAnalysis? SecurityAndAnalysis { get; set; } #nullable restore #else - public GitHub.Models.SecurityAndAnalysis SecurityAndAnalysis { get; set; } + public global::GitHub.Models.SecurityAndAnalysis SecurityAndAnalysis { get; set; } #endif /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. public int? Size { get; set; } @@ -541,7 +543,7 @@ public class NullableMinimalRepository : IAdditionalDataHolder, IParsable /// The web_commit_signoff_required property public bool? WebCommitSignoffRequired { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableMinimalRepository() { @@ -550,12 +552,12 @@ public NullableMinimalRepository() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableMinimalRepository CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableMinimalRepository CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableMinimalRepository(); + return new global::GitHub.Models.NullableMinimalRepository(); } /// /// The deserialization information for the current model @@ -565,93 +567,93 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allow_forking", n => { AllowForking = n.GetBoolValue(); } }, - {"archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, - {"archived", n => { Archived = n.GetBoolValue(); } }, - {"assignees_url", n => { AssigneesUrl = n.GetStringValue(); } }, - {"blobs_url", n => { BlobsUrl = n.GetStringValue(); } }, - {"branches_url", n => { BranchesUrl = n.GetStringValue(); } }, - {"clone_url", n => { CloneUrl = n.GetStringValue(); } }, - {"code_of_conduct", n => { CodeOfConduct = n.GetObjectValue(GitHub.Models.CodeOfConduct.CreateFromDiscriminatorValue); } }, - {"collaborators_url", n => { CollaboratorsUrl = n.GetStringValue(); } }, - {"comments_url", n => { CommentsUrl = n.GetStringValue(); } }, - {"commits_url", n => { CommitsUrl = n.GetStringValue(); } }, - {"compare_url", n => { CompareUrl = n.GetStringValue(); } }, - {"contents_url", n => { ContentsUrl = n.GetStringValue(); } }, - {"contributors_url", n => { ContributorsUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"default_branch", n => { DefaultBranch = n.GetStringValue(); } }, - {"delete_branch_on_merge", n => { DeleteBranchOnMerge = n.GetBoolValue(); } }, - {"deployments_url", n => { DeploymentsUrl = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"disabled", n => { Disabled = n.GetBoolValue(); } }, - {"downloads_url", n => { DownloadsUrl = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"fork", n => { Fork = n.GetBoolValue(); } }, - {"forks", n => { Forks = n.GetIntValue(); } }, - {"forks_count", n => { ForksCount = n.GetIntValue(); } }, - {"forks_url", n => { ForksUrl = n.GetStringValue(); } }, - {"full_name", n => { FullName = n.GetStringValue(); } }, - {"git_commits_url", n => { GitCommitsUrl = n.GetStringValue(); } }, - {"git_refs_url", n => { GitRefsUrl = n.GetStringValue(); } }, - {"git_tags_url", n => { GitTagsUrl = n.GetStringValue(); } }, - {"git_url", n => { GitUrl = n.GetStringValue(); } }, - {"has_discussions", n => { HasDiscussions = n.GetBoolValue(); } }, - {"has_downloads", n => { HasDownloads = n.GetBoolValue(); } }, - {"has_issues", n => { HasIssues = n.GetBoolValue(); } }, - {"has_pages", n => { HasPages = n.GetBoolValue(); } }, - {"has_projects", n => { HasProjects = n.GetBoolValue(); } }, - {"has_wiki", n => { HasWiki = n.GetBoolValue(); } }, - {"homepage", n => { Homepage = n.GetStringValue(); } }, - {"hooks_url", n => { HooksUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"is_template", n => { IsTemplate = n.GetBoolValue(); } }, - {"issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, - {"issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } }, - {"issues_url", n => { IssuesUrl = n.GetStringValue(); } }, - {"keys_url", n => { KeysUrl = n.GetStringValue(); } }, - {"labels_url", n => { LabelsUrl = n.GetStringValue(); } }, - {"language", n => { Language = n.GetStringValue(); } }, - {"languages_url", n => { LanguagesUrl = n.GetStringValue(); } }, - {"license", n => { License = n.GetObjectValue(NullableMinimalRepository_license.CreateFromDiscriminatorValue); } }, - {"merges_url", n => { MergesUrl = n.GetStringValue(); } }, - {"milestones_url", n => { MilestonesUrl = n.GetStringValue(); } }, - {"mirror_url", n => { MirrorUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"network_count", n => { NetworkCount = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, - {"open_issues", n => { OpenIssues = n.GetIntValue(); } }, - {"open_issues_count", n => { OpenIssuesCount = n.GetIntValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"permissions", n => { Permissions = n.GetObjectValue(NullableMinimalRepository_permissions.CreateFromDiscriminatorValue); } }, - {"private", n => { Private = n.GetBoolValue(); } }, - {"pulls_url", n => { PullsUrl = n.GetStringValue(); } }, - {"pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, - {"releases_url", n => { ReleasesUrl = n.GetStringValue(); } }, - {"role_name", n => { RoleName = n.GetStringValue(); } }, - {"security_and_analysis", n => { SecurityAndAnalysis = n.GetObjectValue(GitHub.Models.SecurityAndAnalysis.CreateFromDiscriminatorValue); } }, - {"size", n => { Size = n.GetIntValue(); } }, - {"ssh_url", n => { SshUrl = n.GetStringValue(); } }, - {"stargazers_count", n => { StargazersCount = n.GetIntValue(); } }, - {"stargazers_url", n => { StargazersUrl = n.GetStringValue(); } }, - {"statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, - {"subscribers_count", n => { SubscribersCount = n.GetIntValue(); } }, - {"subscribers_url", n => { SubscribersUrl = n.GetStringValue(); } }, - {"subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, - {"svn_url", n => { SvnUrl = n.GetStringValue(); } }, - {"tags_url", n => { TagsUrl = n.GetStringValue(); } }, - {"teams_url", n => { TeamsUrl = n.GetStringValue(); } }, - {"temp_clone_token", n => { TempCloneToken = n.GetStringValue(); } }, - {"topics", n => { Topics = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"trees_url", n => { TreesUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"visibility", n => { Visibility = n.GetStringValue(); } }, - {"watchers", n => { Watchers = n.GetIntValue(); } }, - {"watchers_count", n => { WatchersCount = n.GetIntValue(); } }, - {"web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, + { "allow_forking", n => { AllowForking = n.GetBoolValue(); } }, + { "archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, + { "archived", n => { Archived = n.GetBoolValue(); } }, + { "assignees_url", n => { AssigneesUrl = n.GetStringValue(); } }, + { "blobs_url", n => { BlobsUrl = n.GetStringValue(); } }, + { "branches_url", n => { BranchesUrl = n.GetStringValue(); } }, + { "clone_url", n => { CloneUrl = n.GetStringValue(); } }, + { "code_of_conduct", n => { CodeOfConduct = n.GetObjectValue(global::GitHub.Models.CodeOfConduct.CreateFromDiscriminatorValue); } }, + { "collaborators_url", n => { CollaboratorsUrl = n.GetStringValue(); } }, + { "comments_url", n => { CommentsUrl = n.GetStringValue(); } }, + { "commits_url", n => { CommitsUrl = n.GetStringValue(); } }, + { "compare_url", n => { CompareUrl = n.GetStringValue(); } }, + { "contents_url", n => { ContentsUrl = n.GetStringValue(); } }, + { "contributors_url", n => { ContributorsUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "default_branch", n => { DefaultBranch = n.GetStringValue(); } }, + { "delete_branch_on_merge", n => { DeleteBranchOnMerge = n.GetBoolValue(); } }, + { "deployments_url", n => { DeploymentsUrl = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "disabled", n => { Disabled = n.GetBoolValue(); } }, + { "downloads_url", n => { DownloadsUrl = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "fork", n => { Fork = n.GetBoolValue(); } }, + { "forks", n => { Forks = n.GetIntValue(); } }, + { "forks_count", n => { ForksCount = n.GetIntValue(); } }, + { "forks_url", n => { ForksUrl = n.GetStringValue(); } }, + { "full_name", n => { FullName = n.GetStringValue(); } }, + { "git_commits_url", n => { GitCommitsUrl = n.GetStringValue(); } }, + { "git_refs_url", n => { GitRefsUrl = n.GetStringValue(); } }, + { "git_tags_url", n => { GitTagsUrl = n.GetStringValue(); } }, + { "git_url", n => { GitUrl = n.GetStringValue(); } }, + { "has_discussions", n => { HasDiscussions = n.GetBoolValue(); } }, + { "has_downloads", n => { HasDownloads = n.GetBoolValue(); } }, + { "has_issues", n => { HasIssues = n.GetBoolValue(); } }, + { "has_pages", n => { HasPages = n.GetBoolValue(); } }, + { "has_projects", n => { HasProjects = n.GetBoolValue(); } }, + { "has_wiki", n => { HasWiki = n.GetBoolValue(); } }, + { "homepage", n => { Homepage = n.GetStringValue(); } }, + { "hooks_url", n => { HooksUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "is_template", n => { IsTemplate = n.GetBoolValue(); } }, + { "issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, + { "issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } }, + { "issues_url", n => { IssuesUrl = n.GetStringValue(); } }, + { "keys_url", n => { KeysUrl = n.GetStringValue(); } }, + { "labels_url", n => { LabelsUrl = n.GetStringValue(); } }, + { "language", n => { Language = n.GetStringValue(); } }, + { "languages_url", n => { LanguagesUrl = n.GetStringValue(); } }, + { "license", n => { License = n.GetObjectValue(global::GitHub.Models.NullableMinimalRepository_license.CreateFromDiscriminatorValue); } }, + { "merges_url", n => { MergesUrl = n.GetStringValue(); } }, + { "milestones_url", n => { MilestonesUrl = n.GetStringValue(); } }, + { "mirror_url", n => { MirrorUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "network_count", n => { NetworkCount = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, + { "open_issues", n => { OpenIssues = n.GetIntValue(); } }, + { "open_issues_count", n => { OpenIssuesCount = n.GetIntValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.NullableMinimalRepository_permissions.CreateFromDiscriminatorValue); } }, + { "private", n => { Private = n.GetBoolValue(); } }, + { "pulls_url", n => { PullsUrl = n.GetStringValue(); } }, + { "pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, + { "releases_url", n => { ReleasesUrl = n.GetStringValue(); } }, + { "role_name", n => { RoleName = n.GetStringValue(); } }, + { "security_and_analysis", n => { SecurityAndAnalysis = n.GetObjectValue(global::GitHub.Models.SecurityAndAnalysis.CreateFromDiscriminatorValue); } }, + { "size", n => { Size = n.GetIntValue(); } }, + { "ssh_url", n => { SshUrl = n.GetStringValue(); } }, + { "stargazers_count", n => { StargazersCount = n.GetIntValue(); } }, + { "stargazers_url", n => { StargazersUrl = n.GetStringValue(); } }, + { "statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, + { "subscribers_count", n => { SubscribersCount = n.GetIntValue(); } }, + { "subscribers_url", n => { SubscribersUrl = n.GetStringValue(); } }, + { "subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, + { "svn_url", n => { SvnUrl = n.GetStringValue(); } }, + { "tags_url", n => { TagsUrl = n.GetStringValue(); } }, + { "teams_url", n => { TeamsUrl = n.GetStringValue(); } }, + { "temp_clone_token", n => { TempCloneToken = n.GetStringValue(); } }, + { "topics", n => { Topics = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "trees_url", n => { TreesUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "visibility", n => { Visibility = n.GetStringValue(); } }, + { "watchers", n => { Watchers = n.GetIntValue(); } }, + { "watchers_count", n => { WatchersCount = n.GetIntValue(); } }, + { "web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, }; } /// @@ -668,7 +670,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("blobs_url", BlobsUrl); writer.WriteStringValue("branches_url", BranchesUrl); writer.WriteStringValue("clone_url", CloneUrl); - writer.WriteObjectValue("code_of_conduct", CodeOfConduct); + writer.WriteObjectValue("code_of_conduct", CodeOfConduct); writer.WriteStringValue("collaborators_url", CollaboratorsUrl); writer.WriteStringValue("comments_url", CommentsUrl); writer.WriteStringValue("commits_url", CommitsUrl); @@ -710,7 +712,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("labels_url", LabelsUrl); writer.WriteStringValue("language", Language); writer.WriteStringValue("languages_url", LanguagesUrl); - writer.WriteObjectValue("license", License); + writer.WriteObjectValue("license", License); writer.WriteStringValue("merges_url", MergesUrl); writer.WriteStringValue("milestones_url", MilestonesUrl); writer.WriteStringValue("mirror_url", MirrorUrl); @@ -720,14 +722,14 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("notifications_url", NotificationsUrl); writer.WriteIntValue("open_issues", OpenIssues); writer.WriteIntValue("open_issues_count", OpenIssuesCount); - writer.WriteObjectValue("owner", Owner); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("owner", Owner); + writer.WriteObjectValue("permissions", Permissions); writer.WriteBoolValue("private", Private); writer.WriteStringValue("pulls_url", PullsUrl); writer.WriteDateTimeOffsetValue("pushed_at", PushedAt); writer.WriteStringValue("releases_url", ReleasesUrl); writer.WriteStringValue("role_name", RoleName); - writer.WriteObjectValue("security_and_analysis", SecurityAndAnalysis); + writer.WriteObjectValue("security_and_analysis", SecurityAndAnalysis); writer.WriteIntValue("size", Size); writer.WriteStringValue("ssh_url", SshUrl); writer.WriteIntValue("stargazers_count", StargazersCount); diff --git a/src/GitHub/Models/NullableMinimalRepository_license.cs b/src/GitHub/Models/NullableMinimalRepository_license.cs index 73c8303b..b0d2a4f6 100644 --- a/src/GitHub/Models/NullableMinimalRepository_license.cs +++ b/src/GitHub/Models/NullableMinimalRepository_license.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class NullableMinimalRepository_license : IAdditionalDataHolder, IParsable + public partial class NullableMinimalRepository_license : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -52,7 +54,7 @@ public class NullableMinimalRepository_license : IAdditionalDataHolder, IParsabl public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableMinimalRepository_license() { @@ -61,12 +63,12 @@ public NullableMinimalRepository_license() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableMinimalRepository_license CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableMinimalRepository_license CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableMinimalRepository_license(); + return new global::GitHub.Models.NullableMinimalRepository_license(); } /// /// The deserialization information for the current model @@ -76,11 +78,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"key", n => { Key = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"spdx_id", n => { SpdxId = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "key", n => { Key = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "spdx_id", n => { SpdxId = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/NullableMinimalRepository_permissions.cs b/src/GitHub/Models/NullableMinimalRepository_permissions.cs index b6d86f50..918312ca 100644 --- a/src/GitHub/Models/NullableMinimalRepository_permissions.cs +++ b/src/GitHub/Models/NullableMinimalRepository_permissions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class NullableMinimalRepository_permissions : IAdditionalDataHolder, IParsable + public partial class NullableMinimalRepository_permissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class NullableMinimalRepository_permissions : IAdditionalDataHolder, IPar /// The triage property public bool? Triage { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableMinimalRepository_permissions() { @@ -31,12 +33,12 @@ public NullableMinimalRepository_permissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableMinimalRepository_permissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableMinimalRepository_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableMinimalRepository_permissions(); + return new global::GitHub.Models.NullableMinimalRepository_permissions(); } /// /// The deserialization information for the current model @@ -46,11 +48,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"admin", n => { Admin = n.GetBoolValue(); } }, - {"maintain", n => { Maintain = n.GetBoolValue(); } }, - {"pull", n => { Pull = n.GetBoolValue(); } }, - {"push", n => { Push = n.GetBoolValue(); } }, - {"triage", n => { Triage = n.GetBoolValue(); } }, + { "admin", n => { Admin = n.GetBoolValue(); } }, + { "maintain", n => { Maintain = n.GetBoolValue(); } }, + { "pull", n => { Pull = n.GetBoolValue(); } }, + { "push", n => { Push = n.GetBoolValue(); } }, + { "triage", n => { Triage = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/NullableRepository.cs b/src/GitHub/Models/NullableRepository.cs index 99416b56..5348ab21 100644 --- a/src/GitHub/Models/NullableRepository.cs +++ b/src/GitHub/Models/NullableRepository.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A repository on GitHub. /// - public class NullableRepository : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class NullableRepository : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -316,10 +318,10 @@ public class NullableRepository : IAdditionalDataHolder, IParsable /// License Simple #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableLicenseSimple? License { get; set; } + public global::GitHub.Models.NullableLicenseSimple? License { get; set; } #nullable restore #else - public NullableLicenseSimple License { get; set; } + public global::GitHub.Models.NullableLicenseSimple License { get; set; } #endif /// The master_branch property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -330,9 +332,9 @@ public class NullableRepository : IAdditionalDataHolder, IParsable public string MasterBranch { get; set; } #endif /// 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. - public NullableRepository_merge_commit_message? MergeCommitMessage { get; set; } + public global::GitHub.Models.NullableRepository_merge_commit_message? MergeCommitMessage { get; set; } /// 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). - public NullableRepository_merge_commit_title? MergeCommitTitle { get; set; } + public global::GitHub.Models.NullableRepository_merge_commit_title? MergeCommitTitle { get; set; } /// The merges_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -388,18 +390,18 @@ public class NullableRepository : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Owner { get; set; } + public global::GitHub.Models.SimpleUser? Owner { get; set; } #nullable restore #else - public SimpleUser Owner { get; set; } + public global::GitHub.Models.SimpleUser Owner { get; set; } #endif /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableRepository_permissions? Permissions { get; set; } + public global::GitHub.Models.NullableRepository_permissions? Permissions { get; set; } #nullable restore #else - public NullableRepository_permissions Permissions { get; set; } + public global::GitHub.Models.NullableRepository_permissions Permissions { get; set; } #endif /// Whether the repository is private or public. public bool? Private { get; set; } @@ -424,9 +426,9 @@ public class NullableRepository : IAdditionalDataHolder, IParsable /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. public int? Size { get; set; } /// 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. - public NullableRepository_squash_merge_commit_message? SquashMergeCommitMessage { get; set; } + public global::GitHub.Models.NullableRepository_squash_merge_commit_message? SquashMergeCommitMessage { get; set; } /// 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). - public NullableRepository_squash_merge_commit_title? SquashMergeCommitTitle { get; set; } + public global::GitHub.Models.NullableRepository_squash_merge_commit_title? SquashMergeCommitTitle { get; set; } /// The ssh_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -553,7 +555,7 @@ public class NullableRepository : IAdditionalDataHolder, IParsable /// Whether to require contributors to sign off on web-based commits public bool? WebCommitSignoffRequired { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableRepository() { @@ -563,12 +565,12 @@ public NullableRepository() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableRepository CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableRepository CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableRepository(); + return new global::GitHub.Models.NullableRepository(); } /// /// The deserialization information for the current model @@ -578,101 +580,101 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allow_auto_merge", n => { AllowAutoMerge = n.GetBoolValue(); } }, - {"allow_forking", n => { AllowForking = n.GetBoolValue(); } }, - {"allow_merge_commit", n => { AllowMergeCommit = n.GetBoolValue(); } }, - {"allow_rebase_merge", n => { AllowRebaseMerge = n.GetBoolValue(); } }, - {"allow_squash_merge", n => { AllowSquashMerge = n.GetBoolValue(); } }, - {"allow_update_branch", n => { AllowUpdateBranch = n.GetBoolValue(); } }, - {"anonymous_access_enabled", n => { AnonymousAccessEnabled = n.GetBoolValue(); } }, - {"archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, - {"archived", n => { Archived = n.GetBoolValue(); } }, - {"assignees_url", n => { AssigneesUrl = n.GetStringValue(); } }, - {"blobs_url", n => { BlobsUrl = n.GetStringValue(); } }, - {"branches_url", n => { BranchesUrl = n.GetStringValue(); } }, - {"clone_url", n => { CloneUrl = n.GetStringValue(); } }, - {"collaborators_url", n => { CollaboratorsUrl = n.GetStringValue(); } }, - {"comments_url", n => { CommentsUrl = n.GetStringValue(); } }, - {"commits_url", n => { CommitsUrl = n.GetStringValue(); } }, - {"compare_url", n => { CompareUrl = n.GetStringValue(); } }, - {"contents_url", n => { ContentsUrl = n.GetStringValue(); } }, - {"contributors_url", n => { ContributorsUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"default_branch", n => { DefaultBranch = n.GetStringValue(); } }, - {"delete_branch_on_merge", n => { DeleteBranchOnMerge = n.GetBoolValue(); } }, - {"deployments_url", n => { DeploymentsUrl = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"disabled", n => { Disabled = n.GetBoolValue(); } }, - {"downloads_url", n => { DownloadsUrl = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"fork", n => { Fork = n.GetBoolValue(); } }, - {"forks", n => { Forks = n.GetIntValue(); } }, - {"forks_count", n => { ForksCount = n.GetIntValue(); } }, - {"forks_url", n => { ForksUrl = n.GetStringValue(); } }, - {"full_name", n => { FullName = n.GetStringValue(); } }, - {"git_commits_url", n => { GitCommitsUrl = n.GetStringValue(); } }, - {"git_refs_url", n => { GitRefsUrl = n.GetStringValue(); } }, - {"git_tags_url", n => { GitTagsUrl = n.GetStringValue(); } }, - {"git_url", n => { GitUrl = n.GetStringValue(); } }, - {"has_discussions", n => { HasDiscussions = n.GetBoolValue(); } }, - {"has_downloads", n => { HasDownloads = n.GetBoolValue(); } }, - {"has_issues", n => { HasIssues = n.GetBoolValue(); } }, - {"has_pages", n => { HasPages = n.GetBoolValue(); } }, - {"has_projects", n => { HasProjects = n.GetBoolValue(); } }, - {"has_wiki", n => { HasWiki = n.GetBoolValue(); } }, - {"homepage", n => { Homepage = n.GetStringValue(); } }, - {"hooks_url", n => { HooksUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"is_template", n => { IsTemplate = n.GetBoolValue(); } }, - {"issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, - {"issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } }, - {"issues_url", n => { IssuesUrl = n.GetStringValue(); } }, - {"keys_url", n => { KeysUrl = n.GetStringValue(); } }, - {"labels_url", n => { LabelsUrl = n.GetStringValue(); } }, - {"language", n => { Language = n.GetStringValue(); } }, - {"languages_url", n => { LanguagesUrl = n.GetStringValue(); } }, - {"license", n => { License = n.GetObjectValue(NullableLicenseSimple.CreateFromDiscriminatorValue); } }, - {"master_branch", n => { MasterBranch = n.GetStringValue(); } }, - {"merge_commit_message", n => { MergeCommitMessage = n.GetEnumValue(); } }, - {"merge_commit_title", n => { MergeCommitTitle = n.GetEnumValue(); } }, - {"merges_url", n => { MergesUrl = n.GetStringValue(); } }, - {"milestones_url", n => { MilestonesUrl = n.GetStringValue(); } }, - {"mirror_url", n => { MirrorUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, - {"open_issues", n => { OpenIssues = n.GetIntValue(); } }, - {"open_issues_count", n => { OpenIssuesCount = n.GetIntValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"permissions", n => { Permissions = n.GetObjectValue(NullableRepository_permissions.CreateFromDiscriminatorValue); } }, - {"private", n => { Private = n.GetBoolValue(); } }, - {"pulls_url", n => { PullsUrl = n.GetStringValue(); } }, - {"pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, - {"releases_url", n => { ReleasesUrl = n.GetStringValue(); } }, - {"size", n => { Size = n.GetIntValue(); } }, - {"squash_merge_commit_message", n => { SquashMergeCommitMessage = n.GetEnumValue(); } }, - {"squash_merge_commit_title", n => { SquashMergeCommitTitle = n.GetEnumValue(); } }, - {"ssh_url", n => { SshUrl = n.GetStringValue(); } }, - {"stargazers_count", n => { StargazersCount = n.GetIntValue(); } }, - {"stargazers_url", n => { StargazersUrl = n.GetStringValue(); } }, - {"starred_at", n => { StarredAt = n.GetStringValue(); } }, - {"statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, - {"subscribers_url", n => { SubscribersUrl = n.GetStringValue(); } }, - {"subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, - {"svn_url", n => { SvnUrl = n.GetStringValue(); } }, - {"tags_url", n => { TagsUrl = n.GetStringValue(); } }, - {"teams_url", n => { TeamsUrl = n.GetStringValue(); } }, - {"temp_clone_token", n => { TempCloneToken = n.GetStringValue(); } }, - {"topics", n => { Topics = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"trees_url", n => { TreesUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"use_squash_pr_title_as_default", n => { UseSquashPrTitleAsDefault = n.GetBoolValue(); } }, - {"visibility", n => { Visibility = n.GetStringValue(); } }, - {"watchers", n => { Watchers = n.GetIntValue(); } }, - {"watchers_count", n => { WatchersCount = n.GetIntValue(); } }, - {"web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, + { "allow_auto_merge", n => { AllowAutoMerge = n.GetBoolValue(); } }, + { "allow_forking", n => { AllowForking = n.GetBoolValue(); } }, + { "allow_merge_commit", n => { AllowMergeCommit = n.GetBoolValue(); } }, + { "allow_rebase_merge", n => { AllowRebaseMerge = n.GetBoolValue(); } }, + { "allow_squash_merge", n => { AllowSquashMerge = n.GetBoolValue(); } }, + { "allow_update_branch", n => { AllowUpdateBranch = n.GetBoolValue(); } }, + { "anonymous_access_enabled", n => { AnonymousAccessEnabled = n.GetBoolValue(); } }, + { "archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, + { "archived", n => { Archived = n.GetBoolValue(); } }, + { "assignees_url", n => { AssigneesUrl = n.GetStringValue(); } }, + { "blobs_url", n => { BlobsUrl = n.GetStringValue(); } }, + { "branches_url", n => { BranchesUrl = n.GetStringValue(); } }, + { "clone_url", n => { CloneUrl = n.GetStringValue(); } }, + { "collaborators_url", n => { CollaboratorsUrl = n.GetStringValue(); } }, + { "comments_url", n => { CommentsUrl = n.GetStringValue(); } }, + { "commits_url", n => { CommitsUrl = n.GetStringValue(); } }, + { "compare_url", n => { CompareUrl = n.GetStringValue(); } }, + { "contents_url", n => { ContentsUrl = n.GetStringValue(); } }, + { "contributors_url", n => { ContributorsUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "default_branch", n => { DefaultBranch = n.GetStringValue(); } }, + { "delete_branch_on_merge", n => { DeleteBranchOnMerge = n.GetBoolValue(); } }, + { "deployments_url", n => { DeploymentsUrl = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "disabled", n => { Disabled = n.GetBoolValue(); } }, + { "downloads_url", n => { DownloadsUrl = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "fork", n => { Fork = n.GetBoolValue(); } }, + { "forks", n => { Forks = n.GetIntValue(); } }, + { "forks_count", n => { ForksCount = n.GetIntValue(); } }, + { "forks_url", n => { ForksUrl = n.GetStringValue(); } }, + { "full_name", n => { FullName = n.GetStringValue(); } }, + { "git_commits_url", n => { GitCommitsUrl = n.GetStringValue(); } }, + { "git_refs_url", n => { GitRefsUrl = n.GetStringValue(); } }, + { "git_tags_url", n => { GitTagsUrl = n.GetStringValue(); } }, + { "git_url", n => { GitUrl = n.GetStringValue(); } }, + { "has_discussions", n => { HasDiscussions = n.GetBoolValue(); } }, + { "has_downloads", n => { HasDownloads = n.GetBoolValue(); } }, + { "has_issues", n => { HasIssues = n.GetBoolValue(); } }, + { "has_pages", n => { HasPages = n.GetBoolValue(); } }, + { "has_projects", n => { HasProjects = n.GetBoolValue(); } }, + { "has_wiki", n => { HasWiki = n.GetBoolValue(); } }, + { "homepage", n => { Homepage = n.GetStringValue(); } }, + { "hooks_url", n => { HooksUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "is_template", n => { IsTemplate = n.GetBoolValue(); } }, + { "issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, + { "issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } }, + { "issues_url", n => { IssuesUrl = n.GetStringValue(); } }, + { "keys_url", n => { KeysUrl = n.GetStringValue(); } }, + { "labels_url", n => { LabelsUrl = n.GetStringValue(); } }, + { "language", n => { Language = n.GetStringValue(); } }, + { "languages_url", n => { LanguagesUrl = n.GetStringValue(); } }, + { "license", n => { License = n.GetObjectValue(global::GitHub.Models.NullableLicenseSimple.CreateFromDiscriminatorValue); } }, + { "master_branch", n => { MasterBranch = n.GetStringValue(); } }, + { "merge_commit_message", n => { MergeCommitMessage = n.GetEnumValue(); } }, + { "merge_commit_title", n => { MergeCommitTitle = n.GetEnumValue(); } }, + { "merges_url", n => { MergesUrl = n.GetStringValue(); } }, + { "milestones_url", n => { MilestonesUrl = n.GetStringValue(); } }, + { "mirror_url", n => { MirrorUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, + { "open_issues", n => { OpenIssues = n.GetIntValue(); } }, + { "open_issues_count", n => { OpenIssuesCount = n.GetIntValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.NullableRepository_permissions.CreateFromDiscriminatorValue); } }, + { "private", n => { Private = n.GetBoolValue(); } }, + { "pulls_url", n => { PullsUrl = n.GetStringValue(); } }, + { "pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, + { "releases_url", n => { ReleasesUrl = n.GetStringValue(); } }, + { "size", n => { Size = n.GetIntValue(); } }, + { "squash_merge_commit_message", n => { SquashMergeCommitMessage = n.GetEnumValue(); } }, + { "squash_merge_commit_title", n => { SquashMergeCommitTitle = n.GetEnumValue(); } }, + { "ssh_url", n => { SshUrl = n.GetStringValue(); } }, + { "stargazers_count", n => { StargazersCount = n.GetIntValue(); } }, + { "stargazers_url", n => { StargazersUrl = n.GetStringValue(); } }, + { "starred_at", n => { StarredAt = n.GetStringValue(); } }, + { "statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, + { "subscribers_url", n => { SubscribersUrl = n.GetStringValue(); } }, + { "subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, + { "svn_url", n => { SvnUrl = n.GetStringValue(); } }, + { "tags_url", n => { TagsUrl = n.GetStringValue(); } }, + { "teams_url", n => { TeamsUrl = n.GetStringValue(); } }, + { "temp_clone_token", n => { TempCloneToken = n.GetStringValue(); } }, + { "topics", n => { Topics = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "trees_url", n => { TreesUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "use_squash_pr_title_as_default", n => { UseSquashPrTitleAsDefault = n.GetBoolValue(); } }, + { "visibility", n => { Visibility = n.GetStringValue(); } }, + { "watchers", n => { Watchers = n.GetIntValue(); } }, + { "watchers_count", n => { WatchersCount = n.GetIntValue(); } }, + { "web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, }; } /// @@ -736,10 +738,10 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("labels_url", LabelsUrl); writer.WriteStringValue("language", Language); writer.WriteStringValue("languages_url", LanguagesUrl); - writer.WriteObjectValue("license", License); + writer.WriteObjectValue("license", License); writer.WriteStringValue("master_branch", MasterBranch); - writer.WriteEnumValue("merge_commit_message", MergeCommitMessage); - writer.WriteEnumValue("merge_commit_title", MergeCommitTitle); + writer.WriteEnumValue("merge_commit_message", MergeCommitMessage); + writer.WriteEnumValue("merge_commit_title", MergeCommitTitle); writer.WriteStringValue("merges_url", MergesUrl); writer.WriteStringValue("milestones_url", MilestonesUrl); writer.WriteStringValue("mirror_url", MirrorUrl); @@ -748,15 +750,15 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("notifications_url", NotificationsUrl); writer.WriteIntValue("open_issues", OpenIssues); writer.WriteIntValue("open_issues_count", OpenIssuesCount); - writer.WriteObjectValue("owner", Owner); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("owner", Owner); + writer.WriteObjectValue("permissions", Permissions); writer.WriteBoolValue("private", Private); writer.WriteStringValue("pulls_url", PullsUrl); writer.WriteDateTimeOffsetValue("pushed_at", PushedAt); writer.WriteStringValue("releases_url", ReleasesUrl); writer.WriteIntValue("size", Size); - writer.WriteEnumValue("squash_merge_commit_message", SquashMergeCommitMessage); - writer.WriteEnumValue("squash_merge_commit_title", SquashMergeCommitTitle); + writer.WriteEnumValue("squash_merge_commit_message", SquashMergeCommitMessage); + writer.WriteEnumValue("squash_merge_commit_title", SquashMergeCommitTitle); writer.WriteStringValue("ssh_url", SshUrl); writer.WriteIntValue("stargazers_count", StargazersCount); writer.WriteStringValue("stargazers_url", StargazersUrl); diff --git a/src/GitHub/Models/NullableRepository_merge_commit_message.cs b/src/GitHub/Models/NullableRepository_merge_commit_message.cs index 0074a48f..86739ca1 100644 --- a/src/GitHub/Models/NullableRepository_merge_commit_message.cs +++ b/src/GitHub/Models/NullableRepository_merge_commit_message.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// 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. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum NullableRepository_merge_commit_message { [EnumMember(Value = "PR_BODY")] diff --git a/src/GitHub/Models/NullableRepository_merge_commit_title.cs b/src/GitHub/Models/NullableRepository_merge_commit_title.cs index fe7ed452..1425751f 100644 --- a/src/GitHub/Models/NullableRepository_merge_commit_title.cs +++ b/src/GitHub/Models/NullableRepository_merge_commit_title.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// 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). + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum NullableRepository_merge_commit_title { [EnumMember(Value = "PR_TITLE")] diff --git a/src/GitHub/Models/NullableRepository_permissions.cs b/src/GitHub/Models/NullableRepository_permissions.cs index 4f2a842f..8e01391b 100644 --- a/src/GitHub/Models/NullableRepository_permissions.cs +++ b/src/GitHub/Models/NullableRepository_permissions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class NullableRepository_permissions : IAdditionalDataHolder, IParsable + public partial class NullableRepository_permissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class NullableRepository_permissions : IAdditionalDataHolder, IParsable /// The triage property public bool? Triage { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableRepository_permissions() { @@ -31,12 +33,12 @@ public NullableRepository_permissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableRepository_permissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableRepository_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableRepository_permissions(); + return new global::GitHub.Models.NullableRepository_permissions(); } /// /// The deserialization information for the current model @@ -46,11 +48,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"admin", n => { Admin = n.GetBoolValue(); } }, - {"maintain", n => { Maintain = n.GetBoolValue(); } }, - {"pull", n => { Pull = n.GetBoolValue(); } }, - {"push", n => { Push = n.GetBoolValue(); } }, - {"triage", n => { Triage = n.GetBoolValue(); } }, + { "admin", n => { Admin = n.GetBoolValue(); } }, + { "maintain", n => { Maintain = n.GetBoolValue(); } }, + { "pull", n => { Pull = n.GetBoolValue(); } }, + { "push", n => { Push = n.GetBoolValue(); } }, + { "triage", n => { Triage = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/NullableRepository_squash_merge_commit_message.cs b/src/GitHub/Models/NullableRepository_squash_merge_commit_message.cs index 7b582c5c..dbac390b 100644 --- a/src/GitHub/Models/NullableRepository_squash_merge_commit_message.cs +++ b/src/GitHub/Models/NullableRepository_squash_merge_commit_message.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// 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. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum NullableRepository_squash_merge_commit_message { [EnumMember(Value = "PR_BODY")] diff --git a/src/GitHub/Models/NullableRepository_squash_merge_commit_title.cs b/src/GitHub/Models/NullableRepository_squash_merge_commit_title.cs index 0bb92e9c..ad0e9d7a 100644 --- a/src/GitHub/Models/NullableRepository_squash_merge_commit_title.cs +++ b/src/GitHub/Models/NullableRepository_squash_merge_commit_title.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// 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). + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum NullableRepository_squash_merge_commit_title { [EnumMember(Value = "PR_TITLE")] diff --git a/src/GitHub/Models/NullableScopedInstallation.cs b/src/GitHub/Models/NullableScopedInstallation.cs index fb0bfca0..9677780b 100644 --- a/src/GitHub/Models/NullableScopedInstallation.cs +++ b/src/GitHub/Models/NullableScopedInstallation.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class NullableScopedInstallation : IAdditionalDataHolder, IParsable + public partial class NullableScopedInstallation : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Account { get; set; } + public global::GitHub.Models.SimpleUser? Account { get; set; } #nullable restore #else - public SimpleUser Account { get; set; } + public global::GitHub.Models.SimpleUser Account { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -24,10 +26,10 @@ public class NullableScopedInstallation : IAdditionalDataHolder, IParsable /// The permissions granted to the user access token. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public AppPermissions? Permissions { get; set; } + public global::GitHub.Models.AppPermissions? Permissions { get; set; } #nullable restore #else - public AppPermissions Permissions { get; set; } + public global::GitHub.Models.AppPermissions Permissions { get; set; } #endif /// The repositories_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -38,7 +40,7 @@ public class NullableScopedInstallation : IAdditionalDataHolder, IParsable public string RepositoriesUrl { get; set; } #endif /// Describe whether all repositories have been selected or there's a selection involved - public NullableScopedInstallation_repository_selection? RepositorySelection { get; set; } + public global::GitHub.Models.NullableScopedInstallation_repository_selection? RepositorySelection { get; set; } /// The single_file_name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -56,7 +58,7 @@ public class NullableScopedInstallation : IAdditionalDataHolder, IParsable public List SingleFilePaths { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableScopedInstallation() { @@ -65,12 +67,12 @@ public NullableScopedInstallation() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableScopedInstallation CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableScopedInstallation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableScopedInstallation(); + return new global::GitHub.Models.NullableScopedInstallation(); } /// /// The deserialization information for the current model @@ -80,13 +82,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"account", n => { Account = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"has_multiple_single_files", n => { HasMultipleSingleFiles = n.GetBoolValue(); } }, - {"permissions", n => { Permissions = n.GetObjectValue(AppPermissions.CreateFromDiscriminatorValue); } }, - {"repositories_url", n => { RepositoriesUrl = n.GetStringValue(); } }, - {"repository_selection", n => { RepositorySelection = n.GetEnumValue(); } }, - {"single_file_name", n => { SingleFileName = n.GetStringValue(); } }, - {"single_file_paths", n => { SingleFilePaths = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "account", n => { Account = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "has_multiple_single_files", n => { HasMultipleSingleFiles = n.GetBoolValue(); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.AppPermissions.CreateFromDiscriminatorValue); } }, + { "repositories_url", n => { RepositoriesUrl = n.GetStringValue(); } }, + { "repository_selection", n => { RepositorySelection = n.GetEnumValue(); } }, + { "single_file_name", n => { SingleFileName = n.GetStringValue(); } }, + { "single_file_paths", n => { SingleFilePaths = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -96,11 +98,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("account", Account); + writer.WriteObjectValue("account", Account); writer.WriteBoolValue("has_multiple_single_files", HasMultipleSingleFiles); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("permissions", Permissions); writer.WriteStringValue("repositories_url", RepositoriesUrl); - writer.WriteEnumValue("repository_selection", RepositorySelection); + writer.WriteEnumValue("repository_selection", RepositorySelection); writer.WriteStringValue("single_file_name", SingleFileName); writer.WriteCollectionOfPrimitiveValues("single_file_paths", SingleFilePaths); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/NullableScopedInstallation_repository_selection.cs b/src/GitHub/Models/NullableScopedInstallation_repository_selection.cs index 616c7f61..18989328 100644 --- a/src/GitHub/Models/NullableScopedInstallation_repository_selection.cs +++ b/src/GitHub/Models/NullableScopedInstallation_repository_selection.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Describe whether all repositories have been selected or there's a selection involved + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum NullableScopedInstallation_repository_selection { [EnumMember(Value = "all")] diff --git a/src/GitHub/Models/NullableSimpleCommit.cs b/src/GitHub/Models/NullableSimpleCommit.cs index 2cb28de8..1e3885b1 100644 --- a/src/GitHub/Models/NullableSimpleCommit.cs +++ b/src/GitHub/Models/NullableSimpleCommit.cs @@ -1,32 +1,34 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A commit. /// - public class NullableSimpleCommit : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class NullableSimpleCommit : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// Information about the Git author #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleCommit_author? Author { get; set; } + public global::GitHub.Models.NullableSimpleCommit_author? Author { get; set; } #nullable restore #else - public NullableSimpleCommit_author Author { get; set; } + public global::GitHub.Models.NullableSimpleCommit_author Author { get; set; } #endif /// Information about the Git committer #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleCommit_committer? Committer { get; set; } + public global::GitHub.Models.NullableSimpleCommit_committer? Committer { get; set; } #nullable restore #else - public NullableSimpleCommit_committer Committer { get; set; } + public global::GitHub.Models.NullableSimpleCommit_committer Committer { get; set; } #endif /// SHA for the commit #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -55,7 +57,7 @@ public class NullableSimpleCommit : IAdditionalDataHolder, IParsable public string TreeId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableSimpleCommit() { @@ -64,12 +66,12 @@ public NullableSimpleCommit() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableSimpleCommit CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableSimpleCommit CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableSimpleCommit(); + return new global::GitHub.Models.NullableSimpleCommit(); } /// /// The deserialization information for the current model @@ -79,12 +81,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author", n => { Author = n.GetObjectValue(NullableSimpleCommit_author.CreateFromDiscriminatorValue); } }, - {"committer", n => { Committer = n.GetObjectValue(NullableSimpleCommit_committer.CreateFromDiscriminatorValue); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"timestamp", n => { Timestamp = n.GetDateTimeOffsetValue(); } }, - {"tree_id", n => { TreeId = n.GetStringValue(); } }, + { "author", n => { Author = n.GetObjectValue(global::GitHub.Models.NullableSimpleCommit_author.CreateFromDiscriminatorValue); } }, + { "committer", n => { Committer = n.GetObjectValue(global::GitHub.Models.NullableSimpleCommit_committer.CreateFromDiscriminatorValue); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "timestamp", n => { Timestamp = n.GetDateTimeOffsetValue(); } }, + { "tree_id", n => { TreeId = n.GetStringValue(); } }, }; } /// @@ -94,8 +96,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("author", Author); - writer.WriteObjectValue("committer", Committer); + writer.WriteObjectValue("author", Author); + writer.WriteObjectValue("committer", Committer); writer.WriteStringValue("id", Id); writer.WriteStringValue("message", Message); writer.WriteDateTimeOffsetValue("timestamp", Timestamp); diff --git a/src/GitHub/Models/NullableSimpleCommit_author.cs b/src/GitHub/Models/NullableSimpleCommit_author.cs index b490eae6..9e94b51a 100644 --- a/src/GitHub/Models/NullableSimpleCommit_author.cs +++ b/src/GitHub/Models/NullableSimpleCommit_author.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Information about the Git author /// - public class NullableSimpleCommit_author : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class NullableSimpleCommit_author : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class NullableSimpleCommit_author : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableSimpleCommit_author() { @@ -38,12 +40,12 @@ public NullableSimpleCommit_author() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableSimpleCommit_author CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableSimpleCommit_author CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableSimpleCommit_author(); + return new global::GitHub.Models.NullableSimpleCommit_author(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"email", n => { Email = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/NullableSimpleCommit_committer.cs b/src/GitHub/Models/NullableSimpleCommit_committer.cs index 9af1eda9..da66d7cf 100644 --- a/src/GitHub/Models/NullableSimpleCommit_committer.cs +++ b/src/GitHub/Models/NullableSimpleCommit_committer.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Information about the Git committer /// - public class NullableSimpleCommit_committer : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class NullableSimpleCommit_committer : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class NullableSimpleCommit_committer : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableSimpleCommit_committer() { @@ -38,12 +40,12 @@ public NullableSimpleCommit_committer() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableSimpleCommit_committer CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableSimpleCommit_committer CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableSimpleCommit_committer(); + return new global::GitHub.Models.NullableSimpleCommit_committer(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"email", n => { Email = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/NullableSimpleUser.cs b/src/GitHub/Models/NullableSimpleUser.cs index d3f1efae..cb1c0bc5 100644 --- a/src/GitHub/Models/NullableSimpleUser.cs +++ b/src/GitHub/Models/NullableSimpleUser.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A GitHub user. /// - public class NullableSimpleUser : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class NullableSimpleUser : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -169,7 +171,7 @@ public class NullableSimpleUser : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableSimpleUser() { @@ -178,12 +180,12 @@ public NullableSimpleUser() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableSimpleUser CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableSimpleUser CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableSimpleUser(); + return new global::GitHub.Models.NullableSimpleUser(); } /// /// The deserialization information for the current model @@ -193,27 +195,27 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"followers_url", n => { FollowersUrl = n.GetStringValue(); } }, - {"following_url", n => { FollowingUrl = n.GetStringValue(); } }, - {"gists_url", n => { GistsUrl = n.GetStringValue(); } }, - {"gravatar_id", n => { GravatarId = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, - {"received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, - {"repos_url", n => { ReposUrl = n.GetStringValue(); } }, - {"site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, - {"starred_at", n => { StarredAt = n.GetStringValue(); } }, - {"starred_url", n => { StarredUrl = n.GetStringValue(); } }, - {"subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "followers_url", n => { FollowersUrl = n.GetStringValue(); } }, + { "following_url", n => { FollowingUrl = n.GetStringValue(); } }, + { "gists_url", n => { GistsUrl = n.GetStringValue(); } }, + { "gravatar_id", n => { GravatarId = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, + { "received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, + { "repos_url", n => { ReposUrl = n.GetStringValue(); } }, + { "site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, + { "starred_at", n => { StarredAt = n.GetStringValue(); } }, + { "starred_url", n => { StarredUrl = n.GetStringValue(); } }, + { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/NullableTeamSimple.cs b/src/GitHub/Models/NullableTeamSimple.cs index 15d16b94..0c0842ba 100644 --- a/src/GitHub/Models/NullableTeamSimple.cs +++ b/src/GitHub/Models/NullableTeamSimple.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Groups of organization members that gives permissions on specified repositories. /// - public class NullableTeamSimple : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class NullableTeamSimple : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -111,7 +113,7 @@ public class NullableTeamSimple : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NullableTeamSimple() { @@ -120,12 +122,12 @@ public NullableTeamSimple() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NullableTeamSimple CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.NullableTeamSimple CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NullableTeamSimple(); + return new global::GitHub.Models.NullableTeamSimple(); } /// /// The deserialization information for the current model @@ -135,19 +137,19 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"ldap_dn", n => { LdapDn = n.GetStringValue(); } }, - {"members_url", n => { MembersUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"notification_setting", n => { NotificationSetting = n.GetStringValue(); } }, - {"permission", n => { Permission = n.GetStringValue(); } }, - {"privacy", n => { Privacy = n.GetStringValue(); } }, - {"repositories_url", n => { RepositoriesUrl = n.GetStringValue(); } }, - {"slug", n => { Slug = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "ldap_dn", n => { LdapDn = n.GetStringValue(); } }, + { "members_url", n => { MembersUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "notification_setting", n => { NotificationSetting = n.GetStringValue(); } }, + { "permission", n => { Permission = n.GetStringValue(); } }, + { "privacy", n => { Privacy = n.GetStringValue(); } }, + { "repositories_url", n => { RepositoriesUrl = n.GetStringValue(); } }, + { "slug", n => { Slug = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/OidcCustomSub.cs b/src/GitHub/Models/OidcCustomSub.cs index 7e44a0cf..222386ff 100644 --- a/src/GitHub/Models/OidcCustomSub.cs +++ b/src/GitHub/Models/OidcCustomSub.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Actions OIDC Subject customization /// - public class OidcCustomSub : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OidcCustomSub : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -21,7 +23,7 @@ public class OidcCustomSub : IAdditionalDataHolder, IParsable public List IncludeClaimKeys { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OidcCustomSub() { @@ -30,12 +32,12 @@ public OidcCustomSub() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OidcCustomSub CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OidcCustomSub CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OidcCustomSub(); + return new global::GitHub.Models.OidcCustomSub(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"include_claim_keys", n => { IncludeClaimKeys = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "include_claim_keys", n => { IncludeClaimKeys = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Models/OidcCustomSubRepo.cs b/src/GitHub/Models/OidcCustomSubRepo.cs index ae72248a..17ce22a3 100644 --- a/src/GitHub/Models/OidcCustomSubRepo.cs +++ b/src/GitHub/Models/OidcCustomSubRepo.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Actions OIDC subject customization for a repository /// - public class OidcCustomSubRepo : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OidcCustomSubRepo : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,7 +25,7 @@ public class OidcCustomSubRepo : IAdditionalDataHolder, IParsable /// Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored. public bool? UseDefault { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OidcCustomSubRepo() { @@ -32,12 +34,12 @@ public OidcCustomSubRepo() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OidcCustomSubRepo CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OidcCustomSubRepo CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OidcCustomSubRepo(); + return new global::GitHub.Models.OidcCustomSubRepo(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"include_claim_keys", n => { IncludeClaimKeys = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"use_default", n => { UseDefault = n.GetBoolValue(); } }, + { "include_claim_keys", n => { IncludeClaimKeys = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "use_default", n => { UseDefault = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/OrgHook.cs b/src/GitHub/Models/OrgHook.cs index 20abedf5..95df1323 100644 --- a/src/GitHub/Models/OrgHook.cs +++ b/src/GitHub/Models/OrgHook.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Org Hook /// - public class OrgHook : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrgHook : IAdditionalDataHolder, IParsable { /// The active property public bool? Active { get; set; } @@ -17,10 +19,10 @@ public class OrgHook : IAdditionalDataHolder, IParsable /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrgHook_config? Config { get; set; } + public global::GitHub.Models.OrgHook_config? Config { get; set; } #nullable restore #else - public OrgHook_config Config { get; set; } + public global::GitHub.Models.OrgHook_config Config { get; set; } #endif /// The created_at property public DateTimeOffset? CreatedAt { get; set; } @@ -77,7 +79,7 @@ public class OrgHook : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrgHook() { @@ -86,12 +88,12 @@ public OrgHook() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrgHook CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrgHook CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrgHook(); + return new global::GitHub.Models.OrgHook(); } /// /// The deserialization information for the current model @@ -101,17 +103,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"active", n => { Active = n.GetBoolValue(); } }, - {"config", n => { Config = n.GetObjectValue(OrgHook_config.CreateFromDiscriminatorValue); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"deliveries_url", n => { DeliveriesUrl = n.GetStringValue(); } }, - {"events", n => { Events = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"ping_url", n => { PingUrl = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "active", n => { Active = n.GetBoolValue(); } }, + { "config", n => { Config = n.GetObjectValue(global::GitHub.Models.OrgHook_config.CreateFromDiscriminatorValue); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "deliveries_url", n => { DeliveriesUrl = n.GetStringValue(); } }, + { "events", n => { Events = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "ping_url", n => { PingUrl = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -122,7 +124,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("active", Active); - writer.WriteObjectValue("config", Config); + writer.WriteObjectValue("config", Config); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteStringValue("deliveries_url", DeliveriesUrl); writer.WriteCollectionOfPrimitiveValues("events", Events); diff --git a/src/GitHub/Models/OrgHook_config.cs b/src/GitHub/Models/OrgHook_config.cs index 813f93fe..26df4500 100644 --- a/src/GitHub/Models/OrgHook_config.cs +++ b/src/GitHub/Models/OrgHook_config.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class OrgHook_config : IAdditionalDataHolder, IParsable + public partial class OrgHook_config : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -44,7 +46,7 @@ public class OrgHook_config : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrgHook_config() { @@ -53,12 +55,12 @@ public OrgHook_config() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrgHook_config CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrgHook_config CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrgHook_config(); + return new global::GitHub.Models.OrgHook_config(); } /// /// The deserialization information for the current model @@ -68,10 +70,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content_type", n => { ContentType = n.GetStringValue(); } }, - {"insecure_ssl", n => { InsecureSsl = n.GetStringValue(); } }, - {"secret", n => { Secret = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "content_type", n => { ContentType = n.GetStringValue(); } }, + { "insecure_ssl", n => { InsecureSsl = n.GetStringValue(); } }, + { "secret", n => { Secret = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/OrgMembership.cs b/src/GitHub/Models/OrgMembership.cs index 321ed7c2..c056a03c 100644 --- a/src/GitHub/Models/OrgMembership.cs +++ b/src/GitHub/Models/OrgMembership.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Org Membership /// - public class OrgMembership : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrgMembership : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// A GitHub organization. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrganizationSimple? Organization { get; set; } + public global::GitHub.Models.OrganizationSimple? Organization { get; set; } #nullable restore #else - public OrganizationSimple Organization { get; set; } + public global::GitHub.Models.OrganizationSimple Organization { get; set; } #endif /// The organization_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -31,15 +33,15 @@ public class OrgMembership : IAdditionalDataHolder, IParsable /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrgMembership_permissions? Permissions { get; set; } + public global::GitHub.Models.OrgMembership_permissions? Permissions { get; set; } #nullable restore #else - public OrgMembership_permissions Permissions { get; set; } + public global::GitHub.Models.OrgMembership_permissions Permissions { get; set; } #endif /// The user's membership type in the organization. - public OrgMembership_role? Role { get; set; } + public global::GitHub.Models.OrgMembership_role? Role { get; set; } /// The state of the member in the organization. The `pending` state indicates the user has not yet accepted an invitation. - public OrgMembership_state? State { get; set; } + public global::GitHub.Models.OrgMembership_state? State { get; set; } /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -51,13 +53,13 @@ public class OrgMembership : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? User { get; set; } + public global::GitHub.Models.NullableSimpleUser? User { get; set; } #nullable restore #else - public NullableSimpleUser User { get; set; } + public global::GitHub.Models.NullableSimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrgMembership() { @@ -66,12 +68,12 @@ public OrgMembership() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrgMembership CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrgMembership CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrgMembership(); + return new global::GitHub.Models.OrgMembership(); } /// /// The deserialization information for the current model @@ -81,13 +83,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"organization", n => { Organization = n.GetObjectValue(OrganizationSimple.CreateFromDiscriminatorValue); } }, - {"organization_url", n => { OrganizationUrl = n.GetStringValue(); } }, - {"permissions", n => { Permissions = n.GetObjectValue(OrgMembership_permissions.CreateFromDiscriminatorValue); } }, - {"role", n => { Role = n.GetEnumValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "organization", n => { Organization = n.GetObjectValue(global::GitHub.Models.OrganizationSimple.CreateFromDiscriminatorValue); } }, + { "organization_url", n => { OrganizationUrl = n.GetStringValue(); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.OrgMembership_permissions.CreateFromDiscriminatorValue); } }, + { "role", n => { Role = n.GetEnumValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -97,13 +99,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("organization", Organization); + writer.WriteObjectValue("organization", Organization); writer.WriteStringValue("organization_url", OrganizationUrl); - writer.WriteObjectValue("permissions", Permissions); - writer.WriteEnumValue("role", Role); - writer.WriteEnumValue("state", State); + writer.WriteObjectValue("permissions", Permissions); + writer.WriteEnumValue("role", Role); + writer.WriteEnumValue("state", State); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/OrgMembership_permissions.cs b/src/GitHub/Models/OrgMembership_permissions.cs index 295a91a9..ab211b53 100644 --- a/src/GitHub/Models/OrgMembership_permissions.cs +++ b/src/GitHub/Models/OrgMembership_permissions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class OrgMembership_permissions : IAdditionalDataHolder, IParsable + public partial class OrgMembership_permissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class OrgMembership_permissions : IAdditionalDataHolder, IParsable /// The can_create_repository property public bool? CanCreateRepository { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrgMembership_permissions() { @@ -23,12 +25,12 @@ public OrgMembership_permissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrgMembership_permissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrgMembership_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrgMembership_permissions(); + return new global::GitHub.Models.OrgMembership_permissions(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"can_create_repository", n => { CanCreateRepository = n.GetBoolValue(); } }, + { "can_create_repository", n => { CanCreateRepository = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/OrgMembership_role.cs b/src/GitHub/Models/OrgMembership_role.cs index e27cea04..ca319152 100644 --- a/src/GitHub/Models/OrgMembership_role.cs +++ b/src/GitHub/Models/OrgMembership_role.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The user's membership type in the organization. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum OrgMembership_role { [EnumMember(Value = "admin")] diff --git a/src/GitHub/Models/OrgMembership_state.cs b/src/GitHub/Models/OrgMembership_state.cs index 78c80590..06412d5b 100644 --- a/src/GitHub/Models/OrgMembership_state.cs +++ b/src/GitHub/Models/OrgMembership_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The state of the member in the organization. The `pending` state indicates the user has not yet accepted an invitation. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum OrgMembership_state { [EnumMember(Value = "active")] diff --git a/src/GitHub/Models/OrgRepoCustomPropertyValues.cs b/src/GitHub/Models/OrgRepoCustomPropertyValues.cs index 58321bb5..119c88c7 100644 --- a/src/GitHub/Models/OrgRepoCustomPropertyValues.cs +++ b/src/GitHub/Models/OrgRepoCustomPropertyValues.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// List of custom property values for a repository /// - public class OrgRepoCustomPropertyValues : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrgRepoCustomPropertyValues : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// List of custom property names and associated values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Properties { get; set; } + public List? Properties { get; set; } #nullable restore #else - public List Properties { get; set; } + public List Properties { get; set; } #endif /// The repository_full_name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -39,7 +41,7 @@ public class OrgRepoCustomPropertyValues : IAdditionalDataHolder, IParsable public string RepositoryName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrgRepoCustomPropertyValues() { @@ -48,12 +50,12 @@ public OrgRepoCustomPropertyValues() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrgRepoCustomPropertyValues CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrgRepoCustomPropertyValues CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrgRepoCustomPropertyValues(); + return new global::GitHub.Models.OrgRepoCustomPropertyValues(); } /// /// The deserialization information for the current model @@ -63,10 +65,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"properties", n => { Properties = n.GetCollectionOfObjectValues(CustomPropertyValue.CreateFromDiscriminatorValue)?.ToList(); } }, - {"repository_full_name", n => { RepositoryFullName = n.GetStringValue(); } }, - {"repository_id", n => { RepositoryId = n.GetIntValue(); } }, - {"repository_name", n => { RepositoryName = n.GetStringValue(); } }, + { "properties", n => { Properties = n.GetCollectionOfObjectValues(global::GitHub.Models.CustomPropertyValue.CreateFromDiscriminatorValue)?.AsList(); } }, + { "repository_full_name", n => { RepositoryFullName = n.GetStringValue(); } }, + { "repository_id", n => { RepositoryId = n.GetIntValue(); } }, + { "repository_name", n => { RepositoryName = n.GetStringValue(); } }, }; } /// @@ -76,7 +78,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("properties", Properties); + writer.WriteCollectionOfObjectValues("properties", Properties); writer.WriteStringValue("repository_full_name", RepositoryFullName); writer.WriteIntValue("repository_id", RepositoryId); writer.WriteStringValue("repository_name", RepositoryName); diff --git a/src/GitHub/Models/OrgRulesetConditions.cs b/src/GitHub/Models/OrgRulesetConditions.cs index 450135df..1e3eb540 100644 --- a/src/GitHub/Models/OrgRulesetConditions.cs +++ b/src/GitHub/Models/OrgRulesetConditions.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties. /// - public class OrgRulesetConditions : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrgRulesetConditions : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrgRulesetConditions() { @@ -22,12 +24,12 @@ public OrgRulesetConditions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrgRulesetConditions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrgRulesetConditions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrgRulesetConditions(); + return new global::GitHub.Models.OrgRulesetConditions(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/OrganizationActionsSecret.cs b/src/GitHub/Models/OrganizationActionsSecret.cs index bae5794b..f63c0358 100644 --- a/src/GitHub/Models/OrganizationActionsSecret.cs +++ b/src/GitHub/Models/OrganizationActionsSecret.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Secrets for GitHub Actions for an organization. /// - public class OrganizationActionsSecret : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationActionsSecret : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -33,9 +35,9 @@ public class OrganizationActionsSecret : IAdditionalDataHolder, IParsable /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } /// Visibility of a secret - public OrganizationActionsSecret_visibility? Visibility { get; set; } + public global::GitHub.Models.OrganizationActionsSecret_visibility? Visibility { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationActionsSecret() { @@ -44,12 +46,12 @@ public OrganizationActionsSecret() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationActionsSecret CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationActionsSecret CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationActionsSecret(); + return new global::GitHub.Models.OrganizationActionsSecret(); } /// /// The deserialization information for the current model @@ -59,11 +61,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"selected_repositories_url", n => { SelectedRepositoriesUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "selected_repositories_url", n => { SelectedRepositoriesUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "visibility", n => { Visibility = n.GetEnumValue(); } }, }; } /// @@ -77,7 +79,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteStringValue("selected_repositories_url", SelectedRepositoriesUrl); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); - writer.WriteEnumValue("visibility", Visibility); + writer.WriteEnumValue("visibility", Visibility); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/OrganizationActionsSecret_visibility.cs b/src/GitHub/Models/OrganizationActionsSecret_visibility.cs index b88ea4b7..9967b68b 100644 --- a/src/GitHub/Models/OrganizationActionsSecret_visibility.cs +++ b/src/GitHub/Models/OrganizationActionsSecret_visibility.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Visibility of a secret + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum OrganizationActionsSecret_visibility { [EnumMember(Value = "all")] diff --git a/src/GitHub/Models/OrganizationActionsVariable.cs b/src/GitHub/Models/OrganizationActionsVariable.cs index f9066f06..b4ee91c8 100644 --- a/src/GitHub/Models/OrganizationActionsVariable.cs +++ b/src/GitHub/Models/OrganizationActionsVariable.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Organization variable for GitHub Actions. /// - public class OrganizationActionsVariable : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationActionsVariable : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -41,9 +43,9 @@ public class OrganizationActionsVariable : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// Visibility of a variable - public OrganizationActionsVariable_visibility? Visibility { get; set; } + public global::GitHub.Models.OrganizationActionsVariable_visibility? Visibility { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationActionsVariable() { @@ -52,12 +54,12 @@ public OrganizationActionsVariable() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationActionsVariable CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationActionsVariable CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationActionsVariable(); + return new global::GitHub.Models.OrganizationActionsVariable(); } /// /// The deserialization information for the current model @@ -67,12 +69,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"selected_repositories_url", n => { SelectedRepositoriesUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "selected_repositories_url", n => { SelectedRepositoriesUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, + { "visibility", n => { Visibility = n.GetEnumValue(); } }, }; } /// @@ -87,7 +89,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("selected_repositories_url", SelectedRepositoriesUrl); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("value", Value); - writer.WriteEnumValue("visibility", Visibility); + writer.WriteEnumValue("visibility", Visibility); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/OrganizationActionsVariable_visibility.cs b/src/GitHub/Models/OrganizationActionsVariable_visibility.cs index 8f2d10d5..f777afe7 100644 --- a/src/GitHub/Models/OrganizationActionsVariable_visibility.cs +++ b/src/GitHub/Models/OrganizationActionsVariable_visibility.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Visibility of a variable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum OrganizationActionsVariable_visibility { [EnumMember(Value = "all")] diff --git a/src/GitHub/Orgs/Item/OrganizationRoles/OrganizationRolesPostRequestBody.cs b/src/GitHub/Models/OrganizationCustomOrganizationRoleCreateSchema.cs similarity index 64% rename from src/GitHub/Orgs/Item/OrganizationRoles/OrganizationRolesPostRequestBody.cs rename to src/GitHub/Models/OrganizationCustomOrganizationRoleCreateSchema.cs index a6540a99..37f46e30 100644 --- a/src/GitHub/Orgs/Item/OrganizationRoles/OrganizationRolesPostRequestBody.cs +++ b/src/GitHub/Models/OrganizationCustomOrganizationRoleCreateSchema.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.OrganizationRoles { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class OrganizationRolesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class OrganizationCustomOrganizationRoleCreateSchema : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// The system role from which this role can inherit permissions. + public global::GitHub.Models.OrganizationCustomOrganizationRoleCreateSchema_base_role? BaseRole { get; set; } /// A short description about the intended usage of this role or what permissions it grants. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -36,21 +40,21 @@ public class OrganizationRolesPostRequestBody : IAdditionalDataHolder, IParsable public List Permissions { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public OrganizationRolesPostRequestBody() + public OrganizationCustomOrganizationRoleCreateSchema() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationRolesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationCustomOrganizationRoleCreateSchema CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationRolesPostRequestBody(); + return new global::GitHub.Models.OrganizationCustomOrganizationRoleCreateSchema(); } /// /// The deserialization information for the current model @@ -60,9 +64,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"permissions", n => { Permissions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "base_role", n => { BaseRole = n.GetEnumValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "permissions", n => { Permissions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -72,6 +77,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteEnumValue("base_role", BaseRole); writer.WriteStringValue("description", Description); writer.WriteStringValue("name", Name); writer.WriteCollectionOfPrimitiveValues("permissions", Permissions); diff --git a/src/GitHub/Models/OrganizationCustomOrganizationRoleCreateSchema_base_role.cs b/src/GitHub/Models/OrganizationCustomOrganizationRoleCreateSchema_base_role.cs new file mode 100644 index 00000000..303c59fc --- /dev/null +++ b/src/GitHub/Models/OrganizationCustomOrganizationRoleCreateSchema_base_role.cs @@ -0,0 +1,31 @@ +// +using System.Runtime.Serialization; +using System; +namespace GitHub.Models +{ + /// The system role from which this role can inherit permissions. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public enum OrganizationCustomOrganizationRoleCreateSchema_base_role + { + [EnumMember(Value = "read")] + #pragma warning disable CS1591 + Read, + #pragma warning restore CS1591 + [EnumMember(Value = "triage")] + #pragma warning disable CS1591 + Triage, + #pragma warning restore CS1591 + [EnumMember(Value = "write")] + #pragma warning disable CS1591 + Write, + #pragma warning restore CS1591 + [EnumMember(Value = "maintain")] + #pragma warning disable CS1591 + Maintain, + #pragma warning restore CS1591 + [EnumMember(Value = "admin")] + #pragma warning disable CS1591 + Admin, + #pragma warning restore CS1591 + } +} diff --git a/src/GitHub/Orgs/Item/OrganizationRoles/Item/WithRole_PatchRequestBody.cs b/src/GitHub/Models/OrganizationCustomOrganizationRoleUpdateSchema.cs similarity index 61% rename from src/GitHub/Orgs/Item/OrganizationRoles/Item/WithRole_PatchRequestBody.cs rename to src/GitHub/Models/OrganizationCustomOrganizationRoleUpdateSchema.cs index 1a075977..c3fb9992 100644 --- a/src/GitHub/Orgs/Item/OrganizationRoles/Item/WithRole_PatchRequestBody.cs +++ b/src/GitHub/Models/OrganizationCustomOrganizationRoleUpdateSchema.cs @@ -1,17 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.OrganizationRoles.Item { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithRole_PatchRequestBody : IAdditionalDataHolder, IParsable + public partial class OrganizationCustomOrganizationRoleUpdateSchema : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// A short description about the intended usage of this role or what permissions it grants. + /// The system role from which this role can inherit permissions. + public global::GitHub.Models.OrganizationCustomOrganizationRoleUpdateSchema_base_role? BaseRole { get; set; } + /// A short description about the intended use of this role or the permissions it grants. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Description { get; set; } @@ -36,21 +40,21 @@ public class WithRole_PatchRequestBody : IAdditionalDataHolder, IParsable public List Permissions { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public WithRole_PatchRequestBody() + public OrganizationCustomOrganizationRoleUpdateSchema() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithRole_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationCustomOrganizationRoleUpdateSchema CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithRole_PatchRequestBody(); + return new global::GitHub.Models.OrganizationCustomOrganizationRoleUpdateSchema(); } /// /// The deserialization information for the current model @@ -60,9 +64,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"permissions", n => { Permissions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "base_role", n => { BaseRole = n.GetEnumValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "permissions", n => { Permissions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -72,6 +77,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteEnumValue("base_role", BaseRole); writer.WriteStringValue("description", Description); writer.WriteStringValue("name", Name); writer.WriteCollectionOfPrimitiveValues("permissions", Permissions); diff --git a/src/GitHub/Models/OrganizationCustomOrganizationRoleUpdateSchema_base_role.cs b/src/GitHub/Models/OrganizationCustomOrganizationRoleUpdateSchema_base_role.cs new file mode 100644 index 00000000..07bec88e --- /dev/null +++ b/src/GitHub/Models/OrganizationCustomOrganizationRoleUpdateSchema_base_role.cs @@ -0,0 +1,35 @@ +// +using System.Runtime.Serialization; +using System; +namespace GitHub.Models +{ + /// The system role from which this role can inherit permissions. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public enum OrganizationCustomOrganizationRoleUpdateSchema_base_role + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "read")] + #pragma warning disable CS1591 + Read, + #pragma warning restore CS1591 + [EnumMember(Value = "triage")] + #pragma warning disable CS1591 + Triage, + #pragma warning restore CS1591 + [EnumMember(Value = "write")] + #pragma warning disable CS1591 + Write, + #pragma warning restore CS1591 + [EnumMember(Value = "maintain")] + #pragma warning disable CS1591 + Maintain, + #pragma warning restore CS1591 + [EnumMember(Value = "admin")] + #pragma warning disable CS1591 + Admin, + #pragma warning restore CS1591 + } +} diff --git a/src/GitHub/Models/OrganizationCustomRepositoryRole.cs b/src/GitHub/Models/OrganizationCustomRepositoryRole.cs index c23a2cfa..f07fd320 100644 --- a/src/GitHub/Models/OrganizationCustomRepositoryRole.cs +++ b/src/GitHub/Models/OrganizationCustomRepositoryRole.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Custom repository roles created by organization owners /// - public class OrganizationCustomRepositoryRole : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationCustomRepositoryRole : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The system role from which this role inherits permissions. - public OrganizationCustomRepositoryRole_base_role? BaseRole { get; set; } + public global::GitHub.Models.OrganizationCustomRepositoryRole_base_role? BaseRole { get; set; } /// The created_at property public DateTimeOffset? CreatedAt { get; set; } /// A short description about who this role is for or what permissions it grants. @@ -37,10 +39,10 @@ public class OrganizationCustomRepositoryRole : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Organization { get; set; } + public global::GitHub.Models.SimpleUser? Organization { get; set; } #nullable restore #else - public SimpleUser Organization { get; set; } + public global::GitHub.Models.SimpleUser Organization { get; set; } #endif /// A list of additional permissions included in this role. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -53,7 +55,7 @@ public class OrganizationCustomRepositoryRole : IAdditionalDataHolder, IParsable /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationCustomRepositoryRole() { @@ -62,12 +64,12 @@ public OrganizationCustomRepositoryRole() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationCustomRepositoryRole CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationCustomRepositoryRole CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationCustomRepositoryRole(); + return new global::GitHub.Models.OrganizationCustomRepositoryRole(); } /// /// The deserialization information for the current model @@ -77,14 +79,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"base_role", n => { BaseRole = n.GetEnumValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"organization", n => { Organization = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"permissions", n => { Permissions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "base_role", n => { BaseRole = n.GetEnumValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "organization", n => { Organization = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "permissions", n => { Permissions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, }; } /// @@ -94,12 +96,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("base_role", BaseRole); + writer.WriteEnumValue("base_role", BaseRole); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteStringValue("description", Description); writer.WriteIntValue("id", Id); writer.WriteStringValue("name", Name); - writer.WriteObjectValue("organization", Organization); + writer.WriteObjectValue("organization", Organization); writer.WriteCollectionOfPrimitiveValues("permissions", Permissions); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/OrganizationCustomRepositoryRoleCreateSchema.cs b/src/GitHub/Models/OrganizationCustomRepositoryRoleCreateSchema.cs index c1faa14d..caa4fed6 100644 --- a/src/GitHub/Models/OrganizationCustomRepositoryRoleCreateSchema.cs +++ b/src/GitHub/Models/OrganizationCustomRepositoryRoleCreateSchema.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class OrganizationCustomRepositoryRoleCreateSchema : IAdditionalDataHolder, IParsable + public partial class OrganizationCustomRepositoryRoleCreateSchema : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The system role from which this role inherits permissions. - public OrganizationCustomRepositoryRoleCreateSchema_base_role? BaseRole { get; set; } + public global::GitHub.Models.OrganizationCustomRepositoryRoleCreateSchema_base_role? BaseRole { get; set; } /// A short description about who this role is for or what permissions it grants. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -38,7 +40,7 @@ public class OrganizationCustomRepositoryRoleCreateSchema : IAdditionalDataHolde public List Permissions { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationCustomRepositoryRoleCreateSchema() { @@ -47,12 +49,12 @@ public OrganizationCustomRepositoryRoleCreateSchema() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationCustomRepositoryRoleCreateSchema CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationCustomRepositoryRoleCreateSchema CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationCustomRepositoryRoleCreateSchema(); + return new global::GitHub.Models.OrganizationCustomRepositoryRoleCreateSchema(); } /// /// The deserialization information for the current model @@ -62,10 +64,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"base_role", n => { BaseRole = n.GetEnumValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"permissions", n => { Permissions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "base_role", n => { BaseRole = n.GetEnumValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "permissions", n => { Permissions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -75,7 +77,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("base_role", BaseRole); + writer.WriteEnumValue("base_role", BaseRole); writer.WriteStringValue("description", Description); writer.WriteStringValue("name", Name); writer.WriteCollectionOfPrimitiveValues("permissions", Permissions); diff --git a/src/GitHub/Models/OrganizationCustomRepositoryRoleCreateSchema_base_role.cs b/src/GitHub/Models/OrganizationCustomRepositoryRoleCreateSchema_base_role.cs index 924a301a..3574dbb4 100644 --- a/src/GitHub/Models/OrganizationCustomRepositoryRoleCreateSchema_base_role.cs +++ b/src/GitHub/Models/OrganizationCustomRepositoryRoleCreateSchema_base_role.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The system role from which this role inherits permissions. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum OrganizationCustomRepositoryRoleCreateSchema_base_role { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/OrganizationCustomRepositoryRoleUpdateSchema.cs b/src/GitHub/Models/OrganizationCustomRepositoryRoleUpdateSchema.cs index 86f45bcd..d844f823 100644 --- a/src/GitHub/Models/OrganizationCustomRepositoryRoleUpdateSchema.cs +++ b/src/GitHub/Models/OrganizationCustomRepositoryRoleUpdateSchema.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class OrganizationCustomRepositoryRoleUpdateSchema : IAdditionalDataHolder, IParsable + public partial class OrganizationCustomRepositoryRoleUpdateSchema : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The system role from which this role inherits permissions. - public OrganizationCustomRepositoryRoleUpdateSchema_base_role? BaseRole { get; set; } + public global::GitHub.Models.OrganizationCustomRepositoryRoleUpdateSchema_base_role? BaseRole { get; set; } /// A short description about who this role is for or what permissions it grants. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -38,7 +40,7 @@ public class OrganizationCustomRepositoryRoleUpdateSchema : IAdditionalDataHolde public List Permissions { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationCustomRepositoryRoleUpdateSchema() { @@ -47,12 +49,12 @@ public OrganizationCustomRepositoryRoleUpdateSchema() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationCustomRepositoryRoleUpdateSchema CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationCustomRepositoryRoleUpdateSchema CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationCustomRepositoryRoleUpdateSchema(); + return new global::GitHub.Models.OrganizationCustomRepositoryRoleUpdateSchema(); } /// /// The deserialization information for the current model @@ -62,10 +64,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"base_role", n => { BaseRole = n.GetEnumValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"permissions", n => { Permissions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "base_role", n => { BaseRole = n.GetEnumValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "permissions", n => { Permissions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -75,7 +77,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("base_role", BaseRole); + writer.WriteEnumValue("base_role", BaseRole); writer.WriteStringValue("description", Description); writer.WriteStringValue("name", Name); writer.WriteCollectionOfPrimitiveValues("permissions", Permissions); diff --git a/src/GitHub/Models/OrganizationCustomRepositoryRoleUpdateSchema_base_role.cs b/src/GitHub/Models/OrganizationCustomRepositoryRoleUpdateSchema_base_role.cs index 6bf61730..ed08e793 100644 --- a/src/GitHub/Models/OrganizationCustomRepositoryRoleUpdateSchema_base_role.cs +++ b/src/GitHub/Models/OrganizationCustomRepositoryRoleUpdateSchema_base_role.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The system role from which this role inherits permissions. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum OrganizationCustomRepositoryRoleUpdateSchema_base_role { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/OrganizationCustomRepositoryRole_base_role.cs b/src/GitHub/Models/OrganizationCustomRepositoryRole_base_role.cs index 9c52af20..0286c633 100644 --- a/src/GitHub/Models/OrganizationCustomRepositoryRole_base_role.cs +++ b/src/GitHub/Models/OrganizationCustomRepositoryRole_base_role.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The system role from which this role inherits permissions. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum OrganizationCustomRepositoryRole_base_role { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/OrganizationDependabotSecret.cs b/src/GitHub/Models/OrganizationDependabotSecret.cs index 28c61bfc..93ac32af 100644 --- a/src/GitHub/Models/OrganizationDependabotSecret.cs +++ b/src/GitHub/Models/OrganizationDependabotSecret.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Secrets for GitHub Dependabot for an organization. /// - public class OrganizationDependabotSecret : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationDependabotSecret : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -33,9 +35,9 @@ public class OrganizationDependabotSecret : IAdditionalDataHolder, IParsable /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } /// Visibility of a secret - public OrganizationDependabotSecret_visibility? Visibility { get; set; } + public global::GitHub.Models.OrganizationDependabotSecret_visibility? Visibility { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationDependabotSecret() { @@ -44,12 +46,12 @@ public OrganizationDependabotSecret() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationDependabotSecret CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationDependabotSecret CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationDependabotSecret(); + return new global::GitHub.Models.OrganizationDependabotSecret(); } /// /// The deserialization information for the current model @@ -59,11 +61,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"selected_repositories_url", n => { SelectedRepositoriesUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "selected_repositories_url", n => { SelectedRepositoriesUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "visibility", n => { Visibility = n.GetEnumValue(); } }, }; } /// @@ -77,7 +79,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteStringValue("selected_repositories_url", SelectedRepositoriesUrl); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); - writer.WriteEnumValue("visibility", Visibility); + writer.WriteEnumValue("visibility", Visibility); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/OrganizationDependabotSecret_visibility.cs b/src/GitHub/Models/OrganizationDependabotSecret_visibility.cs index a7e6b039..7d801321 100644 --- a/src/GitHub/Models/OrganizationDependabotSecret_visibility.cs +++ b/src/GitHub/Models/OrganizationDependabotSecret_visibility.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Visibility of a secret + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum OrganizationDependabotSecret_visibility { [EnumMember(Value = "all")] diff --git a/src/GitHub/Models/OrganizationFineGrainedPermission.cs b/src/GitHub/Models/OrganizationFineGrainedPermission.cs index ad37cec4..81d6a2ed 100644 --- a/src/GitHub/Models/OrganizationFineGrainedPermission.cs +++ b/src/GitHub/Models/OrganizationFineGrainedPermission.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A fine-grained permission that protects organization resources. /// - public class OrganizationFineGrainedPermission : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationFineGrainedPermission : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class OrganizationFineGrainedPermission : IAdditionalDataHolder, IParsabl public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationFineGrainedPermission() { @@ -38,12 +40,12 @@ public OrganizationFineGrainedPermission() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationFineGrainedPermission CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationFineGrainedPermission CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationFineGrainedPermission(); + return new global::GitHub.Models.OrganizationFineGrainedPermission(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/OrganizationFull.cs b/src/GitHub/Models/OrganizationFull.cs index c87727f6..77ecf2ce 100644 --- a/src/GitHub/Models/OrganizationFull.cs +++ b/src/GitHub/Models/OrganizationFull.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Organization Full /// - public class OrganizationFull : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationFull : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -201,10 +203,10 @@ public class OrganizationFull : IAdditionalDataHolder, IParsable /// The plan property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrganizationFull_plan? Plan { get; set; } + public global::GitHub.Models.OrganizationFull_plan? Plan { get; set; } #nullable restore #else - public OrganizationFull_plan Plan { get; set; } + public global::GitHub.Models.OrganizationFull_plan Plan { get; set; } #endif /// The private_gists property public int? PrivateGists { get; set; } @@ -280,7 +282,7 @@ public class OrganizationFull : IAdditionalDataHolder, IParsable /// The web_commit_signoff_required property public bool? WebCommitSignoffRequired { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationFull() { @@ -289,12 +291,12 @@ public OrganizationFull() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationFull CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationFull CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationFull(); + return new global::GitHub.Models.OrganizationFull(); } /// /// The deserialization information for the current model @@ -304,64 +306,64 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"advanced_security_enabled_for_new_repositories", n => { AdvancedSecurityEnabledForNewRepositories = n.GetBoolValue(); } }, - {"archived_at", n => { ArchivedAt = n.GetDateTimeOffsetValue(); } }, - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"billing_email", n => { BillingEmail = n.GetStringValue(); } }, - {"blog", n => { Blog = n.GetStringValue(); } }, - {"collaborators", n => { Collaborators = n.GetIntValue(); } }, - {"company", n => { Company = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"default_repository_permission", n => { DefaultRepositoryPermission = n.GetStringValue(); } }, - {"dependabot_alerts_enabled_for_new_repositories", n => { DependabotAlertsEnabledForNewRepositories = n.GetBoolValue(); } }, - {"dependabot_security_updates_enabled_for_new_repositories", n => { DependabotSecurityUpdatesEnabledForNewRepositories = n.GetBoolValue(); } }, - {"dependency_graph_enabled_for_new_repositories", n => { DependencyGraphEnabledForNewRepositories = n.GetBoolValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"disk_usage", n => { DiskUsage = n.GetIntValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"followers", n => { Followers = n.GetIntValue(); } }, - {"following", n => { Following = n.GetIntValue(); } }, - {"has_organization_projects", n => { HasOrganizationProjects = n.GetBoolValue(); } }, - {"has_repository_projects", n => { HasRepositoryProjects = n.GetBoolValue(); } }, - {"hooks_url", n => { HooksUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"is_verified", n => { IsVerified = n.GetBoolValue(); } }, - {"issues_url", n => { IssuesUrl = n.GetStringValue(); } }, - {"location", n => { Location = n.GetStringValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"members_allowed_repository_creation_type", n => { MembersAllowedRepositoryCreationType = n.GetStringValue(); } }, - {"members_can_create_internal_repositories", n => { MembersCanCreateInternalRepositories = n.GetBoolValue(); } }, - {"members_can_create_pages", n => { MembersCanCreatePages = n.GetBoolValue(); } }, - {"members_can_create_private_pages", n => { MembersCanCreatePrivatePages = n.GetBoolValue(); } }, - {"members_can_create_private_repositories", n => { MembersCanCreatePrivateRepositories = n.GetBoolValue(); } }, - {"members_can_create_public_pages", n => { MembersCanCreatePublicPages = n.GetBoolValue(); } }, - {"members_can_create_public_repositories", n => { MembersCanCreatePublicRepositories = n.GetBoolValue(); } }, - {"members_can_create_repositories", n => { MembersCanCreateRepositories = n.GetBoolValue(); } }, - {"members_can_fork_private_repositories", n => { MembersCanForkPrivateRepositories = n.GetBoolValue(); } }, - {"members_url", n => { MembersUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"owned_private_repos", n => { OwnedPrivateRepos = n.GetIntValue(); } }, - {"plan", n => { Plan = n.GetObjectValue(OrganizationFull_plan.CreateFromDiscriminatorValue); } }, - {"private_gists", n => { PrivateGists = n.GetIntValue(); } }, - {"public_gists", n => { PublicGists = n.GetIntValue(); } }, - {"public_members_url", n => { PublicMembersUrl = n.GetStringValue(); } }, - {"public_repos", n => { PublicRepos = n.GetIntValue(); } }, - {"repos_url", n => { ReposUrl = n.GetStringValue(); } }, - {"secret_scanning_enabled_for_new_repositories", n => { SecretScanningEnabledForNewRepositories = n.GetBoolValue(); } }, - {"secret_scanning_push_protection_custom_link", n => { SecretScanningPushProtectionCustomLink = n.GetStringValue(); } }, - {"secret_scanning_push_protection_custom_link_enabled", n => { SecretScanningPushProtectionCustomLinkEnabled = n.GetBoolValue(); } }, - {"secret_scanning_push_protection_enabled_for_new_repositories", n => { SecretScanningPushProtectionEnabledForNewRepositories = n.GetBoolValue(); } }, - {"secret_scanning_validity_checks_enabled", n => { SecretScanningValidityChecksEnabled = n.GetBoolValue(); } }, - {"total_private_repos", n => { TotalPrivateRepos = n.GetIntValue(); } }, - {"twitter_username", n => { TwitterUsername = n.GetStringValue(); } }, - {"two_factor_requirement_enabled", n => { TwoFactorRequirementEnabled = n.GetBoolValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, + { "advanced_security_enabled_for_new_repositories", n => { AdvancedSecurityEnabledForNewRepositories = n.GetBoolValue(); } }, + { "archived_at", n => { ArchivedAt = n.GetDateTimeOffsetValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "billing_email", n => { BillingEmail = n.GetStringValue(); } }, + { "blog", n => { Blog = n.GetStringValue(); } }, + { "collaborators", n => { Collaborators = n.GetIntValue(); } }, + { "company", n => { Company = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "default_repository_permission", n => { DefaultRepositoryPermission = n.GetStringValue(); } }, + { "dependabot_alerts_enabled_for_new_repositories", n => { DependabotAlertsEnabledForNewRepositories = n.GetBoolValue(); } }, + { "dependabot_security_updates_enabled_for_new_repositories", n => { DependabotSecurityUpdatesEnabledForNewRepositories = n.GetBoolValue(); } }, + { "dependency_graph_enabled_for_new_repositories", n => { DependencyGraphEnabledForNewRepositories = n.GetBoolValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "disk_usage", n => { DiskUsage = n.GetIntValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "followers", n => { Followers = n.GetIntValue(); } }, + { "following", n => { Following = n.GetIntValue(); } }, + { "has_organization_projects", n => { HasOrganizationProjects = n.GetBoolValue(); } }, + { "has_repository_projects", n => { HasRepositoryProjects = n.GetBoolValue(); } }, + { "hooks_url", n => { HooksUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "is_verified", n => { IsVerified = n.GetBoolValue(); } }, + { "issues_url", n => { IssuesUrl = n.GetStringValue(); } }, + { "location", n => { Location = n.GetStringValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "members_allowed_repository_creation_type", n => { MembersAllowedRepositoryCreationType = n.GetStringValue(); } }, + { "members_can_create_internal_repositories", n => { MembersCanCreateInternalRepositories = n.GetBoolValue(); } }, + { "members_can_create_pages", n => { MembersCanCreatePages = n.GetBoolValue(); } }, + { "members_can_create_private_pages", n => { MembersCanCreatePrivatePages = n.GetBoolValue(); } }, + { "members_can_create_private_repositories", n => { MembersCanCreatePrivateRepositories = n.GetBoolValue(); } }, + { "members_can_create_public_pages", n => { MembersCanCreatePublicPages = n.GetBoolValue(); } }, + { "members_can_create_public_repositories", n => { MembersCanCreatePublicRepositories = n.GetBoolValue(); } }, + { "members_can_create_repositories", n => { MembersCanCreateRepositories = n.GetBoolValue(); } }, + { "members_can_fork_private_repositories", n => { MembersCanForkPrivateRepositories = n.GetBoolValue(); } }, + { "members_url", n => { MembersUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "owned_private_repos", n => { OwnedPrivateRepos = n.GetIntValue(); } }, + { "plan", n => { Plan = n.GetObjectValue(global::GitHub.Models.OrganizationFull_plan.CreateFromDiscriminatorValue); } }, + { "private_gists", n => { PrivateGists = n.GetIntValue(); } }, + { "public_gists", n => { PublicGists = n.GetIntValue(); } }, + { "public_members_url", n => { PublicMembersUrl = n.GetStringValue(); } }, + { "public_repos", n => { PublicRepos = n.GetIntValue(); } }, + { "repos_url", n => { ReposUrl = n.GetStringValue(); } }, + { "secret_scanning_enabled_for_new_repositories", n => { SecretScanningEnabledForNewRepositories = n.GetBoolValue(); } }, + { "secret_scanning_push_protection_custom_link", n => { SecretScanningPushProtectionCustomLink = n.GetStringValue(); } }, + { "secret_scanning_push_protection_custom_link_enabled", n => { SecretScanningPushProtectionCustomLinkEnabled = n.GetBoolValue(); } }, + { "secret_scanning_push_protection_enabled_for_new_repositories", n => { SecretScanningPushProtectionEnabledForNewRepositories = n.GetBoolValue(); } }, + { "secret_scanning_validity_checks_enabled", n => { SecretScanningValidityChecksEnabled = n.GetBoolValue(); } }, + { "total_private_repos", n => { TotalPrivateRepos = n.GetIntValue(); } }, + { "twitter_username", n => { TwitterUsername = n.GetStringValue(); } }, + { "two_factor_requirement_enabled", n => { TwoFactorRequirementEnabled = n.GetBoolValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, }; } /// @@ -411,7 +413,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteStringValue("node_id", NodeId); writer.WriteIntValue("owned_private_repos", OwnedPrivateRepos); - writer.WriteObjectValue("plan", Plan); + writer.WriteObjectValue("plan", Plan); writer.WriteIntValue("private_gists", PrivateGists); writer.WriteIntValue("public_gists", PublicGists); writer.WriteStringValue("public_members_url", PublicMembersUrl); diff --git a/src/GitHub/Models/OrganizationFull_plan.cs b/src/GitHub/Models/OrganizationFull_plan.cs index c96b5e16..6d3140dd 100644 --- a/src/GitHub/Models/OrganizationFull_plan.cs +++ b/src/GitHub/Models/OrganizationFull_plan.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class OrganizationFull_plan : IAdditionalDataHolder, IParsable + public partial class OrganizationFull_plan : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class OrganizationFull_plan : IAdditionalDataHolder, IParsable /// The space property public int? Space { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationFull_plan() { @@ -37,12 +39,12 @@ public OrganizationFull_plan() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationFull_plan CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationFull_plan CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationFull_plan(); + return new global::GitHub.Models.OrganizationFull_plan(); } /// /// The deserialization information for the current model @@ -52,11 +54,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"filled_seats", n => { FilledSeats = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"private_repos", n => { PrivateRepos = n.GetIntValue(); } }, - {"seats", n => { Seats = n.GetIntValue(); } }, - {"space", n => { Space = n.GetIntValue(); } }, + { "filled_seats", n => { FilledSeats = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "private_repos", n => { PrivateRepos = n.GetIntValue(); } }, + { "seats", n => { Seats = n.GetIntValue(); } }, + { "space", n => { Space = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/OrganizationInvitation.cs b/src/GitHub/Models/OrganizationInvitation.cs index ccbdc0ad..617f386f 100644 --- a/src/GitHub/Models/OrganizationInvitation.cs +++ b/src/GitHub/Models/OrganizationInvitation.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Organization Invitation /// - public class OrganizationInvitation : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationInvitation : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -65,10 +67,10 @@ public class OrganizationInvitation : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Inviter { get; set; } + public global::GitHub.Models.SimpleUser? Inviter { get; set; } #nullable restore #else - public SimpleUser Inviter { get; set; } + public global::GitHub.Models.SimpleUser Inviter { get; set; } #endif /// The login property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +99,7 @@ public class OrganizationInvitation : IAdditionalDataHolder, IParsable /// The team_count property public int? TeamCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationInvitation() { @@ -106,12 +108,12 @@ public OrganizationInvitation() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationInvitation CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationInvitation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationInvitation(); + return new global::GitHub.Models.OrganizationInvitation(); } /// /// The deserialization information for the current model @@ -121,18 +123,18 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"failed_at", n => { FailedAt = n.GetStringValue(); } }, - {"failed_reason", n => { FailedReason = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"invitation_source", n => { InvitationSource = n.GetStringValue(); } }, - {"invitation_teams_url", n => { InvitationTeamsUrl = n.GetStringValue(); } }, - {"inviter", n => { Inviter = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"role", n => { Role = n.GetStringValue(); } }, - {"team_count", n => { TeamCount = n.GetIntValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "failed_at", n => { FailedAt = n.GetStringValue(); } }, + { "failed_reason", n => { FailedReason = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "invitation_source", n => { InvitationSource = n.GetStringValue(); } }, + { "invitation_teams_url", n => { InvitationTeamsUrl = n.GetStringValue(); } }, + { "inviter", n => { Inviter = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "role", n => { Role = n.GetStringValue(); } }, + { "team_count", n => { TeamCount = n.GetIntValue(); } }, }; } /// @@ -149,7 +151,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteLongValue("id", Id); writer.WriteStringValue("invitation_source", InvitationSource); writer.WriteStringValue("invitation_teams_url", InvitationTeamsUrl); - writer.WriteObjectValue("inviter", Inviter); + writer.WriteObjectValue("inviter", Inviter); writer.WriteStringValue("login", Login); writer.WriteStringValue("node_id", NodeId); writer.WriteStringValue("role", Role); diff --git a/src/GitHub/Models/OrganizationProgrammaticAccessGrant.cs b/src/GitHub/Models/OrganizationProgrammaticAccessGrant.cs index 3e41fc13..7bc33ce8 100644 --- a/src/GitHub/Models/OrganizationProgrammaticAccessGrant.cs +++ b/src/GitHub/Models/OrganizationProgrammaticAccessGrant.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Minimal representation of an organization programmatic access grant for enumerations /// - public class OrganizationProgrammaticAccessGrant : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationProgrammaticAccessGrant : IAdditionalDataHolder, IParsable { /// Date and time when the fine-grained personal access token was approved to access the organization. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -25,18 +27,18 @@ public class OrganizationProgrammaticAccessGrant : IAdditionalDataHolder, IParsa /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Owner { get; set; } + public global::GitHub.Models.SimpleUser? Owner { get; set; } #nullable restore #else - public SimpleUser Owner { get; set; } + public global::GitHub.Models.SimpleUser Owner { get; set; } #endif /// Permissions requested, categorized by type of permission. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrganizationProgrammaticAccessGrant_permissions? Permissions { get; set; } + public global::GitHub.Models.OrganizationProgrammaticAccessGrant_permissions? Permissions { get; set; } #nullable restore #else - public OrganizationProgrammaticAccessGrant_permissions Permissions { get; set; } + public global::GitHub.Models.OrganizationProgrammaticAccessGrant_permissions Permissions { get; set; } #endif /// URL to the list of repositories the fine-grained personal access token can access. Only follow when `repository_selection` is `subset`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -47,7 +49,7 @@ public class OrganizationProgrammaticAccessGrant : IAdditionalDataHolder, IParsa public string RepositoriesUrl { get; set; } #endif /// Type of repository selection requested. - public OrganizationProgrammaticAccessGrant_repository_selection? RepositorySelection { get; set; } + public global::GitHub.Models.OrganizationProgrammaticAccessGrant_repository_selection? RepositorySelection { get; set; } /// Whether the associated fine-grained personal access token has expired. public bool? TokenExpired { get; set; } /// Date and time when the associated fine-grained personal access token expires. @@ -67,7 +69,7 @@ public class OrganizationProgrammaticAccessGrant : IAdditionalDataHolder, IParsa public string TokenLastUsedAt { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationProgrammaticAccessGrant() { @@ -76,12 +78,12 @@ public OrganizationProgrammaticAccessGrant() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationProgrammaticAccessGrant CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationProgrammaticAccessGrant CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationProgrammaticAccessGrant(); + return new global::GitHub.Models.OrganizationProgrammaticAccessGrant(); } /// /// The deserialization information for the current model @@ -91,15 +93,15 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"access_granted_at", n => { AccessGrantedAt = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"permissions", n => { Permissions = n.GetObjectValue(OrganizationProgrammaticAccessGrant_permissions.CreateFromDiscriminatorValue); } }, - {"repositories_url", n => { RepositoriesUrl = n.GetStringValue(); } }, - {"repository_selection", n => { RepositorySelection = n.GetEnumValue(); } }, - {"token_expired", n => { TokenExpired = n.GetBoolValue(); } }, - {"token_expires_at", n => { TokenExpiresAt = n.GetStringValue(); } }, - {"token_last_used_at", n => { TokenLastUsedAt = n.GetStringValue(); } }, + { "access_granted_at", n => { AccessGrantedAt = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.OrganizationProgrammaticAccessGrant_permissions.CreateFromDiscriminatorValue); } }, + { "repositories_url", n => { RepositoriesUrl = n.GetStringValue(); } }, + { "repository_selection", n => { RepositorySelection = n.GetEnumValue(); } }, + { "token_expired", n => { TokenExpired = n.GetBoolValue(); } }, + { "token_expires_at", n => { TokenExpiresAt = n.GetStringValue(); } }, + { "token_last_used_at", n => { TokenLastUsedAt = n.GetStringValue(); } }, }; } /// @@ -111,10 +113,10 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("access_granted_at", AccessGrantedAt); writer.WriteIntValue("id", Id); - writer.WriteObjectValue("owner", Owner); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("owner", Owner); + writer.WriteObjectValue("permissions", Permissions); writer.WriteStringValue("repositories_url", RepositoriesUrl); - writer.WriteEnumValue("repository_selection", RepositorySelection); + writer.WriteEnumValue("repository_selection", RepositorySelection); writer.WriteBoolValue("token_expired", TokenExpired); writer.WriteStringValue("token_expires_at", TokenExpiresAt); writer.WriteStringValue("token_last_used_at", TokenLastUsedAt); diff --git a/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest.cs b/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest.cs index c437b396..1fdfa68e 100644 --- a/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest.cs +++ b/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Minimal representation of an organization programmatic access grant request for enumerations /// - public class OrganizationProgrammaticAccessGrantRequest : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationProgrammaticAccessGrantRequest : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -25,18 +27,18 @@ public class OrganizationProgrammaticAccessGrantRequest : IAdditionalDataHolder, /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Owner { get; set; } + public global::GitHub.Models.SimpleUser? Owner { get; set; } #nullable restore #else - public SimpleUser Owner { get; set; } + public global::GitHub.Models.SimpleUser Owner { get; set; } #endif /// Permissions requested, categorized by type of permission. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrganizationProgrammaticAccessGrantRequest_permissions? Permissions { get; set; } + public global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest_permissions? Permissions { get; set; } #nullable restore #else - public OrganizationProgrammaticAccessGrantRequest_permissions Permissions { get; set; } + public global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest_permissions Permissions { get; set; } #endif /// Reason for requesting access. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -55,7 +57,7 @@ public class OrganizationProgrammaticAccessGrantRequest : IAdditionalDataHolder, public string RepositoriesUrl { get; set; } #endif /// Type of repository selection requested. - public OrganizationProgrammaticAccessGrantRequest_repository_selection? RepositorySelection { get; set; } + public global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest_repository_selection? RepositorySelection { get; set; } /// Whether the associated fine-grained personal access token has expired. public bool? TokenExpired { get; set; } /// Date and time when the associated fine-grained personal access token expires. @@ -75,7 +77,7 @@ public class OrganizationProgrammaticAccessGrantRequest : IAdditionalDataHolder, public string TokenLastUsedAt { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationProgrammaticAccessGrantRequest() { @@ -84,12 +86,12 @@ public OrganizationProgrammaticAccessGrantRequest() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationProgrammaticAccessGrantRequest CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationProgrammaticAccessGrantRequest(); + return new global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest(); } /// /// The deserialization information for the current model @@ -99,16 +101,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"permissions", n => { Permissions = n.GetObjectValue(OrganizationProgrammaticAccessGrantRequest_permissions.CreateFromDiscriminatorValue); } }, - {"reason", n => { Reason = n.GetStringValue(); } }, - {"repositories_url", n => { RepositoriesUrl = n.GetStringValue(); } }, - {"repository_selection", n => { RepositorySelection = n.GetEnumValue(); } }, - {"token_expired", n => { TokenExpired = n.GetBoolValue(); } }, - {"token_expires_at", n => { TokenExpiresAt = n.GetStringValue(); } }, - {"token_last_used_at", n => { TokenLastUsedAt = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest_permissions.CreateFromDiscriminatorValue); } }, + { "reason", n => { Reason = n.GetStringValue(); } }, + { "repositories_url", n => { RepositoriesUrl = n.GetStringValue(); } }, + { "repository_selection", n => { RepositorySelection = n.GetEnumValue(); } }, + { "token_expired", n => { TokenExpired = n.GetBoolValue(); } }, + { "token_expires_at", n => { TokenExpiresAt = n.GetStringValue(); } }, + { "token_last_used_at", n => { TokenLastUsedAt = n.GetStringValue(); } }, }; } /// @@ -120,11 +122,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("created_at", CreatedAt); writer.WriteIntValue("id", Id); - writer.WriteObjectValue("owner", Owner); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("owner", Owner); + writer.WriteObjectValue("permissions", Permissions); writer.WriteStringValue("reason", Reason); writer.WriteStringValue("repositories_url", RepositoriesUrl); - writer.WriteEnumValue("repository_selection", RepositorySelection); + writer.WriteEnumValue("repository_selection", RepositorySelection); writer.WriteBoolValue("token_expired", TokenExpired); writer.WriteStringValue("token_expires_at", TokenExpiresAt); writer.WriteStringValue("token_last_used_at", TokenLastUsedAt); diff --git a/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest_permissions.cs b/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest_permissions.cs index 8e6f905b..329680f7 100644 --- a/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest_permissions.cs +++ b/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest_permissions.cs @@ -1,43 +1,45 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Permissions requested, categorized by type of permission. /// - public class OrganizationProgrammaticAccessGrantRequest_permissions : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationProgrammaticAccessGrantRequest_permissions : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The organization property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrganizationProgrammaticAccessGrantRequest_permissions_organization? Organization { get; set; } + public global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest_permissions_organization? Organization { get; set; } #nullable restore #else - public OrganizationProgrammaticAccessGrantRequest_permissions_organization Organization { get; set; } + public global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest_permissions_organization Organization { get; set; } #endif /// The other property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrganizationProgrammaticAccessGrantRequest_permissions_other? Other { get; set; } + public global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest_permissions_other? Other { get; set; } #nullable restore #else - public OrganizationProgrammaticAccessGrantRequest_permissions_other Other { get; set; } + public global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest_permissions_other Other { get; set; } #endif /// The repository property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrganizationProgrammaticAccessGrantRequest_permissions_repository? Repository { get; set; } + public global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest_permissions_repository? Repository { get; set; } #nullable restore #else - public OrganizationProgrammaticAccessGrantRequest_permissions_repository Repository { get; set; } + public global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest_permissions_repository Repository { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationProgrammaticAccessGrantRequest_permissions() { @@ -46,12 +48,12 @@ public OrganizationProgrammaticAccessGrantRequest_permissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationProgrammaticAccessGrantRequest_permissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationProgrammaticAccessGrantRequest_permissions(); + return new global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest_permissions(); } /// /// The deserialization information for the current model @@ -61,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"organization", n => { Organization = n.GetObjectValue(OrganizationProgrammaticAccessGrantRequest_permissions_organization.CreateFromDiscriminatorValue); } }, - {"other", n => { Other = n.GetObjectValue(OrganizationProgrammaticAccessGrantRequest_permissions_other.CreateFromDiscriminatorValue); } }, - {"repository", n => { Repository = n.GetObjectValue(OrganizationProgrammaticAccessGrantRequest_permissions_repository.CreateFromDiscriminatorValue); } }, + { "organization", n => { Organization = n.GetObjectValue(global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest_permissions_organization.CreateFromDiscriminatorValue); } }, + { "other", n => { Other = n.GetObjectValue(global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest_permissions_other.CreateFromDiscriminatorValue); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest_permissions_repository.CreateFromDiscriminatorValue); } }, }; } /// @@ -73,9 +75,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("organization", Organization); - writer.WriteObjectValue("other", Other); - writer.WriteObjectValue("repository", Repository); + writer.WriteObjectValue("organization", Organization); + writer.WriteObjectValue("other", Other); + writer.WriteObjectValue("repository", Repository); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest_permissions_organization.cs b/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest_permissions_organization.cs index f75a21cf..44f221be 100644 --- a/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest_permissions_organization.cs +++ b/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest_permissions_organization.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class OrganizationProgrammaticAccessGrantRequest_permissions_organization : IAdditionalDataHolder, IParsable + public partial class OrganizationProgrammaticAccessGrantRequest_permissions_organization : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationProgrammaticAccessGrantRequest_permissions_organization() { @@ -21,12 +23,12 @@ public OrganizationProgrammaticAccessGrantRequest_permissions_organization() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationProgrammaticAccessGrantRequest_permissions_organization CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest_permissions_organization CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationProgrammaticAccessGrantRequest_permissions_organization(); + return new global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest_permissions_organization(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest_permissions_other.cs b/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest_permissions_other.cs index c2eeea01..276b4c6c 100644 --- a/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest_permissions_other.cs +++ b/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest_permissions_other.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class OrganizationProgrammaticAccessGrantRequest_permissions_other : IAdditionalDataHolder, IParsable + public partial class OrganizationProgrammaticAccessGrantRequest_permissions_other : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationProgrammaticAccessGrantRequest_permissions_other() { @@ -21,12 +23,12 @@ public OrganizationProgrammaticAccessGrantRequest_permissions_other() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationProgrammaticAccessGrantRequest_permissions_other CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest_permissions_other CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationProgrammaticAccessGrantRequest_permissions_other(); + return new global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest_permissions_other(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest_permissions_repository.cs b/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest_permissions_repository.cs index 05eedf26..2176562a 100644 --- a/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest_permissions_repository.cs +++ b/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest_permissions_repository.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class OrganizationProgrammaticAccessGrantRequest_permissions_repository : IAdditionalDataHolder, IParsable + public partial class OrganizationProgrammaticAccessGrantRequest_permissions_repository : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationProgrammaticAccessGrantRequest_permissions_repository() { @@ -21,12 +23,12 @@ public OrganizationProgrammaticAccessGrantRequest_permissions_repository() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationProgrammaticAccessGrantRequest_permissions_repository CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest_permissions_repository CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationProgrammaticAccessGrantRequest_permissions_repository(); + return new global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest_permissions_repository(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest_repository_selection.cs b/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest_repository_selection.cs index f08cb491..7639e9e4 100644 --- a/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest_repository_selection.cs +++ b/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest_repository_selection.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Type of repository selection requested. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum OrganizationProgrammaticAccessGrantRequest_repository_selection { [EnumMember(Value = "none")] diff --git a/src/GitHub/Models/OrganizationProgrammaticAccessGrant_permissions.cs b/src/GitHub/Models/OrganizationProgrammaticAccessGrant_permissions.cs index 7c861c83..0f641b9c 100644 --- a/src/GitHub/Models/OrganizationProgrammaticAccessGrant_permissions.cs +++ b/src/GitHub/Models/OrganizationProgrammaticAccessGrant_permissions.cs @@ -1,43 +1,45 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Permissions requested, categorized by type of permission. /// - public class OrganizationProgrammaticAccessGrant_permissions : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationProgrammaticAccessGrant_permissions : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The organization property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrganizationProgrammaticAccessGrant_permissions_organization? Organization { get; set; } + public global::GitHub.Models.OrganizationProgrammaticAccessGrant_permissions_organization? Organization { get; set; } #nullable restore #else - public OrganizationProgrammaticAccessGrant_permissions_organization Organization { get; set; } + public global::GitHub.Models.OrganizationProgrammaticAccessGrant_permissions_organization Organization { get; set; } #endif /// The other property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrganizationProgrammaticAccessGrant_permissions_other? Other { get; set; } + public global::GitHub.Models.OrganizationProgrammaticAccessGrant_permissions_other? Other { get; set; } #nullable restore #else - public OrganizationProgrammaticAccessGrant_permissions_other Other { get; set; } + public global::GitHub.Models.OrganizationProgrammaticAccessGrant_permissions_other Other { get; set; } #endif /// The repository property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrganizationProgrammaticAccessGrant_permissions_repository? Repository { get; set; } + public global::GitHub.Models.OrganizationProgrammaticAccessGrant_permissions_repository? Repository { get; set; } #nullable restore #else - public OrganizationProgrammaticAccessGrant_permissions_repository Repository { get; set; } + public global::GitHub.Models.OrganizationProgrammaticAccessGrant_permissions_repository Repository { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationProgrammaticAccessGrant_permissions() { @@ -46,12 +48,12 @@ public OrganizationProgrammaticAccessGrant_permissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationProgrammaticAccessGrant_permissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationProgrammaticAccessGrant_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationProgrammaticAccessGrant_permissions(); + return new global::GitHub.Models.OrganizationProgrammaticAccessGrant_permissions(); } /// /// The deserialization information for the current model @@ -61,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"organization", n => { Organization = n.GetObjectValue(OrganizationProgrammaticAccessGrant_permissions_organization.CreateFromDiscriminatorValue); } }, - {"other", n => { Other = n.GetObjectValue(OrganizationProgrammaticAccessGrant_permissions_other.CreateFromDiscriminatorValue); } }, - {"repository", n => { Repository = n.GetObjectValue(OrganizationProgrammaticAccessGrant_permissions_repository.CreateFromDiscriminatorValue); } }, + { "organization", n => { Organization = n.GetObjectValue(global::GitHub.Models.OrganizationProgrammaticAccessGrant_permissions_organization.CreateFromDiscriminatorValue); } }, + { "other", n => { Other = n.GetObjectValue(global::GitHub.Models.OrganizationProgrammaticAccessGrant_permissions_other.CreateFromDiscriminatorValue); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.OrganizationProgrammaticAccessGrant_permissions_repository.CreateFromDiscriminatorValue); } }, }; } /// @@ -73,9 +75,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("organization", Organization); - writer.WriteObjectValue("other", Other); - writer.WriteObjectValue("repository", Repository); + writer.WriteObjectValue("organization", Organization); + writer.WriteObjectValue("other", Other); + writer.WriteObjectValue("repository", Repository); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/OrganizationProgrammaticAccessGrant_permissions_organization.cs b/src/GitHub/Models/OrganizationProgrammaticAccessGrant_permissions_organization.cs index bf61f738..ce69f8d9 100644 --- a/src/GitHub/Models/OrganizationProgrammaticAccessGrant_permissions_organization.cs +++ b/src/GitHub/Models/OrganizationProgrammaticAccessGrant_permissions_organization.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class OrganizationProgrammaticAccessGrant_permissions_organization : IAdditionalDataHolder, IParsable + public partial class OrganizationProgrammaticAccessGrant_permissions_organization : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationProgrammaticAccessGrant_permissions_organization() { @@ -21,12 +23,12 @@ public OrganizationProgrammaticAccessGrant_permissions_organization() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationProgrammaticAccessGrant_permissions_organization CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationProgrammaticAccessGrant_permissions_organization CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationProgrammaticAccessGrant_permissions_organization(); + return new global::GitHub.Models.OrganizationProgrammaticAccessGrant_permissions_organization(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/OrganizationProgrammaticAccessGrant_permissions_other.cs b/src/GitHub/Models/OrganizationProgrammaticAccessGrant_permissions_other.cs index eec44652..b6de0927 100644 --- a/src/GitHub/Models/OrganizationProgrammaticAccessGrant_permissions_other.cs +++ b/src/GitHub/Models/OrganizationProgrammaticAccessGrant_permissions_other.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class OrganizationProgrammaticAccessGrant_permissions_other : IAdditionalDataHolder, IParsable + public partial class OrganizationProgrammaticAccessGrant_permissions_other : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationProgrammaticAccessGrant_permissions_other() { @@ -21,12 +23,12 @@ public OrganizationProgrammaticAccessGrant_permissions_other() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationProgrammaticAccessGrant_permissions_other CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationProgrammaticAccessGrant_permissions_other CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationProgrammaticAccessGrant_permissions_other(); + return new global::GitHub.Models.OrganizationProgrammaticAccessGrant_permissions_other(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/OrganizationProgrammaticAccessGrant_permissions_repository.cs b/src/GitHub/Models/OrganizationProgrammaticAccessGrant_permissions_repository.cs index 792416bc..3b9dde9a 100644 --- a/src/GitHub/Models/OrganizationProgrammaticAccessGrant_permissions_repository.cs +++ b/src/GitHub/Models/OrganizationProgrammaticAccessGrant_permissions_repository.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class OrganizationProgrammaticAccessGrant_permissions_repository : IAdditionalDataHolder, IParsable + public partial class OrganizationProgrammaticAccessGrant_permissions_repository : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationProgrammaticAccessGrant_permissions_repository() { @@ -21,12 +23,12 @@ public OrganizationProgrammaticAccessGrant_permissions_repository() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationProgrammaticAccessGrant_permissions_repository CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationProgrammaticAccessGrant_permissions_repository CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationProgrammaticAccessGrant_permissions_repository(); + return new global::GitHub.Models.OrganizationProgrammaticAccessGrant_permissions_repository(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/OrganizationProgrammaticAccessGrant_repository_selection.cs b/src/GitHub/Models/OrganizationProgrammaticAccessGrant_repository_selection.cs index 87397316..228fcd66 100644 --- a/src/GitHub/Models/OrganizationProgrammaticAccessGrant_repository_selection.cs +++ b/src/GitHub/Models/OrganizationProgrammaticAccessGrant_repository_selection.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Type of repository selection requested. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum OrganizationProgrammaticAccessGrant_repository_selection { [EnumMember(Value = "none")] diff --git a/src/GitHub/Models/OrganizationRole.cs b/src/GitHub/Models/OrganizationRole.cs index 5d83fc14..07287147 100644 --- a/src/GitHub/Models/OrganizationRole.cs +++ b/src/GitHub/Models/OrganizationRole.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Organization roles /// - public class OrganizationRole : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationRole : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -35,10 +37,10 @@ public class OrganizationRole : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Organization { get; set; } + public global::GitHub.Models.NullableSimpleUser? Organization { get; set; } #nullable restore #else - public NullableSimpleUser Organization { get; set; } + public global::GitHub.Models.NullableSimpleUser Organization { get; set; } #endif /// A list of permissions included in this role. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -51,7 +53,7 @@ public class OrganizationRole : IAdditionalDataHolder, IParsable /// The date and time the role was last updated. public DateTimeOffset? UpdatedAt { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationRole() { @@ -60,12 +62,12 @@ public OrganizationRole() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationRole CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationRole CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationRole(); + return new global::GitHub.Models.OrganizationRole(); } /// /// The deserialization information for the current model @@ -75,13 +77,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"organization", n => { Organization = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"permissions", n => { Permissions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "organization", n => { Organization = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "permissions", n => { Permissions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, }; } /// @@ -95,7 +97,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("description", Description); writer.WriteLongValue("id", Id); writer.WriteStringValue("name", Name); - writer.WriteObjectValue("organization", Organization); + writer.WriteObjectValue("organization", Organization); writer.WriteCollectionOfPrimitiveValues("permissions", Permissions); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/OrganizationSecretScanningAlert.cs b/src/GitHub/Models/OrganizationSecretScanningAlert.cs index ca1c1bf5..59830b81 100644 --- a/src/GitHub/Models/OrganizationSecretScanningAlert.cs +++ b/src/GitHub/Models/OrganizationSecretScanningAlert.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class OrganizationSecretScanningAlert : IAdditionalDataHolder, IParsable + public partial class OrganizationSecretScanningAlert : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -38,21 +40,21 @@ public class OrganizationSecretScanningAlert : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? PushProtectionBypassedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser? PushProtectionBypassedBy { get; set; } #nullable restore #else - public NullableSimpleUser PushProtectionBypassedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser PushProtectionBypassedBy { get; set; } #endif /// A GitHub repository. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleRepository? Repository { get; set; } + public global::GitHub.Models.SimpleRepository? Repository { get; set; } #nullable restore #else - public SimpleRepository Repository { get; set; } + public global::GitHub.Models.SimpleRepository Repository { get; set; } #endif /// **Required when the `state` is `resolved`.** The reason for resolving the alert. - public SecretScanningAlertResolution? Resolution { get; set; } + public global::GitHub.Models.SecretScanningAlertResolution? Resolution { get; set; } /// The comment that was optionally added when this alert was closed #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -66,10 +68,10 @@ public class OrganizationSecretScanningAlert : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? ResolvedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser? ResolvedBy { get; set; } #nullable restore #else - public NullableSimpleUser ResolvedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser ResolvedBy { get; set; } #endif /// The secret that was detected. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -96,7 +98,7 @@ public class OrganizationSecretScanningAlert : IAdditionalDataHolder, IParsable public string SecretTypeDisplayName { get; set; } #endif /// Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`. - public SecretScanningAlertState? State { get; set; } + public global::GitHub.Models.SecretScanningAlertState? State { get; set; } /// The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. public DateTimeOffset? UpdatedAt { get; private set; } /// The REST API URL of the alert resource. @@ -108,9 +110,9 @@ public class OrganizationSecretScanningAlert : IAdditionalDataHolder, IParsable public string Url { get; private set; } #endif /// The token status as of the latest validity check. - public OrganizationSecretScanningAlert_validity? Validity { get; set; } + public global::GitHub.Models.OrganizationSecretScanningAlert_validity? Validity { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationSecretScanningAlert() { @@ -119,12 +121,12 @@ public OrganizationSecretScanningAlert() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationSecretScanningAlert CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationSecretScanningAlert CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationSecretScanningAlert(); + return new global::GitHub.Models.OrganizationSecretScanningAlert(); } /// /// The deserialization information for the current model @@ -134,25 +136,25 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"locations_url", n => { LocationsUrl = n.GetStringValue(); } }, - {"number", n => { Number = n.GetIntValue(); } }, - {"push_protection_bypassed", n => { PushProtectionBypassed = n.GetBoolValue(); } }, - {"push_protection_bypassed_at", n => { PushProtectionBypassedAt = n.GetDateTimeOffsetValue(); } }, - {"push_protection_bypassed_by", n => { PushProtectionBypassedBy = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"repository", n => { Repository = n.GetObjectValue(SimpleRepository.CreateFromDiscriminatorValue); } }, - {"resolution", n => { Resolution = n.GetEnumValue(); } }, - {"resolution_comment", n => { ResolutionComment = n.GetStringValue(); } }, - {"resolved_at", n => { ResolvedAt = n.GetDateTimeOffsetValue(); } }, - {"resolved_by", n => { ResolvedBy = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"secret", n => { Secret = n.GetStringValue(); } }, - {"secret_type", n => { SecretType = n.GetStringValue(); } }, - {"secret_type_display_name", n => { SecretTypeDisplayName = n.GetStringValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"validity", n => { Validity = n.GetEnumValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "locations_url", n => { LocationsUrl = n.GetStringValue(); } }, + { "number", n => { Number = n.GetIntValue(); } }, + { "push_protection_bypassed", n => { PushProtectionBypassed = n.GetBoolValue(); } }, + { "push_protection_bypassed_at", n => { PushProtectionBypassedAt = n.GetDateTimeOffsetValue(); } }, + { "push_protection_bypassed_by", n => { PushProtectionBypassedBy = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.SimpleRepository.CreateFromDiscriminatorValue); } }, + { "resolution", n => { Resolution = n.GetEnumValue(); } }, + { "resolution_comment", n => { ResolutionComment = n.GetStringValue(); } }, + { "resolved_at", n => { ResolvedAt = n.GetDateTimeOffsetValue(); } }, + { "resolved_by", n => { ResolvedBy = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "secret", n => { Secret = n.GetStringValue(); } }, + { "secret_type", n => { SecretType = n.GetStringValue(); } }, + { "secret_type_display_name", n => { SecretTypeDisplayName = n.GetStringValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "validity", n => { Validity = n.GetEnumValue(); } }, }; } /// @@ -165,17 +167,17 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("locations_url", LocationsUrl); writer.WriteBoolValue("push_protection_bypassed", PushProtectionBypassed); writer.WriteDateTimeOffsetValue("push_protection_bypassed_at", PushProtectionBypassedAt); - writer.WriteObjectValue("push_protection_bypassed_by", PushProtectionBypassedBy); - writer.WriteObjectValue("repository", Repository); - writer.WriteEnumValue("resolution", Resolution); + writer.WriteObjectValue("push_protection_bypassed_by", PushProtectionBypassedBy); + writer.WriteObjectValue("repository", Repository); + writer.WriteEnumValue("resolution", Resolution); writer.WriteStringValue("resolution_comment", ResolutionComment); writer.WriteDateTimeOffsetValue("resolved_at", ResolvedAt); - writer.WriteObjectValue("resolved_by", ResolvedBy); + writer.WriteObjectValue("resolved_by", ResolvedBy); writer.WriteStringValue("secret", Secret); writer.WriteStringValue("secret_type", SecretType); writer.WriteStringValue("secret_type_display_name", SecretTypeDisplayName); - writer.WriteEnumValue("state", State); - writer.WriteEnumValue("validity", Validity); + writer.WriteEnumValue("state", State); + writer.WriteEnumValue("validity", Validity); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/OrganizationSecretScanningAlert_validity.cs b/src/GitHub/Models/OrganizationSecretScanningAlert_validity.cs index 848f6d3e..0ceb2c4a 100644 --- a/src/GitHub/Models/OrganizationSecretScanningAlert_validity.cs +++ b/src/GitHub/Models/OrganizationSecretScanningAlert_validity.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The token status as of the latest validity check. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum OrganizationSecretScanningAlert_validity { [EnumMember(Value = "active")] diff --git a/src/GitHub/Models/OrganizationSimple.cs b/src/GitHub/Models/OrganizationSimple.cs index e3ac48c2..46b19085 100644 --- a/src/GitHub/Models/OrganizationSimple.cs +++ b/src/GitHub/Models/OrganizationSimple.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A GitHub organization. /// - public class OrganizationSimple : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationSimple : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -103,7 +105,7 @@ public class OrganizationSimple : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationSimple() { @@ -112,12 +114,12 @@ public OrganizationSimple() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationSimple CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.OrganizationSimple CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationSimple(); + return new global::GitHub.Models.OrganizationSimple(); } /// /// The deserialization information for the current model @@ -127,18 +129,18 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"hooks_url", n => { HooksUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"issues_url", n => { IssuesUrl = n.GetStringValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"members_url", n => { MembersUrl = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"public_members_url", n => { PublicMembersUrl = n.GetStringValue(); } }, - {"repos_url", n => { ReposUrl = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "hooks_url", n => { HooksUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "issues_url", n => { IssuesUrl = n.GetStringValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "members_url", n => { MembersUrl = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "public_members_url", n => { PublicMembersUrl = n.GetStringValue(); } }, + { "repos_url", n => { ReposUrl = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Package.cs b/src/GitHub/Models/Package.cs index f5badc0d..c84f1fa5 100644 --- a/src/GitHub/Models/Package.cs +++ b/src/GitHub/Models/Package.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A software package /// - public class Package : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Package : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -35,20 +37,20 @@ public class Package : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Owner { get; set; } + public global::GitHub.Models.NullableSimpleUser? Owner { get; set; } #nullable restore #else - public NullableSimpleUser Owner { get; set; } + public global::GitHub.Models.NullableSimpleUser Owner { get; set; } #endif /// The package_type property - public Package_package_type? PackageType { get; set; } + public global::GitHub.Models.Package_package_type? PackageType { get; set; } /// Minimal Repository #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableMinimalRepository? Repository { get; set; } + public global::GitHub.Models.NullableMinimalRepository? Repository { get; set; } #nullable restore #else - public NullableMinimalRepository Repository { get; set; } + public global::GitHub.Models.NullableMinimalRepository Repository { get; set; } #endif /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } @@ -63,9 +65,9 @@ public class Package : IAdditionalDataHolder, IParsable /// The number of versions of the package. public int? VersionCount { get; set; } /// The visibility property - public Package_visibility? Visibility { get; set; } + public global::GitHub.Models.Package_visibility? Visibility { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Package() { @@ -74,12 +76,12 @@ public Package() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Package CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Package CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Package(); + return new global::GitHub.Models.Package(); } /// /// The deserialization information for the current model @@ -89,17 +91,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"package_type", n => { PackageType = n.GetEnumValue(); } }, - {"repository", n => { Repository = n.GetObjectValue(NullableMinimalRepository.CreateFromDiscriminatorValue); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"version_count", n => { VersionCount = n.GetIntValue(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "package_type", n => { PackageType = n.GetEnumValue(); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.NullableMinimalRepository.CreateFromDiscriminatorValue); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "version_count", n => { VersionCount = n.GetIntValue(); } }, + { "visibility", n => { Visibility = n.GetEnumValue(); } }, }; } /// @@ -113,13 +115,13 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("html_url", HtmlUrl); writer.WriteIntValue("id", Id); writer.WriteStringValue("name", Name); - writer.WriteObjectValue("owner", Owner); - writer.WriteEnumValue("package_type", PackageType); - writer.WriteObjectValue("repository", Repository); + writer.WriteObjectValue("owner", Owner); + writer.WriteEnumValue("package_type", PackageType); + writer.WriteObjectValue("repository", Repository); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); writer.WriteIntValue("version_count", VersionCount); - writer.WriteEnumValue("visibility", Visibility); + writer.WriteEnumValue("visibility", Visibility); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PackageVersion.cs b/src/GitHub/Models/PackageVersion.cs index dba05d4e..594b0872 100644 --- a/src/GitHub/Models/PackageVersion.cs +++ b/src/GitHub/Models/PackageVersion.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A version of a software package /// - public class PackageVersion : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PackageVersion : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -45,10 +47,10 @@ public class PackageVersion : IAdditionalDataHolder, IParsable /// The metadata property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PackageVersion_metadata? Metadata { get; set; } + public global::GitHub.Models.PackageVersion_metadata? Metadata { get; set; } #nullable restore #else - public PackageVersion_metadata Metadata { get; set; } + public global::GitHub.Models.PackageVersion_metadata Metadata { get; set; } #endif /// The name of the package version. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -77,7 +79,7 @@ public class PackageVersion : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PackageVersion() { @@ -86,12 +88,12 @@ public PackageVersion() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PackageVersion CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PackageVersion CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PackageVersion(); + return new global::GitHub.Models.PackageVersion(); } /// /// The deserialization information for the current model @@ -101,17 +103,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"deleted_at", n => { DeletedAt = n.GetDateTimeOffsetValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"license", n => { License = n.GetStringValue(); } }, - {"metadata", n => { Metadata = n.GetObjectValue(PackageVersion_metadata.CreateFromDiscriminatorValue); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"package_html_url", n => { PackageHtmlUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "deleted_at", n => { DeletedAt = n.GetDateTimeOffsetValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "license", n => { License = n.GetStringValue(); } }, + { "metadata", n => { Metadata = n.GetObjectValue(global::GitHub.Models.PackageVersion_metadata.CreateFromDiscriminatorValue); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "package_html_url", n => { PackageHtmlUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -127,7 +129,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("html_url", HtmlUrl); writer.WriteIntValue("id", Id); writer.WriteStringValue("license", License); - writer.WriteObjectValue("metadata", Metadata); + writer.WriteObjectValue("metadata", Metadata); writer.WriteStringValue("name", Name); writer.WriteStringValue("package_html_url", PackageHtmlUrl); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); diff --git a/src/GitHub/Models/PackageVersion_metadata.cs b/src/GitHub/Models/PackageVersion_metadata.cs index 37589157..e14d5c7b 100644 --- a/src/GitHub/Models/PackageVersion_metadata.cs +++ b/src/GitHub/Models/PackageVersion_metadata.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PackageVersion_metadata : IAdditionalDataHolder, IParsable + public partial class PackageVersion_metadata : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,23 +16,23 @@ public class PackageVersion_metadata : IAdditionalDataHolder, IParsable /// The container property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PackageVersion_metadata_container? Container { get; set; } + public global::GitHub.Models.PackageVersion_metadata_container? Container { get; set; } #nullable restore #else - public PackageVersion_metadata_container Container { get; set; } + public global::GitHub.Models.PackageVersion_metadata_container Container { get; set; } #endif /// The docker property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PackageVersion_metadata_docker? Docker { get; set; } + public global::GitHub.Models.PackageVersion_metadata_docker? Docker { get; set; } #nullable restore #else - public PackageVersion_metadata_docker Docker { get; set; } + public global::GitHub.Models.PackageVersion_metadata_docker Docker { get; set; } #endif /// The package_type property - public PackageVersion_metadata_package_type? PackageType { get; set; } + public global::GitHub.Models.PackageVersion_metadata_package_type? PackageType { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PackageVersion_metadata() { @@ -39,12 +41,12 @@ public PackageVersion_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PackageVersion_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PackageVersion_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PackageVersion_metadata(); + return new global::GitHub.Models.PackageVersion_metadata(); } /// /// The deserialization information for the current model @@ -54,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"container", n => { Container = n.GetObjectValue(PackageVersion_metadata_container.CreateFromDiscriminatorValue); } }, - {"docker", n => { Docker = n.GetObjectValue(PackageVersion_metadata_docker.CreateFromDiscriminatorValue); } }, - {"package_type", n => { PackageType = n.GetEnumValue(); } }, + { "container", n => { Container = n.GetObjectValue(global::GitHub.Models.PackageVersion_metadata_container.CreateFromDiscriminatorValue); } }, + { "docker", n => { Docker = n.GetObjectValue(global::GitHub.Models.PackageVersion_metadata_docker.CreateFromDiscriminatorValue); } }, + { "package_type", n => { PackageType = n.GetEnumValue(); } }, }; } /// @@ -66,9 +68,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("container", Container); - writer.WriteObjectValue("docker", Docker); - writer.WriteEnumValue("package_type", PackageType); + writer.WriteObjectValue("container", Container); + writer.WriteObjectValue("docker", Docker); + writer.WriteEnumValue("package_type", PackageType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PackageVersion_metadata_container.cs b/src/GitHub/Models/PackageVersion_metadata_container.cs index 98371007..ee054ef3 100644 --- a/src/GitHub/Models/PackageVersion_metadata_container.cs +++ b/src/GitHub/Models/PackageVersion_metadata_container.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PackageVersion_metadata_container : IAdditionalDataHolder, IParsable + public partial class PackageVersion_metadata_container : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class PackageVersion_metadata_container : IAdditionalDataHolder, IParsabl public List Tags { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PackageVersion_metadata_container() { @@ -29,12 +31,12 @@ public PackageVersion_metadata_container() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PackageVersion_metadata_container CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PackageVersion_metadata_container CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PackageVersion_metadata_container(); + return new global::GitHub.Models.PackageVersion_metadata_container(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Models/PackageVersion_metadata_docker.cs b/src/GitHub/Models/PackageVersion_metadata_docker.cs index b89080b2..5c750239 100644 --- a/src/GitHub/Models/PackageVersion_metadata_docker.cs +++ b/src/GitHub/Models/PackageVersion_metadata_docker.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PackageVersion_metadata_docker : IAdditionalDataHolder, IParsable + public partial class PackageVersion_metadata_docker : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class PackageVersion_metadata_docker : IAdditionalDataHolder, IParsable public List Tag { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PackageVersion_metadata_docker() { @@ -29,12 +31,12 @@ public PackageVersion_metadata_docker() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PackageVersion_metadata_docker CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PackageVersion_metadata_docker CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PackageVersion_metadata_docker(); + return new global::GitHub.Models.PackageVersion_metadata_docker(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"tag", n => { Tag = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "tag", n => { Tag = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Models/PackageVersion_metadata_package_type.cs b/src/GitHub/Models/PackageVersion_metadata_package_type.cs index cb52a2dd..e1870996 100644 --- a/src/GitHub/Models/PackageVersion_metadata_package_type.cs +++ b/src/GitHub/Models/PackageVersion_metadata_package_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum PackageVersion_metadata_package_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/Package_package_type.cs b/src/GitHub/Models/Package_package_type.cs index 1bdbb37a..fbe1bf1f 100644 --- a/src/GitHub/Models/Package_package_type.cs +++ b/src/GitHub/Models/Package_package_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum Package_package_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/Package_visibility.cs b/src/GitHub/Models/Package_visibility.cs index 4ca489e1..72934442 100644 --- a/src/GitHub/Models/Package_visibility.cs +++ b/src/GitHub/Models/Package_visibility.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum Package_visibility #pragma warning restore CS1591 diff --git a/src/GitHub/Models/PackagesBillingUsage.cs b/src/GitHub/Models/PackagesBillingUsage.cs index 557d5c52..4c11c76b 100644 --- a/src/GitHub/Models/PackagesBillingUsage.cs +++ b/src/GitHub/Models/PackagesBillingUsage.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PackagesBillingUsage : IAdditionalDataHolder, IParsable + public partial class PackagesBillingUsage : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -18,7 +20,7 @@ public class PackagesBillingUsage : IAdditionalDataHolder, IParsable /// Total paid storage space (GB) for GitHuub Packages. public int? TotalPaidGigabytesBandwidthUsed { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PackagesBillingUsage() { @@ -27,12 +29,12 @@ public PackagesBillingUsage() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PackagesBillingUsage CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PackagesBillingUsage CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PackagesBillingUsage(); + return new global::GitHub.Models.PackagesBillingUsage(); } /// /// The deserialization information for the current model @@ -42,9 +44,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"included_gigabytes_bandwidth", n => { IncludedGigabytesBandwidth = n.GetIntValue(); } }, - {"total_gigabytes_bandwidth_used", n => { TotalGigabytesBandwidthUsed = n.GetIntValue(); } }, - {"total_paid_gigabytes_bandwidth_used", n => { TotalPaidGigabytesBandwidthUsed = n.GetIntValue(); } }, + { "included_gigabytes_bandwidth", n => { IncludedGigabytesBandwidth = n.GetIntValue(); } }, + { "total_gigabytes_bandwidth_used", n => { TotalGigabytesBandwidthUsed = n.GetIntValue(); } }, + { "total_paid_gigabytes_bandwidth_used", n => { TotalPaidGigabytesBandwidthUsed = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/Page.cs b/src/GitHub/Models/Page.cs index 6c1b2042..aa86fd18 100644 --- a/src/GitHub/Models/Page.cs +++ b/src/GitHub/Models/Page.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The configuration for GitHub Pages for a repository. /// - public class Page : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Page : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The process in which the Page will be built. - public Page_build_type? BuildType { get; set; } + public global::GitHub.Models.Page_build_type? BuildType { get; set; } /// The Pages site's custom domain #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -35,29 +37,29 @@ public class Page : IAdditionalDataHolder, IParsable /// The https_certificate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PagesHttpsCertificate? HttpsCertificate { get; set; } + public global::GitHub.Models.PagesHttpsCertificate? HttpsCertificate { get; set; } #nullable restore #else - public PagesHttpsCertificate HttpsCertificate { get; set; } + public global::GitHub.Models.PagesHttpsCertificate HttpsCertificate { get; set; } #endif /// Whether https is enabled on the domain public bool? HttpsEnforced { get; set; } /// The timestamp when a pending domain becomes unverified. public DateTimeOffset? PendingDomainUnverifiedAt { get; set; } /// The state if the domain is verified - public Page_protected_domain_state? ProtectedDomainState { get; set; } + public global::GitHub.Models.Page_protected_domain_state? ProtectedDomainState { get; set; } /// Whether the GitHub Pages site is publicly visible. If set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. public bool? Public { get; set; } /// The source property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PagesSourceHash? Source { get; set; } + public global::GitHub.Models.PagesSourceHash? Source { get; set; } #nullable restore #else - public PagesSourceHash Source { get; set; } + public global::GitHub.Models.PagesSourceHash Source { get; set; } #endif /// The status of the most recent build of the Page. - public Page_status? Status { get; set; } + public global::GitHub.Models.Page_status? Status { get; set; } /// The API address for accessing this Page resource. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -67,7 +69,7 @@ public class Page : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Page() { @@ -76,12 +78,12 @@ public Page() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Page CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Page CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Page(); + return new global::GitHub.Models.Page(); } /// /// The deserialization information for the current model @@ -91,18 +93,18 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"build_type", n => { BuildType = n.GetEnumValue(); } }, - {"cname", n => { Cname = n.GetStringValue(); } }, - {"custom_404", n => { Custom404 = n.GetBoolValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"https_certificate", n => { HttpsCertificate = n.GetObjectValue(PagesHttpsCertificate.CreateFromDiscriminatorValue); } }, - {"https_enforced", n => { HttpsEnforced = n.GetBoolValue(); } }, - {"pending_domain_unverified_at", n => { PendingDomainUnverifiedAt = n.GetDateTimeOffsetValue(); } }, - {"protected_domain_state", n => { ProtectedDomainState = n.GetEnumValue(); } }, - {"public", n => { Public = n.GetBoolValue(); } }, - {"source", n => { Source = n.GetObjectValue(PagesSourceHash.CreateFromDiscriminatorValue); } }, - {"status", n => { Status = n.GetEnumValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "build_type", n => { BuildType = n.GetEnumValue(); } }, + { "cname", n => { Cname = n.GetStringValue(); } }, + { "custom_404", n => { Custom404 = n.GetBoolValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "https_certificate", n => { HttpsCertificate = n.GetObjectValue(global::GitHub.Models.PagesHttpsCertificate.CreateFromDiscriminatorValue); } }, + { "https_enforced", n => { HttpsEnforced = n.GetBoolValue(); } }, + { "pending_domain_unverified_at", n => { PendingDomainUnverifiedAt = n.GetDateTimeOffsetValue(); } }, + { "protected_domain_state", n => { ProtectedDomainState = n.GetEnumValue(); } }, + { "public", n => { Public = n.GetBoolValue(); } }, + { "source", n => { Source = n.GetObjectValue(global::GitHub.Models.PagesSourceHash.CreateFromDiscriminatorValue); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -112,17 +114,17 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("build_type", BuildType); + writer.WriteEnumValue("build_type", BuildType); writer.WriteStringValue("cname", Cname); writer.WriteBoolValue("custom_404", Custom404); writer.WriteStringValue("html_url", HtmlUrl); - writer.WriteObjectValue("https_certificate", HttpsCertificate); + writer.WriteObjectValue("https_certificate", HttpsCertificate); writer.WriteBoolValue("https_enforced", HttpsEnforced); writer.WriteDateTimeOffsetValue("pending_domain_unverified_at", PendingDomainUnverifiedAt); - writer.WriteEnumValue("protected_domain_state", ProtectedDomainState); + writer.WriteEnumValue("protected_domain_state", ProtectedDomainState); writer.WriteBoolValue("public", Public); - writer.WriteObjectValue("source", Source); - writer.WriteEnumValue("status", Status); + writer.WriteObjectValue("source", Source); + writer.WriteEnumValue("status", Status); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/PageBuild.cs b/src/GitHub/Models/PageBuild.cs index dbd486f0..9c9965e8 100644 --- a/src/GitHub/Models/PageBuild.cs +++ b/src/GitHub/Models/PageBuild.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Page Build /// - public class PageBuild : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PageBuild : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -27,18 +29,18 @@ public class PageBuild : IAdditionalDataHolder, IParsable /// The error property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PageBuild_error? Error { get; set; } + public global::GitHub.Models.PageBuild_error? Error { get; set; } #nullable restore #else - public PageBuild_error Error { get; set; } + public global::GitHub.Models.PageBuild_error Error { get; set; } #endif /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Pusher { get; set; } + public global::GitHub.Models.NullableSimpleUser? Pusher { get; set; } #nullable restore #else - public NullableSimpleUser Pusher { get; set; } + public global::GitHub.Models.NullableSimpleUser Pusher { get; set; } #endif /// The status property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -59,7 +61,7 @@ public class PageBuild : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PageBuild() { @@ -68,12 +70,12 @@ public PageBuild() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PageBuild CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PageBuild CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PageBuild(); + return new global::GitHub.Models.PageBuild(); } /// /// The deserialization information for the current model @@ -83,14 +85,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"commit", n => { Commit = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"duration", n => { Duration = n.GetIntValue(); } }, - {"error", n => { Error = n.GetObjectValue(PageBuild_error.CreateFromDiscriminatorValue); } }, - {"pusher", n => { Pusher = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"status", n => { Status = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "commit", n => { Commit = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "duration", n => { Duration = n.GetIntValue(); } }, + { "error", n => { Error = n.GetObjectValue(global::GitHub.Models.PageBuild_error.CreateFromDiscriminatorValue); } }, + { "pusher", n => { Pusher = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "status", n => { Status = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -103,8 +105,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("commit", Commit); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteIntValue("duration", Duration); - writer.WriteObjectValue("error", Error); - writer.WriteObjectValue("pusher", Pusher); + writer.WriteObjectValue("error", Error); + writer.WriteObjectValue("pusher", Pusher); writer.WriteStringValue("status", Status); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); diff --git a/src/GitHub/Models/PageBuildStatus.cs b/src/GitHub/Models/PageBuildStatus.cs index 6da107e5..fc7b771f 100644 --- a/src/GitHub/Models/PageBuildStatus.cs +++ b/src/GitHub/Models/PageBuildStatus.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Page Build Status /// - public class PageBuildStatus : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PageBuildStatus : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class PageBuildStatus : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PageBuildStatus() { @@ -38,12 +40,12 @@ public PageBuildStatus() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PageBuildStatus CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PageBuildStatus CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PageBuildStatus(); + return new global::GitHub.Models.PageBuildStatus(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"status", n => { Status = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "status", n => { Status = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PageBuild_error.cs b/src/GitHub/Models/PageBuild_error.cs index 223b18cb..c4f72787 100644 --- a/src/GitHub/Models/PageBuild_error.cs +++ b/src/GitHub/Models/PageBuild_error.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PageBuild_error : IAdditionalDataHolder, IParsable + public partial class PageBuild_error : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class PageBuild_error : IAdditionalDataHolder, IParsable public string Message { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PageBuild_error() { @@ -29,12 +31,12 @@ public PageBuild_error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PageBuild_error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PageBuild_error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PageBuild_error(); + return new global::GitHub.Models.PageBuild_error(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"message", n => { Message = n.GetStringValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PageDeployment.cs b/src/GitHub/Models/PageDeployment.cs index 7e273599..82ee440a 100644 --- a/src/GitHub/Models/PageDeployment.cs +++ b/src/GitHub/Models/PageDeployment.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The GitHub Pages deployment status. /// - public class PageDeployment : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PageDeployment : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PageDeployment_id? Id { get; set; } + public global::GitHub.Models.PageDeployment.PageDeployment_id? Id { get; set; } #nullable restore #else - public PageDeployment_id Id { get; set; } + public global::GitHub.Models.PageDeployment.PageDeployment_id Id { get; set; } #endif /// The URI to the deployed GitHub Pages. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -45,7 +47,7 @@ public class PageDeployment : IAdditionalDataHolder, IParsable public string StatusUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PageDeployment() { @@ -54,12 +56,12 @@ public PageDeployment() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PageDeployment CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PageDeployment CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PageDeployment(); + return new global::GitHub.Models.PageDeployment(); } /// /// The deserialization information for the current model @@ -69,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetObjectValue(PageDeployment_id.CreateFromDiscriminatorValue); } }, - {"page_url", n => { PageUrl = n.GetStringValue(); } }, - {"preview_url", n => { PreviewUrl = n.GetStringValue(); } }, - {"status_url", n => { StatusUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetObjectValue(global::GitHub.Models.PageDeployment.PageDeployment_id.CreateFromDiscriminatorValue); } }, + { "page_url", n => { PageUrl = n.GetStringValue(); } }, + { "preview_url", n => { PreviewUrl = n.GetStringValue(); } }, + { "status_url", n => { StatusUrl = n.GetStringValue(); } }, }; } /// @@ -82,7 +84,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("id", Id); + writer.WriteObjectValue("id", Id); writer.WriteStringValue("page_url", PageUrl); writer.WriteStringValue("preview_url", PreviewUrl); writer.WriteStringValue("status_url", StatusUrl); @@ -91,7 +93,8 @@ public virtual void Serialize(ISerializationWriter writer) /// /// Composed type wrapper for classes , /// - public class PageDeployment_id : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PageDeployment_id : IComposedTypeWrapper, IParsable { /// Composed type representation for type public int? Integer { get; set; } @@ -106,13 +109,13 @@ public class PageDeployment_id : IComposedTypeWrapper, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PageDeployment_id CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PageDeployment.PageDeployment_id CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new PageDeployment_id(); + var result = new global::GitHub.Models.PageDeployment.PageDeployment_id(); if(parseNode.GetIntValue() is int integerValue) { result.Integer = integerValue; diff --git a/src/GitHub/Models/Page_build_type.cs b/src/GitHub/Models/Page_build_type.cs index 2e049c7e..3a94bfbf 100644 --- a/src/GitHub/Models/Page_build_type.cs +++ b/src/GitHub/Models/Page_build_type.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The process in which the Page will be built. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum Page_build_type { [EnumMember(Value = "legacy")] diff --git a/src/GitHub/Models/Page_protected_domain_state.cs b/src/GitHub/Models/Page_protected_domain_state.cs index 73e89e71..6485a80b 100644 --- a/src/GitHub/Models/Page_protected_domain_state.cs +++ b/src/GitHub/Models/Page_protected_domain_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The state if the domain is verified + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum Page_protected_domain_state { [EnumMember(Value = "pending")] diff --git a/src/GitHub/Models/Page_status.cs b/src/GitHub/Models/Page_status.cs index 5f904cdd..8943665a 100644 --- a/src/GitHub/Models/Page_status.cs +++ b/src/GitHub/Models/Page_status.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The status of the most recent build of the Page. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum Page_status { [EnumMember(Value = "built")] diff --git a/src/GitHub/Models/PagesDeploymentStatus.cs b/src/GitHub/Models/PagesDeploymentStatus.cs index 8db412a6..408feb5a 100644 --- a/src/GitHub/Models/PagesDeploymentStatus.cs +++ b/src/GitHub/Models/PagesDeploymentStatus.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PagesDeploymentStatus : IAdditionalDataHolder, IParsable + public partial class PagesDeploymentStatus : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The current status of the deployment. - public PagesDeploymentStatus_status? Status { get; set; } + public global::GitHub.Models.PagesDeploymentStatus_status? Status { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PagesDeploymentStatus() { @@ -23,12 +25,12 @@ public PagesDeploymentStatus() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PagesDeploymentStatus CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PagesDeploymentStatus CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PagesDeploymentStatus(); + return new global::GitHub.Models.PagesDeploymentStatus(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"status", n => { Status = n.GetEnumValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("status", Status); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PagesDeploymentStatus_status.cs b/src/GitHub/Models/PagesDeploymentStatus_status.cs index 072973b4..d4acb3fd 100644 --- a/src/GitHub/Models/PagesDeploymentStatus_status.cs +++ b/src/GitHub/Models/PagesDeploymentStatus_status.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The current status of the deployment. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum PagesDeploymentStatus_status { [EnumMember(Value = "deployment_in_progress")] diff --git a/src/GitHub/Models/PagesHealthCheck.cs b/src/GitHub/Models/PagesHealthCheck.cs index ea39c48b..649c3a3e 100644 --- a/src/GitHub/Models/PagesHealthCheck.cs +++ b/src/GitHub/Models/PagesHealthCheck.cs @@ -1,35 +1,37 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Pages Health Check Status /// - public class PagesHealthCheck : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PagesHealthCheck : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The alt_domain property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PagesHealthCheck_alt_domain? AltDomain { get; set; } + public global::GitHub.Models.PagesHealthCheck_alt_domain? AltDomain { get; set; } #nullable restore #else - public PagesHealthCheck_alt_domain AltDomain { get; set; } + public global::GitHub.Models.PagesHealthCheck_alt_domain AltDomain { get; set; } #endif /// The domain property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PagesHealthCheck_domain? Domain { get; set; } + public global::GitHub.Models.PagesHealthCheck_domain? Domain { get; set; } #nullable restore #else - public PagesHealthCheck_domain Domain { get; set; } + public global::GitHub.Models.PagesHealthCheck_domain Domain { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PagesHealthCheck() { @@ -38,12 +40,12 @@ public PagesHealthCheck() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PagesHealthCheck CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PagesHealthCheck CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PagesHealthCheck(); + return new global::GitHub.Models.PagesHealthCheck(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"alt_domain", n => { AltDomain = n.GetObjectValue(PagesHealthCheck_alt_domain.CreateFromDiscriminatorValue); } }, - {"domain", n => { Domain = n.GetObjectValue(PagesHealthCheck_domain.CreateFromDiscriminatorValue); } }, + { "alt_domain", n => { AltDomain = n.GetObjectValue(global::GitHub.Models.PagesHealthCheck_alt_domain.CreateFromDiscriminatorValue); } }, + { "domain", n => { Domain = n.GetObjectValue(global::GitHub.Models.PagesHealthCheck_domain.CreateFromDiscriminatorValue); } }, }; } /// @@ -64,8 +66,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("alt_domain", AltDomain); - writer.WriteObjectValue("domain", Domain); + writer.WriteObjectValue("alt_domain", AltDomain); + writer.WriteObjectValue("domain", Domain); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PagesHealthCheck_alt_domain.cs b/src/GitHub/Models/PagesHealthCheck_alt_domain.cs index 753caef0..5070276c 100644 --- a/src/GitHub/Models/PagesHealthCheck_alt_domain.cs +++ b/src/GitHub/Models/PagesHealthCheck_alt_domain.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PagesHealthCheck_alt_domain : IAdditionalDataHolder, IParsable + public partial class PagesHealthCheck_alt_domain : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -104,7 +106,7 @@ public class PagesHealthCheck_alt_domain : IAdditionalDataHolder, IParsable public string Uri { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PagesHealthCheck_alt_domain() { @@ -113,12 +115,12 @@ public PagesHealthCheck_alt_domain() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PagesHealthCheck_alt_domain CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PagesHealthCheck_alt_domain CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PagesHealthCheck_alt_domain(); + return new global::GitHub.Models.PagesHealthCheck_alt_domain(); } /// /// The deserialization information for the current model @@ -128,34 +130,34 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"caa_error", n => { CaaError = n.GetStringValue(); } }, - {"dns_resolves", n => { DnsResolves = n.GetBoolValue(); } }, - {"enforces_https", n => { EnforcesHttps = n.GetBoolValue(); } }, - {"has_cname_record", n => { HasCnameRecord = n.GetBoolValue(); } }, - {"has_mx_records_present", n => { HasMxRecordsPresent = n.GetBoolValue(); } }, - {"host", n => { Host = n.GetStringValue(); } }, - {"https_error", n => { HttpsError = n.GetStringValue(); } }, - {"is_a_record", n => { IsARecord = n.GetBoolValue(); } }, - {"is_apex_domain", n => { IsApexDomain = n.GetBoolValue(); } }, - {"is_cloudflare_ip", n => { IsCloudflareIp = n.GetBoolValue(); } }, - {"is_cname_to_fastly", n => { IsCnameToFastly = n.GetBoolValue(); } }, - {"is_cname_to_github_user_domain", n => { IsCnameToGithubUserDomain = n.GetBoolValue(); } }, - {"is_cname_to_pages_dot_github_dot_com", n => { IsCnameToPagesDotGithubDotCom = n.GetBoolValue(); } }, - {"is_fastly_ip", n => { IsFastlyIp = n.GetBoolValue(); } }, - {"is_https_eligible", n => { IsHttpsEligible = n.GetBoolValue(); } }, - {"is_non_github_pages_ip_present", n => { IsNonGithubPagesIpPresent = n.GetBoolValue(); } }, - {"is_old_ip_address", n => { IsOldIpAddress = n.GetBoolValue(); } }, - {"is_pages_domain", n => { IsPagesDomain = n.GetBoolValue(); } }, - {"is_pointed_to_github_pages_ip", n => { IsPointedToGithubPagesIp = n.GetBoolValue(); } }, - {"is_proxied", n => { IsProxied = n.GetBoolValue(); } }, - {"is_served_by_pages", n => { IsServedByPages = n.GetBoolValue(); } }, - {"is_valid", n => { IsValid = n.GetBoolValue(); } }, - {"is_valid_domain", n => { IsValidDomain = n.GetBoolValue(); } }, - {"nameservers", n => { Nameservers = n.GetStringValue(); } }, - {"reason", n => { Reason = n.GetStringValue(); } }, - {"responds_to_https", n => { RespondsToHttps = n.GetBoolValue(); } }, - {"should_be_a_record", n => { ShouldBeARecord = n.GetBoolValue(); } }, - {"uri", n => { Uri = n.GetStringValue(); } }, + { "caa_error", n => { CaaError = n.GetStringValue(); } }, + { "dns_resolves", n => { DnsResolves = n.GetBoolValue(); } }, + { "enforces_https", n => { EnforcesHttps = n.GetBoolValue(); } }, + { "has_cname_record", n => { HasCnameRecord = n.GetBoolValue(); } }, + { "has_mx_records_present", n => { HasMxRecordsPresent = n.GetBoolValue(); } }, + { "host", n => { Host = n.GetStringValue(); } }, + { "https_error", n => { HttpsError = n.GetStringValue(); } }, + { "is_a_record", n => { IsARecord = n.GetBoolValue(); } }, + { "is_apex_domain", n => { IsApexDomain = n.GetBoolValue(); } }, + { "is_cloudflare_ip", n => { IsCloudflareIp = n.GetBoolValue(); } }, + { "is_cname_to_fastly", n => { IsCnameToFastly = n.GetBoolValue(); } }, + { "is_cname_to_github_user_domain", n => { IsCnameToGithubUserDomain = n.GetBoolValue(); } }, + { "is_cname_to_pages_dot_github_dot_com", n => { IsCnameToPagesDotGithubDotCom = n.GetBoolValue(); } }, + { "is_fastly_ip", n => { IsFastlyIp = n.GetBoolValue(); } }, + { "is_https_eligible", n => { IsHttpsEligible = n.GetBoolValue(); } }, + { "is_non_github_pages_ip_present", n => { IsNonGithubPagesIpPresent = n.GetBoolValue(); } }, + { "is_old_ip_address", n => { IsOldIpAddress = n.GetBoolValue(); } }, + { "is_pages_domain", n => { IsPagesDomain = n.GetBoolValue(); } }, + { "is_pointed_to_github_pages_ip", n => { IsPointedToGithubPagesIp = n.GetBoolValue(); } }, + { "is_proxied", n => { IsProxied = n.GetBoolValue(); } }, + { "is_served_by_pages", n => { IsServedByPages = n.GetBoolValue(); } }, + { "is_valid", n => { IsValid = n.GetBoolValue(); } }, + { "is_valid_domain", n => { IsValidDomain = n.GetBoolValue(); } }, + { "nameservers", n => { Nameservers = n.GetStringValue(); } }, + { "reason", n => { Reason = n.GetStringValue(); } }, + { "responds_to_https", n => { RespondsToHttps = n.GetBoolValue(); } }, + { "should_be_a_record", n => { ShouldBeARecord = n.GetBoolValue(); } }, + { "uri", n => { Uri = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PagesHealthCheck_domain.cs b/src/GitHub/Models/PagesHealthCheck_domain.cs index 0e310f32..3728c40d 100644 --- a/src/GitHub/Models/PagesHealthCheck_domain.cs +++ b/src/GitHub/Models/PagesHealthCheck_domain.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PagesHealthCheck_domain : IAdditionalDataHolder, IParsable + public partial class PagesHealthCheck_domain : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -104,7 +106,7 @@ public class PagesHealthCheck_domain : IAdditionalDataHolder, IParsable public string Uri { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PagesHealthCheck_domain() { @@ -113,12 +115,12 @@ public PagesHealthCheck_domain() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PagesHealthCheck_domain CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PagesHealthCheck_domain CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PagesHealthCheck_domain(); + return new global::GitHub.Models.PagesHealthCheck_domain(); } /// /// The deserialization information for the current model @@ -128,34 +130,34 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"caa_error", n => { CaaError = n.GetStringValue(); } }, - {"dns_resolves", n => { DnsResolves = n.GetBoolValue(); } }, - {"enforces_https", n => { EnforcesHttps = n.GetBoolValue(); } }, - {"has_cname_record", n => { HasCnameRecord = n.GetBoolValue(); } }, - {"has_mx_records_present", n => { HasMxRecordsPresent = n.GetBoolValue(); } }, - {"host", n => { Host = n.GetStringValue(); } }, - {"https_error", n => { HttpsError = n.GetStringValue(); } }, - {"is_a_record", n => { IsARecord = n.GetBoolValue(); } }, - {"is_apex_domain", n => { IsApexDomain = n.GetBoolValue(); } }, - {"is_cloudflare_ip", n => { IsCloudflareIp = n.GetBoolValue(); } }, - {"is_cname_to_fastly", n => { IsCnameToFastly = n.GetBoolValue(); } }, - {"is_cname_to_github_user_domain", n => { IsCnameToGithubUserDomain = n.GetBoolValue(); } }, - {"is_cname_to_pages_dot_github_dot_com", n => { IsCnameToPagesDotGithubDotCom = n.GetBoolValue(); } }, - {"is_fastly_ip", n => { IsFastlyIp = n.GetBoolValue(); } }, - {"is_https_eligible", n => { IsHttpsEligible = n.GetBoolValue(); } }, - {"is_non_github_pages_ip_present", n => { IsNonGithubPagesIpPresent = n.GetBoolValue(); } }, - {"is_old_ip_address", n => { IsOldIpAddress = n.GetBoolValue(); } }, - {"is_pages_domain", n => { IsPagesDomain = n.GetBoolValue(); } }, - {"is_pointed_to_github_pages_ip", n => { IsPointedToGithubPagesIp = n.GetBoolValue(); } }, - {"is_proxied", n => { IsProxied = n.GetBoolValue(); } }, - {"is_served_by_pages", n => { IsServedByPages = n.GetBoolValue(); } }, - {"is_valid", n => { IsValid = n.GetBoolValue(); } }, - {"is_valid_domain", n => { IsValidDomain = n.GetBoolValue(); } }, - {"nameservers", n => { Nameservers = n.GetStringValue(); } }, - {"reason", n => { Reason = n.GetStringValue(); } }, - {"responds_to_https", n => { RespondsToHttps = n.GetBoolValue(); } }, - {"should_be_a_record", n => { ShouldBeARecord = n.GetBoolValue(); } }, - {"uri", n => { Uri = n.GetStringValue(); } }, + { "caa_error", n => { CaaError = n.GetStringValue(); } }, + { "dns_resolves", n => { DnsResolves = n.GetBoolValue(); } }, + { "enforces_https", n => { EnforcesHttps = n.GetBoolValue(); } }, + { "has_cname_record", n => { HasCnameRecord = n.GetBoolValue(); } }, + { "has_mx_records_present", n => { HasMxRecordsPresent = n.GetBoolValue(); } }, + { "host", n => { Host = n.GetStringValue(); } }, + { "https_error", n => { HttpsError = n.GetStringValue(); } }, + { "is_a_record", n => { IsARecord = n.GetBoolValue(); } }, + { "is_apex_domain", n => { IsApexDomain = n.GetBoolValue(); } }, + { "is_cloudflare_ip", n => { IsCloudflareIp = n.GetBoolValue(); } }, + { "is_cname_to_fastly", n => { IsCnameToFastly = n.GetBoolValue(); } }, + { "is_cname_to_github_user_domain", n => { IsCnameToGithubUserDomain = n.GetBoolValue(); } }, + { "is_cname_to_pages_dot_github_dot_com", n => { IsCnameToPagesDotGithubDotCom = n.GetBoolValue(); } }, + { "is_fastly_ip", n => { IsFastlyIp = n.GetBoolValue(); } }, + { "is_https_eligible", n => { IsHttpsEligible = n.GetBoolValue(); } }, + { "is_non_github_pages_ip_present", n => { IsNonGithubPagesIpPresent = n.GetBoolValue(); } }, + { "is_old_ip_address", n => { IsOldIpAddress = n.GetBoolValue(); } }, + { "is_pages_domain", n => { IsPagesDomain = n.GetBoolValue(); } }, + { "is_pointed_to_github_pages_ip", n => { IsPointedToGithubPagesIp = n.GetBoolValue(); } }, + { "is_proxied", n => { IsProxied = n.GetBoolValue(); } }, + { "is_served_by_pages", n => { IsServedByPages = n.GetBoolValue(); } }, + { "is_valid", n => { IsValid = n.GetBoolValue(); } }, + { "is_valid_domain", n => { IsValidDomain = n.GetBoolValue(); } }, + { "nameservers", n => { Nameservers = n.GetStringValue(); } }, + { "reason", n => { Reason = n.GetStringValue(); } }, + { "responds_to_https", n => { RespondsToHttps = n.GetBoolValue(); } }, + { "should_be_a_record", n => { ShouldBeARecord = n.GetBoolValue(); } }, + { "uri", n => { Uri = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PagesHttpsCertificate.cs b/src/GitHub/Models/PagesHttpsCertificate.cs index 6ce5c511..3d1eb758 100644 --- a/src/GitHub/Models/PagesHttpsCertificate.cs +++ b/src/GitHub/Models/PagesHttpsCertificate.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PagesHttpsCertificate : IAdditionalDataHolder, IParsable + public partial class PagesHttpsCertificate : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -31,9 +33,9 @@ public class PagesHttpsCertificate : IAdditionalDataHolder, IParsable /// The expires_at property public Date? ExpiresAt { get; set; } /// The state property - public PagesHttpsCertificate_state? State { get; set; } + public global::GitHub.Models.PagesHttpsCertificate_state? State { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PagesHttpsCertificate() { @@ -42,12 +44,12 @@ public PagesHttpsCertificate() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PagesHttpsCertificate CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PagesHttpsCertificate CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PagesHttpsCertificate(); + return new global::GitHub.Models.PagesHttpsCertificate(); } /// /// The deserialization information for the current model @@ -57,10 +59,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"domains", n => { Domains = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"expires_at", n => { ExpiresAt = n.GetDateValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "domains", n => { Domains = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "expires_at", n => { ExpiresAt = n.GetDateValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, }; } /// @@ -73,7 +75,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("description", Description); writer.WriteCollectionOfPrimitiveValues("domains", Domains); writer.WriteDateValue("expires_at", ExpiresAt); - writer.WriteEnumValue("state", State); + writer.WriteEnumValue("state", State); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PagesHttpsCertificate_state.cs b/src/GitHub/Models/PagesHttpsCertificate_state.cs index ade5e497..6753861f 100644 --- a/src/GitHub/Models/PagesHttpsCertificate_state.cs +++ b/src/GitHub/Models/PagesHttpsCertificate_state.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum PagesHttpsCertificate_state #pragma warning restore CS1591 diff --git a/src/GitHub/Models/PagesSourceHash.cs b/src/GitHub/Models/PagesSourceHash.cs index 004d3043..739596a6 100644 --- a/src/GitHub/Models/PagesSourceHash.cs +++ b/src/GitHub/Models/PagesSourceHash.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PagesSourceHash : IAdditionalDataHolder, IParsable + public partial class PagesSourceHash : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class PagesSourceHash : IAdditionalDataHolder, IParsable public string Path { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PagesSourceHash() { @@ -37,12 +39,12 @@ public PagesSourceHash() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PagesSourceHash CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PagesSourceHash CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PagesSourceHash(); + return new global::GitHub.Models.PagesSourceHash(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"branch", n => { Branch = n.GetStringValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, + { "branch", n => { Branch = n.GetStringValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ParticipationStats.cs b/src/GitHub/Models/ParticipationStats.cs index ee30b845..1b75e6d7 100644 --- a/src/GitHub/Models/ParticipationStats.cs +++ b/src/GitHub/Models/ParticipationStats.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ParticipationStats : IAdditionalDataHolder, IParsable + public partial class ParticipationStats : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class ParticipationStats : IAdditionalDataHolder, IParsable public List Owner { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ParticipationStats() { @@ -37,12 +39,12 @@ public ParticipationStats() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ParticipationStats CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ParticipationStats CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ParticipationStats(); + return new global::GitHub.Models.ParticipationStats(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"all", n => { All = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"owner", n => { Owner = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "all", n => { All = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "owner", n => { Owner = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Models/PatchSchema.cs b/src/GitHub/Models/PatchSchema.cs index 7c31fe62..7b4031d1 100644 --- a/src/GitHub/Models/PatchSchema.cs +++ b/src/GitHub/Models/PatchSchema.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PatchSchema : IAdditionalDataHolder, IParsable + public partial class PatchSchema : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,21 +16,21 @@ public class PatchSchema : IAdditionalDataHolder, IParsable /// patch operations list #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Operations { get; set; } + public List? Operations { get; set; } #nullable restore #else - public List Operations { get; set; } + public List Operations { get; set; } #endif /// The schemas property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Schemas { get; set; } + public List? Schemas { get; set; } #nullable restore #else - public List Schemas { get; set; } + public List Schemas { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PatchSchema() { @@ -37,12 +39,12 @@ public PatchSchema() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PatchSchema CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PatchSchema CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PatchSchema(); + return new global::GitHub.Models.PatchSchema(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"Operations", n => { Operations = n.GetCollectionOfObjectValues(PatchSchema_Operations.CreateFromDiscriminatorValue)?.ToList(); } }, - {"schemas", n => { Schemas = n.GetCollectionOfEnumValues()?.ToList(); } }, + { "Operations", n => { Operations = n.GetCollectionOfObjectValues(global::GitHub.Models.PatchSchema_Operations.CreateFromDiscriminatorValue)?.AsList(); } }, + { "schemas", n => { Schemas = n.GetCollectionOfEnumValues()?.AsList(); } }, }; } /// @@ -63,8 +65,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("Operations", Operations); - writer.WriteCollectionOfEnumValues("schemas", Schemas); + writer.WriteCollectionOfObjectValues("Operations", Operations); + writer.WriteCollectionOfEnumValues("schemas", Schemas); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PatchSchema_Operations.cs b/src/GitHub/Models/PatchSchema_Operations.cs index c07448a7..9653ed4a 100644 --- a/src/GitHub/Models/PatchSchema_Operations.cs +++ b/src/GitHub/Models/PatchSchema_Operations.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PatchSchema_Operations : IAdditionalDataHolder, IParsable + public partial class PatchSchema_Operations : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The op property - public PatchSchema_Operations_op? Op { get; set; } + public global::GitHub.Models.PatchSchema_Operations_op? Op { get; set; } /// The path property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -30,7 +32,7 @@ public class PatchSchema_Operations : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PatchSchema_Operations() { @@ -39,12 +41,12 @@ public PatchSchema_Operations() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PatchSchema_Operations CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PatchSchema_Operations CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PatchSchema_Operations(); + return new global::GitHub.Models.PatchSchema_Operations(); } /// /// The deserialization information for the current model @@ -54,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"op", n => { Op = n.GetEnumValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, + { "op", n => { Op = n.GetEnumValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, }; } /// @@ -66,7 +68,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("op", Op); + writer.WriteEnumValue("op", Op); writer.WriteStringValue("path", Path); writer.WriteStringValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/PatchSchema_Operations_op.cs b/src/GitHub/Models/PatchSchema_Operations_op.cs index fb332f5c..3ee9dc51 100644 --- a/src/GitHub/Models/PatchSchema_Operations_op.cs +++ b/src/GitHub/Models/PatchSchema_Operations_op.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum PatchSchema_Operations_op #pragma warning restore CS1591 diff --git a/src/GitHub/Models/PatchSchema_schemas.cs b/src/GitHub/Models/PatchSchema_schemas.cs index 25c4ed0a..57302809 100644 --- a/src/GitHub/Models/PatchSchema_schemas.cs +++ b/src/GitHub/Models/PatchSchema_schemas.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum PatchSchema_schemas #pragma warning restore CS1591 diff --git a/src/GitHub/Models/PendingDeployment.cs b/src/GitHub/Models/PendingDeployment.cs index 13a2ef0f..8ff72bef 100644 --- a/src/GitHub/Models/PendingDeployment.cs +++ b/src/GitHub/Models/PendingDeployment.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Details of a deployment that is waiting for protection rules to pass /// - public class PendingDeployment : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PendingDeployment : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -17,25 +19,25 @@ public class PendingDeployment : IAdditionalDataHolder, IParsable /// The environment property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PendingDeployment_environment? Environment { get; set; } + public global::GitHub.Models.PendingDeployment_environment? Environment { get; set; } #nullable restore #else - public PendingDeployment_environment Environment { get; set; } + public global::GitHub.Models.PendingDeployment_environment Environment { get; set; } #endif /// The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Reviewers { get; set; } + public List? Reviewers { get; set; } #nullable restore #else - public List Reviewers { get; set; } + public List Reviewers { get; set; } #endif /// The set duration of the wait timer public int? WaitTimer { get; set; } /// The time that the wait timer began. public DateTimeOffset? WaitTimerStartedAt { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PendingDeployment() { @@ -44,12 +46,12 @@ public PendingDeployment() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PendingDeployment CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PendingDeployment CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PendingDeployment(); + return new global::GitHub.Models.PendingDeployment(); } /// /// The deserialization information for the current model @@ -59,11 +61,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"current_user_can_approve", n => { CurrentUserCanApprove = n.GetBoolValue(); } }, - {"environment", n => { Environment = n.GetObjectValue(PendingDeployment_environment.CreateFromDiscriminatorValue); } }, - {"reviewers", n => { Reviewers = n.GetCollectionOfObjectValues(PendingDeployment_reviewers.CreateFromDiscriminatorValue)?.ToList(); } }, - {"wait_timer", n => { WaitTimer = n.GetIntValue(); } }, - {"wait_timer_started_at", n => { WaitTimerStartedAt = n.GetDateTimeOffsetValue(); } }, + { "current_user_can_approve", n => { CurrentUserCanApprove = n.GetBoolValue(); } }, + { "environment", n => { Environment = n.GetObjectValue(global::GitHub.Models.PendingDeployment_environment.CreateFromDiscriminatorValue); } }, + { "reviewers", n => { Reviewers = n.GetCollectionOfObjectValues(global::GitHub.Models.PendingDeployment_reviewers.CreateFromDiscriminatorValue)?.AsList(); } }, + { "wait_timer", n => { WaitTimer = n.GetIntValue(); } }, + { "wait_timer_started_at", n => { WaitTimerStartedAt = n.GetDateTimeOffsetValue(); } }, }; } /// @@ -74,8 +76,8 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("current_user_can_approve", CurrentUserCanApprove); - writer.WriteObjectValue("environment", Environment); - writer.WriteCollectionOfObjectValues("reviewers", Reviewers); + writer.WriteObjectValue("environment", Environment); + writer.WriteCollectionOfObjectValues("reviewers", Reviewers); writer.WriteIntValue("wait_timer", WaitTimer); writer.WriteDateTimeOffsetValue("wait_timer_started_at", WaitTimerStartedAt); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/PendingDeployment_environment.cs b/src/GitHub/Models/PendingDeployment_environment.cs index 9282bc72..b2ce12d9 100644 --- a/src/GitHub/Models/PendingDeployment_environment.cs +++ b/src/GitHub/Models/PendingDeployment_environment.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PendingDeployment_environment : IAdditionalDataHolder, IParsable + public partial class PendingDeployment_environment : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -46,7 +48,7 @@ public class PendingDeployment_environment : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PendingDeployment_environment() { @@ -55,12 +57,12 @@ public PendingDeployment_environment() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PendingDeployment_environment CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PendingDeployment_environment CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PendingDeployment_environment(); + return new global::GitHub.Models.PendingDeployment_environment(); } /// /// The deserialization information for the current model @@ -70,11 +72,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PendingDeployment_reviewers.cs b/src/GitHub/Models/PendingDeployment_reviewers.cs index e5909924..19757247 100644 --- a/src/GitHub/Models/PendingDeployment_reviewers.cs +++ b/src/GitHub/Models/PendingDeployment_reviewers.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PendingDeployment_reviewers : IAdditionalDataHolder, IParsable + public partial class PendingDeployment_reviewers : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,15 +16,15 @@ public class PendingDeployment_reviewers : IAdditionalDataHolder, IParsable /// The reviewer property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PendingDeployment_reviewers_reviewer? Reviewer { get; set; } + public global::GitHub.Models.PendingDeployment_reviewers.PendingDeployment_reviewers_reviewer? Reviewer { get; set; } #nullable restore #else - public PendingDeployment_reviewers_reviewer Reviewer { get; set; } + public global::GitHub.Models.PendingDeployment_reviewers.PendingDeployment_reviewers_reviewer Reviewer { get; set; } #endif /// The type of reviewer. - public DeploymentReviewerType? Type { get; set; } + public global::GitHub.Models.DeploymentReviewerType? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PendingDeployment_reviewers() { @@ -31,12 +33,12 @@ public PendingDeployment_reviewers() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PendingDeployment_reviewers CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PendingDeployment_reviewers CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PendingDeployment_reviewers(); + return new global::GitHub.Models.PendingDeployment_reviewers(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"reviewer", n => { Reviewer = n.GetObjectValue(PendingDeployment_reviewers_reviewer.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "reviewer", n => { Reviewer = n.GetObjectValue(global::GitHub.Models.PendingDeployment_reviewers.PendingDeployment_reviewers_reviewer.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -57,42 +59,43 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("reviewer", Reviewer); - writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("reviewer", Reviewer); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class PendingDeployment_reviewers_reviewer : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PendingDeployment_reviewers_reviewer : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SimpleUser? SimpleUser { get; set; } + public global::GitHub.Models.SimpleUser? SimpleUser { get; set; } #nullable restore #else - public GitHub.Models.SimpleUser SimpleUser { get; set; } + public global::GitHub.Models.SimpleUser SimpleUser { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Team? Team { get; set; } + public global::GitHub.Models.Team? Team { get; set; } #nullable restore #else - public GitHub.Models.Team Team { get; set; } + public global::GitHub.Models.Team Team { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PendingDeployment_reviewers_reviewer CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PendingDeployment_reviewers.PendingDeployment_reviewers_reviewer CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - var result = new PendingDeployment_reviewers_reviewer(); - result.SimpleUser = new GitHub.Models.SimpleUser(); - result.Team = new GitHub.Models.Team(); + var result = new global::GitHub.Models.PendingDeployment_reviewers.PendingDeployment_reviewers_reviewer(); + result.SimpleUser = new global::GitHub.Models.SimpleUser(); + result.Team = new global::GitHub.Models.Team(); return result; } /// @@ -114,7 +117,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue(null, SimpleUser, Team); + writer.WriteObjectValue(null, SimpleUser, Team); } } } diff --git a/src/GitHub/Models/PorterAuthor.cs b/src/GitHub/Models/PorterAuthor.cs index 0b6d58e7..93db6ac5 100644 --- a/src/GitHub/Models/PorterAuthor.cs +++ b/src/GitHub/Models/PorterAuthor.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Porter Author /// - public class PorterAuthor : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PorterAuthor : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -63,7 +65,7 @@ public class PorterAuthor : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PorterAuthor() { @@ -72,12 +74,12 @@ public PorterAuthor() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PorterAuthor CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PorterAuthor CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PorterAuthor(); + return new global::GitHub.Models.PorterAuthor(); } /// /// The deserialization information for the current model @@ -87,13 +89,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"email", n => { Email = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"import_url", n => { ImportUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"remote_id", n => { RemoteId = n.GetStringValue(); } }, - {"remote_name", n => { RemoteName = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "import_url", n => { ImportUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "remote_id", n => { RemoteId = n.GetStringValue(); } }, + { "remote_name", n => { RemoteName = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PorterLargeFile.cs b/src/GitHub/Models/PorterLargeFile.cs index ade20545..c0b0e603 100644 --- a/src/GitHub/Models/PorterLargeFile.cs +++ b/src/GitHub/Models/PorterLargeFile.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Porter Large File /// - public class PorterLargeFile : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PorterLargeFile : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -39,7 +41,7 @@ public class PorterLargeFile : IAdditionalDataHolder, IParsable /// The size property public int? Size { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PorterLargeFile() { @@ -48,12 +50,12 @@ public PorterLargeFile() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PorterLargeFile CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PorterLargeFile CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PorterLargeFile(); + return new global::GitHub.Models.PorterLargeFile(); } /// /// The deserialization information for the current model @@ -63,10 +65,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"oid", n => { Oid = n.GetStringValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"ref_name", n => { RefName = n.GetStringValue(); } }, - {"size", n => { Size = n.GetIntValue(); } }, + { "oid", n => { Oid = n.GetStringValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "ref_name", n => { RefName = n.GetStringValue(); } }, + { "size", n => { Size = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/PrivateUser.cs b/src/GitHub/Models/PrivateUser.cs index c8f6abab..e41b93ce 100644 --- a/src/GitHub/Models/PrivateUser.cs +++ b/src/GitHub/Models/PrivateUser.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Private User /// - public class PrivateUser : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PrivateUser : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -177,10 +179,10 @@ public class PrivateUser : IAdditionalDataHolder, IParsable /// The plan property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PrivateUser_plan? Plan { get; set; } + public global::GitHub.Models.PrivateUser_plan? Plan { get; set; } #nullable restore #else - public PrivateUser_plan Plan { get; set; } + public global::GitHub.Models.PrivateUser_plan Plan { get; set; } #endif /// The private_gists property public int? PrivateGists { get; set; } @@ -255,7 +257,7 @@ public class PrivateUser : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PrivateUser() { @@ -264,12 +266,12 @@ public PrivateUser() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PrivateUser CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PrivateUser CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PrivateUser(); + return new global::GitHub.Models.PrivateUser(); } /// /// The deserialization information for the current model @@ -279,49 +281,49 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"bio", n => { Bio = n.GetStringValue(); } }, - {"blog", n => { Blog = n.GetStringValue(); } }, - {"business_plus", n => { BusinessPlus = n.GetBoolValue(); } }, - {"collaborators", n => { Collaborators = n.GetIntValue(); } }, - {"company", n => { Company = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"disk_usage", n => { DiskUsage = n.GetIntValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"followers", n => { Followers = n.GetIntValue(); } }, - {"followers_url", n => { FollowersUrl = n.GetStringValue(); } }, - {"following", n => { Following = n.GetIntValue(); } }, - {"following_url", n => { FollowingUrl = n.GetStringValue(); } }, - {"gists_url", n => { GistsUrl = n.GetStringValue(); } }, - {"gravatar_id", n => { GravatarId = n.GetStringValue(); } }, - {"hireable", n => { Hireable = n.GetBoolValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"ldap_dn", n => { LdapDn = n.GetStringValue(); } }, - {"location", n => { Location = n.GetStringValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"notification_email", n => { NotificationEmail = n.GetStringValue(); } }, - {"organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, - {"owned_private_repos", n => { OwnedPrivateRepos = n.GetIntValue(); } }, - {"plan", n => { Plan = n.GetObjectValue(PrivateUser_plan.CreateFromDiscriminatorValue); } }, - {"private_gists", n => { PrivateGists = n.GetIntValue(); } }, - {"public_gists", n => { PublicGists = n.GetIntValue(); } }, - {"public_repos", n => { PublicRepos = n.GetIntValue(); } }, - {"received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, - {"repos_url", n => { ReposUrl = n.GetStringValue(); } }, - {"site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, - {"starred_url", n => { StarredUrl = n.GetStringValue(); } }, - {"subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, - {"suspended_at", n => { SuspendedAt = n.GetDateTimeOffsetValue(); } }, - {"total_private_repos", n => { TotalPrivateRepos = n.GetIntValue(); } }, - {"twitter_username", n => { TwitterUsername = n.GetStringValue(); } }, - {"two_factor_authentication", n => { TwoFactorAuthentication = n.GetBoolValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "bio", n => { Bio = n.GetStringValue(); } }, + { "blog", n => { Blog = n.GetStringValue(); } }, + { "business_plus", n => { BusinessPlus = n.GetBoolValue(); } }, + { "collaborators", n => { Collaborators = n.GetIntValue(); } }, + { "company", n => { Company = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "disk_usage", n => { DiskUsage = n.GetIntValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "followers", n => { Followers = n.GetIntValue(); } }, + { "followers_url", n => { FollowersUrl = n.GetStringValue(); } }, + { "following", n => { Following = n.GetIntValue(); } }, + { "following_url", n => { FollowingUrl = n.GetStringValue(); } }, + { "gists_url", n => { GistsUrl = n.GetStringValue(); } }, + { "gravatar_id", n => { GravatarId = n.GetStringValue(); } }, + { "hireable", n => { Hireable = n.GetBoolValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "ldap_dn", n => { LdapDn = n.GetStringValue(); } }, + { "location", n => { Location = n.GetStringValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "notification_email", n => { NotificationEmail = n.GetStringValue(); } }, + { "organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, + { "owned_private_repos", n => { OwnedPrivateRepos = n.GetIntValue(); } }, + { "plan", n => { Plan = n.GetObjectValue(global::GitHub.Models.PrivateUser_plan.CreateFromDiscriminatorValue); } }, + { "private_gists", n => { PrivateGists = n.GetIntValue(); } }, + { "public_gists", n => { PublicGists = n.GetIntValue(); } }, + { "public_repos", n => { PublicRepos = n.GetIntValue(); } }, + { "received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, + { "repos_url", n => { ReposUrl = n.GetStringValue(); } }, + { "site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, + { "starred_url", n => { StarredUrl = n.GetStringValue(); } }, + { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, + { "suspended_at", n => { SuspendedAt = n.GetDateTimeOffsetValue(); } }, + { "total_private_repos", n => { TotalPrivateRepos = n.GetIntValue(); } }, + { "twitter_username", n => { TwitterUsername = n.GetStringValue(); } }, + { "two_factor_authentication", n => { TwoFactorAuthentication = n.GetBoolValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -358,7 +360,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("notification_email", NotificationEmail); writer.WriteStringValue("organizations_url", OrganizationsUrl); writer.WriteIntValue("owned_private_repos", OwnedPrivateRepos); - writer.WriteObjectValue("plan", Plan); + writer.WriteObjectValue("plan", Plan); writer.WriteIntValue("private_gists", PrivateGists); writer.WriteIntValue("public_gists", PublicGists); writer.WriteIntValue("public_repos", PublicRepos); diff --git a/src/GitHub/Models/PrivateUser_plan.cs b/src/GitHub/Models/PrivateUser_plan.cs index 73a7120e..1d0fcfe6 100644 --- a/src/GitHub/Models/PrivateUser_plan.cs +++ b/src/GitHub/Models/PrivateUser_plan.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PrivateUser_plan : IAdditionalDataHolder, IParsable + public partial class PrivateUser_plan : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -26,7 +28,7 @@ public class PrivateUser_plan : IAdditionalDataHolder, IParsable /// The space property public int? Space { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PrivateUser_plan() { @@ -35,12 +37,12 @@ public PrivateUser_plan() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PrivateUser_plan CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PrivateUser_plan CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PrivateUser_plan(); + return new global::GitHub.Models.PrivateUser_plan(); } /// /// The deserialization information for the current model @@ -50,10 +52,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"collaborators", n => { Collaborators = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"private_repos", n => { PrivateRepos = n.GetIntValue(); } }, - {"space", n => { Space = n.GetIntValue(); } }, + { "collaborators", n => { Collaborators = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "private_repos", n => { PrivateRepos = n.GetIntValue(); } }, + { "space", n => { Space = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/PrivateVulnerabilityReportCreate.cs b/src/GitHub/Models/PrivateVulnerabilityReportCreate.cs index a84d9946..cf3eb527 100644 --- a/src/GitHub/Models/PrivateVulnerabilityReportCreate.cs +++ b/src/GitHub/Models/PrivateVulnerabilityReportCreate.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PrivateVulnerabilityReportCreate : IParsable + public partial class PrivateVulnerabilityReportCreate : IParsable #pragma warning restore CS1591 { /// The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`. @@ -34,7 +36,7 @@ public class PrivateVulnerabilityReportCreate : IParsable public string Description { get; set; } #endif /// The severity of the advisory. You must choose between setting this field or `cvss_vector_string`. - public PrivateVulnerabilityReportCreate_severity? Severity { get; set; } + public global::GitHub.Models.PrivateVulnerabilityReportCreate_severity? Severity { get; set; } /// Whether to create a temporary private fork of the repository to collaborate on a fix. public bool? StartPrivateFork { get; set; } /// A short summary of the advisory. @@ -48,20 +50,20 @@ public class PrivateVulnerabilityReportCreate : IParsable /// An array of products affected by the vulnerability detailed in a repository security advisory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Vulnerabilities { get; set; } + public List? Vulnerabilities { get; set; } #nullable restore #else - public List Vulnerabilities { get; set; } + public List Vulnerabilities { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PrivateVulnerabilityReportCreate CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PrivateVulnerabilityReportCreate CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PrivateVulnerabilityReportCreate(); + return new global::GitHub.Models.PrivateVulnerabilityReportCreate(); } /// /// The deserialization information for the current model @@ -71,13 +73,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"cvss_vector_string", n => { CvssVectorString = n.GetStringValue(); } }, - {"cwe_ids", n => { CweIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"severity", n => { Severity = n.GetEnumValue(); } }, - {"start_private_fork", n => { StartPrivateFork = n.GetBoolValue(); } }, - {"summary", n => { Summary = n.GetStringValue(); } }, - {"vulnerabilities", n => { Vulnerabilities = n.GetCollectionOfObjectValues(PrivateVulnerabilityReportCreate_vulnerabilities.CreateFromDiscriminatorValue)?.ToList(); } }, + { "cvss_vector_string", n => { CvssVectorString = n.GetStringValue(); } }, + { "cwe_ids", n => { CweIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "severity", n => { Severity = n.GetEnumValue(); } }, + { "start_private_fork", n => { StartPrivateFork = n.GetBoolValue(); } }, + { "summary", n => { Summary = n.GetStringValue(); } }, + { "vulnerabilities", n => { Vulnerabilities = n.GetCollectionOfObjectValues(global::GitHub.Models.PrivateVulnerabilityReportCreate_vulnerabilities.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -90,10 +92,10 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("cvss_vector_string", CvssVectorString); writer.WriteCollectionOfPrimitiveValues("cwe_ids", CweIds); writer.WriteStringValue("description", Description); - writer.WriteEnumValue("severity", Severity); + writer.WriteEnumValue("severity", Severity); writer.WriteBoolValue("start_private_fork", StartPrivateFork); writer.WriteStringValue("summary", Summary); - writer.WriteCollectionOfObjectValues("vulnerabilities", Vulnerabilities); + writer.WriteCollectionOfObjectValues("vulnerabilities", Vulnerabilities); } } } diff --git a/src/GitHub/Models/PrivateVulnerabilityReportCreate_severity.cs b/src/GitHub/Models/PrivateVulnerabilityReportCreate_severity.cs index 5c78ac08..cb93040d 100644 --- a/src/GitHub/Models/PrivateVulnerabilityReportCreate_severity.cs +++ b/src/GitHub/Models/PrivateVulnerabilityReportCreate_severity.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The severity of the advisory. You must choose between setting this field or `cvss_vector_string`. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum PrivateVulnerabilityReportCreate_severity { [EnumMember(Value = "critical")] diff --git a/src/GitHub/Models/PrivateVulnerabilityReportCreate_vulnerabilities.cs b/src/GitHub/Models/PrivateVulnerabilityReportCreate_vulnerabilities.cs index e36cf8b5..00837f9e 100644 --- a/src/GitHub/Models/PrivateVulnerabilityReportCreate_vulnerabilities.cs +++ b/src/GitHub/Models/PrivateVulnerabilityReportCreate_vulnerabilities.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PrivateVulnerabilityReportCreate_vulnerabilities : IParsable + public partial class PrivateVulnerabilityReportCreate_vulnerabilities : IParsable #pragma warning restore CS1591 { /// The name of the package affected by the vulnerability. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PrivateVulnerabilityReportCreate_vulnerabilities_package? Package { get; set; } + public global::GitHub.Models.PrivateVulnerabilityReportCreate_vulnerabilities_package? Package { get; set; } #nullable restore #else - public PrivateVulnerabilityReportCreate_vulnerabilities_package Package { get; set; } + public global::GitHub.Models.PrivateVulnerabilityReportCreate_vulnerabilities_package Package { get; set; } #endif /// The package version(s) that resolve the vulnerability. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -44,12 +46,12 @@ public class PrivateVulnerabilityReportCreate_vulnerabilities : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PrivateVulnerabilityReportCreate_vulnerabilities CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PrivateVulnerabilityReportCreate_vulnerabilities CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PrivateVulnerabilityReportCreate_vulnerabilities(); + return new global::GitHub.Models.PrivateVulnerabilityReportCreate_vulnerabilities(); } /// /// The deserialization information for the current model @@ -59,10 +61,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"package", n => { Package = n.GetObjectValue(PrivateVulnerabilityReportCreate_vulnerabilities_package.CreateFromDiscriminatorValue); } }, - {"patched_versions", n => { PatchedVersions = n.GetStringValue(); } }, - {"vulnerable_functions", n => { VulnerableFunctions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"vulnerable_version_range", n => { VulnerableVersionRange = n.GetStringValue(); } }, + { "package", n => { Package = n.GetObjectValue(global::GitHub.Models.PrivateVulnerabilityReportCreate_vulnerabilities_package.CreateFromDiscriminatorValue); } }, + { "patched_versions", n => { PatchedVersions = n.GetStringValue(); } }, + { "vulnerable_functions", n => { VulnerableFunctions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "vulnerable_version_range", n => { VulnerableVersionRange = n.GetStringValue(); } }, }; } /// @@ -72,7 +74,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("package", Package); + writer.WriteObjectValue("package", Package); writer.WriteStringValue("patched_versions", PatchedVersions); writer.WriteCollectionOfPrimitiveValues("vulnerable_functions", VulnerableFunctions); writer.WriteStringValue("vulnerable_version_range", VulnerableVersionRange); diff --git a/src/GitHub/Models/PrivateVulnerabilityReportCreate_vulnerabilities_package.cs b/src/GitHub/Models/PrivateVulnerabilityReportCreate_vulnerabilities_package.cs index afbdd1f1..26f599b6 100644 --- a/src/GitHub/Models/PrivateVulnerabilityReportCreate_vulnerabilities_package.cs +++ b/src/GitHub/Models/PrivateVulnerabilityReportCreate_vulnerabilities_package.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The name of the package affected by the vulnerability. /// - public class PrivateVulnerabilityReportCreate_vulnerabilities_package : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PrivateVulnerabilityReportCreate_vulnerabilities_package : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The package's language or package management ecosystem. - public SecurityAdvisoryEcosystems? Ecosystem { get; set; } + public global::GitHub.Models.SecurityAdvisoryEcosystems? Ecosystem { get; set; } /// The unique package name within its ecosystem. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -23,7 +25,7 @@ public class PrivateVulnerabilityReportCreate_vulnerabilities_package : IAdditio public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PrivateVulnerabilityReportCreate_vulnerabilities_package() { @@ -32,12 +34,12 @@ public PrivateVulnerabilityReportCreate_vulnerabilities_package() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PrivateVulnerabilityReportCreate_vulnerabilities_package CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PrivateVulnerabilityReportCreate_vulnerabilities_package CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PrivateVulnerabilityReportCreate_vulnerabilities_package(); + return new global::GitHub.Models.PrivateVulnerabilityReportCreate_vulnerabilities_package(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"ecosystem", n => { Ecosystem = n.GetEnumValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "ecosystem", n => { Ecosystem = n.GetEnumValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("ecosystem", Ecosystem); + writer.WriteEnumValue("ecosystem", Ecosystem); writer.WriteStringValue("name", Name); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/Project.cs b/src/GitHub/Models/Project.cs index a70f9450..ce4c1bb5 100644 --- a/src/GitHub/Models/Project.cs +++ b/src/GitHub/Models/Project.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Projects are a way to organize columns and cards of work. /// - public class Project : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Project : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -33,10 +35,10 @@ public class Project : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Creator { get; set; } + public global::GitHub.Models.NullableSimpleUser? Creator { get; set; } #nullable restore #else - public NullableSimpleUser Creator { get; set; } + public global::GitHub.Models.NullableSimpleUser Creator { get; set; } #endif /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -67,7 +69,7 @@ public class Project : IAdditionalDataHolder, IParsable /// The number property public int? Number { get; set; } /// The baseline permission that all organization members have on this project. Only present if owner is an organization. - public Project_organization_permission? OrganizationPermission { get; set; } + public global::GitHub.Models.Project_organization_permission? OrganizationPermission { get; set; } /// The owner_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -97,7 +99,7 @@ public class Project : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Project() { @@ -106,12 +108,12 @@ public Project() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Project CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Project CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Project(); + return new global::GitHub.Models.Project(); } /// /// The deserialization information for the current model @@ -121,21 +123,21 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"body", n => { Body = n.GetStringValue(); } }, - {"columns_url", n => { ColumnsUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"creator", n => { Creator = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"number", n => { Number = n.GetIntValue(); } }, - {"organization_permission", n => { OrganizationPermission = n.GetEnumValue(); } }, - {"owner_url", n => { OwnerUrl = n.GetStringValue(); } }, - {"private", n => { Private = n.GetBoolValue(); } }, - {"state", n => { State = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "columns_url", n => { ColumnsUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "creator", n => { Creator = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "number", n => { Number = n.GetIntValue(); } }, + { "organization_permission", n => { OrganizationPermission = n.GetEnumValue(); } }, + { "owner_url", n => { OwnerUrl = n.GetStringValue(); } }, + { "private", n => { Private = n.GetBoolValue(); } }, + { "state", n => { State = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -148,13 +150,13 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("body", Body); writer.WriteStringValue("columns_url", ColumnsUrl); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); - writer.WriteObjectValue("creator", Creator); + writer.WriteObjectValue("creator", Creator); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteIntValue("id", Id); writer.WriteStringValue("name", Name); writer.WriteStringValue("node_id", NodeId); writer.WriteIntValue("number", Number); - writer.WriteEnumValue("organization_permission", OrganizationPermission); + writer.WriteEnumValue("organization_permission", OrganizationPermission); writer.WriteStringValue("owner_url", OwnerUrl); writer.WriteBoolValue("private", Private); writer.WriteStringValue("state", State); diff --git a/src/GitHub/Models/ProjectCard.cs b/src/GitHub/Models/ProjectCard.cs index 07901061..3008d333 100644 --- a/src/GitHub/Models/ProjectCard.cs +++ b/src/GitHub/Models/ProjectCard.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Project cards represent a scope of work. /// - public class ProjectCard : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProjectCard : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -43,10 +45,10 @@ public class ProjectCard : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Creator { get; set; } + public global::GitHub.Models.NullableSimpleUser? Creator { get; set; } #nullable restore #else - public NullableSimpleUser Creator { get; set; } + public global::GitHub.Models.NullableSimpleUser Creator { get; set; } #endif /// The project card's ID public long? Id { get; set; } @@ -93,7 +95,7 @@ public class ProjectCard : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProjectCard() { @@ -102,12 +104,12 @@ public ProjectCard() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProjectCard CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProjectCard CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProjectCard(); + return new global::GitHub.Models.ProjectCard(); } /// /// The deserialization information for the current model @@ -117,19 +119,19 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"archived", n => { Archived = n.GetBoolValue(); } }, - {"column_name", n => { ColumnName = n.GetStringValue(); } }, - {"column_url", n => { ColumnUrl = n.GetStringValue(); } }, - {"content_url", n => { ContentUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"creator", n => { Creator = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"note", n => { Note = n.GetStringValue(); } }, - {"project_id", n => { ProjectId = n.GetStringValue(); } }, - {"project_url", n => { ProjectUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "archived", n => { Archived = n.GetBoolValue(); } }, + { "column_name", n => { ColumnName = n.GetStringValue(); } }, + { "column_url", n => { ColumnUrl = n.GetStringValue(); } }, + { "content_url", n => { ContentUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "creator", n => { Creator = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "note", n => { Note = n.GetStringValue(); } }, + { "project_id", n => { ProjectId = n.GetStringValue(); } }, + { "project_url", n => { ProjectUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -144,7 +146,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("column_url", ColumnUrl); writer.WriteStringValue("content_url", ContentUrl); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); - writer.WriteObjectValue("creator", Creator); + writer.WriteObjectValue("creator", Creator); writer.WriteLongValue("id", Id); writer.WriteStringValue("node_id", NodeId); writer.WriteStringValue("note", Note); diff --git a/src/GitHub/Models/ProjectCollaboratorPermission.cs b/src/GitHub/Models/ProjectCollaboratorPermission.cs index d6225822..89d56d92 100644 --- a/src/GitHub/Models/ProjectCollaboratorPermission.cs +++ b/src/GitHub/Models/ProjectCollaboratorPermission.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Project Collaborator Permission /// - public class ProjectCollaboratorPermission : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProjectCollaboratorPermission : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,13 +25,13 @@ public class ProjectCollaboratorPermission : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? User { get; set; } + public global::GitHub.Models.NullableSimpleUser? User { get; set; } #nullable restore #else - public NullableSimpleUser User { get; set; } + public global::GitHub.Models.NullableSimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProjectCollaboratorPermission() { @@ -38,12 +40,12 @@ public ProjectCollaboratorPermission() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProjectCollaboratorPermission CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProjectCollaboratorPermission CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProjectCollaboratorPermission(); + return new global::GitHub.Models.ProjectCollaboratorPermission(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"permission", n => { Permission = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "permission", n => { Permission = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,7 +67,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("permission", Permission); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/ProjectColumn.cs b/src/GitHub/Models/ProjectColumn.cs index f29f6826..648cdbfd 100644 --- a/src/GitHub/Models/ProjectColumn.cs +++ b/src/GitHub/Models/ProjectColumn.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Project columns contain cards of work. /// - public class ProjectColumn : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProjectColumn : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -59,7 +61,7 @@ public class ProjectColumn : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProjectColumn() { @@ -68,12 +70,12 @@ public ProjectColumn() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProjectColumn CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProjectColumn CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProjectColumn(); + return new global::GitHub.Models.ProjectColumn(); } /// /// The deserialization information for the current model @@ -83,14 +85,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"cards_url", n => { CardsUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"project_url", n => { ProjectUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "cards_url", n => { CardsUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "project_url", n => { ProjectUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Project_organization_permission.cs b/src/GitHub/Models/Project_organization_permission.cs index 0bc756ef..2c9be234 100644 --- a/src/GitHub/Models/Project_organization_permission.cs +++ b/src/GitHub/Models/Project_organization_permission.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The baseline permission that all organization members have on this project. Only present if owner is an organization. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum Project_organization_permission { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/ProtectedBranch.cs b/src/GitHub/Models/ProtectedBranch.cs index b0011fa7..2a5aa594 100644 --- a/src/GitHub/Models/ProtectedBranch.cs +++ b/src/GitHub/Models/ProtectedBranch.cs @@ -1,112 +1,114 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Branch protections protect branches /// - public class ProtectedBranch : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProtectedBranch : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The allow_deletions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectedBranch_allow_deletions? AllowDeletions { get; set; } + public global::GitHub.Models.ProtectedBranch_allow_deletions? AllowDeletions { get; set; } #nullable restore #else - public ProtectedBranch_allow_deletions AllowDeletions { get; set; } + public global::GitHub.Models.ProtectedBranch_allow_deletions AllowDeletions { get; set; } #endif /// The allow_force_pushes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectedBranch_allow_force_pushes? AllowForcePushes { get; set; } + public global::GitHub.Models.ProtectedBranch_allow_force_pushes? AllowForcePushes { get; set; } #nullable restore #else - public ProtectedBranch_allow_force_pushes AllowForcePushes { get; set; } + public global::GitHub.Models.ProtectedBranch_allow_force_pushes AllowForcePushes { get; set; } #endif /// Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectedBranch_allow_fork_syncing? AllowForkSyncing { get; set; } + public global::GitHub.Models.ProtectedBranch_allow_fork_syncing? AllowForkSyncing { get; set; } #nullable restore #else - public ProtectedBranch_allow_fork_syncing AllowForkSyncing { get; set; } + public global::GitHub.Models.ProtectedBranch_allow_fork_syncing AllowForkSyncing { get; set; } #endif /// The block_creations property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectedBranch_block_creations? BlockCreations { get; set; } + public global::GitHub.Models.ProtectedBranch_block_creations? BlockCreations { get; set; } #nullable restore #else - public ProtectedBranch_block_creations BlockCreations { get; set; } + public global::GitHub.Models.ProtectedBranch_block_creations BlockCreations { get; set; } #endif /// The enforce_admins property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectedBranch_enforce_admins? EnforceAdmins { get; set; } + public global::GitHub.Models.ProtectedBranch_enforce_admins? EnforceAdmins { get; set; } #nullable restore #else - public ProtectedBranch_enforce_admins EnforceAdmins { get; set; } + public global::GitHub.Models.ProtectedBranch_enforce_admins EnforceAdmins { get; set; } #endif /// Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectedBranch_lock_branch? LockBranch { get; set; } + public global::GitHub.Models.ProtectedBranch_lock_branch? LockBranch { get; set; } #nullable restore #else - public ProtectedBranch_lock_branch LockBranch { get; set; } + public global::GitHub.Models.ProtectedBranch_lock_branch LockBranch { get; set; } #endif /// The required_conversation_resolution property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectedBranch_required_conversation_resolution? RequiredConversationResolution { get; set; } + public global::GitHub.Models.ProtectedBranch_required_conversation_resolution? RequiredConversationResolution { get; set; } #nullable restore #else - public ProtectedBranch_required_conversation_resolution RequiredConversationResolution { get; set; } + public global::GitHub.Models.ProtectedBranch_required_conversation_resolution RequiredConversationResolution { get; set; } #endif /// The required_linear_history property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectedBranch_required_linear_history? RequiredLinearHistory { get; set; } + public global::GitHub.Models.ProtectedBranch_required_linear_history? RequiredLinearHistory { get; set; } #nullable restore #else - public ProtectedBranch_required_linear_history RequiredLinearHistory { get; set; } + public global::GitHub.Models.ProtectedBranch_required_linear_history RequiredLinearHistory { get; set; } #endif /// The required_pull_request_reviews property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectedBranch_required_pull_request_reviews? RequiredPullRequestReviews { get; set; } + public global::GitHub.Models.ProtectedBranch_required_pull_request_reviews? RequiredPullRequestReviews { get; set; } #nullable restore #else - public ProtectedBranch_required_pull_request_reviews RequiredPullRequestReviews { get; set; } + public global::GitHub.Models.ProtectedBranch_required_pull_request_reviews RequiredPullRequestReviews { get; set; } #endif /// The required_signatures property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectedBranch_required_signatures? RequiredSignatures { get; set; } + public global::GitHub.Models.ProtectedBranch_required_signatures? RequiredSignatures { get; set; } #nullable restore #else - public ProtectedBranch_required_signatures RequiredSignatures { get; set; } + public global::GitHub.Models.ProtectedBranch_required_signatures RequiredSignatures { get; set; } #endif /// Status Check Policy #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public StatusCheckPolicy? RequiredStatusChecks { get; set; } + public global::GitHub.Models.StatusCheckPolicy? RequiredStatusChecks { get; set; } #nullable restore #else - public StatusCheckPolicy RequiredStatusChecks { get; set; } + public global::GitHub.Models.StatusCheckPolicy RequiredStatusChecks { get; set; } #endif /// Branch Restriction Policy #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public BranchRestrictionPolicy? Restrictions { get; set; } + public global::GitHub.Models.BranchRestrictionPolicy? Restrictions { get; set; } #nullable restore #else - public BranchRestrictionPolicy Restrictions { get; set; } + public global::GitHub.Models.BranchRestrictionPolicy Restrictions { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -117,7 +119,7 @@ public class ProtectedBranch : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProtectedBranch() { @@ -126,12 +128,12 @@ public ProtectedBranch() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectedBranch CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProtectedBranch CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectedBranch(); + return new global::GitHub.Models.ProtectedBranch(); } /// /// The deserialization information for the current model @@ -141,19 +143,19 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allow_deletions", n => { AllowDeletions = n.GetObjectValue(ProtectedBranch_allow_deletions.CreateFromDiscriminatorValue); } }, - {"allow_force_pushes", n => { AllowForcePushes = n.GetObjectValue(ProtectedBranch_allow_force_pushes.CreateFromDiscriminatorValue); } }, - {"allow_fork_syncing", n => { AllowForkSyncing = n.GetObjectValue(ProtectedBranch_allow_fork_syncing.CreateFromDiscriminatorValue); } }, - {"block_creations", n => { BlockCreations = n.GetObjectValue(ProtectedBranch_block_creations.CreateFromDiscriminatorValue); } }, - {"enforce_admins", n => { EnforceAdmins = n.GetObjectValue(ProtectedBranch_enforce_admins.CreateFromDiscriminatorValue); } }, - {"lock_branch", n => { LockBranch = n.GetObjectValue(ProtectedBranch_lock_branch.CreateFromDiscriminatorValue); } }, - {"required_conversation_resolution", n => { RequiredConversationResolution = n.GetObjectValue(ProtectedBranch_required_conversation_resolution.CreateFromDiscriminatorValue); } }, - {"required_linear_history", n => { RequiredLinearHistory = n.GetObjectValue(ProtectedBranch_required_linear_history.CreateFromDiscriminatorValue); } }, - {"required_pull_request_reviews", n => { RequiredPullRequestReviews = n.GetObjectValue(ProtectedBranch_required_pull_request_reviews.CreateFromDiscriminatorValue); } }, - {"required_signatures", n => { RequiredSignatures = n.GetObjectValue(ProtectedBranch_required_signatures.CreateFromDiscriminatorValue); } }, - {"required_status_checks", n => { RequiredStatusChecks = n.GetObjectValue(StatusCheckPolicy.CreateFromDiscriminatorValue); } }, - {"restrictions", n => { Restrictions = n.GetObjectValue(BranchRestrictionPolicy.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "allow_deletions", n => { AllowDeletions = n.GetObjectValue(global::GitHub.Models.ProtectedBranch_allow_deletions.CreateFromDiscriminatorValue); } }, + { "allow_force_pushes", n => { AllowForcePushes = n.GetObjectValue(global::GitHub.Models.ProtectedBranch_allow_force_pushes.CreateFromDiscriminatorValue); } }, + { "allow_fork_syncing", n => { AllowForkSyncing = n.GetObjectValue(global::GitHub.Models.ProtectedBranch_allow_fork_syncing.CreateFromDiscriminatorValue); } }, + { "block_creations", n => { BlockCreations = n.GetObjectValue(global::GitHub.Models.ProtectedBranch_block_creations.CreateFromDiscriminatorValue); } }, + { "enforce_admins", n => { EnforceAdmins = n.GetObjectValue(global::GitHub.Models.ProtectedBranch_enforce_admins.CreateFromDiscriminatorValue); } }, + { "lock_branch", n => { LockBranch = n.GetObjectValue(global::GitHub.Models.ProtectedBranch_lock_branch.CreateFromDiscriminatorValue); } }, + { "required_conversation_resolution", n => { RequiredConversationResolution = n.GetObjectValue(global::GitHub.Models.ProtectedBranch_required_conversation_resolution.CreateFromDiscriminatorValue); } }, + { "required_linear_history", n => { RequiredLinearHistory = n.GetObjectValue(global::GitHub.Models.ProtectedBranch_required_linear_history.CreateFromDiscriminatorValue); } }, + { "required_pull_request_reviews", n => { RequiredPullRequestReviews = n.GetObjectValue(global::GitHub.Models.ProtectedBranch_required_pull_request_reviews.CreateFromDiscriminatorValue); } }, + { "required_signatures", n => { RequiredSignatures = n.GetObjectValue(global::GitHub.Models.ProtectedBranch_required_signatures.CreateFromDiscriminatorValue); } }, + { "required_status_checks", n => { RequiredStatusChecks = n.GetObjectValue(global::GitHub.Models.StatusCheckPolicy.CreateFromDiscriminatorValue); } }, + { "restrictions", n => { Restrictions = n.GetObjectValue(global::GitHub.Models.BranchRestrictionPolicy.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -163,18 +165,18 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("allow_deletions", AllowDeletions); - writer.WriteObjectValue("allow_force_pushes", AllowForcePushes); - writer.WriteObjectValue("allow_fork_syncing", AllowForkSyncing); - writer.WriteObjectValue("block_creations", BlockCreations); - writer.WriteObjectValue("enforce_admins", EnforceAdmins); - writer.WriteObjectValue("lock_branch", LockBranch); - writer.WriteObjectValue("required_conversation_resolution", RequiredConversationResolution); - writer.WriteObjectValue("required_linear_history", RequiredLinearHistory); - writer.WriteObjectValue("required_pull_request_reviews", RequiredPullRequestReviews); - writer.WriteObjectValue("required_signatures", RequiredSignatures); - writer.WriteObjectValue("required_status_checks", RequiredStatusChecks); - writer.WriteObjectValue("restrictions", Restrictions); + writer.WriteObjectValue("allow_deletions", AllowDeletions); + writer.WriteObjectValue("allow_force_pushes", AllowForcePushes); + writer.WriteObjectValue("allow_fork_syncing", AllowForkSyncing); + writer.WriteObjectValue("block_creations", BlockCreations); + writer.WriteObjectValue("enforce_admins", EnforceAdmins); + writer.WriteObjectValue("lock_branch", LockBranch); + writer.WriteObjectValue("required_conversation_resolution", RequiredConversationResolution); + writer.WriteObjectValue("required_linear_history", RequiredLinearHistory); + writer.WriteObjectValue("required_pull_request_reviews", RequiredPullRequestReviews); + writer.WriteObjectValue("required_signatures", RequiredSignatures); + writer.WriteObjectValue("required_status_checks", RequiredStatusChecks); + writer.WriteObjectValue("restrictions", Restrictions); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/ProtectedBranchAdminEnforced.cs b/src/GitHub/Models/ProtectedBranchAdminEnforced.cs index 42c6af48..0f8a828a 100644 --- a/src/GitHub/Models/ProtectedBranchAdminEnforced.cs +++ b/src/GitHub/Models/ProtectedBranchAdminEnforced.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Protected Branch Admin Enforced /// - public class ProtectedBranchAdminEnforced : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProtectedBranchAdminEnforced : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,7 +25,7 @@ public class ProtectedBranchAdminEnforced : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProtectedBranchAdminEnforced() { @@ -32,12 +34,12 @@ public ProtectedBranchAdminEnforced() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectedBranchAdminEnforced CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProtectedBranchAdminEnforced CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectedBranchAdminEnforced(); + return new global::GitHub.Models.ProtectedBranchAdminEnforced(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enabled", n => { Enabled = n.GetBoolValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ProtectedBranchPullRequestReview.cs b/src/GitHub/Models/ProtectedBranchPullRequestReview.cs index 2a052742..74d8e7fa 100644 --- a/src/GitHub/Models/ProtectedBranchPullRequestReview.cs +++ b/src/GitHub/Models/ProtectedBranchPullRequestReview.cs @@ -1,32 +1,34 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Protected Branch Pull Request Review /// - public class ProtectedBranchPullRequestReview : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProtectedBranchPullRequestReview : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// Allow specific users, teams, or apps to bypass pull request requirements. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectedBranchPullRequestReview_bypass_pull_request_allowances? BypassPullRequestAllowances { get; set; } + public global::GitHub.Models.ProtectedBranchPullRequestReview_bypass_pull_request_allowances? BypassPullRequestAllowances { get; set; } #nullable restore #else - public ProtectedBranchPullRequestReview_bypass_pull_request_allowances BypassPullRequestAllowances { get; set; } + public global::GitHub.Models.ProtectedBranchPullRequestReview_bypass_pull_request_allowances BypassPullRequestAllowances { get; set; } #endif /// The dismissal_restrictions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectedBranchPullRequestReview_dismissal_restrictions? DismissalRestrictions { get; set; } + public global::GitHub.Models.ProtectedBranchPullRequestReview_dismissal_restrictions? DismissalRestrictions { get; set; } #nullable restore #else - public ProtectedBranchPullRequestReview_dismissal_restrictions DismissalRestrictions { get; set; } + public global::GitHub.Models.ProtectedBranchPullRequestReview_dismissal_restrictions DismissalRestrictions { get; set; } #endif /// The dismiss_stale_reviews property public bool? DismissStaleReviews { get; set; } @@ -45,7 +47,7 @@ public class ProtectedBranchPullRequestReview : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProtectedBranchPullRequestReview() { @@ -54,12 +56,12 @@ public ProtectedBranchPullRequestReview() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectedBranchPullRequestReview CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProtectedBranchPullRequestReview CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectedBranchPullRequestReview(); + return new global::GitHub.Models.ProtectedBranchPullRequestReview(); } /// /// The deserialization information for the current model @@ -69,13 +71,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"bypass_pull_request_allowances", n => { BypassPullRequestAllowances = n.GetObjectValue(ProtectedBranchPullRequestReview_bypass_pull_request_allowances.CreateFromDiscriminatorValue); } }, - {"dismiss_stale_reviews", n => { DismissStaleReviews = n.GetBoolValue(); } }, - {"dismissal_restrictions", n => { DismissalRestrictions = n.GetObjectValue(ProtectedBranchPullRequestReview_dismissal_restrictions.CreateFromDiscriminatorValue); } }, - {"require_code_owner_reviews", n => { RequireCodeOwnerReviews = n.GetBoolValue(); } }, - {"require_last_push_approval", n => { RequireLastPushApproval = n.GetBoolValue(); } }, - {"required_approving_review_count", n => { RequiredApprovingReviewCount = n.GetIntValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "bypass_pull_request_allowances", n => { BypassPullRequestAllowances = n.GetObjectValue(global::GitHub.Models.ProtectedBranchPullRequestReview_bypass_pull_request_allowances.CreateFromDiscriminatorValue); } }, + { "dismiss_stale_reviews", n => { DismissStaleReviews = n.GetBoolValue(); } }, + { "dismissal_restrictions", n => { DismissalRestrictions = n.GetObjectValue(global::GitHub.Models.ProtectedBranchPullRequestReview_dismissal_restrictions.CreateFromDiscriminatorValue); } }, + { "require_code_owner_reviews", n => { RequireCodeOwnerReviews = n.GetBoolValue(); } }, + { "require_last_push_approval", n => { RequireLastPushApproval = n.GetBoolValue(); } }, + { "required_approving_review_count", n => { RequiredApprovingReviewCount = n.GetIntValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -85,8 +87,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("bypass_pull_request_allowances", BypassPullRequestAllowances); - writer.WriteObjectValue("dismissal_restrictions", DismissalRestrictions); + writer.WriteObjectValue("bypass_pull_request_allowances", BypassPullRequestAllowances); + writer.WriteObjectValue("dismissal_restrictions", DismissalRestrictions); writer.WriteBoolValue("dismiss_stale_reviews", DismissStaleReviews); writer.WriteBoolValue("require_code_owner_reviews", RequireCodeOwnerReviews); writer.WriteIntValue("required_approving_review_count", RequiredApprovingReviewCount); diff --git a/src/GitHub/Models/ProtectedBranchPullRequestReview_bypass_pull_request_allowances.cs b/src/GitHub/Models/ProtectedBranchPullRequestReview_bypass_pull_request_allowances.cs index 0ec24223..fef72d72 100644 --- a/src/GitHub/Models/ProtectedBranchPullRequestReview_bypass_pull_request_allowances.cs +++ b/src/GitHub/Models/ProtectedBranchPullRequestReview_bypass_pull_request_allowances.cs @@ -1,43 +1,45 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Allow specific users, teams, or apps to bypass pull request requirements. /// - public class ProtectedBranchPullRequestReview_bypass_pull_request_allowances : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProtectedBranchPullRequestReview_bypass_pull_request_allowances : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The list of apps allowed to bypass pull request requirements. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Apps { get; set; } + public List? Apps { get; set; } #nullable restore #else - public List Apps { get; set; } + public List Apps { get; set; } #endif /// The list of teams allowed to bypass pull request requirements. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Teams { get; set; } + public List? Teams { get; set; } #nullable restore #else - public List Teams { get; set; } + public List Teams { get; set; } #endif /// The list of users allowed to bypass pull request requirements. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Users { get; set; } + public List? Users { get; set; } #nullable restore #else - public List Users { get; set; } + public List Users { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProtectedBranchPullRequestReview_bypass_pull_request_allowances() { @@ -46,12 +48,12 @@ public ProtectedBranchPullRequestReview_bypass_pull_request_allowances() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectedBranchPullRequestReview_bypass_pull_request_allowances CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProtectedBranchPullRequestReview_bypass_pull_request_allowances CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectedBranchPullRequestReview_bypass_pull_request_allowances(); + return new global::GitHub.Models.ProtectedBranchPullRequestReview_bypass_pull_request_allowances(); } /// /// The deserialization information for the current model @@ -61,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"apps", n => { Apps = n.GetCollectionOfObjectValues(Integration.CreateFromDiscriminatorValue)?.ToList(); } }, - {"teams", n => { Teams = n.GetCollectionOfObjectValues(Team.CreateFromDiscriminatorValue)?.ToList(); } }, - {"users", n => { Users = n.GetCollectionOfObjectValues(SimpleUser.CreateFromDiscriminatorValue)?.ToList(); } }, + { "apps", n => { Apps = n.GetCollectionOfObjectValues(global::GitHub.Models.Integration.CreateFromDiscriminatorValue)?.AsList(); } }, + { "teams", n => { Teams = n.GetCollectionOfObjectValues(global::GitHub.Models.Team.CreateFromDiscriminatorValue)?.AsList(); } }, + { "users", n => { Users = n.GetCollectionOfObjectValues(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -73,9 +75,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("apps", Apps); - writer.WriteCollectionOfObjectValues("teams", Teams); - writer.WriteCollectionOfObjectValues("users", Users); + writer.WriteCollectionOfObjectValues("apps", Apps); + writer.WriteCollectionOfObjectValues("teams", Teams); + writer.WriteCollectionOfObjectValues("users", Users); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/ProtectedBranchPullRequestReview_dismissal_restrictions.cs b/src/GitHub/Models/ProtectedBranchPullRequestReview_dismissal_restrictions.cs index 11540137..defe1a88 100644 --- a/src/GitHub/Models/ProtectedBranchPullRequestReview_dismissal_restrictions.cs +++ b/src/GitHub/Models/ProtectedBranchPullRequestReview_dismissal_restrictions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ProtectedBranchPullRequestReview_dismissal_restrictions : IAdditionalDataHolder, IParsable + public partial class ProtectedBranchPullRequestReview_dismissal_restrictions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,18 +16,18 @@ public class ProtectedBranchPullRequestReview_dismissal_restrictions : IAddition /// The list of apps with review dismissal access. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Apps { get; set; } + public List? Apps { get; set; } #nullable restore #else - public List Apps { get; set; } + public List Apps { get; set; } #endif /// The list of teams with review dismissal access. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Teams { get; set; } + public List? Teams { get; set; } #nullable restore #else - public List Teams { get; set; } + public List Teams { get; set; } #endif /// The teams_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -46,10 +48,10 @@ public class ProtectedBranchPullRequestReview_dismissal_restrictions : IAddition /// The list of users with review dismissal access. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Users { get; set; } + public List? Users { get; set; } #nullable restore #else - public List Users { get; set; } + public List Users { get; set; } #endif /// The users_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -60,7 +62,7 @@ public class ProtectedBranchPullRequestReview_dismissal_restrictions : IAddition public string UsersUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProtectedBranchPullRequestReview_dismissal_restrictions() { @@ -69,12 +71,12 @@ public ProtectedBranchPullRequestReview_dismissal_restrictions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectedBranchPullRequestReview_dismissal_restrictions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProtectedBranchPullRequestReview_dismissal_restrictions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectedBranchPullRequestReview_dismissal_restrictions(); + return new global::GitHub.Models.ProtectedBranchPullRequestReview_dismissal_restrictions(); } /// /// The deserialization information for the current model @@ -84,12 +86,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"apps", n => { Apps = n.GetCollectionOfObjectValues(Integration.CreateFromDiscriminatorValue)?.ToList(); } }, - {"teams", n => { Teams = n.GetCollectionOfObjectValues(Team.CreateFromDiscriminatorValue)?.ToList(); } }, - {"teams_url", n => { TeamsUrl = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"users", n => { Users = n.GetCollectionOfObjectValues(SimpleUser.CreateFromDiscriminatorValue)?.ToList(); } }, - {"users_url", n => { UsersUrl = n.GetStringValue(); } }, + { "apps", n => { Apps = n.GetCollectionOfObjectValues(global::GitHub.Models.Integration.CreateFromDiscriminatorValue)?.AsList(); } }, + { "teams", n => { Teams = n.GetCollectionOfObjectValues(global::GitHub.Models.Team.CreateFromDiscriminatorValue)?.AsList(); } }, + { "teams_url", n => { TeamsUrl = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "users", n => { Users = n.GetCollectionOfObjectValues(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue)?.AsList(); } }, + { "users_url", n => { UsersUrl = n.GetStringValue(); } }, }; } /// @@ -99,11 +101,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("apps", Apps); - writer.WriteCollectionOfObjectValues("teams", Teams); + writer.WriteCollectionOfObjectValues("apps", Apps); + writer.WriteCollectionOfObjectValues("teams", Teams); writer.WriteStringValue("teams_url", TeamsUrl); writer.WriteStringValue("url", Url); - writer.WriteCollectionOfObjectValues("users", Users); + writer.WriteCollectionOfObjectValues("users", Users); writer.WriteStringValue("users_url", UsersUrl); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/ProtectedBranchRequiredStatusCheck.cs b/src/GitHub/Models/ProtectedBranchRequiredStatusCheck.cs index d1894158..e729db7e 100644 --- a/src/GitHub/Models/ProtectedBranchRequiredStatusCheck.cs +++ b/src/GitHub/Models/ProtectedBranchRequiredStatusCheck.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Protected Branch Required Status Check /// - public class ProtectedBranchRequiredStatusCheck : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProtectedBranchRequiredStatusCheck : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The checks property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Checks { get; set; } + public List? Checks { get; set; } #nullable restore #else - public List Checks { get; set; } + public List Checks { get; set; } #endif /// The contexts property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -55,7 +57,7 @@ public class ProtectedBranchRequiredStatusCheck : IAdditionalDataHolder, IParsab public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProtectedBranchRequiredStatusCheck() { @@ -64,12 +66,12 @@ public ProtectedBranchRequiredStatusCheck() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectedBranchRequiredStatusCheck CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProtectedBranchRequiredStatusCheck CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectedBranchRequiredStatusCheck(); + return new global::GitHub.Models.ProtectedBranchRequiredStatusCheck(); } /// /// The deserialization information for the current model @@ -79,12 +81,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"checks", n => { Checks = n.GetCollectionOfObjectValues(ProtectedBranchRequiredStatusCheck_checks.CreateFromDiscriminatorValue)?.ToList(); } }, - {"contexts", n => { Contexts = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"contexts_url", n => { ContextsUrl = n.GetStringValue(); } }, - {"enforcement_level", n => { EnforcementLevel = n.GetStringValue(); } }, - {"strict", n => { Strict = n.GetBoolValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "checks", n => { Checks = n.GetCollectionOfObjectValues(global::GitHub.Models.ProtectedBranchRequiredStatusCheck_checks.CreateFromDiscriminatorValue)?.AsList(); } }, + { "contexts", n => { Contexts = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "contexts_url", n => { ContextsUrl = n.GetStringValue(); } }, + { "enforcement_level", n => { EnforcementLevel = n.GetStringValue(); } }, + { "strict", n => { Strict = n.GetBoolValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -94,7 +96,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("checks", Checks); + writer.WriteCollectionOfObjectValues("checks", Checks); writer.WriteCollectionOfPrimitiveValues("contexts", Contexts); writer.WriteStringValue("contexts_url", ContextsUrl); writer.WriteStringValue("enforcement_level", EnforcementLevel); diff --git a/src/GitHub/Models/ProtectedBranchRequiredStatusCheck_checks.cs b/src/GitHub/Models/ProtectedBranchRequiredStatusCheck_checks.cs index 8ffe36e9..af7c6649 100644 --- a/src/GitHub/Models/ProtectedBranchRequiredStatusCheck_checks.cs +++ b/src/GitHub/Models/ProtectedBranchRequiredStatusCheck_checks.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ProtectedBranchRequiredStatusCheck_checks : IAdditionalDataHolder, IParsable + public partial class ProtectedBranchRequiredStatusCheck_checks : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class ProtectedBranchRequiredStatusCheck_checks : IAdditionalDataHolder, public string Context { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProtectedBranchRequiredStatusCheck_checks() { @@ -31,12 +33,12 @@ public ProtectedBranchRequiredStatusCheck_checks() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectedBranchRequiredStatusCheck_checks CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProtectedBranchRequiredStatusCheck_checks CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectedBranchRequiredStatusCheck_checks(); + return new global::GitHub.Models.ProtectedBranchRequiredStatusCheck_checks(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"app_id", n => { AppId = n.GetIntValue(); } }, - {"context", n => { Context = n.GetStringValue(); } }, + { "app_id", n => { AppId = n.GetIntValue(); } }, + { "context", n => { Context = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ProtectedBranch_allow_deletions.cs b/src/GitHub/Models/ProtectedBranch_allow_deletions.cs index 63e391d4..4670307d 100644 --- a/src/GitHub/Models/ProtectedBranch_allow_deletions.cs +++ b/src/GitHub/Models/ProtectedBranch_allow_deletions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ProtectedBranch_allow_deletions : IParsable + public partial class ProtectedBranch_allow_deletions : IParsable #pragma warning restore CS1591 { /// The enabled property @@ -14,12 +16,12 @@ public class ProtectedBranch_allow_deletions : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectedBranch_allow_deletions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProtectedBranch_allow_deletions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectedBranch_allow_deletions(); + return new global::GitHub.Models.ProtectedBranch_allow_deletions(); } /// /// The deserialization information for the current model @@ -29,7 +31,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enabled", n => { Enabled = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/ProtectedBranch_allow_force_pushes.cs b/src/GitHub/Models/ProtectedBranch_allow_force_pushes.cs index cc16b649..81549304 100644 --- a/src/GitHub/Models/ProtectedBranch_allow_force_pushes.cs +++ b/src/GitHub/Models/ProtectedBranch_allow_force_pushes.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ProtectedBranch_allow_force_pushes : IParsable + public partial class ProtectedBranch_allow_force_pushes : IParsable #pragma warning restore CS1591 { /// The enabled property @@ -14,12 +16,12 @@ public class ProtectedBranch_allow_force_pushes : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectedBranch_allow_force_pushes CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProtectedBranch_allow_force_pushes CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectedBranch_allow_force_pushes(); + return new global::GitHub.Models.ProtectedBranch_allow_force_pushes(); } /// /// The deserialization information for the current model @@ -29,7 +31,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enabled", n => { Enabled = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/ProtectedBranch_allow_fork_syncing.cs b/src/GitHub/Models/ProtectedBranch_allow_fork_syncing.cs index 74eefcdb..6b9c766f 100644 --- a/src/GitHub/Models/ProtectedBranch_allow_fork_syncing.cs +++ b/src/GitHub/Models/ProtectedBranch_allow_fork_syncing.cs @@ -1,26 +1,28 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. /// - public class ProtectedBranch_allow_fork_syncing : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProtectedBranch_allow_fork_syncing : IParsable { /// The enabled property public bool? Enabled { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectedBranch_allow_fork_syncing CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProtectedBranch_allow_fork_syncing CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectedBranch_allow_fork_syncing(); + return new global::GitHub.Models.ProtectedBranch_allow_fork_syncing(); } /// /// The deserialization information for the current model @@ -30,7 +32,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enabled", n => { Enabled = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/ProtectedBranch_block_creations.cs b/src/GitHub/Models/ProtectedBranch_block_creations.cs index 12f0d019..7283c9de 100644 --- a/src/GitHub/Models/ProtectedBranch_block_creations.cs +++ b/src/GitHub/Models/ProtectedBranch_block_creations.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ProtectedBranch_block_creations : IParsable + public partial class ProtectedBranch_block_creations : IParsable #pragma warning restore CS1591 { /// The enabled property @@ -14,12 +16,12 @@ public class ProtectedBranch_block_creations : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectedBranch_block_creations CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProtectedBranch_block_creations CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectedBranch_block_creations(); + return new global::GitHub.Models.ProtectedBranch_block_creations(); } /// /// The deserialization information for the current model @@ -29,7 +31,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enabled", n => { Enabled = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/ProtectedBranch_enforce_admins.cs b/src/GitHub/Models/ProtectedBranch_enforce_admins.cs index edba05d7..780260a0 100644 --- a/src/GitHub/Models/ProtectedBranch_enforce_admins.cs +++ b/src/GitHub/Models/ProtectedBranch_enforce_admins.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ProtectedBranch_enforce_admins : IParsable + public partial class ProtectedBranch_enforce_admins : IParsable #pragma warning restore CS1591 { /// The enabled property @@ -22,12 +24,12 @@ public class ProtectedBranch_enforce_admins : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectedBranch_enforce_admins CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProtectedBranch_enforce_admins CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectedBranch_enforce_admins(); + return new global::GitHub.Models.ProtectedBranch_enforce_admins(); } /// /// The deserialization information for the current model @@ -37,8 +39,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enabled", n => { Enabled = n.GetBoolValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ProtectedBranch_lock_branch.cs b/src/GitHub/Models/ProtectedBranch_lock_branch.cs index d516b6c6..d8111838 100644 --- a/src/GitHub/Models/ProtectedBranch_lock_branch.cs +++ b/src/GitHub/Models/ProtectedBranch_lock_branch.cs @@ -1,26 +1,28 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. /// - public class ProtectedBranch_lock_branch : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProtectedBranch_lock_branch : IParsable { /// The enabled property public bool? Enabled { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectedBranch_lock_branch CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProtectedBranch_lock_branch CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectedBranch_lock_branch(); + return new global::GitHub.Models.ProtectedBranch_lock_branch(); } /// /// The deserialization information for the current model @@ -30,7 +32,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enabled", n => { Enabled = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/ProtectedBranch_required_conversation_resolution.cs b/src/GitHub/Models/ProtectedBranch_required_conversation_resolution.cs index 4262487e..61c93dd1 100644 --- a/src/GitHub/Models/ProtectedBranch_required_conversation_resolution.cs +++ b/src/GitHub/Models/ProtectedBranch_required_conversation_resolution.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ProtectedBranch_required_conversation_resolution : IParsable + public partial class ProtectedBranch_required_conversation_resolution : IParsable #pragma warning restore CS1591 { /// The enabled property @@ -14,12 +16,12 @@ public class ProtectedBranch_required_conversation_resolution : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectedBranch_required_conversation_resolution CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProtectedBranch_required_conversation_resolution CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectedBranch_required_conversation_resolution(); + return new global::GitHub.Models.ProtectedBranch_required_conversation_resolution(); } /// /// The deserialization information for the current model @@ -29,7 +31,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enabled", n => { Enabled = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/ProtectedBranch_required_linear_history.cs b/src/GitHub/Models/ProtectedBranch_required_linear_history.cs index f563cddf..ed8d5890 100644 --- a/src/GitHub/Models/ProtectedBranch_required_linear_history.cs +++ b/src/GitHub/Models/ProtectedBranch_required_linear_history.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ProtectedBranch_required_linear_history : IParsable + public partial class ProtectedBranch_required_linear_history : IParsable #pragma warning restore CS1591 { /// The enabled property @@ -14,12 +16,12 @@ public class ProtectedBranch_required_linear_history : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectedBranch_required_linear_history CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProtectedBranch_required_linear_history CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectedBranch_required_linear_history(); + return new global::GitHub.Models.ProtectedBranch_required_linear_history(); } /// /// The deserialization information for the current model @@ -29,7 +31,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enabled", n => { Enabled = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/ProtectedBranch_required_pull_request_reviews.cs b/src/GitHub/Models/ProtectedBranch_required_pull_request_reviews.cs index 6fef8a96..003f9a12 100644 --- a/src/GitHub/Models/ProtectedBranch_required_pull_request_reviews.cs +++ b/src/GitHub/Models/ProtectedBranch_required_pull_request_reviews.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ProtectedBranch_required_pull_request_reviews : IAdditionalDataHolder, IParsable + public partial class ProtectedBranch_required_pull_request_reviews : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,18 +16,18 @@ public class ProtectedBranch_required_pull_request_reviews : IAdditionalDataHold /// The bypass_pull_request_allowances property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectedBranch_required_pull_request_reviews_bypass_pull_request_allowances? BypassPullRequestAllowances { get; set; } + public global::GitHub.Models.ProtectedBranch_required_pull_request_reviews_bypass_pull_request_allowances? BypassPullRequestAllowances { get; set; } #nullable restore #else - public ProtectedBranch_required_pull_request_reviews_bypass_pull_request_allowances BypassPullRequestAllowances { get; set; } + public global::GitHub.Models.ProtectedBranch_required_pull_request_reviews_bypass_pull_request_allowances BypassPullRequestAllowances { get; set; } #endif /// The dismissal_restrictions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectedBranch_required_pull_request_reviews_dismissal_restrictions? DismissalRestrictions { get; set; } + public global::GitHub.Models.ProtectedBranch_required_pull_request_reviews_dismissal_restrictions? DismissalRestrictions { get; set; } #nullable restore #else - public ProtectedBranch_required_pull_request_reviews_dismissal_restrictions DismissalRestrictions { get; set; } + public global::GitHub.Models.ProtectedBranch_required_pull_request_reviews_dismissal_restrictions DismissalRestrictions { get; set; } #endif /// The dismiss_stale_reviews property public bool? DismissStaleReviews { get; set; } @@ -44,7 +46,7 @@ public class ProtectedBranch_required_pull_request_reviews : IAdditionalDataHold public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProtectedBranch_required_pull_request_reviews() { @@ -53,12 +55,12 @@ public ProtectedBranch_required_pull_request_reviews() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectedBranch_required_pull_request_reviews CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProtectedBranch_required_pull_request_reviews CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectedBranch_required_pull_request_reviews(); + return new global::GitHub.Models.ProtectedBranch_required_pull_request_reviews(); } /// /// The deserialization information for the current model @@ -68,13 +70,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"bypass_pull_request_allowances", n => { BypassPullRequestAllowances = n.GetObjectValue(ProtectedBranch_required_pull_request_reviews_bypass_pull_request_allowances.CreateFromDiscriminatorValue); } }, - {"dismiss_stale_reviews", n => { DismissStaleReviews = n.GetBoolValue(); } }, - {"dismissal_restrictions", n => { DismissalRestrictions = n.GetObjectValue(ProtectedBranch_required_pull_request_reviews_dismissal_restrictions.CreateFromDiscriminatorValue); } }, - {"require_code_owner_reviews", n => { RequireCodeOwnerReviews = n.GetBoolValue(); } }, - {"require_last_push_approval", n => { RequireLastPushApproval = n.GetBoolValue(); } }, - {"required_approving_review_count", n => { RequiredApprovingReviewCount = n.GetIntValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "bypass_pull_request_allowances", n => { BypassPullRequestAllowances = n.GetObjectValue(global::GitHub.Models.ProtectedBranch_required_pull_request_reviews_bypass_pull_request_allowances.CreateFromDiscriminatorValue); } }, + { "dismiss_stale_reviews", n => { DismissStaleReviews = n.GetBoolValue(); } }, + { "dismissal_restrictions", n => { DismissalRestrictions = n.GetObjectValue(global::GitHub.Models.ProtectedBranch_required_pull_request_reviews_dismissal_restrictions.CreateFromDiscriminatorValue); } }, + { "require_code_owner_reviews", n => { RequireCodeOwnerReviews = n.GetBoolValue(); } }, + { "require_last_push_approval", n => { RequireLastPushApproval = n.GetBoolValue(); } }, + { "required_approving_review_count", n => { RequiredApprovingReviewCount = n.GetIntValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -84,8 +86,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("bypass_pull_request_allowances", BypassPullRequestAllowances); - writer.WriteObjectValue("dismissal_restrictions", DismissalRestrictions); + writer.WriteObjectValue("bypass_pull_request_allowances", BypassPullRequestAllowances); + writer.WriteObjectValue("dismissal_restrictions", DismissalRestrictions); writer.WriteBoolValue("dismiss_stale_reviews", DismissStaleReviews); writer.WriteBoolValue("require_code_owner_reviews", RequireCodeOwnerReviews); writer.WriteIntValue("required_approving_review_count", RequiredApprovingReviewCount); diff --git a/src/GitHub/Models/ProtectedBranch_required_pull_request_reviews_bypass_pull_request_allowances.cs b/src/GitHub/Models/ProtectedBranch_required_pull_request_reviews_bypass_pull_request_allowances.cs index 98b171c9..9a6cb06c 100644 --- a/src/GitHub/Models/ProtectedBranch_required_pull_request_reviews_bypass_pull_request_allowances.cs +++ b/src/GitHub/Models/ProtectedBranch_required_pull_request_reviews_bypass_pull_request_allowances.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ProtectedBranch_required_pull_request_reviews_bypass_pull_request_allowances : IAdditionalDataHolder, IParsable + public partial class ProtectedBranch_required_pull_request_reviews_bypass_pull_request_allowances : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,29 +16,29 @@ public class ProtectedBranch_required_pull_request_reviews_bypass_pull_request_a /// The apps property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Apps { get; set; } + public List? Apps { get; set; } #nullable restore #else - public List Apps { get; set; } + public List Apps { get; set; } #endif /// The teams property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Teams { get; set; } + public List? Teams { get; set; } #nullable restore #else - public List Teams { get; set; } + public List Teams { get; set; } #endif /// The users property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Users { get; set; } + public List? Users { get; set; } #nullable restore #else - public List Users { get; set; } + public List Users { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProtectedBranch_required_pull_request_reviews_bypass_pull_request_allowances() { @@ -45,12 +47,12 @@ public ProtectedBranch_required_pull_request_reviews_bypass_pull_request_allowan /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectedBranch_required_pull_request_reviews_bypass_pull_request_allowances CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProtectedBranch_required_pull_request_reviews_bypass_pull_request_allowances CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectedBranch_required_pull_request_reviews_bypass_pull_request_allowances(); + return new global::GitHub.Models.ProtectedBranch_required_pull_request_reviews_bypass_pull_request_allowances(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"apps", n => { Apps = n.GetCollectionOfObjectValues(Integration.CreateFromDiscriminatorValue)?.ToList(); } }, - {"teams", n => { Teams = n.GetCollectionOfObjectValues(Team.CreateFromDiscriminatorValue)?.ToList(); } }, - {"users", n => { Users = n.GetCollectionOfObjectValues(SimpleUser.CreateFromDiscriminatorValue)?.ToList(); } }, + { "apps", n => { Apps = n.GetCollectionOfObjectValues(global::GitHub.Models.Integration.CreateFromDiscriminatorValue)?.AsList(); } }, + { "teams", n => { Teams = n.GetCollectionOfObjectValues(global::GitHub.Models.Team.CreateFromDiscriminatorValue)?.AsList(); } }, + { "users", n => { Users = n.GetCollectionOfObjectValues(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -72,9 +74,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("apps", Apps); - writer.WriteCollectionOfObjectValues("teams", Teams); - writer.WriteCollectionOfObjectValues("users", Users); + writer.WriteCollectionOfObjectValues("apps", Apps); + writer.WriteCollectionOfObjectValues("teams", Teams); + writer.WriteCollectionOfObjectValues("users", Users); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/ProtectedBranch_required_pull_request_reviews_dismissal_restrictions.cs b/src/GitHub/Models/ProtectedBranch_required_pull_request_reviews_dismissal_restrictions.cs index 2624e676..0350698d 100644 --- a/src/GitHub/Models/ProtectedBranch_required_pull_request_reviews_dismissal_restrictions.cs +++ b/src/GitHub/Models/ProtectedBranch_required_pull_request_reviews_dismissal_restrictions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ProtectedBranch_required_pull_request_reviews_dismissal_restrictions : IAdditionalDataHolder, IParsable + public partial class ProtectedBranch_required_pull_request_reviews_dismissal_restrictions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,18 +16,18 @@ public class ProtectedBranch_required_pull_request_reviews_dismissal_restriction /// The apps property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Apps { get; set; } + public List? Apps { get; set; } #nullable restore #else - public List Apps { get; set; } + public List Apps { get; set; } #endif /// The teams property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Teams { get; set; } + public List? Teams { get; set; } #nullable restore #else - public List Teams { get; set; } + public List Teams { get; set; } #endif /// The teams_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -46,10 +48,10 @@ public class ProtectedBranch_required_pull_request_reviews_dismissal_restriction /// The users property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Users { get; set; } + public List? Users { get; set; } #nullable restore #else - public List Users { get; set; } + public List Users { get; set; } #endif /// The users_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -60,7 +62,7 @@ public class ProtectedBranch_required_pull_request_reviews_dismissal_restriction public string UsersUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProtectedBranch_required_pull_request_reviews_dismissal_restrictions() { @@ -69,12 +71,12 @@ public ProtectedBranch_required_pull_request_reviews_dismissal_restrictions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectedBranch_required_pull_request_reviews_dismissal_restrictions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProtectedBranch_required_pull_request_reviews_dismissal_restrictions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectedBranch_required_pull_request_reviews_dismissal_restrictions(); + return new global::GitHub.Models.ProtectedBranch_required_pull_request_reviews_dismissal_restrictions(); } /// /// The deserialization information for the current model @@ -84,12 +86,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"apps", n => { Apps = n.GetCollectionOfObjectValues(Integration.CreateFromDiscriminatorValue)?.ToList(); } }, - {"teams", n => { Teams = n.GetCollectionOfObjectValues(Team.CreateFromDiscriminatorValue)?.ToList(); } }, - {"teams_url", n => { TeamsUrl = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"users", n => { Users = n.GetCollectionOfObjectValues(SimpleUser.CreateFromDiscriminatorValue)?.ToList(); } }, - {"users_url", n => { UsersUrl = n.GetStringValue(); } }, + { "apps", n => { Apps = n.GetCollectionOfObjectValues(global::GitHub.Models.Integration.CreateFromDiscriminatorValue)?.AsList(); } }, + { "teams", n => { Teams = n.GetCollectionOfObjectValues(global::GitHub.Models.Team.CreateFromDiscriminatorValue)?.AsList(); } }, + { "teams_url", n => { TeamsUrl = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "users", n => { Users = n.GetCollectionOfObjectValues(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue)?.AsList(); } }, + { "users_url", n => { UsersUrl = n.GetStringValue(); } }, }; } /// @@ -99,11 +101,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("apps", Apps); - writer.WriteCollectionOfObjectValues("teams", Teams); + writer.WriteCollectionOfObjectValues("apps", Apps); + writer.WriteCollectionOfObjectValues("teams", Teams); writer.WriteStringValue("teams_url", TeamsUrl); writer.WriteStringValue("url", Url); - writer.WriteCollectionOfObjectValues("users", Users); + writer.WriteCollectionOfObjectValues("users", Users); writer.WriteStringValue("users_url", UsersUrl); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/ProtectedBranch_required_signatures.cs b/src/GitHub/Models/ProtectedBranch_required_signatures.cs index ecd2756a..c6ab99f8 100644 --- a/src/GitHub/Models/ProtectedBranch_required_signatures.cs +++ b/src/GitHub/Models/ProtectedBranch_required_signatures.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ProtectedBranch_required_signatures : IAdditionalDataHolder, IParsable + public partial class ProtectedBranch_required_signatures : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class ProtectedBranch_required_signatures : IAdditionalDataHolder, IParsa public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProtectedBranch_required_signatures() { @@ -31,12 +33,12 @@ public ProtectedBranch_required_signatures() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectedBranch_required_signatures CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ProtectedBranch_required_signatures CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectedBranch_required_signatures(); + return new global::GitHub.Models.ProtectedBranch_required_signatures(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enabled", n => { Enabled = n.GetBoolValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PublicUser.cs b/src/GitHub/Models/PublicUser.cs index 5897cad4..07a545fd 100644 --- a/src/GitHub/Models/PublicUser.cs +++ b/src/GitHub/Models/PublicUser.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Public User /// - public class PublicUser : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PublicUser : IParsable { /// The avatar_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -165,10 +167,10 @@ public class PublicUser : IParsable /// The plan property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PublicUser_plan? Plan { get; set; } + public global::GitHub.Models.PublicUser_plan? Plan { get; set; } #nullable restore #else - public PublicUser_plan Plan { get; set; } + public global::GitHub.Models.PublicUser_plan Plan { get; set; } #endif /// The private_gists property public int? PrivateGists { get; set; } @@ -243,12 +245,12 @@ public class PublicUser : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PublicUser CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PublicUser CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PublicUser(); + return new global::GitHub.Models.PublicUser(); } /// /// The deserialization information for the current model @@ -258,46 +260,46 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"bio", n => { Bio = n.GetStringValue(); } }, - {"blog", n => { Blog = n.GetStringValue(); } }, - {"collaborators", n => { Collaborators = n.GetIntValue(); } }, - {"company", n => { Company = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"disk_usage", n => { DiskUsage = n.GetIntValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"followers", n => { Followers = n.GetIntValue(); } }, - {"followers_url", n => { FollowersUrl = n.GetStringValue(); } }, - {"following", n => { Following = n.GetIntValue(); } }, - {"following_url", n => { FollowingUrl = n.GetStringValue(); } }, - {"gists_url", n => { GistsUrl = n.GetStringValue(); } }, - {"gravatar_id", n => { GravatarId = n.GetStringValue(); } }, - {"hireable", n => { Hireable = n.GetBoolValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"location", n => { Location = n.GetStringValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"notification_email", n => { NotificationEmail = n.GetStringValue(); } }, - {"organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, - {"owned_private_repos", n => { OwnedPrivateRepos = n.GetIntValue(); } }, - {"plan", n => { Plan = n.GetObjectValue(PublicUser_plan.CreateFromDiscriminatorValue); } }, - {"private_gists", n => { PrivateGists = n.GetIntValue(); } }, - {"public_gists", n => { PublicGists = n.GetIntValue(); } }, - {"public_repos", n => { PublicRepos = n.GetIntValue(); } }, - {"received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, - {"repos_url", n => { ReposUrl = n.GetStringValue(); } }, - {"site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, - {"starred_url", n => { StarredUrl = n.GetStringValue(); } }, - {"subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, - {"suspended_at", n => { SuspendedAt = n.GetDateTimeOffsetValue(); } }, - {"total_private_repos", n => { TotalPrivateRepos = n.GetIntValue(); } }, - {"twitter_username", n => { TwitterUsername = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "bio", n => { Bio = n.GetStringValue(); } }, + { "blog", n => { Blog = n.GetStringValue(); } }, + { "collaborators", n => { Collaborators = n.GetIntValue(); } }, + { "company", n => { Company = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "disk_usage", n => { DiskUsage = n.GetIntValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "followers", n => { Followers = n.GetIntValue(); } }, + { "followers_url", n => { FollowersUrl = n.GetStringValue(); } }, + { "following", n => { Following = n.GetIntValue(); } }, + { "following_url", n => { FollowingUrl = n.GetStringValue(); } }, + { "gists_url", n => { GistsUrl = n.GetStringValue(); } }, + { "gravatar_id", n => { GravatarId = n.GetStringValue(); } }, + { "hireable", n => { Hireable = n.GetBoolValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "location", n => { Location = n.GetStringValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "notification_email", n => { NotificationEmail = n.GetStringValue(); } }, + { "organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, + { "owned_private_repos", n => { OwnedPrivateRepos = n.GetIntValue(); } }, + { "plan", n => { Plan = n.GetObjectValue(global::GitHub.Models.PublicUser_plan.CreateFromDiscriminatorValue); } }, + { "private_gists", n => { PrivateGists = n.GetIntValue(); } }, + { "public_gists", n => { PublicGists = n.GetIntValue(); } }, + { "public_repos", n => { PublicRepos = n.GetIntValue(); } }, + { "received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, + { "repos_url", n => { ReposUrl = n.GetStringValue(); } }, + { "site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, + { "starred_url", n => { StarredUrl = n.GetStringValue(); } }, + { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, + { "suspended_at", n => { SuspendedAt = n.GetDateTimeOffsetValue(); } }, + { "total_private_repos", n => { TotalPrivateRepos = n.GetIntValue(); } }, + { "twitter_username", n => { TwitterUsername = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -332,7 +334,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("notification_email", NotificationEmail); writer.WriteStringValue("organizations_url", OrganizationsUrl); writer.WriteIntValue("owned_private_repos", OwnedPrivateRepos); - writer.WriteObjectValue("plan", Plan); + writer.WriteObjectValue("plan", Plan); writer.WriteIntValue("private_gists", PrivateGists); writer.WriteIntValue("public_gists", PublicGists); writer.WriteIntValue("public_repos", PublicRepos); diff --git a/src/GitHub/Models/PublicUser_plan.cs b/src/GitHub/Models/PublicUser_plan.cs index 4a75e529..b9e65ced 100644 --- a/src/GitHub/Models/PublicUser_plan.cs +++ b/src/GitHub/Models/PublicUser_plan.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PublicUser_plan : IAdditionalDataHolder, IParsable + public partial class PublicUser_plan : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -26,7 +28,7 @@ public class PublicUser_plan : IAdditionalDataHolder, IParsable /// The space property public int? Space { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PublicUser_plan() { @@ -35,12 +37,12 @@ public PublicUser_plan() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PublicUser_plan CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PublicUser_plan CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PublicUser_plan(); + return new global::GitHub.Models.PublicUser_plan(); } /// /// The deserialization information for the current model @@ -50,10 +52,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"collaborators", n => { Collaborators = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"private_repos", n => { PrivateRepos = n.GetIntValue(); } }, - {"space", n => { Space = n.GetIntValue(); } }, + { "collaborators", n => { Collaborators = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "private_repos", n => { PrivateRepos = n.GetIntValue(); } }, + { "space", n => { Space = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/PullRequest.cs b/src/GitHub/Models/PullRequest.cs index 513f5de8..f6f01f05 100644 --- a/src/GitHub/Models/PullRequest.cs +++ b/src/GitHub/Models/PullRequest.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Pull requests let you tell others about changes you've pushed to a repository on GitHub. Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if necessary. /// - public class PullRequest : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PullRequest : IAdditionalDataHolder, IParsable { /// The active_lock_reason property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -25,36 +27,36 @@ public class PullRequest : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Assignee { get; set; } + public global::GitHub.Models.NullableSimpleUser? Assignee { get; set; } #nullable restore #else - public NullableSimpleUser Assignee { get; set; } + public global::GitHub.Models.NullableSimpleUser Assignee { get; set; } #endif /// The assignees property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Assignees { get; set; } + public List? Assignees { get; set; } #nullable restore #else - public List Assignees { get; set; } + public List Assignees { get; set; } #endif /// How the author is associated with the repository. - public GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } + public global::GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } /// The status of auto merging a pull request. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.AutoMerge? AutoMerge { get; set; } + public global::GitHub.Models.AutoMerge? AutoMerge { get; set; } #nullable restore #else - public GitHub.Models.AutoMerge AutoMerge { get; set; } + public global::GitHub.Models.AutoMerge AutoMerge { get; set; } #endif /// The base property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequest_base? Base { get; set; } + public global::GitHub.Models.PullRequest_base? Base { get; set; } #nullable restore #else - public PullRequest_base Base { get; set; } + public global::GitHub.Models.PullRequest_base Base { get; set; } #endif /// The body property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,10 +107,10 @@ public class PullRequest : IAdditionalDataHolder, IParsable /// The head property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequest_head? Head { get; set; } + public global::GitHub.Models.PullRequest_head? Head { get; set; } #nullable restore #else - public PullRequest_head Head { get; set; } + public global::GitHub.Models.PullRequest_head Head { get; set; } #endif /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -131,18 +133,18 @@ public class PullRequest : IAdditionalDataHolder, IParsable /// The labels property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Labels { get; set; } + public List? Labels { get; set; } #nullable restore #else - public List Labels { get; set; } + public List Labels { get; set; } #endif /// The _links property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequest__links? Links { get; set; } + public global::GitHub.Models.PullRequest__links? Links { get; set; } #nullable restore #else - public PullRequest__links Links { get; set; } + public global::GitHub.Models.PullRequest__links Links { get; set; } #endif /// The locked property public bool? Locked { get; set; } @@ -173,18 +175,18 @@ public class PullRequest : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? MergedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser? MergedBy { get; set; } #nullable restore #else - public NullableSimpleUser MergedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser MergedBy { get; set; } #endif /// A collection of related issues and pull requests. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableMilestone? Milestone { get; set; } + public global::GitHub.Models.NullableMilestone? Milestone { get; set; } #nullable restore #else - public NullableMilestone Milestone { get; set; } + public global::GitHub.Models.NullableMilestone Milestone { get; set; } #endif /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -209,18 +211,18 @@ public class PullRequest : IAdditionalDataHolder, IParsable /// The requested_reviewers property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? RequestedReviewers { get; set; } + public List? RequestedReviewers { get; set; } #nullable restore #else - public List RequestedReviewers { get; set; } + public List RequestedReviewers { get; set; } #endif /// The requested_teams property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? RequestedTeams { get; set; } + public List? RequestedTeams { get; set; } #nullable restore #else - public List RequestedTeams { get; set; } + public List RequestedTeams { get; set; } #endif /// The review_comments property public int? ReviewComments { get; set; } @@ -241,7 +243,7 @@ public class PullRequest : IAdditionalDataHolder, IParsable public string ReviewCommentUrl { get; set; } #endif /// State of this Pull Request. Either `open` or `closed`. - public PullRequest_state? State { get; set; } + public global::GitHub.Models.PullRequest_state? State { get; set; } /// The statuses_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -271,13 +273,13 @@ public class PullRequest : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? User { get; set; } + public global::GitHub.Models.SimpleUser? User { get; set; } #nullable restore #else - public SimpleUser User { get; set; } + public global::GitHub.Models.SimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequest() { @@ -286,12 +288,12 @@ public PullRequest() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequest CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequest CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequest(); + return new global::GitHub.Models.PullRequest(); } /// /// The deserialization information for the current model @@ -301,54 +303,54 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"active_lock_reason", n => { ActiveLockReason = n.GetStringValue(); } }, - {"additions", n => { Additions = n.GetIntValue(); } }, - {"assignee", n => { Assignee = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"assignees", n => { Assignees = n.GetCollectionOfObjectValues(SimpleUser.CreateFromDiscriminatorValue)?.ToList(); } }, - {"author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, - {"auto_merge", n => { AutoMerge = n.GetObjectValue(GitHub.Models.AutoMerge.CreateFromDiscriminatorValue); } }, - {"base", n => { Base = n.GetObjectValue(PullRequest_base.CreateFromDiscriminatorValue); } }, - {"body", n => { Body = n.GetStringValue(); } }, - {"changed_files", n => { ChangedFiles = n.GetIntValue(); } }, - {"closed_at", n => { ClosedAt = n.GetDateTimeOffsetValue(); } }, - {"comments", n => { Comments = n.GetIntValue(); } }, - {"comments_url", n => { CommentsUrl = n.GetStringValue(); } }, - {"commits", n => { Commits = n.GetIntValue(); } }, - {"commits_url", n => { CommitsUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"deletions", n => { Deletions = n.GetIntValue(); } }, - {"diff_url", n => { DiffUrl = n.GetStringValue(); } }, - {"draft", n => { Draft = n.GetBoolValue(); } }, - {"head", n => { Head = n.GetObjectValue(PullRequest_head.CreateFromDiscriminatorValue); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"issue_url", n => { IssueUrl = n.GetStringValue(); } }, - {"labels", n => { Labels = n.GetCollectionOfObjectValues(PullRequest_labels.CreateFromDiscriminatorValue)?.ToList(); } }, - {"_links", n => { Links = n.GetObjectValue(PullRequest__links.CreateFromDiscriminatorValue); } }, - {"locked", n => { Locked = n.GetBoolValue(); } }, - {"maintainer_can_modify", n => { MaintainerCanModify = n.GetBoolValue(); } }, - {"merge_commit_sha", n => { MergeCommitSha = n.GetStringValue(); } }, - {"mergeable", n => { Mergeable = n.GetBoolValue(); } }, - {"mergeable_state", n => { MergeableState = n.GetStringValue(); } }, - {"merged", n => { Merged = n.GetBoolValue(); } }, - {"merged_at", n => { MergedAt = n.GetDateTimeOffsetValue(); } }, - {"merged_by", n => { MergedBy = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"milestone", n => { Milestone = n.GetObjectValue(NullableMilestone.CreateFromDiscriminatorValue); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"number", n => { Number = n.GetIntValue(); } }, - {"patch_url", n => { PatchUrl = n.GetStringValue(); } }, - {"rebaseable", n => { Rebaseable = n.GetBoolValue(); } }, - {"requested_reviewers", n => { RequestedReviewers = n.GetCollectionOfObjectValues(SimpleUser.CreateFromDiscriminatorValue)?.ToList(); } }, - {"requested_teams", n => { RequestedTeams = n.GetCollectionOfObjectValues(TeamSimple.CreateFromDiscriminatorValue)?.ToList(); } }, - {"review_comment_url", n => { ReviewCommentUrl = n.GetStringValue(); } }, - {"review_comments", n => { ReviewComments = n.GetIntValue(); } }, - {"review_comments_url", n => { ReviewCommentsUrl = n.GetStringValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, + { "active_lock_reason", n => { ActiveLockReason = n.GetStringValue(); } }, + { "additions", n => { Additions = n.GetIntValue(); } }, + { "assignee", n => { Assignee = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "assignees", n => { Assignees = n.GetCollectionOfObjectValues(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue)?.AsList(); } }, + { "author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, + { "auto_merge", n => { AutoMerge = n.GetObjectValue(global::GitHub.Models.AutoMerge.CreateFromDiscriminatorValue); } }, + { "base", n => { Base = n.GetObjectValue(global::GitHub.Models.PullRequest_base.CreateFromDiscriminatorValue); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "changed_files", n => { ChangedFiles = n.GetIntValue(); } }, + { "closed_at", n => { ClosedAt = n.GetDateTimeOffsetValue(); } }, + { "comments", n => { Comments = n.GetIntValue(); } }, + { "comments_url", n => { CommentsUrl = n.GetStringValue(); } }, + { "commits", n => { Commits = n.GetIntValue(); } }, + { "commits_url", n => { CommitsUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "deletions", n => { Deletions = n.GetIntValue(); } }, + { "diff_url", n => { DiffUrl = n.GetStringValue(); } }, + { "draft", n => { Draft = n.GetBoolValue(); } }, + { "head", n => { Head = n.GetObjectValue(global::GitHub.Models.PullRequest_head.CreateFromDiscriminatorValue); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "issue_url", n => { IssueUrl = n.GetStringValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfObjectValues(global::GitHub.Models.PullRequest_labels.CreateFromDiscriminatorValue)?.AsList(); } }, + { "_links", n => { Links = n.GetObjectValue(global::GitHub.Models.PullRequest__links.CreateFromDiscriminatorValue); } }, + { "locked", n => { Locked = n.GetBoolValue(); } }, + { "maintainer_can_modify", n => { MaintainerCanModify = n.GetBoolValue(); } }, + { "merge_commit_sha", n => { MergeCommitSha = n.GetStringValue(); } }, + { "mergeable", n => { Mergeable = n.GetBoolValue(); } }, + { "mergeable_state", n => { MergeableState = n.GetStringValue(); } }, + { "merged", n => { Merged = n.GetBoolValue(); } }, + { "merged_at", n => { MergedAt = n.GetDateTimeOffsetValue(); } }, + { "merged_by", n => { MergedBy = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "milestone", n => { Milestone = n.GetObjectValue(global::GitHub.Models.NullableMilestone.CreateFromDiscriminatorValue); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "number", n => { Number = n.GetIntValue(); } }, + { "patch_url", n => { PatchUrl = n.GetStringValue(); } }, + { "rebaseable", n => { Rebaseable = n.GetBoolValue(); } }, + { "requested_reviewers", n => { RequestedReviewers = n.GetCollectionOfObjectValues(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue)?.AsList(); } }, + { "requested_teams", n => { RequestedTeams = n.GetCollectionOfObjectValues(global::GitHub.Models.TeamSimple.CreateFromDiscriminatorValue)?.AsList(); } }, + { "review_comment_url", n => { ReviewCommentUrl = n.GetStringValue(); } }, + { "review_comments", n => { ReviewComments = n.GetIntValue(); } }, + { "review_comments_url", n => { ReviewCommentsUrl = n.GetStringValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -360,11 +362,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("active_lock_reason", ActiveLockReason); writer.WriteIntValue("additions", Additions); - writer.WriteObjectValue("assignee", Assignee); - writer.WriteCollectionOfObjectValues("assignees", Assignees); - writer.WriteEnumValue("author_association", AuthorAssociation); - writer.WriteObjectValue("auto_merge", AutoMerge); - writer.WriteObjectValue("base", Base); + writer.WriteObjectValue("assignee", Assignee); + writer.WriteCollectionOfObjectValues("assignees", Assignees); + writer.WriteEnumValue("author_association", AuthorAssociation); + writer.WriteObjectValue("auto_merge", AutoMerge); + writer.WriteObjectValue("base", Base); writer.WriteStringValue("body", Body); writer.WriteIntValue("changed_files", ChangedFiles); writer.WriteDateTimeOffsetValue("closed_at", ClosedAt); @@ -376,12 +378,12 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("deletions", Deletions); writer.WriteStringValue("diff_url", DiffUrl); writer.WriteBoolValue("draft", Draft); - writer.WriteObjectValue("head", Head); + writer.WriteObjectValue("head", Head); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteLongValue("id", Id); writer.WriteStringValue("issue_url", IssueUrl); - writer.WriteCollectionOfObjectValues("labels", Labels); - writer.WriteObjectValue("_links", Links); + writer.WriteCollectionOfObjectValues("labels", Labels); + writer.WriteObjectValue("_links", Links); writer.WriteBoolValue("locked", Locked); writer.WriteBoolValue("maintainer_can_modify", MaintainerCanModify); writer.WriteBoolValue("mergeable", Mergeable); @@ -389,23 +391,23 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("merge_commit_sha", MergeCommitSha); writer.WriteBoolValue("merged", Merged); writer.WriteDateTimeOffsetValue("merged_at", MergedAt); - writer.WriteObjectValue("merged_by", MergedBy); - writer.WriteObjectValue("milestone", Milestone); + writer.WriteObjectValue("merged_by", MergedBy); + writer.WriteObjectValue("milestone", Milestone); writer.WriteStringValue("node_id", NodeId); writer.WriteIntValue("number", Number); writer.WriteStringValue("patch_url", PatchUrl); writer.WriteBoolValue("rebaseable", Rebaseable); - writer.WriteCollectionOfObjectValues("requested_reviewers", RequestedReviewers); - writer.WriteCollectionOfObjectValues("requested_teams", RequestedTeams); + writer.WriteCollectionOfObjectValues("requested_reviewers", RequestedReviewers); + writer.WriteCollectionOfObjectValues("requested_teams", RequestedTeams); writer.WriteIntValue("review_comments", ReviewComments); writer.WriteStringValue("review_comments_url", ReviewCommentsUrl); writer.WriteStringValue("review_comment_url", ReviewCommentUrl); - writer.WriteEnumValue("state", State); + writer.WriteEnumValue("state", State); writer.WriteStringValue("statuses_url", StatusesUrl); writer.WriteStringValue("title", Title); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PullRequest503Error.cs b/src/GitHub/Models/PullRequest503Error.cs index f2c0afca..faaaa9c8 100644 --- a/src/GitHub/Models/PullRequest503Error.cs +++ b/src/GitHub/Models/PullRequest503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequest503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class PullRequest503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class PullRequest503Error : ApiException, IAdditionalDataHolder, IParsabl #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequest503Error() { @@ -46,12 +42,12 @@ public PullRequest503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequest503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequest503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequest503Error(); + return new global::GitHub.Models.PullRequest503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PullRequestMergeResult.cs b/src/GitHub/Models/PullRequestMergeResult.cs index e3a6aaf8..b6839fc5 100644 --- a/src/GitHub/Models/PullRequestMergeResult.cs +++ b/src/GitHub/Models/PullRequestMergeResult.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Pull Request Merge Result /// - public class PullRequestMergeResult : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PullRequestMergeResult : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -31,7 +33,7 @@ public class PullRequestMergeResult : IAdditionalDataHolder, IParsable public string Sha { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequestMergeResult() { @@ -40,12 +42,12 @@ public PullRequestMergeResult() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequestMergeResult CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequestMergeResult CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestMergeResult(); + return new global::GitHub.Models.PullRequestMergeResult(); } /// /// The deserialization information for the current model @@ -55,9 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"merged", n => { Merged = n.GetBoolValue(); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, + { "merged", n => { Merged = n.GetBoolValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PullRequestMinimal.cs b/src/GitHub/Models/PullRequestMinimal.cs index 2663440d..776b0779 100644 --- a/src/GitHub/Models/PullRequestMinimal.cs +++ b/src/GitHub/Models/PullRequestMinimal.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequestMinimal : IAdditionalDataHolder, IParsable + public partial class PullRequestMinimal : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,18 +16,18 @@ public class PullRequestMinimal : IAdditionalDataHolder, IParsable /// The base property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequestMinimal_base? Base { get; set; } + public global::GitHub.Models.PullRequestMinimal_base? Base { get; set; } #nullable restore #else - public PullRequestMinimal_base Base { get; set; } + public global::GitHub.Models.PullRequestMinimal_base Base { get; set; } #endif /// The head property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequestMinimal_head? Head { get; set; } + public global::GitHub.Models.PullRequestMinimal_head? Head { get; set; } #nullable restore #else - public PullRequestMinimal_head Head { get; set; } + public global::GitHub.Models.PullRequestMinimal_head Head { get; set; } #endif /// The id property public long? Id { get; set; } @@ -40,7 +42,7 @@ public class PullRequestMinimal : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequestMinimal() { @@ -49,12 +51,12 @@ public PullRequestMinimal() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequestMinimal CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequestMinimal CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestMinimal(); + return new global::GitHub.Models.PullRequestMinimal(); } /// /// The deserialization information for the current model @@ -64,11 +66,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"base", n => { Base = n.GetObjectValue(PullRequestMinimal_base.CreateFromDiscriminatorValue); } }, - {"head", n => { Head = n.GetObjectValue(PullRequestMinimal_head.CreateFromDiscriminatorValue); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"number", n => { Number = n.GetIntValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "base", n => { Base = n.GetObjectValue(global::GitHub.Models.PullRequestMinimal_base.CreateFromDiscriminatorValue); } }, + { "head", n => { Head = n.GetObjectValue(global::GitHub.Models.PullRequestMinimal_head.CreateFromDiscriminatorValue); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "number", n => { Number = n.GetIntValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -78,8 +80,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("base", Base); - writer.WriteObjectValue("head", Head); + writer.WriteObjectValue("base", Base); + writer.WriteObjectValue("head", Head); writer.WriteLongValue("id", Id); writer.WriteIntValue("number", Number); writer.WriteStringValue("url", Url); diff --git a/src/GitHub/Models/PullRequestMinimal_base.cs b/src/GitHub/Models/PullRequestMinimal_base.cs index 1c0e9c8c..d7f3af02 100644 --- a/src/GitHub/Models/PullRequestMinimal_base.cs +++ b/src/GitHub/Models/PullRequestMinimal_base.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequestMinimal_base : IAdditionalDataHolder, IParsable + public partial class PullRequestMinimal_base : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,10 +24,10 @@ public class PullRequestMinimal_base : IAdditionalDataHolder, IParsable /// The repo property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequestMinimal_base_repo? Repo { get; set; } + public global::GitHub.Models.PullRequestMinimal_base_repo? Repo { get; set; } #nullable restore #else - public PullRequestMinimal_base_repo Repo { get; set; } + public global::GitHub.Models.PullRequestMinimal_base_repo Repo { get; set; } #endif /// The sha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -36,7 +38,7 @@ public class PullRequestMinimal_base : IAdditionalDataHolder, IParsable public string Sha { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequestMinimal_base() { @@ -45,12 +47,12 @@ public PullRequestMinimal_base() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequestMinimal_base CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequestMinimal_base CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestMinimal_base(); + return new global::GitHub.Models.PullRequestMinimal_base(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"ref", n => { Ref = n.GetStringValue(); } }, - {"repo", n => { Repo = n.GetObjectValue(PullRequestMinimal_base_repo.CreateFromDiscriminatorValue); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, + { "repo", n => { Repo = n.GetObjectValue(global::GitHub.Models.PullRequestMinimal_base_repo.CreateFromDiscriminatorValue); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, }; } /// @@ -73,7 +75,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("ref", Ref); - writer.WriteObjectValue("repo", Repo); + writer.WriteObjectValue("repo", Repo); writer.WriteStringValue("sha", Sha); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/PullRequestMinimal_base_repo.cs b/src/GitHub/Models/PullRequestMinimal_base_repo.cs index 02689b7b..ae9986fc 100644 --- a/src/GitHub/Models/PullRequestMinimal_base_repo.cs +++ b/src/GitHub/Models/PullRequestMinimal_base_repo.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequestMinimal_base_repo : IAdditionalDataHolder, IParsable + public partial class PullRequestMinimal_base_repo : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,7 +32,7 @@ public class PullRequestMinimal_base_repo : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequestMinimal_base_repo() { @@ -39,12 +41,12 @@ public PullRequestMinimal_base_repo() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequestMinimal_base_repo CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequestMinimal_base_repo CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestMinimal_base_repo(); + return new global::GitHub.Models.PullRequestMinimal_base_repo(); } /// /// The deserialization information for the current model @@ -54,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetLongValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PullRequestMinimal_head.cs b/src/GitHub/Models/PullRequestMinimal_head.cs index 16957d49..174a1c6f 100644 --- a/src/GitHub/Models/PullRequestMinimal_head.cs +++ b/src/GitHub/Models/PullRequestMinimal_head.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequestMinimal_head : IAdditionalDataHolder, IParsable + public partial class PullRequestMinimal_head : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,10 +24,10 @@ public class PullRequestMinimal_head : IAdditionalDataHolder, IParsable /// The repo property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequestMinimal_head_repo? Repo { get; set; } + public global::GitHub.Models.PullRequestMinimal_head_repo? Repo { get; set; } #nullable restore #else - public PullRequestMinimal_head_repo Repo { get; set; } + public global::GitHub.Models.PullRequestMinimal_head_repo Repo { get; set; } #endif /// The sha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -36,7 +38,7 @@ public class PullRequestMinimal_head : IAdditionalDataHolder, IParsable public string Sha { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequestMinimal_head() { @@ -45,12 +47,12 @@ public PullRequestMinimal_head() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequestMinimal_head CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequestMinimal_head CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestMinimal_head(); + return new global::GitHub.Models.PullRequestMinimal_head(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"ref", n => { Ref = n.GetStringValue(); } }, - {"repo", n => { Repo = n.GetObjectValue(PullRequestMinimal_head_repo.CreateFromDiscriminatorValue); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, + { "repo", n => { Repo = n.GetObjectValue(global::GitHub.Models.PullRequestMinimal_head_repo.CreateFromDiscriminatorValue); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, }; } /// @@ -73,7 +75,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("ref", Ref); - writer.WriteObjectValue("repo", Repo); + writer.WriteObjectValue("repo", Repo); writer.WriteStringValue("sha", Sha); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/PullRequestMinimal_head_repo.cs b/src/GitHub/Models/PullRequestMinimal_head_repo.cs index 9fb8b8f6..aab542ef 100644 --- a/src/GitHub/Models/PullRequestMinimal_head_repo.cs +++ b/src/GitHub/Models/PullRequestMinimal_head_repo.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequestMinimal_head_repo : IAdditionalDataHolder, IParsable + public partial class PullRequestMinimal_head_repo : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,7 +32,7 @@ public class PullRequestMinimal_head_repo : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequestMinimal_head_repo() { @@ -39,12 +41,12 @@ public PullRequestMinimal_head_repo() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequestMinimal_head_repo CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequestMinimal_head_repo CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestMinimal_head_repo(); + return new global::GitHub.Models.PullRequestMinimal_head_repo(); } /// /// The deserialization information for the current model @@ -54,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetLongValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PullRequestReview.cs b/src/GitHub/Models/PullRequestReview.cs index a754b3d0..3b10cfb0 100644 --- a/src/GitHub/Models/PullRequestReview.cs +++ b/src/GitHub/Models/PullRequestReview.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Pull Request Reviews are reviews on pull requests. /// - public class PullRequestReview : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PullRequestReview : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// How the author is associated with the repository. - public GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } + public global::GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } /// The text of the review. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -59,10 +61,10 @@ public class PullRequestReview : IAdditionalDataHolder, IParsable /// The _links property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequestReview__links? Links { get; set; } + public global::GitHub.Models.PullRequestReview__links? Links { get; set; } #nullable restore #else - public PullRequestReview__links Links { get; set; } + public global::GitHub.Models.PullRequestReview__links Links { get; set; } #endif /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -93,13 +95,13 @@ public class PullRequestReview : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? User { get; set; } + public global::GitHub.Models.NullableSimpleUser? User { get; set; } #nullable restore #else - public NullableSimpleUser User { get; set; } + public global::GitHub.Models.NullableSimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequestReview() { @@ -108,12 +110,12 @@ public PullRequestReview() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequestReview CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequestReview CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestReview(); + return new global::GitHub.Models.PullRequestReview(); } /// /// The deserialization information for the current model @@ -123,19 +125,19 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, - {"body", n => { Body = n.GetStringValue(); } }, - {"body_html", n => { BodyHtml = n.GetStringValue(); } }, - {"body_text", n => { BodyText = n.GetStringValue(); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"_links", n => { Links = n.GetObjectValue(PullRequestReview__links.CreateFromDiscriminatorValue); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"pull_request_url", n => { PullRequestUrl = n.GetStringValue(); } }, - {"state", n => { State = n.GetStringValue(); } }, - {"submitted_at", n => { SubmittedAt = n.GetDateTimeOffsetValue(); } }, - {"user", n => { User = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "body_html", n => { BodyHtml = n.GetStringValue(); } }, + { "body_text", n => { BodyText = n.GetStringValue(); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "_links", n => { Links = n.GetObjectValue(global::GitHub.Models.PullRequestReview__links.CreateFromDiscriminatorValue); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "pull_request_url", n => { PullRequestUrl = n.GetStringValue(); } }, + { "state", n => { State = n.GetStringValue(); } }, + { "submitted_at", n => { SubmittedAt = n.GetDateTimeOffsetValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -145,19 +147,19 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("author_association", AuthorAssociation); + writer.WriteEnumValue("author_association", AuthorAssociation); writer.WriteStringValue("body", Body); writer.WriteStringValue("body_html", BodyHtml); writer.WriteStringValue("body_text", BodyText); writer.WriteStringValue("commit_id", CommitId); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteLongValue("id", Id); - writer.WriteObjectValue("_links", Links); + writer.WriteObjectValue("_links", Links); writer.WriteStringValue("node_id", NodeId); writer.WriteStringValue("pull_request_url", PullRequestUrl); writer.WriteStringValue("state", State); writer.WriteDateTimeOffsetValue("submitted_at", SubmittedAt); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PullRequestReviewComment.cs b/src/GitHub/Models/PullRequestReviewComment.cs index 5e1ebe0a..4d0d77c8 100644 --- a/src/GitHub/Models/PullRequestReviewComment.cs +++ b/src/GitHub/Models/PullRequestReviewComment.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Pull Request Review Comments are comments on a portion of the Pull Request's diff. /// - public class PullRequestReviewComment : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PullRequestReviewComment : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// How the author is associated with the repository. - public GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } + public global::GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } /// The text of the comment. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -73,10 +75,10 @@ public class PullRequestReviewComment : IAdditionalDataHolder, IParsable /// The _links property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequestReviewComment__links? Links { get; set; } + public global::GitHub.Models.PullRequestReviewComment__links? Links { get; set; } #nullable restore #else - public PullRequestReviewComment__links Links { get; set; } + public global::GitHub.Models.PullRequestReviewComment__links Links { get; set; } #endif /// The node ID of the pull request review comment. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -123,19 +125,19 @@ public class PullRequestReviewComment : IAdditionalDataHolder, IParsable /// The reactions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ReactionRollup? Reactions { get; set; } + public global::GitHub.Models.ReactionRollup? Reactions { get; set; } #nullable restore #else - public ReactionRollup Reactions { get; set; } + public global::GitHub.Models.ReactionRollup Reactions { get; set; } #endif /// The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment - public PullRequestReviewComment_side? Side { get; set; } + public global::GitHub.Models.PullRequestReviewComment_side? Side { get; set; } /// The first line of the range for a multi-line comment. public int? StartLine { get; set; } /// The side of the first line of the range for a multi-line comment. - public PullRequestReviewComment_start_side? StartSide { get; set; } + public global::GitHub.Models.PullRequestReviewComment_start_side? StartSide { get; set; } /// The level at which the comment is targeted, can be a diff line or a file. - public PullRequestReviewComment_subject_type? SubjectType { get; set; } + public global::GitHub.Models.PullRequestReviewComment_subject_type? SubjectType { get; set; } /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } /// URL for the pull request review comment @@ -149,29 +151,29 @@ public class PullRequestReviewComment : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? User { get; set; } + public global::GitHub.Models.SimpleUser? User { get; set; } #nullable restore #else - public SimpleUser User { get; set; } + public global::GitHub.Models.SimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequestReviewComment() { AdditionalData = new Dictionary(); - Side = PullRequestReviewComment_side.RIGHT; - StartSide = PullRequestReviewComment_start_side.RIGHT; + Side = global::GitHub.Models.PullRequestReviewComment_side.RIGHT; + StartSide = global::GitHub.Models.PullRequestReviewComment_start_side.RIGHT; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequestReviewComment CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequestReviewComment CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestReviewComment(); + return new global::GitHub.Models.PullRequestReviewComment(); } /// /// The deserialization information for the current model @@ -181,35 +183,35 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, - {"body", n => { Body = n.GetStringValue(); } }, - {"body_html", n => { BodyHtml = n.GetStringValue(); } }, - {"body_text", n => { BodyText = n.GetStringValue(); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"diff_hunk", n => { DiffHunk = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"in_reply_to_id", n => { InReplyToId = n.GetIntValue(); } }, - {"line", n => { Line = n.GetIntValue(); } }, - {"_links", n => { Links = n.GetObjectValue(PullRequestReviewComment__links.CreateFromDiscriminatorValue); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"original_commit_id", n => { OriginalCommitId = n.GetStringValue(); } }, - {"original_line", n => { OriginalLine = n.GetIntValue(); } }, - {"original_position", n => { OriginalPosition = n.GetIntValue(); } }, - {"original_start_line", n => { OriginalStartLine = n.GetIntValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"position", n => { Position = n.GetIntValue(); } }, - {"pull_request_review_id", n => { PullRequestReviewId = n.GetLongValue(); } }, - {"pull_request_url", n => { PullRequestUrl = n.GetStringValue(); } }, - {"reactions", n => { Reactions = n.GetObjectValue(ReactionRollup.CreateFromDiscriminatorValue); } }, - {"side", n => { Side = n.GetEnumValue(); } }, - {"start_line", n => { StartLine = n.GetIntValue(); } }, - {"start_side", n => { StartSide = n.GetEnumValue(); } }, - {"subject_type", n => { SubjectType = n.GetEnumValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, + { "author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "body_html", n => { BodyHtml = n.GetStringValue(); } }, + { "body_text", n => { BodyText = n.GetStringValue(); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "diff_hunk", n => { DiffHunk = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "in_reply_to_id", n => { InReplyToId = n.GetIntValue(); } }, + { "line", n => { Line = n.GetIntValue(); } }, + { "_links", n => { Links = n.GetObjectValue(global::GitHub.Models.PullRequestReviewComment__links.CreateFromDiscriminatorValue); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "original_commit_id", n => { OriginalCommitId = n.GetStringValue(); } }, + { "original_line", n => { OriginalLine = n.GetIntValue(); } }, + { "original_position", n => { OriginalPosition = n.GetIntValue(); } }, + { "original_start_line", n => { OriginalStartLine = n.GetIntValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "position", n => { Position = n.GetIntValue(); } }, + { "pull_request_review_id", n => { PullRequestReviewId = n.GetLongValue(); } }, + { "pull_request_url", n => { PullRequestUrl = n.GetStringValue(); } }, + { "reactions", n => { Reactions = n.GetObjectValue(global::GitHub.Models.ReactionRollup.CreateFromDiscriminatorValue); } }, + { "side", n => { Side = n.GetEnumValue(); } }, + { "start_line", n => { StartLine = n.GetIntValue(); } }, + { "start_side", n => { StartSide = n.GetEnumValue(); } }, + { "subject_type", n => { SubjectType = n.GetEnumValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -219,7 +221,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("author_association", AuthorAssociation); + writer.WriteEnumValue("author_association", AuthorAssociation); writer.WriteStringValue("body", Body); writer.WriteStringValue("body_html", BodyHtml); writer.WriteStringValue("body_text", BodyText); @@ -230,7 +232,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteLongValue("id", Id); writer.WriteIntValue("in_reply_to_id", InReplyToId); writer.WriteIntValue("line", Line); - writer.WriteObjectValue("_links", Links); + writer.WriteObjectValue("_links", Links); writer.WriteStringValue("node_id", NodeId); writer.WriteStringValue("original_commit_id", OriginalCommitId); writer.WriteIntValue("original_line", OriginalLine); @@ -240,14 +242,14 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("position", Position); writer.WriteLongValue("pull_request_review_id", PullRequestReviewId); writer.WriteStringValue("pull_request_url", PullRequestUrl); - writer.WriteObjectValue("reactions", Reactions); - writer.WriteEnumValue("side", Side); + writer.WriteObjectValue("reactions", Reactions); + writer.WriteEnumValue("side", Side); writer.WriteIntValue("start_line", StartLine); - writer.WriteEnumValue("start_side", StartSide); - writer.WriteEnumValue("subject_type", SubjectType); + writer.WriteEnumValue("start_side", StartSide); + writer.WriteEnumValue("subject_type", SubjectType); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PullRequestReviewComment__links.cs b/src/GitHub/Models/PullRequestReviewComment__links.cs index d56ff623..eaf7c9f9 100644 --- a/src/GitHub/Models/PullRequestReviewComment__links.cs +++ b/src/GitHub/Models/PullRequestReviewComment__links.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequestReviewComment__links : IAdditionalDataHolder, IParsable + public partial class PullRequestReviewComment__links : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,29 +16,29 @@ public class PullRequestReviewComment__links : IAdditionalDataHolder, IParsable /// The html property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequestReviewComment__links_html? Html { get; set; } + public global::GitHub.Models.PullRequestReviewComment__links_html? Html { get; set; } #nullable restore #else - public PullRequestReviewComment__links_html Html { get; set; } + public global::GitHub.Models.PullRequestReviewComment__links_html Html { get; set; } #endif /// The pull_request property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequestReviewComment__links_pull_request? PullRequest { get; set; } + public global::GitHub.Models.PullRequestReviewComment__links_pull_request? PullRequest { get; set; } #nullable restore #else - public PullRequestReviewComment__links_pull_request PullRequest { get; set; } + public global::GitHub.Models.PullRequestReviewComment__links_pull_request PullRequest { get; set; } #endif /// The self property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequestReviewComment__links_self? Self { get; set; } + public global::GitHub.Models.PullRequestReviewComment__links_self? Self { get; set; } #nullable restore #else - public PullRequestReviewComment__links_self Self { get; set; } + public global::GitHub.Models.PullRequestReviewComment__links_self Self { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequestReviewComment__links() { @@ -45,12 +47,12 @@ public PullRequestReviewComment__links() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequestReviewComment__links CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequestReviewComment__links CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestReviewComment__links(); + return new global::GitHub.Models.PullRequestReviewComment__links(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"html", n => { Html = n.GetObjectValue(PullRequestReviewComment__links_html.CreateFromDiscriminatorValue); } }, - {"pull_request", n => { PullRequest = n.GetObjectValue(PullRequestReviewComment__links_pull_request.CreateFromDiscriminatorValue); } }, - {"self", n => { Self = n.GetObjectValue(PullRequestReviewComment__links_self.CreateFromDiscriminatorValue); } }, + { "html", n => { Html = n.GetObjectValue(global::GitHub.Models.PullRequestReviewComment__links_html.CreateFromDiscriminatorValue); } }, + { "pull_request", n => { PullRequest = n.GetObjectValue(global::GitHub.Models.PullRequestReviewComment__links_pull_request.CreateFromDiscriminatorValue); } }, + { "self", n => { Self = n.GetObjectValue(global::GitHub.Models.PullRequestReviewComment__links_self.CreateFromDiscriminatorValue); } }, }; } /// @@ -72,9 +74,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("html", Html); - writer.WriteObjectValue("pull_request", PullRequest); - writer.WriteObjectValue("self", Self); + writer.WriteObjectValue("html", Html); + writer.WriteObjectValue("pull_request", PullRequest); + writer.WriteObjectValue("self", Self); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PullRequestReviewComment__links_html.cs b/src/GitHub/Models/PullRequestReviewComment__links_html.cs index 8a96d2bc..62e3fddf 100644 --- a/src/GitHub/Models/PullRequestReviewComment__links_html.cs +++ b/src/GitHub/Models/PullRequestReviewComment__links_html.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequestReviewComment__links_html : IAdditionalDataHolder, IParsable + public partial class PullRequestReviewComment__links_html : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class PullRequestReviewComment__links_html : IAdditionalDataHolder, IPars public string Href { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequestReviewComment__links_html() { @@ -29,12 +31,12 @@ public PullRequestReviewComment__links_html() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequestReviewComment__links_html CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequestReviewComment__links_html CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestReviewComment__links_html(); + return new global::GitHub.Models.PullRequestReviewComment__links_html(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"href", n => { Href = n.GetStringValue(); } }, + { "href", n => { Href = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PullRequestReviewComment__links_pull_request.cs b/src/GitHub/Models/PullRequestReviewComment__links_pull_request.cs index afccf18f..b9c4f593 100644 --- a/src/GitHub/Models/PullRequestReviewComment__links_pull_request.cs +++ b/src/GitHub/Models/PullRequestReviewComment__links_pull_request.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequestReviewComment__links_pull_request : IAdditionalDataHolder, IParsable + public partial class PullRequestReviewComment__links_pull_request : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class PullRequestReviewComment__links_pull_request : IAdditionalDataHolde public string Href { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequestReviewComment__links_pull_request() { @@ -29,12 +31,12 @@ public PullRequestReviewComment__links_pull_request() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequestReviewComment__links_pull_request CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequestReviewComment__links_pull_request CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestReviewComment__links_pull_request(); + return new global::GitHub.Models.PullRequestReviewComment__links_pull_request(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"href", n => { Href = n.GetStringValue(); } }, + { "href", n => { Href = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PullRequestReviewComment__links_self.cs b/src/GitHub/Models/PullRequestReviewComment__links_self.cs index 88a5f95c..9ecc0870 100644 --- a/src/GitHub/Models/PullRequestReviewComment__links_self.cs +++ b/src/GitHub/Models/PullRequestReviewComment__links_self.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequestReviewComment__links_self : IAdditionalDataHolder, IParsable + public partial class PullRequestReviewComment__links_self : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class PullRequestReviewComment__links_self : IAdditionalDataHolder, IPars public string Href { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequestReviewComment__links_self() { @@ -29,12 +31,12 @@ public PullRequestReviewComment__links_self() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequestReviewComment__links_self CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequestReviewComment__links_self CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestReviewComment__links_self(); + return new global::GitHub.Models.PullRequestReviewComment__links_self(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"href", n => { Href = n.GetStringValue(); } }, + { "href", n => { Href = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PullRequestReviewComment_side.cs b/src/GitHub/Models/PullRequestReviewComment_side.cs index 276ca056..aece15ce 100644 --- a/src/GitHub/Models/PullRequestReviewComment_side.cs +++ b/src/GitHub/Models/PullRequestReviewComment_side.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum PullRequestReviewComment_side { [EnumMember(Value = "LEFT")] diff --git a/src/GitHub/Models/PullRequestReviewComment_start_side.cs b/src/GitHub/Models/PullRequestReviewComment_start_side.cs index 2fba534b..74a736b6 100644 --- a/src/GitHub/Models/PullRequestReviewComment_start_side.cs +++ b/src/GitHub/Models/PullRequestReviewComment_start_side.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The side of the first line of the range for a multi-line comment. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum PullRequestReviewComment_start_side { [EnumMember(Value = "LEFT")] diff --git a/src/GitHub/Models/PullRequestReviewComment_subject_type.cs b/src/GitHub/Models/PullRequestReviewComment_subject_type.cs index bde9a857..befa7f8e 100644 --- a/src/GitHub/Models/PullRequestReviewComment_subject_type.cs +++ b/src/GitHub/Models/PullRequestReviewComment_subject_type.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level at which the comment is targeted, can be a diff line or a file. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum PullRequestReviewComment_subject_type { [EnumMember(Value = "line")] diff --git a/src/GitHub/Models/PullRequestReviewRequest.cs b/src/GitHub/Models/PullRequestReviewRequest.cs index 38846174..8dcac88d 100644 --- a/src/GitHub/Models/PullRequestReviewRequest.cs +++ b/src/GitHub/Models/PullRequestReviewRequest.cs @@ -1,35 +1,37 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Pull Request Review Request /// - public class PullRequestReviewRequest : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PullRequestReviewRequest : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The teams property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Teams { get; set; } + public List? Teams { get; set; } #nullable restore #else - public List Teams { get; set; } + public List Teams { get; set; } #endif /// The users property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Users { get; set; } + public List? Users { get; set; } #nullable restore #else - public List Users { get; set; } + public List Users { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequestReviewRequest() { @@ -38,12 +40,12 @@ public PullRequestReviewRequest() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequestReviewRequest CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequestReviewRequest CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestReviewRequest(); + return new global::GitHub.Models.PullRequestReviewRequest(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"teams", n => { Teams = n.GetCollectionOfObjectValues(Team.CreateFromDiscriminatorValue)?.ToList(); } }, - {"users", n => { Users = n.GetCollectionOfObjectValues(SimpleUser.CreateFromDiscriminatorValue)?.ToList(); } }, + { "teams", n => { Teams = n.GetCollectionOfObjectValues(global::GitHub.Models.Team.CreateFromDiscriminatorValue)?.AsList(); } }, + { "users", n => { Users = n.GetCollectionOfObjectValues(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -64,8 +66,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("teams", Teams); - writer.WriteCollectionOfObjectValues("users", Users); + writer.WriteCollectionOfObjectValues("teams", Teams); + writer.WriteCollectionOfObjectValues("users", Users); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PullRequestReview__links.cs b/src/GitHub/Models/PullRequestReview__links.cs index ee22eefb..c16b7fc0 100644 --- a/src/GitHub/Models/PullRequestReview__links.cs +++ b/src/GitHub/Models/PullRequestReview__links.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequestReview__links : IAdditionalDataHolder, IParsable + public partial class PullRequestReview__links : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,21 +16,21 @@ public class PullRequestReview__links : IAdditionalDataHolder, IParsable /// The html property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequestReview__links_html? Html { get; set; } + public global::GitHub.Models.PullRequestReview__links_html? Html { get; set; } #nullable restore #else - public PullRequestReview__links_html Html { get; set; } + public global::GitHub.Models.PullRequestReview__links_html Html { get; set; } #endif /// The pull_request property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequestReview__links_pull_request? PullRequest { get; set; } + public global::GitHub.Models.PullRequestReview__links_pull_request? PullRequest { get; set; } #nullable restore #else - public PullRequestReview__links_pull_request PullRequest { get; set; } + public global::GitHub.Models.PullRequestReview__links_pull_request PullRequest { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequestReview__links() { @@ -37,12 +39,12 @@ public PullRequestReview__links() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequestReview__links CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequestReview__links CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestReview__links(); + return new global::GitHub.Models.PullRequestReview__links(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"html", n => { Html = n.GetObjectValue(PullRequestReview__links_html.CreateFromDiscriminatorValue); } }, - {"pull_request", n => { PullRequest = n.GetObjectValue(PullRequestReview__links_pull_request.CreateFromDiscriminatorValue); } }, + { "html", n => { Html = n.GetObjectValue(global::GitHub.Models.PullRequestReview__links_html.CreateFromDiscriminatorValue); } }, + { "pull_request", n => { PullRequest = n.GetObjectValue(global::GitHub.Models.PullRequestReview__links_pull_request.CreateFromDiscriminatorValue); } }, }; } /// @@ -63,8 +65,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("html", Html); - writer.WriteObjectValue("pull_request", PullRequest); + writer.WriteObjectValue("html", Html); + writer.WriteObjectValue("pull_request", PullRequest); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PullRequestReview__links_html.cs b/src/GitHub/Models/PullRequestReview__links_html.cs index bae31dd4..98fe9651 100644 --- a/src/GitHub/Models/PullRequestReview__links_html.cs +++ b/src/GitHub/Models/PullRequestReview__links_html.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequestReview__links_html : IAdditionalDataHolder, IParsable + public partial class PullRequestReview__links_html : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class PullRequestReview__links_html : IAdditionalDataHolder, IParsable public string Href { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequestReview__links_html() { @@ -29,12 +31,12 @@ public PullRequestReview__links_html() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequestReview__links_html CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequestReview__links_html CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestReview__links_html(); + return new global::GitHub.Models.PullRequestReview__links_html(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"href", n => { Href = n.GetStringValue(); } }, + { "href", n => { Href = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PullRequestReview__links_pull_request.cs b/src/GitHub/Models/PullRequestReview__links_pull_request.cs index 9bb16016..369c0c46 100644 --- a/src/GitHub/Models/PullRequestReview__links_pull_request.cs +++ b/src/GitHub/Models/PullRequestReview__links_pull_request.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequestReview__links_pull_request : IAdditionalDataHolder, IParsable + public partial class PullRequestReview__links_pull_request : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class PullRequestReview__links_pull_request : IAdditionalDataHolder, IPar public string Href { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequestReview__links_pull_request() { @@ -29,12 +31,12 @@ public PullRequestReview__links_pull_request() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequestReview__links_pull_request CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequestReview__links_pull_request CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestReview__links_pull_request(); + return new global::GitHub.Models.PullRequestReview__links_pull_request(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"href", n => { Href = n.GetStringValue(); } }, + { "href", n => { Href = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PullRequestSimple.cs b/src/GitHub/Models/PullRequestSimple.cs index 783e7d55..80ad7008 100644 --- a/src/GitHub/Models/PullRequestSimple.cs +++ b/src/GitHub/Models/PullRequestSimple.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Pull Request Simple /// - public class PullRequestSimple : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PullRequestSimple : IAdditionalDataHolder, IParsable { /// The active_lock_reason property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -23,36 +25,36 @@ public class PullRequestSimple : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Assignee { get; set; } + public global::GitHub.Models.NullableSimpleUser? Assignee { get; set; } #nullable restore #else - public NullableSimpleUser Assignee { get; set; } + public global::GitHub.Models.NullableSimpleUser Assignee { get; set; } #endif /// The assignees property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Assignees { get; set; } + public List? Assignees { get; set; } #nullable restore #else - public List Assignees { get; set; } + public List Assignees { get; set; } #endif /// How the author is associated with the repository. - public GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } + public global::GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } /// The status of auto merging a pull request. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.AutoMerge? AutoMerge { get; set; } + public global::GitHub.Models.AutoMerge? AutoMerge { get; set; } #nullable restore #else - public GitHub.Models.AutoMerge AutoMerge { get; set; } + public global::GitHub.Models.AutoMerge AutoMerge { get; set; } #endif /// The base property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequestSimple_base? Base { get; set; } + public global::GitHub.Models.PullRequestSimple_base? Base { get; set; } #nullable restore #else - public PullRequestSimple_base Base { get; set; } + public global::GitHub.Models.PullRequestSimple_base Base { get; set; } #endif /// The body property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,10 +97,10 @@ public class PullRequestSimple : IAdditionalDataHolder, IParsable /// The head property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequestSimple_head? Head { get; set; } + public global::GitHub.Models.PullRequestSimple_head? Head { get; set; } #nullable restore #else - public PullRequestSimple_head Head { get; set; } + public global::GitHub.Models.PullRequestSimple_head Head { get; set; } #endif /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -121,18 +123,18 @@ public class PullRequestSimple : IAdditionalDataHolder, IParsable /// The labels property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Labels { get; set; } + public List? Labels { get; set; } #nullable restore #else - public List Labels { get; set; } + public List Labels { get; set; } #endif /// The _links property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequestSimple__links? Links { get; set; } + public global::GitHub.Models.PullRequestSimple__links? Links { get; set; } #nullable restore #else - public PullRequestSimple__links Links { get; set; } + public global::GitHub.Models.PullRequestSimple__links Links { get; set; } #endif /// The locked property public bool? Locked { get; set; } @@ -149,10 +151,10 @@ public class PullRequestSimple : IAdditionalDataHolder, IParsable /// A collection of related issues and pull requests. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableMilestone? Milestone { get; set; } + public global::GitHub.Models.NullableMilestone? Milestone { get; set; } #nullable restore #else - public NullableMilestone Milestone { get; set; } + public global::GitHub.Models.NullableMilestone Milestone { get; set; } #endif /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -175,18 +177,18 @@ public class PullRequestSimple : IAdditionalDataHolder, IParsable /// The requested_reviewers property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? RequestedReviewers { get; set; } + public List? RequestedReviewers { get; set; } #nullable restore #else - public List RequestedReviewers { get; set; } + public List RequestedReviewers { get; set; } #endif /// The requested_teams property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? RequestedTeams { get; set; } + public List? RequestedTeams { get; set; } #nullable restore #else - public List RequestedTeams { get; set; } + public List RequestedTeams { get; set; } #endif /// The review_comments_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -241,13 +243,13 @@ public class PullRequestSimple : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? User { get; set; } + public global::GitHub.Models.NullableSimpleUser? User { get; set; } #nullable restore #else - public NullableSimpleUser User { get; set; } + public global::GitHub.Models.NullableSimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequestSimple() { @@ -256,12 +258,12 @@ public PullRequestSimple() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequestSimple CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequestSimple CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestSimple(); + return new global::GitHub.Models.PullRequestSimple(); } /// /// The deserialization information for the current model @@ -271,42 +273,42 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"active_lock_reason", n => { ActiveLockReason = n.GetStringValue(); } }, - {"assignee", n => { Assignee = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"assignees", n => { Assignees = n.GetCollectionOfObjectValues(SimpleUser.CreateFromDiscriminatorValue)?.ToList(); } }, - {"author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, - {"auto_merge", n => { AutoMerge = n.GetObjectValue(GitHub.Models.AutoMerge.CreateFromDiscriminatorValue); } }, - {"base", n => { Base = n.GetObjectValue(PullRequestSimple_base.CreateFromDiscriminatorValue); } }, - {"body", n => { Body = n.GetStringValue(); } }, - {"closed_at", n => { ClosedAt = n.GetDateTimeOffsetValue(); } }, - {"comments_url", n => { CommentsUrl = n.GetStringValue(); } }, - {"commits_url", n => { CommitsUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"diff_url", n => { DiffUrl = n.GetStringValue(); } }, - {"draft", n => { Draft = n.GetBoolValue(); } }, - {"head", n => { Head = n.GetObjectValue(PullRequestSimple_head.CreateFromDiscriminatorValue); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"issue_url", n => { IssueUrl = n.GetStringValue(); } }, - {"labels", n => { Labels = n.GetCollectionOfObjectValues(PullRequestSimple_labels.CreateFromDiscriminatorValue)?.ToList(); } }, - {"_links", n => { Links = n.GetObjectValue(PullRequestSimple__links.CreateFromDiscriminatorValue); } }, - {"locked", n => { Locked = n.GetBoolValue(); } }, - {"merge_commit_sha", n => { MergeCommitSha = n.GetStringValue(); } }, - {"merged_at", n => { MergedAt = n.GetDateTimeOffsetValue(); } }, - {"milestone", n => { Milestone = n.GetObjectValue(NullableMilestone.CreateFromDiscriminatorValue); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"number", n => { Number = n.GetIntValue(); } }, - {"patch_url", n => { PatchUrl = n.GetStringValue(); } }, - {"requested_reviewers", n => { RequestedReviewers = n.GetCollectionOfObjectValues(SimpleUser.CreateFromDiscriminatorValue)?.ToList(); } }, - {"requested_teams", n => { RequestedTeams = n.GetCollectionOfObjectValues(Team.CreateFromDiscriminatorValue)?.ToList(); } }, - {"review_comment_url", n => { ReviewCommentUrl = n.GetStringValue(); } }, - {"review_comments_url", n => { ReviewCommentsUrl = n.GetStringValue(); } }, - {"state", n => { State = n.GetStringValue(); } }, - {"statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "active_lock_reason", n => { ActiveLockReason = n.GetStringValue(); } }, + { "assignee", n => { Assignee = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "assignees", n => { Assignees = n.GetCollectionOfObjectValues(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue)?.AsList(); } }, + { "author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, + { "auto_merge", n => { AutoMerge = n.GetObjectValue(global::GitHub.Models.AutoMerge.CreateFromDiscriminatorValue); } }, + { "base", n => { Base = n.GetObjectValue(global::GitHub.Models.PullRequestSimple_base.CreateFromDiscriminatorValue); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "closed_at", n => { ClosedAt = n.GetDateTimeOffsetValue(); } }, + { "comments_url", n => { CommentsUrl = n.GetStringValue(); } }, + { "commits_url", n => { CommitsUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "diff_url", n => { DiffUrl = n.GetStringValue(); } }, + { "draft", n => { Draft = n.GetBoolValue(); } }, + { "head", n => { Head = n.GetObjectValue(global::GitHub.Models.PullRequestSimple_head.CreateFromDiscriminatorValue); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "issue_url", n => { IssueUrl = n.GetStringValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfObjectValues(global::GitHub.Models.PullRequestSimple_labels.CreateFromDiscriminatorValue)?.AsList(); } }, + { "_links", n => { Links = n.GetObjectValue(global::GitHub.Models.PullRequestSimple__links.CreateFromDiscriminatorValue); } }, + { "locked", n => { Locked = n.GetBoolValue(); } }, + { "merge_commit_sha", n => { MergeCommitSha = n.GetStringValue(); } }, + { "merged_at", n => { MergedAt = n.GetDateTimeOffsetValue(); } }, + { "milestone", n => { Milestone = n.GetObjectValue(global::GitHub.Models.NullableMilestone.CreateFromDiscriminatorValue); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "number", n => { Number = n.GetIntValue(); } }, + { "patch_url", n => { PatchUrl = n.GetStringValue(); } }, + { "requested_reviewers", n => { RequestedReviewers = n.GetCollectionOfObjectValues(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue)?.AsList(); } }, + { "requested_teams", n => { RequestedTeams = n.GetCollectionOfObjectValues(global::GitHub.Models.Team.CreateFromDiscriminatorValue)?.AsList(); } }, + { "review_comment_url", n => { ReviewCommentUrl = n.GetStringValue(); } }, + { "review_comments_url", n => { ReviewCommentsUrl = n.GetStringValue(); } }, + { "state", n => { State = n.GetStringValue(); } }, + { "statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -317,11 +319,11 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("active_lock_reason", ActiveLockReason); - writer.WriteObjectValue("assignee", Assignee); - writer.WriteCollectionOfObjectValues("assignees", Assignees); - writer.WriteEnumValue("author_association", AuthorAssociation); - writer.WriteObjectValue("auto_merge", AutoMerge); - writer.WriteObjectValue("base", Base); + writer.WriteObjectValue("assignee", Assignee); + writer.WriteCollectionOfObjectValues("assignees", Assignees); + writer.WriteEnumValue("author_association", AuthorAssociation); + writer.WriteObjectValue("auto_merge", AutoMerge); + writer.WriteObjectValue("base", Base); writer.WriteStringValue("body", Body); writer.WriteDateTimeOffsetValue("closed_at", ClosedAt); writer.WriteStringValue("comments_url", CommentsUrl); @@ -329,21 +331,21 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteStringValue("diff_url", DiffUrl); writer.WriteBoolValue("draft", Draft); - writer.WriteObjectValue("head", Head); + writer.WriteObjectValue("head", Head); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteLongValue("id", Id); writer.WriteStringValue("issue_url", IssueUrl); - writer.WriteCollectionOfObjectValues("labels", Labels); - writer.WriteObjectValue("_links", Links); + writer.WriteCollectionOfObjectValues("labels", Labels); + writer.WriteObjectValue("_links", Links); writer.WriteBoolValue("locked", Locked); writer.WriteStringValue("merge_commit_sha", MergeCommitSha); writer.WriteDateTimeOffsetValue("merged_at", MergedAt); - writer.WriteObjectValue("milestone", Milestone); + writer.WriteObjectValue("milestone", Milestone); writer.WriteStringValue("node_id", NodeId); writer.WriteIntValue("number", Number); writer.WriteStringValue("patch_url", PatchUrl); - writer.WriteCollectionOfObjectValues("requested_reviewers", RequestedReviewers); - writer.WriteCollectionOfObjectValues("requested_teams", RequestedTeams); + writer.WriteCollectionOfObjectValues("requested_reviewers", RequestedReviewers); + writer.WriteCollectionOfObjectValues("requested_teams", RequestedTeams); writer.WriteStringValue("review_comments_url", ReviewCommentsUrl); writer.WriteStringValue("review_comment_url", ReviewCommentUrl); writer.WriteStringValue("state", State); @@ -351,7 +353,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("title", Title); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PullRequestSimple__links.cs b/src/GitHub/Models/PullRequestSimple__links.cs index 515cf172..118873ba 100644 --- a/src/GitHub/Models/PullRequestSimple__links.cs +++ b/src/GitHub/Models/PullRequestSimple__links.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequestSimple__links : IAdditionalDataHolder, IParsable + public partial class PullRequestSimple__links : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,69 +16,69 @@ public class PullRequestSimple__links : IAdditionalDataHolder, IParsable /// Hypermedia Link #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Link? Comments { get; set; } + public global::GitHub.Models.Link? Comments { get; set; } #nullable restore #else - public Link Comments { get; set; } + public global::GitHub.Models.Link Comments { get; set; } #endif /// Hypermedia Link #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Link? Commits { get; set; } + public global::GitHub.Models.Link? Commits { get; set; } #nullable restore #else - public Link Commits { get; set; } + public global::GitHub.Models.Link Commits { get; set; } #endif /// Hypermedia Link #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Link? Html { get; set; } + public global::GitHub.Models.Link? Html { get; set; } #nullable restore #else - public Link Html { get; set; } + public global::GitHub.Models.Link Html { get; set; } #endif /// Hypermedia Link #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Link? Issue { get; set; } + public global::GitHub.Models.Link? Issue { get; set; } #nullable restore #else - public Link Issue { get; set; } + public global::GitHub.Models.Link Issue { get; set; } #endif /// Hypermedia Link #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Link? ReviewComment { get; set; } + public global::GitHub.Models.Link? ReviewComment { get; set; } #nullable restore #else - public Link ReviewComment { get; set; } + public global::GitHub.Models.Link ReviewComment { get; set; } #endif /// Hypermedia Link #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Link? ReviewComments { get; set; } + public global::GitHub.Models.Link? ReviewComments { get; set; } #nullable restore #else - public Link ReviewComments { get; set; } + public global::GitHub.Models.Link ReviewComments { get; set; } #endif /// Hypermedia Link #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Link? Self { get; set; } + public global::GitHub.Models.Link? Self { get; set; } #nullable restore #else - public Link Self { get; set; } + public global::GitHub.Models.Link Self { get; set; } #endif /// Hypermedia Link #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Link? Statuses { get; set; } + public global::GitHub.Models.Link? Statuses { get; set; } #nullable restore #else - public Link Statuses { get; set; } + public global::GitHub.Models.Link Statuses { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequestSimple__links() { @@ -85,12 +87,12 @@ public PullRequestSimple__links() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequestSimple__links CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequestSimple__links CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestSimple__links(); + return new global::GitHub.Models.PullRequestSimple__links(); } /// /// The deserialization information for the current model @@ -100,14 +102,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"comments", n => { Comments = n.GetObjectValue(Link.CreateFromDiscriminatorValue); } }, - {"commits", n => { Commits = n.GetObjectValue(Link.CreateFromDiscriminatorValue); } }, - {"html", n => { Html = n.GetObjectValue(Link.CreateFromDiscriminatorValue); } }, - {"issue", n => { Issue = n.GetObjectValue(Link.CreateFromDiscriminatorValue); } }, - {"review_comment", n => { ReviewComment = n.GetObjectValue(Link.CreateFromDiscriminatorValue); } }, - {"review_comments", n => { ReviewComments = n.GetObjectValue(Link.CreateFromDiscriminatorValue); } }, - {"self", n => { Self = n.GetObjectValue(Link.CreateFromDiscriminatorValue); } }, - {"statuses", n => { Statuses = n.GetObjectValue(Link.CreateFromDiscriminatorValue); } }, + { "comments", n => { Comments = n.GetObjectValue(global::GitHub.Models.Link.CreateFromDiscriminatorValue); } }, + { "commits", n => { Commits = n.GetObjectValue(global::GitHub.Models.Link.CreateFromDiscriminatorValue); } }, + { "html", n => { Html = n.GetObjectValue(global::GitHub.Models.Link.CreateFromDiscriminatorValue); } }, + { "issue", n => { Issue = n.GetObjectValue(global::GitHub.Models.Link.CreateFromDiscriminatorValue); } }, + { "review_comment", n => { ReviewComment = n.GetObjectValue(global::GitHub.Models.Link.CreateFromDiscriminatorValue); } }, + { "review_comments", n => { ReviewComments = n.GetObjectValue(global::GitHub.Models.Link.CreateFromDiscriminatorValue); } }, + { "self", n => { Self = n.GetObjectValue(global::GitHub.Models.Link.CreateFromDiscriminatorValue); } }, + { "statuses", n => { Statuses = n.GetObjectValue(global::GitHub.Models.Link.CreateFromDiscriminatorValue); } }, }; } /// @@ -117,14 +119,14 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("comments", Comments); - writer.WriteObjectValue("commits", Commits); - writer.WriteObjectValue("html", Html); - writer.WriteObjectValue("issue", Issue); - writer.WriteObjectValue("review_comment", ReviewComment); - writer.WriteObjectValue("review_comments", ReviewComments); - writer.WriteObjectValue("self", Self); - writer.WriteObjectValue("statuses", Statuses); + writer.WriteObjectValue("comments", Comments); + writer.WriteObjectValue("commits", Commits); + writer.WriteObjectValue("html", Html); + writer.WriteObjectValue("issue", Issue); + writer.WriteObjectValue("review_comment", ReviewComment); + writer.WriteObjectValue("review_comments", ReviewComments); + writer.WriteObjectValue("self", Self); + writer.WriteObjectValue("statuses", Statuses); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PullRequestSimple_base.cs b/src/GitHub/Models/PullRequestSimple_base.cs index f118a920..59c43d72 100644 --- a/src/GitHub/Models/PullRequestSimple_base.cs +++ b/src/GitHub/Models/PullRequestSimple_base.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequestSimple_base : IAdditionalDataHolder, IParsable + public partial class PullRequestSimple_base : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,10 +32,10 @@ public class PullRequestSimple_base : IAdditionalDataHolder, IParsable /// A repository on GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Repository? Repo { get; set; } + public global::GitHub.Models.Repository? Repo { get; set; } #nullable restore #else - public Repository Repo { get; set; } + public global::GitHub.Models.Repository Repo { get; set; } #endif /// The sha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -46,13 +48,13 @@ public class PullRequestSimple_base : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? User { get; set; } + public global::GitHub.Models.NullableSimpleUser? User { get; set; } #nullable restore #else - public NullableSimpleUser User { get; set; } + public global::GitHub.Models.NullableSimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequestSimple_base() { @@ -61,12 +63,12 @@ public PullRequestSimple_base() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequestSimple_base CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequestSimple_base CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestSimple_base(); + return new global::GitHub.Models.PullRequestSimple_base(); } /// /// The deserialization information for the current model @@ -76,11 +78,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"label", n => { Label = n.GetStringValue(); } }, - {"ref", n => { Ref = n.GetStringValue(); } }, - {"repo", n => { Repo = n.GetObjectValue(Repository.CreateFromDiscriminatorValue); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "label", n => { Label = n.GetStringValue(); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, + { "repo", n => { Repo = n.GetObjectValue(global::GitHub.Models.Repository.CreateFromDiscriminatorValue); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -92,9 +94,9 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("label", Label); writer.WriteStringValue("ref", Ref); - writer.WriteObjectValue("repo", Repo); + writer.WriteObjectValue("repo", Repo); writer.WriteStringValue("sha", Sha); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PullRequestSimple_head.cs b/src/GitHub/Models/PullRequestSimple_head.cs index 79a8464d..39383715 100644 --- a/src/GitHub/Models/PullRequestSimple_head.cs +++ b/src/GitHub/Models/PullRequestSimple_head.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequestSimple_head : IAdditionalDataHolder, IParsable + public partial class PullRequestSimple_head : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,10 +32,10 @@ public class PullRequestSimple_head : IAdditionalDataHolder, IParsable /// A repository on GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Repository? Repo { get; set; } + public global::GitHub.Models.Repository? Repo { get; set; } #nullable restore #else - public Repository Repo { get; set; } + public global::GitHub.Models.Repository Repo { get; set; } #endif /// The sha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -46,13 +48,13 @@ public class PullRequestSimple_head : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? User { get; set; } + public global::GitHub.Models.NullableSimpleUser? User { get; set; } #nullable restore #else - public NullableSimpleUser User { get; set; } + public global::GitHub.Models.NullableSimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequestSimple_head() { @@ -61,12 +63,12 @@ public PullRequestSimple_head() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequestSimple_head CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequestSimple_head CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestSimple_head(); + return new global::GitHub.Models.PullRequestSimple_head(); } /// /// The deserialization information for the current model @@ -76,11 +78,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"label", n => { Label = n.GetStringValue(); } }, - {"ref", n => { Ref = n.GetStringValue(); } }, - {"repo", n => { Repo = n.GetObjectValue(Repository.CreateFromDiscriminatorValue); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "label", n => { Label = n.GetStringValue(); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, + { "repo", n => { Repo = n.GetObjectValue(global::GitHub.Models.Repository.CreateFromDiscriminatorValue); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -92,9 +94,9 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("label", Label); writer.WriteStringValue("ref", Ref); - writer.WriteObjectValue("repo", Repo); + writer.WriteObjectValue("repo", Repo); writer.WriteStringValue("sha", Sha); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PullRequestSimple_labels.cs b/src/GitHub/Models/PullRequestSimple_labels.cs index 8175a449..3bee6114 100644 --- a/src/GitHub/Models/PullRequestSimple_labels.cs +++ b/src/GitHub/Models/PullRequestSimple_labels.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequestSimple_labels : IAdditionalDataHolder, IParsable + public partial class PullRequestSimple_labels : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -56,7 +58,7 @@ public class PullRequestSimple_labels : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequestSimple_labels() { @@ -65,12 +67,12 @@ public PullRequestSimple_labels() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequestSimple_labels CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequestSimple_labels CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestSimple_labels(); + return new global::GitHub.Models.PullRequestSimple_labels(); } /// /// The deserialization information for the current model @@ -80,13 +82,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"color", n => { Color = n.GetStringValue(); } }, - {"default", n => { Default = n.GetBoolValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "color", n => { Color = n.GetStringValue(); } }, + { "default", n => { Default = n.GetBoolValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PullRequestWebhook.cs b/src/GitHub/Models/PullRequestWebhook.cs index 70a87c64..f0e242ca 100644 --- a/src/GitHub/Models/PullRequestWebhook.cs +++ b/src/GitHub/Models/PullRequestWebhook.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequestWebhook : PullRequest, IParsable + public partial class PullRequestWebhook : global::GitHub.Models.PullRequest, IParsable #pragma warning restore CS1591 { /// Whether to allow auto-merge for pull requests. @@ -16,24 +18,24 @@ public class PullRequestWebhook : PullRequest, IParsable /// Whether to delete head branches when pull requests are merged. public bool? DeleteBranchOnMerge { get; set; } /// 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. - public PullRequestWebhook_merge_commit_message? MergeCommitMessage { get; set; } + public global::GitHub.Models.PullRequestWebhook_merge_commit_message? MergeCommitMessage { get; set; } /// 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"). - public PullRequestWebhook_merge_commit_title? MergeCommitTitle { get; set; } + public global::GitHub.Models.PullRequestWebhook_merge_commit_title? MergeCommitTitle { get; set; } /// 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. - public PullRequestWebhook_squash_merge_commit_message? SquashMergeCommitMessage { get; set; } + public global::GitHub.Models.PullRequestWebhook_squash_merge_commit_message? SquashMergeCommitMessage { get; set; } /// 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). - public PullRequestWebhook_squash_merge_commit_title? SquashMergeCommitTitle { get; set; } + public global::GitHub.Models.PullRequestWebhook_squash_merge_commit_title? SquashMergeCommitTitle { get; set; } /// Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.** public bool? UseSquashPrTitleAsDefault { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new PullRequestWebhook CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::GitHub.Models.PullRequestWebhook CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequestWebhook(); + return new global::GitHub.Models.PullRequestWebhook(); } /// /// The deserialization information for the current model @@ -43,14 +45,14 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"allow_auto_merge", n => { AllowAutoMerge = n.GetBoolValue(); } }, - {"allow_update_branch", n => { AllowUpdateBranch = n.GetBoolValue(); } }, - {"delete_branch_on_merge", n => { DeleteBranchOnMerge = n.GetBoolValue(); } }, - {"merge_commit_message", n => { MergeCommitMessage = n.GetEnumValue(); } }, - {"merge_commit_title", n => { MergeCommitTitle = n.GetEnumValue(); } }, - {"squash_merge_commit_message", n => { SquashMergeCommitMessage = n.GetEnumValue(); } }, - {"squash_merge_commit_title", n => { SquashMergeCommitTitle = n.GetEnumValue(); } }, - {"use_squash_pr_title_as_default", n => { UseSquashPrTitleAsDefault = n.GetBoolValue(); } }, + { "allow_auto_merge", n => { AllowAutoMerge = n.GetBoolValue(); } }, + { "allow_update_branch", n => { AllowUpdateBranch = n.GetBoolValue(); } }, + { "delete_branch_on_merge", n => { DeleteBranchOnMerge = n.GetBoolValue(); } }, + { "merge_commit_message", n => { MergeCommitMessage = n.GetEnumValue(); } }, + { "merge_commit_title", n => { MergeCommitTitle = n.GetEnumValue(); } }, + { "squash_merge_commit_message", n => { SquashMergeCommitMessage = n.GetEnumValue(); } }, + { "squash_merge_commit_title", n => { SquashMergeCommitTitle = n.GetEnumValue(); } }, + { "use_squash_pr_title_as_default", n => { UseSquashPrTitleAsDefault = n.GetBoolValue(); } }, }; } /// @@ -64,10 +66,10 @@ public override void Serialize(ISerializationWriter writer) writer.WriteBoolValue("allow_auto_merge", AllowAutoMerge); writer.WriteBoolValue("allow_update_branch", AllowUpdateBranch); writer.WriteBoolValue("delete_branch_on_merge", DeleteBranchOnMerge); - writer.WriteEnumValue("merge_commit_message", MergeCommitMessage); - writer.WriteEnumValue("merge_commit_title", MergeCommitTitle); - writer.WriteEnumValue("squash_merge_commit_message", SquashMergeCommitMessage); - writer.WriteEnumValue("squash_merge_commit_title", SquashMergeCommitTitle); + writer.WriteEnumValue("merge_commit_message", MergeCommitMessage); + writer.WriteEnumValue("merge_commit_title", MergeCommitTitle); + writer.WriteEnumValue("squash_merge_commit_message", SquashMergeCommitMessage); + writer.WriteEnumValue("squash_merge_commit_title", SquashMergeCommitTitle); writer.WriteBoolValue("use_squash_pr_title_as_default", UseSquashPrTitleAsDefault); } } diff --git a/src/GitHub/Models/PullRequestWebhook_merge_commit_message.cs b/src/GitHub/Models/PullRequestWebhook_merge_commit_message.cs index fd7f35ea..3438dd64 100644 --- a/src/GitHub/Models/PullRequestWebhook_merge_commit_message.cs +++ b/src/GitHub/Models/PullRequestWebhook_merge_commit_message.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// 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. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum PullRequestWebhook_merge_commit_message { [EnumMember(Value = "PR_BODY")] diff --git a/src/GitHub/Models/PullRequestWebhook_merge_commit_title.cs b/src/GitHub/Models/PullRequestWebhook_merge_commit_title.cs index c1255e25..0c1ba7cd 100644 --- a/src/GitHub/Models/PullRequestWebhook_merge_commit_title.cs +++ b/src/GitHub/Models/PullRequestWebhook_merge_commit_title.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// 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"). + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum PullRequestWebhook_merge_commit_title { [EnumMember(Value = "PR_TITLE")] diff --git a/src/GitHub/Models/PullRequestWebhook_squash_merge_commit_message.cs b/src/GitHub/Models/PullRequestWebhook_squash_merge_commit_message.cs index 25f6fe1f..60e8ea17 100644 --- a/src/GitHub/Models/PullRequestWebhook_squash_merge_commit_message.cs +++ b/src/GitHub/Models/PullRequestWebhook_squash_merge_commit_message.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// 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. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum PullRequestWebhook_squash_merge_commit_message { [EnumMember(Value = "PR_BODY")] diff --git a/src/GitHub/Models/PullRequestWebhook_squash_merge_commit_title.cs b/src/GitHub/Models/PullRequestWebhook_squash_merge_commit_title.cs index 91d8fbe4..69047e1d 100644 --- a/src/GitHub/Models/PullRequestWebhook_squash_merge_commit_title.cs +++ b/src/GitHub/Models/PullRequestWebhook_squash_merge_commit_title.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// 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). + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum PullRequestWebhook_squash_merge_commit_title { [EnumMember(Value = "PR_TITLE")] diff --git a/src/GitHub/Models/PullRequest__links.cs b/src/GitHub/Models/PullRequest__links.cs index c2bda86a..959a5346 100644 --- a/src/GitHub/Models/PullRequest__links.cs +++ b/src/GitHub/Models/PullRequest__links.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequest__links : IAdditionalDataHolder, IParsable + public partial class PullRequest__links : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,69 +16,69 @@ public class PullRequest__links : IAdditionalDataHolder, IParsable /// Hypermedia Link #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Link? Comments { get; set; } + public global::GitHub.Models.Link? Comments { get; set; } #nullable restore #else - public Link Comments { get; set; } + public global::GitHub.Models.Link Comments { get; set; } #endif /// Hypermedia Link #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Link? Commits { get; set; } + public global::GitHub.Models.Link? Commits { get; set; } #nullable restore #else - public Link Commits { get; set; } + public global::GitHub.Models.Link Commits { get; set; } #endif /// Hypermedia Link #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Link? Html { get; set; } + public global::GitHub.Models.Link? Html { get; set; } #nullable restore #else - public Link Html { get; set; } + public global::GitHub.Models.Link Html { get; set; } #endif /// Hypermedia Link #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Link? Issue { get; set; } + public global::GitHub.Models.Link? Issue { get; set; } #nullable restore #else - public Link Issue { get; set; } + public global::GitHub.Models.Link Issue { get; set; } #endif /// Hypermedia Link #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Link? ReviewComment { get; set; } + public global::GitHub.Models.Link? ReviewComment { get; set; } #nullable restore #else - public Link ReviewComment { get; set; } + public global::GitHub.Models.Link ReviewComment { get; set; } #endif /// Hypermedia Link #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Link? ReviewComments { get; set; } + public global::GitHub.Models.Link? ReviewComments { get; set; } #nullable restore #else - public Link ReviewComments { get; set; } + public global::GitHub.Models.Link ReviewComments { get; set; } #endif /// Hypermedia Link #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Link? Self { get; set; } + public global::GitHub.Models.Link? Self { get; set; } #nullable restore #else - public Link Self { get; set; } + public global::GitHub.Models.Link Self { get; set; } #endif /// Hypermedia Link #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Link? Statuses { get; set; } + public global::GitHub.Models.Link? Statuses { get; set; } #nullable restore #else - public Link Statuses { get; set; } + public global::GitHub.Models.Link Statuses { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequest__links() { @@ -85,12 +87,12 @@ public PullRequest__links() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequest__links CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequest__links CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequest__links(); + return new global::GitHub.Models.PullRequest__links(); } /// /// The deserialization information for the current model @@ -100,14 +102,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"comments", n => { Comments = n.GetObjectValue(Link.CreateFromDiscriminatorValue); } }, - {"commits", n => { Commits = n.GetObjectValue(Link.CreateFromDiscriminatorValue); } }, - {"html", n => { Html = n.GetObjectValue(Link.CreateFromDiscriminatorValue); } }, - {"issue", n => { Issue = n.GetObjectValue(Link.CreateFromDiscriminatorValue); } }, - {"review_comment", n => { ReviewComment = n.GetObjectValue(Link.CreateFromDiscriminatorValue); } }, - {"review_comments", n => { ReviewComments = n.GetObjectValue(Link.CreateFromDiscriminatorValue); } }, - {"self", n => { Self = n.GetObjectValue(Link.CreateFromDiscriminatorValue); } }, - {"statuses", n => { Statuses = n.GetObjectValue(Link.CreateFromDiscriminatorValue); } }, + { "comments", n => { Comments = n.GetObjectValue(global::GitHub.Models.Link.CreateFromDiscriminatorValue); } }, + { "commits", n => { Commits = n.GetObjectValue(global::GitHub.Models.Link.CreateFromDiscriminatorValue); } }, + { "html", n => { Html = n.GetObjectValue(global::GitHub.Models.Link.CreateFromDiscriminatorValue); } }, + { "issue", n => { Issue = n.GetObjectValue(global::GitHub.Models.Link.CreateFromDiscriminatorValue); } }, + { "review_comment", n => { ReviewComment = n.GetObjectValue(global::GitHub.Models.Link.CreateFromDiscriminatorValue); } }, + { "review_comments", n => { ReviewComments = n.GetObjectValue(global::GitHub.Models.Link.CreateFromDiscriminatorValue); } }, + { "self", n => { Self = n.GetObjectValue(global::GitHub.Models.Link.CreateFromDiscriminatorValue); } }, + { "statuses", n => { Statuses = n.GetObjectValue(global::GitHub.Models.Link.CreateFromDiscriminatorValue); } }, }; } /// @@ -117,14 +119,14 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("comments", Comments); - writer.WriteObjectValue("commits", Commits); - writer.WriteObjectValue("html", Html); - writer.WriteObjectValue("issue", Issue); - writer.WriteObjectValue("review_comment", ReviewComment); - writer.WriteObjectValue("review_comments", ReviewComments); - writer.WriteObjectValue("self", Self); - writer.WriteObjectValue("statuses", Statuses); + writer.WriteObjectValue("comments", Comments); + writer.WriteObjectValue("commits", Commits); + writer.WriteObjectValue("html", Html); + writer.WriteObjectValue("issue", Issue); + writer.WriteObjectValue("review_comment", ReviewComment); + writer.WriteObjectValue("review_comments", ReviewComments); + writer.WriteObjectValue("self", Self); + writer.WriteObjectValue("statuses", Statuses); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PullRequest_base.cs b/src/GitHub/Models/PullRequest_base.cs index 3ddb0d49..bbb9959a 100644 --- a/src/GitHub/Models/PullRequest_base.cs +++ b/src/GitHub/Models/PullRequest_base.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequest_base : IAdditionalDataHolder, IParsable + public partial class PullRequest_base : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,10 +32,10 @@ public class PullRequest_base : IAdditionalDataHolder, IParsable /// The repo property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequest_base_repo? Repo { get; set; } + public global::GitHub.Models.PullRequest_base_repo? Repo { get; set; } #nullable restore #else - public PullRequest_base_repo Repo { get; set; } + public global::GitHub.Models.PullRequest_base_repo Repo { get; set; } #endif /// The sha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -46,13 +48,13 @@ public class PullRequest_base : IAdditionalDataHolder, IParsable /// The user property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequest_base_user? User { get; set; } + public global::GitHub.Models.PullRequest_base_user? User { get; set; } #nullable restore #else - public PullRequest_base_user User { get; set; } + public global::GitHub.Models.PullRequest_base_user User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequest_base() { @@ -61,12 +63,12 @@ public PullRequest_base() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequest_base CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequest_base CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequest_base(); + return new global::GitHub.Models.PullRequest_base(); } /// /// The deserialization information for the current model @@ -76,11 +78,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"label", n => { Label = n.GetStringValue(); } }, - {"ref", n => { Ref = n.GetStringValue(); } }, - {"repo", n => { Repo = n.GetObjectValue(PullRequest_base_repo.CreateFromDiscriminatorValue); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(PullRequest_base_user.CreateFromDiscriminatorValue); } }, + { "label", n => { Label = n.GetStringValue(); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, + { "repo", n => { Repo = n.GetObjectValue(global::GitHub.Models.PullRequest_base_repo.CreateFromDiscriminatorValue); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.PullRequest_base_user.CreateFromDiscriminatorValue); } }, }; } /// @@ -92,9 +94,9 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("label", Label); writer.WriteStringValue("ref", Ref); - writer.WriteObjectValue("repo", Repo); + writer.WriteObjectValue("repo", Repo); writer.WriteStringValue("sha", Sha); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PullRequest_base_repo.cs b/src/GitHub/Models/PullRequest_base_repo.cs index 576ddeae..53a69d21 100644 --- a/src/GitHub/Models/PullRequest_base_repo.cs +++ b/src/GitHub/Models/PullRequest_base_repo.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequest_base_repo : IAdditionalDataHolder, IParsable + public partial class PullRequest_base_repo : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -306,10 +308,10 @@ public class PullRequest_base_repo : IAdditionalDataHolder, IParsable /// License Simple #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableLicenseSimple? License { get; set; } + public global::GitHub.Models.NullableLicenseSimple? License { get; set; } #nullable restore #else - public NullableLicenseSimple License { get; set; } + public global::GitHub.Models.NullableLicenseSimple License { get; set; } #endif /// The master_branch property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -374,18 +376,18 @@ public class PullRequest_base_repo : IAdditionalDataHolder, IParsable /// The owner property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequest_base_repo_owner? Owner { get; set; } + public global::GitHub.Models.PullRequest_base_repo_owner? Owner { get; set; } #nullable restore #else - public PullRequest_base_repo_owner Owner { get; set; } + public global::GitHub.Models.PullRequest_base_repo_owner Owner { get; set; } #endif /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequest_base_repo_permissions? Permissions { get; set; } + public global::GitHub.Models.PullRequest_base_repo_permissions? Permissions { get; set; } #nullable restore #else - public PullRequest_base_repo_permissions Permissions { get; set; } + public global::GitHub.Models.PullRequest_base_repo_permissions Permissions { get; set; } #endif /// The private property public bool? Private { get; set; } @@ -524,7 +526,7 @@ public class PullRequest_base_repo : IAdditionalDataHolder, IParsable /// The web_commit_signoff_required property public bool? WebCommitSignoffRequired { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequest_base_repo() { @@ -533,12 +535,12 @@ public PullRequest_base_repo() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequest_base_repo CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequest_base_repo CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequest_base_repo(); + return new global::GitHub.Models.PullRequest_base_repo(); } /// /// The deserialization information for the current model @@ -548,91 +550,91 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allow_forking", n => { AllowForking = n.GetBoolValue(); } }, - {"allow_merge_commit", n => { AllowMergeCommit = n.GetBoolValue(); } }, - {"allow_rebase_merge", n => { AllowRebaseMerge = n.GetBoolValue(); } }, - {"allow_squash_merge", n => { AllowSquashMerge = n.GetBoolValue(); } }, - {"archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, - {"archived", n => { Archived = n.GetBoolValue(); } }, - {"assignees_url", n => { AssigneesUrl = n.GetStringValue(); } }, - {"blobs_url", n => { BlobsUrl = n.GetStringValue(); } }, - {"branches_url", n => { BranchesUrl = n.GetStringValue(); } }, - {"clone_url", n => { CloneUrl = n.GetStringValue(); } }, - {"collaborators_url", n => { CollaboratorsUrl = n.GetStringValue(); } }, - {"comments_url", n => { CommentsUrl = n.GetStringValue(); } }, - {"commits_url", n => { CommitsUrl = n.GetStringValue(); } }, - {"compare_url", n => { CompareUrl = n.GetStringValue(); } }, - {"contents_url", n => { ContentsUrl = n.GetStringValue(); } }, - {"contributors_url", n => { ContributorsUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"default_branch", n => { DefaultBranch = n.GetStringValue(); } }, - {"deployments_url", n => { DeploymentsUrl = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"disabled", n => { Disabled = n.GetBoolValue(); } }, - {"downloads_url", n => { DownloadsUrl = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"fork", n => { Fork = n.GetBoolValue(); } }, - {"forks", n => { Forks = n.GetIntValue(); } }, - {"forks_count", n => { ForksCount = n.GetIntValue(); } }, - {"forks_url", n => { ForksUrl = n.GetStringValue(); } }, - {"full_name", n => { FullName = n.GetStringValue(); } }, - {"git_commits_url", n => { GitCommitsUrl = n.GetStringValue(); } }, - {"git_refs_url", n => { GitRefsUrl = n.GetStringValue(); } }, - {"git_tags_url", n => { GitTagsUrl = n.GetStringValue(); } }, - {"git_url", n => { GitUrl = n.GetStringValue(); } }, - {"has_discussions", n => { HasDiscussions = n.GetBoolValue(); } }, - {"has_downloads", n => { HasDownloads = n.GetBoolValue(); } }, - {"has_issues", n => { HasIssues = n.GetBoolValue(); } }, - {"has_pages", n => { HasPages = n.GetBoolValue(); } }, - {"has_projects", n => { HasProjects = n.GetBoolValue(); } }, - {"has_wiki", n => { HasWiki = n.GetBoolValue(); } }, - {"homepage", n => { Homepage = n.GetStringValue(); } }, - {"hooks_url", n => { HooksUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"is_template", n => { IsTemplate = n.GetBoolValue(); } }, - {"issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, - {"issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } }, - {"issues_url", n => { IssuesUrl = n.GetStringValue(); } }, - {"keys_url", n => { KeysUrl = n.GetStringValue(); } }, - {"labels_url", n => { LabelsUrl = n.GetStringValue(); } }, - {"language", n => { Language = n.GetStringValue(); } }, - {"languages_url", n => { LanguagesUrl = n.GetStringValue(); } }, - {"license", n => { License = n.GetObjectValue(NullableLicenseSimple.CreateFromDiscriminatorValue); } }, - {"master_branch", n => { MasterBranch = n.GetStringValue(); } }, - {"merges_url", n => { MergesUrl = n.GetStringValue(); } }, - {"milestones_url", n => { MilestonesUrl = n.GetStringValue(); } }, - {"mirror_url", n => { MirrorUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, - {"open_issues", n => { OpenIssues = n.GetIntValue(); } }, - {"open_issues_count", n => { OpenIssuesCount = n.GetIntValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(PullRequest_base_repo_owner.CreateFromDiscriminatorValue); } }, - {"permissions", n => { Permissions = n.GetObjectValue(PullRequest_base_repo_permissions.CreateFromDiscriminatorValue); } }, - {"private", n => { Private = n.GetBoolValue(); } }, - {"pulls_url", n => { PullsUrl = n.GetStringValue(); } }, - {"pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, - {"releases_url", n => { ReleasesUrl = n.GetStringValue(); } }, - {"size", n => { Size = n.GetIntValue(); } }, - {"ssh_url", n => { SshUrl = n.GetStringValue(); } }, - {"stargazers_count", n => { StargazersCount = n.GetIntValue(); } }, - {"stargazers_url", n => { StargazersUrl = n.GetStringValue(); } }, - {"statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, - {"subscribers_url", n => { SubscribersUrl = n.GetStringValue(); } }, - {"subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, - {"svn_url", n => { SvnUrl = n.GetStringValue(); } }, - {"tags_url", n => { TagsUrl = n.GetStringValue(); } }, - {"teams_url", n => { TeamsUrl = n.GetStringValue(); } }, - {"temp_clone_token", n => { TempCloneToken = n.GetStringValue(); } }, - {"topics", n => { Topics = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"trees_url", n => { TreesUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"visibility", n => { Visibility = n.GetStringValue(); } }, - {"watchers", n => { Watchers = n.GetIntValue(); } }, - {"watchers_count", n => { WatchersCount = n.GetIntValue(); } }, - {"web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, + { "allow_forking", n => { AllowForking = n.GetBoolValue(); } }, + { "allow_merge_commit", n => { AllowMergeCommit = n.GetBoolValue(); } }, + { "allow_rebase_merge", n => { AllowRebaseMerge = n.GetBoolValue(); } }, + { "allow_squash_merge", n => { AllowSquashMerge = n.GetBoolValue(); } }, + { "archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, + { "archived", n => { Archived = n.GetBoolValue(); } }, + { "assignees_url", n => { AssigneesUrl = n.GetStringValue(); } }, + { "blobs_url", n => { BlobsUrl = n.GetStringValue(); } }, + { "branches_url", n => { BranchesUrl = n.GetStringValue(); } }, + { "clone_url", n => { CloneUrl = n.GetStringValue(); } }, + { "collaborators_url", n => { CollaboratorsUrl = n.GetStringValue(); } }, + { "comments_url", n => { CommentsUrl = n.GetStringValue(); } }, + { "commits_url", n => { CommitsUrl = n.GetStringValue(); } }, + { "compare_url", n => { CompareUrl = n.GetStringValue(); } }, + { "contents_url", n => { ContentsUrl = n.GetStringValue(); } }, + { "contributors_url", n => { ContributorsUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "default_branch", n => { DefaultBranch = n.GetStringValue(); } }, + { "deployments_url", n => { DeploymentsUrl = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "disabled", n => { Disabled = n.GetBoolValue(); } }, + { "downloads_url", n => { DownloadsUrl = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "fork", n => { Fork = n.GetBoolValue(); } }, + { "forks", n => { Forks = n.GetIntValue(); } }, + { "forks_count", n => { ForksCount = n.GetIntValue(); } }, + { "forks_url", n => { ForksUrl = n.GetStringValue(); } }, + { "full_name", n => { FullName = n.GetStringValue(); } }, + { "git_commits_url", n => { GitCommitsUrl = n.GetStringValue(); } }, + { "git_refs_url", n => { GitRefsUrl = n.GetStringValue(); } }, + { "git_tags_url", n => { GitTagsUrl = n.GetStringValue(); } }, + { "git_url", n => { GitUrl = n.GetStringValue(); } }, + { "has_discussions", n => { HasDiscussions = n.GetBoolValue(); } }, + { "has_downloads", n => { HasDownloads = n.GetBoolValue(); } }, + { "has_issues", n => { HasIssues = n.GetBoolValue(); } }, + { "has_pages", n => { HasPages = n.GetBoolValue(); } }, + { "has_projects", n => { HasProjects = n.GetBoolValue(); } }, + { "has_wiki", n => { HasWiki = n.GetBoolValue(); } }, + { "homepage", n => { Homepage = n.GetStringValue(); } }, + { "hooks_url", n => { HooksUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "is_template", n => { IsTemplate = n.GetBoolValue(); } }, + { "issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, + { "issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } }, + { "issues_url", n => { IssuesUrl = n.GetStringValue(); } }, + { "keys_url", n => { KeysUrl = n.GetStringValue(); } }, + { "labels_url", n => { LabelsUrl = n.GetStringValue(); } }, + { "language", n => { Language = n.GetStringValue(); } }, + { "languages_url", n => { LanguagesUrl = n.GetStringValue(); } }, + { "license", n => { License = n.GetObjectValue(global::GitHub.Models.NullableLicenseSimple.CreateFromDiscriminatorValue); } }, + { "master_branch", n => { MasterBranch = n.GetStringValue(); } }, + { "merges_url", n => { MergesUrl = n.GetStringValue(); } }, + { "milestones_url", n => { MilestonesUrl = n.GetStringValue(); } }, + { "mirror_url", n => { MirrorUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, + { "open_issues", n => { OpenIssues = n.GetIntValue(); } }, + { "open_issues_count", n => { OpenIssuesCount = n.GetIntValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.PullRequest_base_repo_owner.CreateFromDiscriminatorValue); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.PullRequest_base_repo_permissions.CreateFromDiscriminatorValue); } }, + { "private", n => { Private = n.GetBoolValue(); } }, + { "pulls_url", n => { PullsUrl = n.GetStringValue(); } }, + { "pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, + { "releases_url", n => { ReleasesUrl = n.GetStringValue(); } }, + { "size", n => { Size = n.GetIntValue(); } }, + { "ssh_url", n => { SshUrl = n.GetStringValue(); } }, + { "stargazers_count", n => { StargazersCount = n.GetIntValue(); } }, + { "stargazers_url", n => { StargazersUrl = n.GetStringValue(); } }, + { "statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, + { "subscribers_url", n => { SubscribersUrl = n.GetStringValue(); } }, + { "subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, + { "svn_url", n => { SvnUrl = n.GetStringValue(); } }, + { "tags_url", n => { TagsUrl = n.GetStringValue(); } }, + { "teams_url", n => { TeamsUrl = n.GetStringValue(); } }, + { "temp_clone_token", n => { TempCloneToken = n.GetStringValue(); } }, + { "topics", n => { Topics = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "trees_url", n => { TreesUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "visibility", n => { Visibility = n.GetStringValue(); } }, + { "watchers", n => { Watchers = n.GetIntValue(); } }, + { "watchers_count", n => { WatchersCount = n.GetIntValue(); } }, + { "web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, }; } /// @@ -692,7 +694,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("labels_url", LabelsUrl); writer.WriteStringValue("language", Language); writer.WriteStringValue("languages_url", LanguagesUrl); - writer.WriteObjectValue("license", License); + writer.WriteObjectValue("license", License); writer.WriteStringValue("master_branch", MasterBranch); writer.WriteStringValue("merges_url", MergesUrl); writer.WriteStringValue("milestones_url", MilestonesUrl); @@ -702,8 +704,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("notifications_url", NotificationsUrl); writer.WriteIntValue("open_issues", OpenIssues); writer.WriteIntValue("open_issues_count", OpenIssuesCount); - writer.WriteObjectValue("owner", Owner); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("owner", Owner); + writer.WriteObjectValue("permissions", Permissions); writer.WriteBoolValue("private", Private); writer.WriteStringValue("pulls_url", PullsUrl); writer.WriteDateTimeOffsetValue("pushed_at", PushedAt); diff --git a/src/GitHub/Models/PullRequest_base_repo_owner.cs b/src/GitHub/Models/PullRequest_base_repo_owner.cs index 85c6d156..7b6e4c79 100644 --- a/src/GitHub/Models/PullRequest_base_repo_owner.cs +++ b/src/GitHub/Models/PullRequest_base_repo_owner.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequest_base_repo_owner : IAdditionalDataHolder, IParsable + public partial class PullRequest_base_repo_owner : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -144,7 +146,7 @@ public class PullRequest_base_repo_owner : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequest_base_repo_owner() { @@ -153,12 +155,12 @@ public PullRequest_base_repo_owner() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequest_base_repo_owner CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequest_base_repo_owner CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequest_base_repo_owner(); + return new global::GitHub.Models.PullRequest_base_repo_owner(); } /// /// The deserialization information for the current model @@ -168,24 +170,24 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"followers_url", n => { FollowersUrl = n.GetStringValue(); } }, - {"following_url", n => { FollowingUrl = n.GetStringValue(); } }, - {"gists_url", n => { GistsUrl = n.GetStringValue(); } }, - {"gravatar_id", n => { GravatarId = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, - {"received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, - {"repos_url", n => { ReposUrl = n.GetStringValue(); } }, - {"site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, - {"starred_url", n => { StarredUrl = n.GetStringValue(); } }, - {"subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "followers_url", n => { FollowersUrl = n.GetStringValue(); } }, + { "following_url", n => { FollowingUrl = n.GetStringValue(); } }, + { "gists_url", n => { GistsUrl = n.GetStringValue(); } }, + { "gravatar_id", n => { GravatarId = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, + { "received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, + { "repos_url", n => { ReposUrl = n.GetStringValue(); } }, + { "site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, + { "starred_url", n => { StarredUrl = n.GetStringValue(); } }, + { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PullRequest_base_repo_permissions.cs b/src/GitHub/Models/PullRequest_base_repo_permissions.cs index 74bed487..3ea9a43e 100644 --- a/src/GitHub/Models/PullRequest_base_repo_permissions.cs +++ b/src/GitHub/Models/PullRequest_base_repo_permissions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequest_base_repo_permissions : IAdditionalDataHolder, IParsable + public partial class PullRequest_base_repo_permissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class PullRequest_base_repo_permissions : IAdditionalDataHolder, IParsabl /// The triage property public bool? Triage { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequest_base_repo_permissions() { @@ -31,12 +33,12 @@ public PullRequest_base_repo_permissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequest_base_repo_permissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequest_base_repo_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequest_base_repo_permissions(); + return new global::GitHub.Models.PullRequest_base_repo_permissions(); } /// /// The deserialization information for the current model @@ -46,11 +48,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"admin", n => { Admin = n.GetBoolValue(); } }, - {"maintain", n => { Maintain = n.GetBoolValue(); } }, - {"pull", n => { Pull = n.GetBoolValue(); } }, - {"push", n => { Push = n.GetBoolValue(); } }, - {"triage", n => { Triage = n.GetBoolValue(); } }, + { "admin", n => { Admin = n.GetBoolValue(); } }, + { "maintain", n => { Maintain = n.GetBoolValue(); } }, + { "pull", n => { Pull = n.GetBoolValue(); } }, + { "push", n => { Push = n.GetBoolValue(); } }, + { "triage", n => { Triage = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/PullRequest_base_user.cs b/src/GitHub/Models/PullRequest_base_user.cs index cb64d69a..8cc173b4 100644 --- a/src/GitHub/Models/PullRequest_base_user.cs +++ b/src/GitHub/Models/PullRequest_base_user.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequest_base_user : IAdditionalDataHolder, IParsable + public partial class PullRequest_base_user : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -144,7 +146,7 @@ public class PullRequest_base_user : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequest_base_user() { @@ -153,12 +155,12 @@ public PullRequest_base_user() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequest_base_user CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequest_base_user CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequest_base_user(); + return new global::GitHub.Models.PullRequest_base_user(); } /// /// The deserialization information for the current model @@ -168,24 +170,24 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"followers_url", n => { FollowersUrl = n.GetStringValue(); } }, - {"following_url", n => { FollowingUrl = n.GetStringValue(); } }, - {"gists_url", n => { GistsUrl = n.GetStringValue(); } }, - {"gravatar_id", n => { GravatarId = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, - {"received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, - {"repos_url", n => { ReposUrl = n.GetStringValue(); } }, - {"site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, - {"starred_url", n => { StarredUrl = n.GetStringValue(); } }, - {"subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "followers_url", n => { FollowersUrl = n.GetStringValue(); } }, + { "following_url", n => { FollowingUrl = n.GetStringValue(); } }, + { "gists_url", n => { GistsUrl = n.GetStringValue(); } }, + { "gravatar_id", n => { GravatarId = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, + { "received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, + { "repos_url", n => { ReposUrl = n.GetStringValue(); } }, + { "site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, + { "starred_url", n => { StarredUrl = n.GetStringValue(); } }, + { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PullRequest_head.cs b/src/GitHub/Models/PullRequest_head.cs index a92d34b7..3611707f 100644 --- a/src/GitHub/Models/PullRequest_head.cs +++ b/src/GitHub/Models/PullRequest_head.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequest_head : IAdditionalDataHolder, IParsable + public partial class PullRequest_head : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,10 +32,10 @@ public class PullRequest_head : IAdditionalDataHolder, IParsable /// The repo property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequest_head_repo? Repo { get; set; } + public global::GitHub.Models.PullRequest_head_repo? Repo { get; set; } #nullable restore #else - public PullRequest_head_repo Repo { get; set; } + public global::GitHub.Models.PullRequest_head_repo Repo { get; set; } #endif /// The sha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -46,13 +48,13 @@ public class PullRequest_head : IAdditionalDataHolder, IParsable /// The user property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequest_head_user? User { get; set; } + public global::GitHub.Models.PullRequest_head_user? User { get; set; } #nullable restore #else - public PullRequest_head_user User { get; set; } + public global::GitHub.Models.PullRequest_head_user User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequest_head() { @@ -61,12 +63,12 @@ public PullRequest_head() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequest_head CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequest_head CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequest_head(); + return new global::GitHub.Models.PullRequest_head(); } /// /// The deserialization information for the current model @@ -76,11 +78,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"label", n => { Label = n.GetStringValue(); } }, - {"ref", n => { Ref = n.GetStringValue(); } }, - {"repo", n => { Repo = n.GetObjectValue(PullRequest_head_repo.CreateFromDiscriminatorValue); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(PullRequest_head_user.CreateFromDiscriminatorValue); } }, + { "label", n => { Label = n.GetStringValue(); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, + { "repo", n => { Repo = n.GetObjectValue(global::GitHub.Models.PullRequest_head_repo.CreateFromDiscriminatorValue); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.PullRequest_head_user.CreateFromDiscriminatorValue); } }, }; } /// @@ -92,9 +94,9 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("label", Label); writer.WriteStringValue("ref", Ref); - writer.WriteObjectValue("repo", Repo); + writer.WriteObjectValue("repo", Repo); writer.WriteStringValue("sha", Sha); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PullRequest_head_repo.cs b/src/GitHub/Models/PullRequest_head_repo.cs index e4649bf9..1b6fc15d 100644 --- a/src/GitHub/Models/PullRequest_head_repo.cs +++ b/src/GitHub/Models/PullRequest_head_repo.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequest_head_repo : IAdditionalDataHolder, IParsable + public partial class PullRequest_head_repo : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -306,10 +308,10 @@ public class PullRequest_head_repo : IAdditionalDataHolder, IParsable /// The license property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequest_head_repo_license? License { get; set; } + public global::GitHub.Models.PullRequest_head_repo_license? License { get; set; } #nullable restore #else - public PullRequest_head_repo_license License { get; set; } + public global::GitHub.Models.PullRequest_head_repo_license License { get; set; } #endif /// The master_branch property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -374,18 +376,18 @@ public class PullRequest_head_repo : IAdditionalDataHolder, IParsable /// The owner property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequest_head_repo_owner? Owner { get; set; } + public global::GitHub.Models.PullRequest_head_repo_owner? Owner { get; set; } #nullable restore #else - public PullRequest_head_repo_owner Owner { get; set; } + public global::GitHub.Models.PullRequest_head_repo_owner Owner { get; set; } #endif /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PullRequest_head_repo_permissions? Permissions { get; set; } + public global::GitHub.Models.PullRequest_head_repo_permissions? Permissions { get; set; } #nullable restore #else - public PullRequest_head_repo_permissions Permissions { get; set; } + public global::GitHub.Models.PullRequest_head_repo_permissions Permissions { get; set; } #endif /// The private property public bool? Private { get; set; } @@ -524,7 +526,7 @@ public class PullRequest_head_repo : IAdditionalDataHolder, IParsable /// The web_commit_signoff_required property public bool? WebCommitSignoffRequired { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequest_head_repo() { @@ -533,12 +535,12 @@ public PullRequest_head_repo() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequest_head_repo CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequest_head_repo CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequest_head_repo(); + return new global::GitHub.Models.PullRequest_head_repo(); } /// /// The deserialization information for the current model @@ -548,91 +550,91 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allow_forking", n => { AllowForking = n.GetBoolValue(); } }, - {"allow_merge_commit", n => { AllowMergeCommit = n.GetBoolValue(); } }, - {"allow_rebase_merge", n => { AllowRebaseMerge = n.GetBoolValue(); } }, - {"allow_squash_merge", n => { AllowSquashMerge = n.GetBoolValue(); } }, - {"archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, - {"archived", n => { Archived = n.GetBoolValue(); } }, - {"assignees_url", n => { AssigneesUrl = n.GetStringValue(); } }, - {"blobs_url", n => { BlobsUrl = n.GetStringValue(); } }, - {"branches_url", n => { BranchesUrl = n.GetStringValue(); } }, - {"clone_url", n => { CloneUrl = n.GetStringValue(); } }, - {"collaborators_url", n => { CollaboratorsUrl = n.GetStringValue(); } }, - {"comments_url", n => { CommentsUrl = n.GetStringValue(); } }, - {"commits_url", n => { CommitsUrl = n.GetStringValue(); } }, - {"compare_url", n => { CompareUrl = n.GetStringValue(); } }, - {"contents_url", n => { ContentsUrl = n.GetStringValue(); } }, - {"contributors_url", n => { ContributorsUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"default_branch", n => { DefaultBranch = n.GetStringValue(); } }, - {"deployments_url", n => { DeploymentsUrl = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"disabled", n => { Disabled = n.GetBoolValue(); } }, - {"downloads_url", n => { DownloadsUrl = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"fork", n => { Fork = n.GetBoolValue(); } }, - {"forks", n => { Forks = n.GetIntValue(); } }, - {"forks_count", n => { ForksCount = n.GetIntValue(); } }, - {"forks_url", n => { ForksUrl = n.GetStringValue(); } }, - {"full_name", n => { FullName = n.GetStringValue(); } }, - {"git_commits_url", n => { GitCommitsUrl = n.GetStringValue(); } }, - {"git_refs_url", n => { GitRefsUrl = n.GetStringValue(); } }, - {"git_tags_url", n => { GitTagsUrl = n.GetStringValue(); } }, - {"git_url", n => { GitUrl = n.GetStringValue(); } }, - {"has_discussions", n => { HasDiscussions = n.GetBoolValue(); } }, - {"has_downloads", n => { HasDownloads = n.GetBoolValue(); } }, - {"has_issues", n => { HasIssues = n.GetBoolValue(); } }, - {"has_pages", n => { HasPages = n.GetBoolValue(); } }, - {"has_projects", n => { HasProjects = n.GetBoolValue(); } }, - {"has_wiki", n => { HasWiki = n.GetBoolValue(); } }, - {"homepage", n => { Homepage = n.GetStringValue(); } }, - {"hooks_url", n => { HooksUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"is_template", n => { IsTemplate = n.GetBoolValue(); } }, - {"issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, - {"issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } }, - {"issues_url", n => { IssuesUrl = n.GetStringValue(); } }, - {"keys_url", n => { KeysUrl = n.GetStringValue(); } }, - {"labels_url", n => { LabelsUrl = n.GetStringValue(); } }, - {"language", n => { Language = n.GetStringValue(); } }, - {"languages_url", n => { LanguagesUrl = n.GetStringValue(); } }, - {"license", n => { License = n.GetObjectValue(PullRequest_head_repo_license.CreateFromDiscriminatorValue); } }, - {"master_branch", n => { MasterBranch = n.GetStringValue(); } }, - {"merges_url", n => { MergesUrl = n.GetStringValue(); } }, - {"milestones_url", n => { MilestonesUrl = n.GetStringValue(); } }, - {"mirror_url", n => { MirrorUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, - {"open_issues", n => { OpenIssues = n.GetIntValue(); } }, - {"open_issues_count", n => { OpenIssuesCount = n.GetIntValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(PullRequest_head_repo_owner.CreateFromDiscriminatorValue); } }, - {"permissions", n => { Permissions = n.GetObjectValue(PullRequest_head_repo_permissions.CreateFromDiscriminatorValue); } }, - {"private", n => { Private = n.GetBoolValue(); } }, - {"pulls_url", n => { PullsUrl = n.GetStringValue(); } }, - {"pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, - {"releases_url", n => { ReleasesUrl = n.GetStringValue(); } }, - {"size", n => { Size = n.GetIntValue(); } }, - {"ssh_url", n => { SshUrl = n.GetStringValue(); } }, - {"stargazers_count", n => { StargazersCount = n.GetIntValue(); } }, - {"stargazers_url", n => { StargazersUrl = n.GetStringValue(); } }, - {"statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, - {"subscribers_url", n => { SubscribersUrl = n.GetStringValue(); } }, - {"subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, - {"svn_url", n => { SvnUrl = n.GetStringValue(); } }, - {"tags_url", n => { TagsUrl = n.GetStringValue(); } }, - {"teams_url", n => { TeamsUrl = n.GetStringValue(); } }, - {"temp_clone_token", n => { TempCloneToken = n.GetStringValue(); } }, - {"topics", n => { Topics = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"trees_url", n => { TreesUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"visibility", n => { Visibility = n.GetStringValue(); } }, - {"watchers", n => { Watchers = n.GetIntValue(); } }, - {"watchers_count", n => { WatchersCount = n.GetIntValue(); } }, - {"web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, + { "allow_forking", n => { AllowForking = n.GetBoolValue(); } }, + { "allow_merge_commit", n => { AllowMergeCommit = n.GetBoolValue(); } }, + { "allow_rebase_merge", n => { AllowRebaseMerge = n.GetBoolValue(); } }, + { "allow_squash_merge", n => { AllowSquashMerge = n.GetBoolValue(); } }, + { "archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, + { "archived", n => { Archived = n.GetBoolValue(); } }, + { "assignees_url", n => { AssigneesUrl = n.GetStringValue(); } }, + { "blobs_url", n => { BlobsUrl = n.GetStringValue(); } }, + { "branches_url", n => { BranchesUrl = n.GetStringValue(); } }, + { "clone_url", n => { CloneUrl = n.GetStringValue(); } }, + { "collaborators_url", n => { CollaboratorsUrl = n.GetStringValue(); } }, + { "comments_url", n => { CommentsUrl = n.GetStringValue(); } }, + { "commits_url", n => { CommitsUrl = n.GetStringValue(); } }, + { "compare_url", n => { CompareUrl = n.GetStringValue(); } }, + { "contents_url", n => { ContentsUrl = n.GetStringValue(); } }, + { "contributors_url", n => { ContributorsUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "default_branch", n => { DefaultBranch = n.GetStringValue(); } }, + { "deployments_url", n => { DeploymentsUrl = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "disabled", n => { Disabled = n.GetBoolValue(); } }, + { "downloads_url", n => { DownloadsUrl = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "fork", n => { Fork = n.GetBoolValue(); } }, + { "forks", n => { Forks = n.GetIntValue(); } }, + { "forks_count", n => { ForksCount = n.GetIntValue(); } }, + { "forks_url", n => { ForksUrl = n.GetStringValue(); } }, + { "full_name", n => { FullName = n.GetStringValue(); } }, + { "git_commits_url", n => { GitCommitsUrl = n.GetStringValue(); } }, + { "git_refs_url", n => { GitRefsUrl = n.GetStringValue(); } }, + { "git_tags_url", n => { GitTagsUrl = n.GetStringValue(); } }, + { "git_url", n => { GitUrl = n.GetStringValue(); } }, + { "has_discussions", n => { HasDiscussions = n.GetBoolValue(); } }, + { "has_downloads", n => { HasDownloads = n.GetBoolValue(); } }, + { "has_issues", n => { HasIssues = n.GetBoolValue(); } }, + { "has_pages", n => { HasPages = n.GetBoolValue(); } }, + { "has_projects", n => { HasProjects = n.GetBoolValue(); } }, + { "has_wiki", n => { HasWiki = n.GetBoolValue(); } }, + { "homepage", n => { Homepage = n.GetStringValue(); } }, + { "hooks_url", n => { HooksUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "is_template", n => { IsTemplate = n.GetBoolValue(); } }, + { "issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, + { "issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } }, + { "issues_url", n => { IssuesUrl = n.GetStringValue(); } }, + { "keys_url", n => { KeysUrl = n.GetStringValue(); } }, + { "labels_url", n => { LabelsUrl = n.GetStringValue(); } }, + { "language", n => { Language = n.GetStringValue(); } }, + { "languages_url", n => { LanguagesUrl = n.GetStringValue(); } }, + { "license", n => { License = n.GetObjectValue(global::GitHub.Models.PullRequest_head_repo_license.CreateFromDiscriminatorValue); } }, + { "master_branch", n => { MasterBranch = n.GetStringValue(); } }, + { "merges_url", n => { MergesUrl = n.GetStringValue(); } }, + { "milestones_url", n => { MilestonesUrl = n.GetStringValue(); } }, + { "mirror_url", n => { MirrorUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, + { "open_issues", n => { OpenIssues = n.GetIntValue(); } }, + { "open_issues_count", n => { OpenIssuesCount = n.GetIntValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.PullRequest_head_repo_owner.CreateFromDiscriminatorValue); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.PullRequest_head_repo_permissions.CreateFromDiscriminatorValue); } }, + { "private", n => { Private = n.GetBoolValue(); } }, + { "pulls_url", n => { PullsUrl = n.GetStringValue(); } }, + { "pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, + { "releases_url", n => { ReleasesUrl = n.GetStringValue(); } }, + { "size", n => { Size = n.GetIntValue(); } }, + { "ssh_url", n => { SshUrl = n.GetStringValue(); } }, + { "stargazers_count", n => { StargazersCount = n.GetIntValue(); } }, + { "stargazers_url", n => { StargazersUrl = n.GetStringValue(); } }, + { "statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, + { "subscribers_url", n => { SubscribersUrl = n.GetStringValue(); } }, + { "subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, + { "svn_url", n => { SvnUrl = n.GetStringValue(); } }, + { "tags_url", n => { TagsUrl = n.GetStringValue(); } }, + { "teams_url", n => { TeamsUrl = n.GetStringValue(); } }, + { "temp_clone_token", n => { TempCloneToken = n.GetStringValue(); } }, + { "topics", n => { Topics = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "trees_url", n => { TreesUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "visibility", n => { Visibility = n.GetStringValue(); } }, + { "watchers", n => { Watchers = n.GetIntValue(); } }, + { "watchers_count", n => { WatchersCount = n.GetIntValue(); } }, + { "web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, }; } /// @@ -692,7 +694,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("labels_url", LabelsUrl); writer.WriteStringValue("language", Language); writer.WriteStringValue("languages_url", LanguagesUrl); - writer.WriteObjectValue("license", License); + writer.WriteObjectValue("license", License); writer.WriteStringValue("master_branch", MasterBranch); writer.WriteStringValue("merges_url", MergesUrl); writer.WriteStringValue("milestones_url", MilestonesUrl); @@ -702,8 +704,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("notifications_url", NotificationsUrl); writer.WriteIntValue("open_issues", OpenIssues); writer.WriteIntValue("open_issues_count", OpenIssuesCount); - writer.WriteObjectValue("owner", Owner); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("owner", Owner); + writer.WriteObjectValue("permissions", Permissions); writer.WriteBoolValue("private", Private); writer.WriteStringValue("pulls_url", PullsUrl); writer.WriteDateTimeOffsetValue("pushed_at", PushedAt); diff --git a/src/GitHub/Models/PullRequest_head_repo_license.cs b/src/GitHub/Models/PullRequest_head_repo_license.cs index 9edb3bd1..f75e302a 100644 --- a/src/GitHub/Models/PullRequest_head_repo_license.cs +++ b/src/GitHub/Models/PullRequest_head_repo_license.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequest_head_repo_license : IAdditionalDataHolder, IParsable + public partial class PullRequest_head_repo_license : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -52,7 +54,7 @@ public class PullRequest_head_repo_license : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequest_head_repo_license() { @@ -61,12 +63,12 @@ public PullRequest_head_repo_license() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequest_head_repo_license CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequest_head_repo_license CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequest_head_repo_license(); + return new global::GitHub.Models.PullRequest_head_repo_license(); } /// /// The deserialization information for the current model @@ -76,11 +78,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"key", n => { Key = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"spdx_id", n => { SpdxId = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "key", n => { Key = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "spdx_id", n => { SpdxId = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PullRequest_head_repo_owner.cs b/src/GitHub/Models/PullRequest_head_repo_owner.cs index 55591ea1..6c5cff11 100644 --- a/src/GitHub/Models/PullRequest_head_repo_owner.cs +++ b/src/GitHub/Models/PullRequest_head_repo_owner.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequest_head_repo_owner : IAdditionalDataHolder, IParsable + public partial class PullRequest_head_repo_owner : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -144,7 +146,7 @@ public class PullRequest_head_repo_owner : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequest_head_repo_owner() { @@ -153,12 +155,12 @@ public PullRequest_head_repo_owner() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequest_head_repo_owner CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequest_head_repo_owner CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequest_head_repo_owner(); + return new global::GitHub.Models.PullRequest_head_repo_owner(); } /// /// The deserialization information for the current model @@ -168,24 +170,24 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"followers_url", n => { FollowersUrl = n.GetStringValue(); } }, - {"following_url", n => { FollowingUrl = n.GetStringValue(); } }, - {"gists_url", n => { GistsUrl = n.GetStringValue(); } }, - {"gravatar_id", n => { GravatarId = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, - {"received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, - {"repos_url", n => { ReposUrl = n.GetStringValue(); } }, - {"site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, - {"starred_url", n => { StarredUrl = n.GetStringValue(); } }, - {"subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "followers_url", n => { FollowersUrl = n.GetStringValue(); } }, + { "following_url", n => { FollowingUrl = n.GetStringValue(); } }, + { "gists_url", n => { GistsUrl = n.GetStringValue(); } }, + { "gravatar_id", n => { GravatarId = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, + { "received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, + { "repos_url", n => { ReposUrl = n.GetStringValue(); } }, + { "site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, + { "starred_url", n => { StarredUrl = n.GetStringValue(); } }, + { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PullRequest_head_repo_permissions.cs b/src/GitHub/Models/PullRequest_head_repo_permissions.cs index f42903d3..efd42e5e 100644 --- a/src/GitHub/Models/PullRequest_head_repo_permissions.cs +++ b/src/GitHub/Models/PullRequest_head_repo_permissions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequest_head_repo_permissions : IAdditionalDataHolder, IParsable + public partial class PullRequest_head_repo_permissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class PullRequest_head_repo_permissions : IAdditionalDataHolder, IParsabl /// The triage property public bool? Triage { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequest_head_repo_permissions() { @@ -31,12 +33,12 @@ public PullRequest_head_repo_permissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequest_head_repo_permissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequest_head_repo_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequest_head_repo_permissions(); + return new global::GitHub.Models.PullRequest_head_repo_permissions(); } /// /// The deserialization information for the current model @@ -46,11 +48,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"admin", n => { Admin = n.GetBoolValue(); } }, - {"maintain", n => { Maintain = n.GetBoolValue(); } }, - {"pull", n => { Pull = n.GetBoolValue(); } }, - {"push", n => { Push = n.GetBoolValue(); } }, - {"triage", n => { Triage = n.GetBoolValue(); } }, + { "admin", n => { Admin = n.GetBoolValue(); } }, + { "maintain", n => { Maintain = n.GetBoolValue(); } }, + { "pull", n => { Pull = n.GetBoolValue(); } }, + { "push", n => { Push = n.GetBoolValue(); } }, + { "triage", n => { Triage = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/PullRequest_head_user.cs b/src/GitHub/Models/PullRequest_head_user.cs index a027e8c5..1bee53d1 100644 --- a/src/GitHub/Models/PullRequest_head_user.cs +++ b/src/GitHub/Models/PullRequest_head_user.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequest_head_user : IAdditionalDataHolder, IParsable + public partial class PullRequest_head_user : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -144,7 +146,7 @@ public class PullRequest_head_user : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequest_head_user() { @@ -153,12 +155,12 @@ public PullRequest_head_user() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequest_head_user CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequest_head_user CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequest_head_user(); + return new global::GitHub.Models.PullRequest_head_user(); } /// /// The deserialization information for the current model @@ -168,24 +170,24 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"followers_url", n => { FollowersUrl = n.GetStringValue(); } }, - {"following_url", n => { FollowingUrl = n.GetStringValue(); } }, - {"gists_url", n => { GistsUrl = n.GetStringValue(); } }, - {"gravatar_id", n => { GravatarId = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, - {"received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, - {"repos_url", n => { ReposUrl = n.GetStringValue(); } }, - {"site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, - {"starred_url", n => { StarredUrl = n.GetStringValue(); } }, - {"subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "followers_url", n => { FollowersUrl = n.GetStringValue(); } }, + { "following_url", n => { FollowingUrl = n.GetStringValue(); } }, + { "gists_url", n => { GistsUrl = n.GetStringValue(); } }, + { "gravatar_id", n => { GravatarId = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, + { "received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, + { "repos_url", n => { ReposUrl = n.GetStringValue(); } }, + { "site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, + { "starred_url", n => { StarredUrl = n.GetStringValue(); } }, + { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PullRequest_labels.cs b/src/GitHub/Models/PullRequest_labels.cs index e821e5ac..30beada9 100644 --- a/src/GitHub/Models/PullRequest_labels.cs +++ b/src/GitHub/Models/PullRequest_labels.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PullRequest_labels : IAdditionalDataHolder, IParsable + public partial class PullRequest_labels : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -56,7 +58,7 @@ public class PullRequest_labels : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PullRequest_labels() { @@ -65,12 +67,12 @@ public PullRequest_labels() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PullRequest_labels CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.PullRequest_labels CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PullRequest_labels(); + return new global::GitHub.Models.PullRequest_labels(); } /// /// The deserialization information for the current model @@ -80,13 +82,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"color", n => { Color = n.GetStringValue(); } }, - {"default", n => { Default = n.GetBoolValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "color", n => { Color = n.GetStringValue(); } }, + { "default", n => { Default = n.GetBoolValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/PullRequest_state.cs b/src/GitHub/Models/PullRequest_state.cs index 89f62911..8195fe49 100644 --- a/src/GitHub/Models/PullRequest_state.cs +++ b/src/GitHub/Models/PullRequest_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// State of this Pull Request. Either `open` or `closed`. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum PullRequest_state { [EnumMember(Value = "open")] diff --git a/src/GitHub/Models/RateLimit.cs b/src/GitHub/Models/RateLimit.cs index e73d7d44..638d9d9b 100644 --- a/src/GitHub/Models/RateLimit.cs +++ b/src/GitHub/Models/RateLimit.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RateLimit : IAdditionalDataHolder, IParsable + public partial class RateLimit : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class RateLimit : IAdditionalDataHolder, IParsable /// The used property public int? Used { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RateLimit() { @@ -29,12 +31,12 @@ public RateLimit() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RateLimit CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RateLimit CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RateLimit(); + return new global::GitHub.Models.RateLimit(); } /// /// The deserialization information for the current model @@ -44,10 +46,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"limit", n => { Limit = n.GetIntValue(); } }, - {"remaining", n => { Remaining = n.GetIntValue(); } }, - {"reset", n => { Reset = n.GetIntValue(); } }, - {"used", n => { Used = n.GetIntValue(); } }, + { "limit", n => { Limit = n.GetIntValue(); } }, + { "remaining", n => { Remaining = n.GetIntValue(); } }, + { "reset", n => { Reset = n.GetIntValue(); } }, + { "used", n => { Used = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/RateLimitOverview.cs b/src/GitHub/Models/RateLimitOverview.cs index 17bfb278..1c188112 100644 --- a/src/GitHub/Models/RateLimitOverview.cs +++ b/src/GitHub/Models/RateLimitOverview.cs @@ -1,35 +1,37 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Rate Limit Overview /// - public class RateLimitOverview : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RateLimitOverview : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RateLimit? Rate { get; set; } + public global::GitHub.Models.RateLimit? Rate { get; set; } #nullable restore #else - public RateLimit Rate { get; set; } + public global::GitHub.Models.RateLimit Rate { get; set; } #endif /// The resources property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RateLimitOverview_resources? Resources { get; set; } + public global::GitHub.Models.RateLimitOverview_resources? Resources { get; set; } #nullable restore #else - public RateLimitOverview_resources Resources { get; set; } + public global::GitHub.Models.RateLimitOverview_resources Resources { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RateLimitOverview() { @@ -38,12 +40,12 @@ public RateLimitOverview() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RateLimitOverview CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RateLimitOverview CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RateLimitOverview(); + return new global::GitHub.Models.RateLimitOverview(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"rate", n => { Rate = n.GetObjectValue(RateLimit.CreateFromDiscriminatorValue); } }, - {"resources", n => { Resources = n.GetObjectValue(RateLimitOverview_resources.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(global::GitHub.Models.RateLimit.CreateFromDiscriminatorValue); } }, + { "resources", n => { Resources = n.GetObjectValue(global::GitHub.Models.RateLimitOverview_resources.CreateFromDiscriminatorValue); } }, }; } /// @@ -64,8 +66,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("resources", Resources); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("resources", Resources); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RateLimitOverview_resources.cs b/src/GitHub/Models/RateLimitOverview_resources.cs index 4079f955..4600647b 100644 --- a/src/GitHub/Models/RateLimitOverview_resources.cs +++ b/src/GitHub/Models/RateLimitOverview_resources.cs @@ -1,98 +1,100 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RateLimitOverview_resources : IAdditionalDataHolder, IParsable + public partial class RateLimitOverview_resources : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The actions_runner_registration property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RateLimit? ActionsRunnerRegistration { get; set; } + public global::GitHub.Models.RateLimit? ActionsRunnerRegistration { get; set; } #nullable restore #else - public RateLimit ActionsRunnerRegistration { get; set; } + public global::GitHub.Models.RateLimit ActionsRunnerRegistration { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The code_scanning_upload property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RateLimit? CodeScanningUpload { get; set; } + public global::GitHub.Models.RateLimit? CodeScanningUpload { get; set; } #nullable restore #else - public RateLimit CodeScanningUpload { get; set; } + public global::GitHub.Models.RateLimit CodeScanningUpload { get; set; } #endif /// The code_search property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RateLimit? CodeSearch { get; set; } + public global::GitHub.Models.RateLimit? CodeSearch { get; set; } #nullable restore #else - public RateLimit CodeSearch { get; set; } + public global::GitHub.Models.RateLimit CodeSearch { get; set; } #endif /// The core property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RateLimit? Core { get; set; } + public global::GitHub.Models.RateLimit? Core { get; set; } #nullable restore #else - public RateLimit Core { get; set; } + public global::GitHub.Models.RateLimit Core { get; set; } #endif /// The dependency_snapshots property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RateLimit? DependencySnapshots { get; set; } + public global::GitHub.Models.RateLimit? DependencySnapshots { get; set; } #nullable restore #else - public RateLimit DependencySnapshots { get; set; } + public global::GitHub.Models.RateLimit DependencySnapshots { get; set; } #endif /// The graphql property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RateLimit? Graphql { get; set; } + public global::GitHub.Models.RateLimit? Graphql { get; set; } #nullable restore #else - public RateLimit Graphql { get; set; } + public global::GitHub.Models.RateLimit Graphql { get; set; } #endif /// The integration_manifest property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RateLimit? IntegrationManifest { get; set; } + public global::GitHub.Models.RateLimit? IntegrationManifest { get; set; } #nullable restore #else - public RateLimit IntegrationManifest { get; set; } + public global::GitHub.Models.RateLimit IntegrationManifest { get; set; } #endif /// The scim property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RateLimit? Scim { get; set; } + public global::GitHub.Models.RateLimit? Scim { get; set; } #nullable restore #else - public RateLimit Scim { get; set; } + public global::GitHub.Models.RateLimit Scim { get; set; } #endif /// The search property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RateLimit? Search { get; set; } + public global::GitHub.Models.RateLimit? Search { get; set; } #nullable restore #else - public RateLimit Search { get; set; } + public global::GitHub.Models.RateLimit Search { get; set; } #endif /// The source_import property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RateLimit? SourceImport { get; set; } + public global::GitHub.Models.RateLimit? SourceImport { get; set; } #nullable restore #else - public RateLimit SourceImport { get; set; } + public global::GitHub.Models.RateLimit SourceImport { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RateLimitOverview_resources() { @@ -101,12 +103,12 @@ public RateLimitOverview_resources() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RateLimitOverview_resources CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RateLimitOverview_resources CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RateLimitOverview_resources(); + return new global::GitHub.Models.RateLimitOverview_resources(); } /// /// The deserialization information for the current model @@ -116,16 +118,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actions_runner_registration", n => { ActionsRunnerRegistration = n.GetObjectValue(RateLimit.CreateFromDiscriminatorValue); } }, - {"code_scanning_upload", n => { CodeScanningUpload = n.GetObjectValue(RateLimit.CreateFromDiscriminatorValue); } }, - {"code_search", n => { CodeSearch = n.GetObjectValue(RateLimit.CreateFromDiscriminatorValue); } }, - {"core", n => { Core = n.GetObjectValue(RateLimit.CreateFromDiscriminatorValue); } }, - {"dependency_snapshots", n => { DependencySnapshots = n.GetObjectValue(RateLimit.CreateFromDiscriminatorValue); } }, - {"graphql", n => { Graphql = n.GetObjectValue(RateLimit.CreateFromDiscriminatorValue); } }, - {"integration_manifest", n => { IntegrationManifest = n.GetObjectValue(RateLimit.CreateFromDiscriminatorValue); } }, - {"scim", n => { Scim = n.GetObjectValue(RateLimit.CreateFromDiscriminatorValue); } }, - {"search", n => { Search = n.GetObjectValue(RateLimit.CreateFromDiscriminatorValue); } }, - {"source_import", n => { SourceImport = n.GetObjectValue(RateLimit.CreateFromDiscriminatorValue); } }, + { "actions_runner_registration", n => { ActionsRunnerRegistration = n.GetObjectValue(global::GitHub.Models.RateLimit.CreateFromDiscriminatorValue); } }, + { "code_scanning_upload", n => { CodeScanningUpload = n.GetObjectValue(global::GitHub.Models.RateLimit.CreateFromDiscriminatorValue); } }, + { "code_search", n => { CodeSearch = n.GetObjectValue(global::GitHub.Models.RateLimit.CreateFromDiscriminatorValue); } }, + { "core", n => { Core = n.GetObjectValue(global::GitHub.Models.RateLimit.CreateFromDiscriminatorValue); } }, + { "dependency_snapshots", n => { DependencySnapshots = n.GetObjectValue(global::GitHub.Models.RateLimit.CreateFromDiscriminatorValue); } }, + { "graphql", n => { Graphql = n.GetObjectValue(global::GitHub.Models.RateLimit.CreateFromDiscriminatorValue); } }, + { "integration_manifest", n => { IntegrationManifest = n.GetObjectValue(global::GitHub.Models.RateLimit.CreateFromDiscriminatorValue); } }, + { "scim", n => { Scim = n.GetObjectValue(global::GitHub.Models.RateLimit.CreateFromDiscriminatorValue); } }, + { "search", n => { Search = n.GetObjectValue(global::GitHub.Models.RateLimit.CreateFromDiscriminatorValue); } }, + { "source_import", n => { SourceImport = n.GetObjectValue(global::GitHub.Models.RateLimit.CreateFromDiscriminatorValue); } }, }; } /// @@ -135,16 +137,16 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actions_runner_registration", ActionsRunnerRegistration); - writer.WriteObjectValue("code_scanning_upload", CodeScanningUpload); - writer.WriteObjectValue("code_search", CodeSearch); - writer.WriteObjectValue("core", Core); - writer.WriteObjectValue("dependency_snapshots", DependencySnapshots); - writer.WriteObjectValue("graphql", Graphql); - writer.WriteObjectValue("integration_manifest", IntegrationManifest); - writer.WriteObjectValue("scim", Scim); - writer.WriteObjectValue("search", Search); - writer.WriteObjectValue("source_import", SourceImport); + writer.WriteObjectValue("actions_runner_registration", ActionsRunnerRegistration); + writer.WriteObjectValue("code_scanning_upload", CodeScanningUpload); + writer.WriteObjectValue("code_search", CodeSearch); + writer.WriteObjectValue("core", Core); + writer.WriteObjectValue("dependency_snapshots", DependencySnapshots); + writer.WriteObjectValue("graphql", Graphql); + writer.WriteObjectValue("integration_manifest", IntegrationManifest); + writer.WriteObjectValue("scim", Scim); + writer.WriteObjectValue("search", Search); + writer.WriteObjectValue("source_import", SourceImport); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/Reaction.cs b/src/GitHub/Models/Reaction.cs index 481cb798..3100129a 100644 --- a/src/GitHub/Models/Reaction.cs +++ b/src/GitHub/Models/Reaction.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Reactions to conversations provide a way to help people express their feelings more simply and effectively. /// - public class Reaction : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Reaction : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The reaction to use - public Reaction_content? Content { get; set; } + public global::GitHub.Models.Reaction_content? Content { get; set; } /// The created_at property public DateTimeOffset? CreatedAt { get; set; } /// The id property @@ -29,13 +31,13 @@ public class Reaction : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? User { get; set; } + public global::GitHub.Models.NullableSimpleUser? User { get; set; } #nullable restore #else - public NullableSimpleUser User { get; set; } + public global::GitHub.Models.NullableSimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Reaction() { @@ -44,12 +46,12 @@ public Reaction() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Reaction CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Reaction CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Reaction(); + return new global::GitHub.Models.Reaction(); } /// /// The deserialization information for the current model @@ -59,11 +61,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content", n => { Content = n.GetEnumValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "content", n => { Content = n.GetEnumValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -73,11 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("content", Content); + writer.WriteEnumValue("content", Content); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteIntValue("id", Id); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/ReactionRollup.cs b/src/GitHub/Models/ReactionRollup.cs index 5ae7bbe2..30c3896b 100644 --- a/src/GitHub/Models/ReactionRollup.cs +++ b/src/GitHub/Models/ReactionRollup.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ReactionRollup : IAdditionalDataHolder, IParsable + public partial class ReactionRollup : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -38,7 +40,7 @@ public class ReactionRollup : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReactionRollup() { @@ -47,12 +49,12 @@ public ReactionRollup() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ReactionRollup CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ReactionRollup CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReactionRollup(); + return new global::GitHub.Models.ReactionRollup(); } /// /// The deserialization information for the current model @@ -62,16 +64,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"confused", n => { Confused = n.GetIntValue(); } }, - {"eyes", n => { Eyes = n.GetIntValue(); } }, - {"heart", n => { Heart = n.GetIntValue(); } }, - {"hooray", n => { Hooray = n.GetIntValue(); } }, - {"laugh", n => { Laugh = n.GetIntValue(); } }, - {"-1", n => { Minus1 = n.GetIntValue(); } }, - {"+1", n => { Plus1 = n.GetIntValue(); } }, - {"rocket", n => { Rocket = n.GetIntValue(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "confused", n => { Confused = n.GetIntValue(); } }, + { "eyes", n => { Eyes = n.GetIntValue(); } }, + { "heart", n => { Heart = n.GetIntValue(); } }, + { "hooray", n => { Hooray = n.GetIntValue(); } }, + { "laugh", n => { Laugh = n.GetIntValue(); } }, + { "-1", n => { Minus1 = n.GetIntValue(); } }, + { "+1", n => { Plus1 = n.GetIntValue(); } }, + { "rocket", n => { Rocket = n.GetIntValue(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Reaction_content.cs b/src/GitHub/Models/Reaction_content.cs index 8178cfa3..875dc84f 100644 --- a/src/GitHub/Models/Reaction_content.cs +++ b/src/GitHub/Models/Reaction_content.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The reaction to use + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum Reaction_content { [EnumMember(Value = "+1")] diff --git a/src/GitHub/Models/ReferencedWorkflow.cs b/src/GitHub/Models/ReferencedWorkflow.cs index 065485fa..4352f1b4 100644 --- a/src/GitHub/Models/ReferencedWorkflow.cs +++ b/src/GitHub/Models/ReferencedWorkflow.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A workflow referenced/reused by the initial caller workflow /// - public class ReferencedWorkflow : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReferencedWorkflow : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -37,7 +39,7 @@ public class ReferencedWorkflow : IAdditionalDataHolder, IParsable public string Sha { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReferencedWorkflow() { @@ -46,12 +48,12 @@ public ReferencedWorkflow() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ReferencedWorkflow CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ReferencedWorkflow CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReferencedWorkflow(); + return new global::GitHub.Models.ReferencedWorkflow(); } /// /// The deserialization information for the current model @@ -61,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"path", n => { Path = n.GetStringValue(); } }, - {"ref", n => { Ref = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ReferrerTraffic.cs b/src/GitHub/Models/ReferrerTraffic.cs index 866f48f4..0ae7246f 100644 --- a/src/GitHub/Models/ReferrerTraffic.cs +++ b/src/GitHub/Models/ReferrerTraffic.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Referrer Traffic /// - public class ReferrerTraffic : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReferrerTraffic : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -25,7 +27,7 @@ public class ReferrerTraffic : IAdditionalDataHolder, IParsable /// The uniques property public int? Uniques { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReferrerTraffic() { @@ -34,12 +36,12 @@ public ReferrerTraffic() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ReferrerTraffic CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ReferrerTraffic CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReferrerTraffic(); + return new global::GitHub.Models.ReferrerTraffic(); } /// /// The deserialization information for the current model @@ -49,9 +51,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"count", n => { Count = n.GetIntValue(); } }, - {"referrer", n => { Referrer = n.GetStringValue(); } }, - {"uniques", n => { Uniques = n.GetIntValue(); } }, + { "count", n => { Count = n.GetIntValue(); } }, + { "referrer", n => { Referrer = n.GetStringValue(); } }, + { "uniques", n => { Uniques = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/Release.cs b/src/GitHub/Models/Release.cs index cdb539f2..2896dab5 100644 --- a/src/GitHub/Models/Release.cs +++ b/src/GitHub/Models/Release.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A release. /// - public class Release : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Release : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The assets property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Assets { get; set; } + public List? Assets { get; set; } #nullable restore #else - public List Assets { get; set; } + public List Assets { get; set; } #endif /// The assets_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -31,10 +33,10 @@ public class Release : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Author { get; set; } + public global::GitHub.Models.SimpleUser? Author { get; set; } #nullable restore #else - public SimpleUser Author { get; set; } + public global::GitHub.Models.SimpleUser Author { get; set; } #endif /// The body property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -107,10 +109,10 @@ public class Release : IAdditionalDataHolder, IParsable /// The reactions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ReactionRollup? Reactions { get; set; } + public global::GitHub.Models.ReactionRollup? Reactions { get; set; } #nullable restore #else - public ReactionRollup Reactions { get; set; } + public global::GitHub.Models.ReactionRollup Reactions { get; set; } #endif /// The name of the tag. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -161,7 +163,7 @@ public class Release : IAdditionalDataHolder, IParsable public string ZipballUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Release() { @@ -170,12 +172,12 @@ public Release() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Release CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Release CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Release(); + return new global::GitHub.Models.Release(); } /// /// The deserialization information for the current model @@ -185,29 +187,29 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"assets", n => { Assets = n.GetCollectionOfObjectValues(ReleaseAsset.CreateFromDiscriminatorValue)?.ToList(); } }, - {"assets_url", n => { AssetsUrl = n.GetStringValue(); } }, - {"author", n => { Author = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"body", n => { Body = n.GetStringValue(); } }, - {"body_html", n => { BodyHtml = n.GetStringValue(); } }, - {"body_text", n => { BodyText = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"discussion_url", n => { DiscussionUrl = n.GetStringValue(); } }, - {"draft", n => { Draft = n.GetBoolValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"mentions_count", n => { MentionsCount = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"prerelease", n => { Prerelease = n.GetBoolValue(); } }, - {"published_at", n => { PublishedAt = n.GetDateTimeOffsetValue(); } }, - {"reactions", n => { Reactions = n.GetObjectValue(ReactionRollup.CreateFromDiscriminatorValue); } }, - {"tag_name", n => { TagName = n.GetStringValue(); } }, - {"tarball_url", n => { TarballUrl = n.GetStringValue(); } }, - {"target_commitish", n => { TargetCommitish = n.GetStringValue(); } }, - {"upload_url", n => { UploadUrl = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"zipball_url", n => { ZipballUrl = n.GetStringValue(); } }, + { "assets", n => { Assets = n.GetCollectionOfObjectValues(global::GitHub.Models.ReleaseAsset.CreateFromDiscriminatorValue)?.AsList(); } }, + { "assets_url", n => { AssetsUrl = n.GetStringValue(); } }, + { "author", n => { Author = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "body_html", n => { BodyHtml = n.GetStringValue(); } }, + { "body_text", n => { BodyText = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "discussion_url", n => { DiscussionUrl = n.GetStringValue(); } }, + { "draft", n => { Draft = n.GetBoolValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "mentions_count", n => { MentionsCount = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "prerelease", n => { Prerelease = n.GetBoolValue(); } }, + { "published_at", n => { PublishedAt = n.GetDateTimeOffsetValue(); } }, + { "reactions", n => { Reactions = n.GetObjectValue(global::GitHub.Models.ReactionRollup.CreateFromDiscriminatorValue); } }, + { "tag_name", n => { TagName = n.GetStringValue(); } }, + { "tarball_url", n => { TarballUrl = n.GetStringValue(); } }, + { "target_commitish", n => { TargetCommitish = n.GetStringValue(); } }, + { "upload_url", n => { UploadUrl = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "zipball_url", n => { ZipballUrl = n.GetStringValue(); } }, }; } /// @@ -217,9 +219,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("assets", Assets); + writer.WriteCollectionOfObjectValues("assets", Assets); writer.WriteStringValue("assets_url", AssetsUrl); - writer.WriteObjectValue("author", Author); + writer.WriteObjectValue("author", Author); writer.WriteStringValue("body", Body); writer.WriteStringValue("body_html", BodyHtml); writer.WriteStringValue("body_text", BodyText); @@ -233,7 +235,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("node_id", NodeId); writer.WriteBoolValue("prerelease", Prerelease); writer.WriteDateTimeOffsetValue("published_at", PublishedAt); - writer.WriteObjectValue("reactions", Reactions); + writer.WriteObjectValue("reactions", Reactions); writer.WriteStringValue("tag_name", TagName); writer.WriteStringValue("tarball_url", TarballUrl); writer.WriteStringValue("target_commitish", TargetCommitish); diff --git a/src/GitHub/Models/ReleaseAsset.cs b/src/GitHub/Models/ReleaseAsset.cs index 3003a161..bc4dec7a 100644 --- a/src/GitHub/Models/ReleaseAsset.cs +++ b/src/GitHub/Models/ReleaseAsset.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Data related to a release. /// - public class ReleaseAsset : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReleaseAsset : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -61,16 +63,16 @@ public class ReleaseAsset : IAdditionalDataHolder, IParsable /// The size property public int? Size { get; set; } /// State of the release asset. - public ReleaseAsset_state? State { get; set; } + public global::GitHub.Models.ReleaseAsset_state? State { get; set; } /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Uploader { get; set; } + public global::GitHub.Models.NullableSimpleUser? Uploader { get; set; } #nullable restore #else - public NullableSimpleUser Uploader { get; set; } + public global::GitHub.Models.NullableSimpleUser Uploader { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +83,7 @@ public class ReleaseAsset : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReleaseAsset() { @@ -90,12 +92,12 @@ public ReleaseAsset() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ReleaseAsset CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ReleaseAsset CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReleaseAsset(); + return new global::GitHub.Models.ReleaseAsset(); } /// /// The deserialization information for the current model @@ -105,19 +107,19 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"browser_download_url", n => { BrowserDownloadUrl = n.GetStringValue(); } }, - {"content_type", n => { ContentType = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"download_count", n => { DownloadCount = n.GetIntValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"size", n => { Size = n.GetIntValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"uploader", n => { Uploader = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "browser_download_url", n => { BrowserDownloadUrl = n.GetStringValue(); } }, + { "content_type", n => { ContentType = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "download_count", n => { DownloadCount = n.GetIntValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "label", n => { Label = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "size", n => { Size = n.GetIntValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "uploader", n => { Uploader = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -136,9 +138,9 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteStringValue("node_id", NodeId); writer.WriteIntValue("size", Size); - writer.WriteEnumValue("state", State); + writer.WriteEnumValue("state", State); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); - writer.WriteObjectValue("uploader", Uploader); + writer.WriteObjectValue("uploader", Uploader); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/ReleaseAsset_state.cs b/src/GitHub/Models/ReleaseAsset_state.cs index 25f62888..bece8382 100644 --- a/src/GitHub/Models/ReleaseAsset_state.cs +++ b/src/GitHub/Models/ReleaseAsset_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// State of the release asset. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ReleaseAsset_state { [EnumMember(Value = "uploaded")] diff --git a/src/GitHub/Models/ReleaseNotesContent.cs b/src/GitHub/Models/ReleaseNotesContent.cs index 28fa1597..3d7bd1dc 100644 --- a/src/GitHub/Models/ReleaseNotesContent.cs +++ b/src/GitHub/Models/ReleaseNotesContent.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Generated name and body describing a release /// - public class ReleaseNotesContent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReleaseNotesContent : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class ReleaseNotesContent : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReleaseNotesContent() { @@ -38,12 +40,12 @@ public ReleaseNotesContent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ReleaseNotesContent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ReleaseNotesContent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReleaseNotesContent(); + return new global::GitHub.Models.ReleaseNotesContent(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"body", n => { Body = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/RemovedFromProjectIssueEvent.cs b/src/GitHub/Models/RemovedFromProjectIssueEvent.cs index ae0162c9..a60a9c57 100644 --- a/src/GitHub/Models/RemovedFromProjectIssueEvent.cs +++ b/src/GitHub/Models/RemovedFromProjectIssueEvent.cs @@ -1,22 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Removed from Project Issue Event /// - public class RemovedFromProjectIssueEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RemovedFromProjectIssueEvent : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -65,18 +67,18 @@ public class RemovedFromProjectIssueEvent : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// The project_card property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RemovedFromProjectIssueEvent_project_card? ProjectCard { get; set; } + public global::GitHub.Models.RemovedFromProjectIssueEvent_project_card? ProjectCard { get; set; } #nullable restore #else - public RemovedFromProjectIssueEvent_project_card ProjectCard { get; set; } + public global::GitHub.Models.RemovedFromProjectIssueEvent_project_card ProjectCard { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +89,7 @@ public class RemovedFromProjectIssueEvent : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RemovedFromProjectIssueEvent() { @@ -96,12 +98,12 @@ public RemovedFromProjectIssueEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RemovedFromProjectIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RemovedFromProjectIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RemovedFromProjectIssueEvent(); + return new global::GitHub.Models.RemovedFromProjectIssueEvent(); } /// /// The deserialization information for the current model @@ -111,16 +113,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"project_card", n => { ProjectCard = n.GetObjectValue(RemovedFromProjectIssueEvent_project_card.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "project_card", n => { ProjectCard = n.GetObjectValue(global::GitHub.Models.RemovedFromProjectIssueEvent_project_card.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -130,15 +132,15 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("actor", Actor); writer.WriteStringValue("commit_id", CommitId); writer.WriteStringValue("commit_url", CommitUrl); writer.WriteStringValue("created_at", CreatedAt); writer.WriteStringValue("event", Event); writer.WriteIntValue("id", Id); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); - writer.WriteObjectValue("project_card", ProjectCard); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("project_card", ProjectCard); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/RemovedFromProjectIssueEvent_project_card.cs b/src/GitHub/Models/RemovedFromProjectIssueEvent_project_card.cs index f84f715c..85ca1b97 100644 --- a/src/GitHub/Models/RemovedFromProjectIssueEvent_project_card.cs +++ b/src/GitHub/Models/RemovedFromProjectIssueEvent_project_card.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RemovedFromProjectIssueEvent_project_card : IAdditionalDataHolder, IParsable + public partial class RemovedFromProjectIssueEvent_project_card : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -48,7 +50,7 @@ public class RemovedFromProjectIssueEvent_project_card : IAdditionalDataHolder, public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RemovedFromProjectIssueEvent_project_card() { @@ -57,12 +59,12 @@ public RemovedFromProjectIssueEvent_project_card() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RemovedFromProjectIssueEvent_project_card CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RemovedFromProjectIssueEvent_project_card CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RemovedFromProjectIssueEvent_project_card(); + return new global::GitHub.Models.RemovedFromProjectIssueEvent_project_card(); } /// /// The deserialization information for the current model @@ -72,12 +74,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"column_name", n => { ColumnName = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"previous_column_name", n => { PreviousColumnName = n.GetStringValue(); } }, - {"project_id", n => { ProjectId = n.GetIntValue(); } }, - {"project_url", n => { ProjectUrl = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "column_name", n => { ColumnName = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "previous_column_name", n => { PreviousColumnName = n.GetStringValue(); } }, + { "project_id", n => { ProjectId = n.GetIntValue(); } }, + { "project_url", n => { ProjectUrl = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/RenamedIssueEvent.cs b/src/GitHub/Models/RenamedIssueEvent.cs index 481fc725..8b33b2c3 100644 --- a/src/GitHub/Models/RenamedIssueEvent.cs +++ b/src/GitHub/Models/RenamedIssueEvent.cs @@ -1,22 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Renamed Issue Event /// - public class RenamedIssueEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RenamedIssueEvent : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -65,18 +67,18 @@ public class RenamedIssueEvent : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// The rename property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RenamedIssueEvent_rename? Rename { get; set; } + public global::GitHub.Models.RenamedIssueEvent_rename? Rename { get; set; } #nullable restore #else - public RenamedIssueEvent_rename Rename { get; set; } + public global::GitHub.Models.RenamedIssueEvent_rename Rename { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +89,7 @@ public class RenamedIssueEvent : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RenamedIssueEvent() { @@ -96,12 +98,12 @@ public RenamedIssueEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RenamedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RenamedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RenamedIssueEvent(); + return new global::GitHub.Models.RenamedIssueEvent(); } /// /// The deserialization information for the current model @@ -111,16 +113,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"rename", n => { Rename = n.GetObjectValue(RenamedIssueEvent_rename.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "rename", n => { Rename = n.GetObjectValue(global::GitHub.Models.RenamedIssueEvent_rename.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -130,15 +132,15 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("actor", Actor); writer.WriteStringValue("commit_id", CommitId); writer.WriteStringValue("commit_url", CommitUrl); writer.WriteStringValue("created_at", CreatedAt); writer.WriteStringValue("event", Event); writer.WriteIntValue("id", Id); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); - writer.WriteObjectValue("rename", Rename); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("rename", Rename); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/RenamedIssueEvent_rename.cs b/src/GitHub/Models/RenamedIssueEvent_rename.cs index 043c837a..e4a71932 100644 --- a/src/GitHub/Models/RenamedIssueEvent_rename.cs +++ b/src/GitHub/Models/RenamedIssueEvent_rename.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RenamedIssueEvent_rename : IAdditionalDataHolder, IParsable + public partial class RenamedIssueEvent_rename : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class RenamedIssueEvent_rename : IAdditionalDataHolder, IParsable public string To { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RenamedIssueEvent_rename() { @@ -37,12 +39,12 @@ public RenamedIssueEvent_rename() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RenamedIssueEvent_rename CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RenamedIssueEvent_rename CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RenamedIssueEvent_rename(); + return new global::GitHub.Models.RenamedIssueEvent_rename(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"from", n => { From = n.GetStringValue(); } }, - {"to", n => { To = n.GetStringValue(); } }, + { "from", n => { From = n.GetStringValue(); } }, + { "to", n => { To = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/RepoCodespacesSecret.cs b/src/GitHub/Models/RepoCodespacesSecret.cs index 84fbcb7d..6c8a7e51 100644 --- a/src/GitHub/Models/RepoCodespacesSecret.cs +++ b/src/GitHub/Models/RepoCodespacesSecret.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Set repository secrets for GitHub Codespaces. /// - public class RepoCodespacesSecret : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepoCodespacesSecret : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -25,7 +27,7 @@ public class RepoCodespacesSecret : IAdditionalDataHolder, IParsable /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepoCodespacesSecret() { @@ -34,12 +36,12 @@ public RepoCodespacesSecret() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepoCodespacesSecret CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepoCodespacesSecret CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepoCodespacesSecret(); + return new global::GitHub.Models.RepoCodespacesSecret(); } /// /// The deserialization information for the current model @@ -49,9 +51,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, }; } /// diff --git a/src/GitHub/Models/RepoSearchResultItem.cs b/src/GitHub/Models/RepoSearchResultItem.cs index d0618027..144b2181 100644 --- a/src/GitHub/Models/RepoSearchResultItem.cs +++ b/src/GitHub/Models/RepoSearchResultItem.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Repo Search Result Item /// - public class RepoSearchResultItem : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepoSearchResultItem : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -311,10 +313,10 @@ public class RepoSearchResultItem : IAdditionalDataHolder, IParsable /// License Simple #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableLicenseSimple? License { get; set; } + public global::GitHub.Models.NullableLicenseSimple? License { get; set; } #nullable restore #else - public NullableLicenseSimple License { get; set; } + public global::GitHub.Models.NullableLicenseSimple License { get; set; } #endif /// The master_branch property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -379,18 +381,18 @@ public class RepoSearchResultItem : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Owner { get; set; } + public global::GitHub.Models.NullableSimpleUser? Owner { get; set; } #nullable restore #else - public NullableSimpleUser Owner { get; set; } + public global::GitHub.Models.NullableSimpleUser Owner { get; set; } #endif /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepoSearchResultItem_permissions? Permissions { get; set; } + public global::GitHub.Models.RepoSearchResultItem_permissions? Permissions { get; set; } #nullable restore #else - public RepoSearchResultItem_permissions Permissions { get; set; } + public global::GitHub.Models.RepoSearchResultItem_permissions Permissions { get; set; } #endif /// The private property public bool? Private { get; set; } @@ -493,10 +495,10 @@ public class RepoSearchResultItem : IAdditionalDataHolder, IParsable /// The text_matches property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? TextMatches { get; set; } + public List? TextMatches { get; set; } #nullable restore #else - public List TextMatches { get; set; } + public List TextMatches { get; set; } #endif /// The topics property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -539,7 +541,7 @@ public class RepoSearchResultItem : IAdditionalDataHolder, IParsable /// The web_commit_signoff_required property public bool? WebCommitSignoffRequired { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepoSearchResultItem() { @@ -548,12 +550,12 @@ public RepoSearchResultItem() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepoSearchResultItem CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepoSearchResultItem CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepoSearchResultItem(); + return new global::GitHub.Models.RepoSearchResultItem(); } /// /// The deserialization information for the current model @@ -563,95 +565,95 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allow_auto_merge", n => { AllowAutoMerge = n.GetBoolValue(); } }, - {"allow_forking", n => { AllowForking = n.GetBoolValue(); } }, - {"allow_merge_commit", n => { AllowMergeCommit = n.GetBoolValue(); } }, - {"allow_rebase_merge", n => { AllowRebaseMerge = n.GetBoolValue(); } }, - {"allow_squash_merge", n => { AllowSquashMerge = n.GetBoolValue(); } }, - {"archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, - {"archived", n => { Archived = n.GetBoolValue(); } }, - {"assignees_url", n => { AssigneesUrl = n.GetStringValue(); } }, - {"blobs_url", n => { BlobsUrl = n.GetStringValue(); } }, - {"branches_url", n => { BranchesUrl = n.GetStringValue(); } }, - {"clone_url", n => { CloneUrl = n.GetStringValue(); } }, - {"collaborators_url", n => { CollaboratorsUrl = n.GetStringValue(); } }, - {"comments_url", n => { CommentsUrl = n.GetStringValue(); } }, - {"commits_url", n => { CommitsUrl = n.GetStringValue(); } }, - {"compare_url", n => { CompareUrl = n.GetStringValue(); } }, - {"contents_url", n => { ContentsUrl = n.GetStringValue(); } }, - {"contributors_url", n => { ContributorsUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"default_branch", n => { DefaultBranch = n.GetStringValue(); } }, - {"delete_branch_on_merge", n => { DeleteBranchOnMerge = n.GetBoolValue(); } }, - {"deployments_url", n => { DeploymentsUrl = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"disabled", n => { Disabled = n.GetBoolValue(); } }, - {"downloads_url", n => { DownloadsUrl = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"fork", n => { Fork = n.GetBoolValue(); } }, - {"forks", n => { Forks = n.GetIntValue(); } }, - {"forks_count", n => { ForksCount = n.GetIntValue(); } }, - {"forks_url", n => { ForksUrl = n.GetStringValue(); } }, - {"full_name", n => { FullName = n.GetStringValue(); } }, - {"git_commits_url", n => { GitCommitsUrl = n.GetStringValue(); } }, - {"git_refs_url", n => { GitRefsUrl = n.GetStringValue(); } }, - {"git_tags_url", n => { GitTagsUrl = n.GetStringValue(); } }, - {"git_url", n => { GitUrl = n.GetStringValue(); } }, - {"has_discussions", n => { HasDiscussions = n.GetBoolValue(); } }, - {"has_downloads", n => { HasDownloads = n.GetBoolValue(); } }, - {"has_issues", n => { HasIssues = n.GetBoolValue(); } }, - {"has_pages", n => { HasPages = n.GetBoolValue(); } }, - {"has_projects", n => { HasProjects = n.GetBoolValue(); } }, - {"has_wiki", n => { HasWiki = n.GetBoolValue(); } }, - {"homepage", n => { Homepage = n.GetStringValue(); } }, - {"hooks_url", n => { HooksUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"is_template", n => { IsTemplate = n.GetBoolValue(); } }, - {"issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, - {"issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } }, - {"issues_url", n => { IssuesUrl = n.GetStringValue(); } }, - {"keys_url", n => { KeysUrl = n.GetStringValue(); } }, - {"labels_url", n => { LabelsUrl = n.GetStringValue(); } }, - {"language", n => { Language = n.GetStringValue(); } }, - {"languages_url", n => { LanguagesUrl = n.GetStringValue(); } }, - {"license", n => { License = n.GetObjectValue(NullableLicenseSimple.CreateFromDiscriminatorValue); } }, - {"master_branch", n => { MasterBranch = n.GetStringValue(); } }, - {"merges_url", n => { MergesUrl = n.GetStringValue(); } }, - {"milestones_url", n => { MilestonesUrl = n.GetStringValue(); } }, - {"mirror_url", n => { MirrorUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, - {"open_issues", n => { OpenIssues = n.GetIntValue(); } }, - {"open_issues_count", n => { OpenIssuesCount = n.GetIntValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"permissions", n => { Permissions = n.GetObjectValue(RepoSearchResultItem_permissions.CreateFromDiscriminatorValue); } }, - {"private", n => { Private = n.GetBoolValue(); } }, - {"pulls_url", n => { PullsUrl = n.GetStringValue(); } }, - {"pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, - {"releases_url", n => { ReleasesUrl = n.GetStringValue(); } }, - {"score", n => { Score = n.GetDoubleValue(); } }, - {"size", n => { Size = n.GetIntValue(); } }, - {"ssh_url", n => { SshUrl = n.GetStringValue(); } }, - {"stargazers_count", n => { StargazersCount = n.GetIntValue(); } }, - {"stargazers_url", n => { StargazersUrl = n.GetStringValue(); } }, - {"statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, - {"subscribers_url", n => { SubscribersUrl = n.GetStringValue(); } }, - {"subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, - {"svn_url", n => { SvnUrl = n.GetStringValue(); } }, - {"tags_url", n => { TagsUrl = n.GetStringValue(); } }, - {"teams_url", n => { TeamsUrl = n.GetStringValue(); } }, - {"temp_clone_token", n => { TempCloneToken = n.GetStringValue(); } }, - {"text_matches", n => { TextMatches = n.GetCollectionOfObjectValues(Repositories.CreateFromDiscriminatorValue)?.ToList(); } }, - {"topics", n => { Topics = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"trees_url", n => { TreesUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"visibility", n => { Visibility = n.GetStringValue(); } }, - {"watchers", n => { Watchers = n.GetIntValue(); } }, - {"watchers_count", n => { WatchersCount = n.GetIntValue(); } }, - {"web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, + { "allow_auto_merge", n => { AllowAutoMerge = n.GetBoolValue(); } }, + { "allow_forking", n => { AllowForking = n.GetBoolValue(); } }, + { "allow_merge_commit", n => { AllowMergeCommit = n.GetBoolValue(); } }, + { "allow_rebase_merge", n => { AllowRebaseMerge = n.GetBoolValue(); } }, + { "allow_squash_merge", n => { AllowSquashMerge = n.GetBoolValue(); } }, + { "archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, + { "archived", n => { Archived = n.GetBoolValue(); } }, + { "assignees_url", n => { AssigneesUrl = n.GetStringValue(); } }, + { "blobs_url", n => { BlobsUrl = n.GetStringValue(); } }, + { "branches_url", n => { BranchesUrl = n.GetStringValue(); } }, + { "clone_url", n => { CloneUrl = n.GetStringValue(); } }, + { "collaborators_url", n => { CollaboratorsUrl = n.GetStringValue(); } }, + { "comments_url", n => { CommentsUrl = n.GetStringValue(); } }, + { "commits_url", n => { CommitsUrl = n.GetStringValue(); } }, + { "compare_url", n => { CompareUrl = n.GetStringValue(); } }, + { "contents_url", n => { ContentsUrl = n.GetStringValue(); } }, + { "contributors_url", n => { ContributorsUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "default_branch", n => { DefaultBranch = n.GetStringValue(); } }, + { "delete_branch_on_merge", n => { DeleteBranchOnMerge = n.GetBoolValue(); } }, + { "deployments_url", n => { DeploymentsUrl = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "disabled", n => { Disabled = n.GetBoolValue(); } }, + { "downloads_url", n => { DownloadsUrl = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "fork", n => { Fork = n.GetBoolValue(); } }, + { "forks", n => { Forks = n.GetIntValue(); } }, + { "forks_count", n => { ForksCount = n.GetIntValue(); } }, + { "forks_url", n => { ForksUrl = n.GetStringValue(); } }, + { "full_name", n => { FullName = n.GetStringValue(); } }, + { "git_commits_url", n => { GitCommitsUrl = n.GetStringValue(); } }, + { "git_refs_url", n => { GitRefsUrl = n.GetStringValue(); } }, + { "git_tags_url", n => { GitTagsUrl = n.GetStringValue(); } }, + { "git_url", n => { GitUrl = n.GetStringValue(); } }, + { "has_discussions", n => { HasDiscussions = n.GetBoolValue(); } }, + { "has_downloads", n => { HasDownloads = n.GetBoolValue(); } }, + { "has_issues", n => { HasIssues = n.GetBoolValue(); } }, + { "has_pages", n => { HasPages = n.GetBoolValue(); } }, + { "has_projects", n => { HasProjects = n.GetBoolValue(); } }, + { "has_wiki", n => { HasWiki = n.GetBoolValue(); } }, + { "homepage", n => { Homepage = n.GetStringValue(); } }, + { "hooks_url", n => { HooksUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "is_template", n => { IsTemplate = n.GetBoolValue(); } }, + { "issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, + { "issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } }, + { "issues_url", n => { IssuesUrl = n.GetStringValue(); } }, + { "keys_url", n => { KeysUrl = n.GetStringValue(); } }, + { "labels_url", n => { LabelsUrl = n.GetStringValue(); } }, + { "language", n => { Language = n.GetStringValue(); } }, + { "languages_url", n => { LanguagesUrl = n.GetStringValue(); } }, + { "license", n => { License = n.GetObjectValue(global::GitHub.Models.NullableLicenseSimple.CreateFromDiscriminatorValue); } }, + { "master_branch", n => { MasterBranch = n.GetStringValue(); } }, + { "merges_url", n => { MergesUrl = n.GetStringValue(); } }, + { "milestones_url", n => { MilestonesUrl = n.GetStringValue(); } }, + { "mirror_url", n => { MirrorUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, + { "open_issues", n => { OpenIssues = n.GetIntValue(); } }, + { "open_issues_count", n => { OpenIssuesCount = n.GetIntValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.RepoSearchResultItem_permissions.CreateFromDiscriminatorValue); } }, + { "private", n => { Private = n.GetBoolValue(); } }, + { "pulls_url", n => { PullsUrl = n.GetStringValue(); } }, + { "pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, + { "releases_url", n => { ReleasesUrl = n.GetStringValue(); } }, + { "score", n => { Score = n.GetDoubleValue(); } }, + { "size", n => { Size = n.GetIntValue(); } }, + { "ssh_url", n => { SshUrl = n.GetStringValue(); } }, + { "stargazers_count", n => { StargazersCount = n.GetIntValue(); } }, + { "stargazers_url", n => { StargazersUrl = n.GetStringValue(); } }, + { "statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, + { "subscribers_url", n => { SubscribersUrl = n.GetStringValue(); } }, + { "subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, + { "svn_url", n => { SvnUrl = n.GetStringValue(); } }, + { "tags_url", n => { TagsUrl = n.GetStringValue(); } }, + { "teams_url", n => { TeamsUrl = n.GetStringValue(); } }, + { "temp_clone_token", n => { TempCloneToken = n.GetStringValue(); } }, + { "text_matches", n => { TextMatches = n.GetCollectionOfObjectValues(global::GitHub.Models.Repositories.CreateFromDiscriminatorValue)?.AsList(); } }, + { "topics", n => { Topics = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "trees_url", n => { TreesUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "visibility", n => { Visibility = n.GetStringValue(); } }, + { "watchers", n => { Watchers = n.GetIntValue(); } }, + { "watchers_count", n => { WatchersCount = n.GetIntValue(); } }, + { "web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, }; } /// @@ -713,7 +715,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("labels_url", LabelsUrl); writer.WriteStringValue("language", Language); writer.WriteStringValue("languages_url", LanguagesUrl); - writer.WriteObjectValue("license", License); + writer.WriteObjectValue("license", License); writer.WriteStringValue("master_branch", MasterBranch); writer.WriteStringValue("merges_url", MergesUrl); writer.WriteStringValue("milestones_url", MilestonesUrl); @@ -723,8 +725,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("notifications_url", NotificationsUrl); writer.WriteIntValue("open_issues", OpenIssues); writer.WriteIntValue("open_issues_count", OpenIssuesCount); - writer.WriteObjectValue("owner", Owner); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("owner", Owner); + writer.WriteObjectValue("permissions", Permissions); writer.WriteBoolValue("private", Private); writer.WriteStringValue("pulls_url", PullsUrl); writer.WriteDateTimeOffsetValue("pushed_at", PushedAt); @@ -741,7 +743,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("tags_url", TagsUrl); writer.WriteStringValue("teams_url", TeamsUrl); writer.WriteStringValue("temp_clone_token", TempCloneToken); - writer.WriteCollectionOfObjectValues("text_matches", TextMatches); + writer.WriteCollectionOfObjectValues("text_matches", TextMatches); writer.WriteCollectionOfPrimitiveValues("topics", Topics); writer.WriteStringValue("trees_url", TreesUrl); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); diff --git a/src/GitHub/Models/RepoSearchResultItem_permissions.cs b/src/GitHub/Models/RepoSearchResultItem_permissions.cs index a122b7c0..cae0abbe 100644 --- a/src/GitHub/Models/RepoSearchResultItem_permissions.cs +++ b/src/GitHub/Models/RepoSearchResultItem_permissions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepoSearchResultItem_permissions : IAdditionalDataHolder, IParsable + public partial class RepoSearchResultItem_permissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class RepoSearchResultItem_permissions : IAdditionalDataHolder, IParsable /// The triage property public bool? Triage { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepoSearchResultItem_permissions() { @@ -31,12 +33,12 @@ public RepoSearchResultItem_permissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepoSearchResultItem_permissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepoSearchResultItem_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepoSearchResultItem_permissions(); + return new global::GitHub.Models.RepoSearchResultItem_permissions(); } /// /// The deserialization information for the current model @@ -46,11 +48,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"admin", n => { Admin = n.GetBoolValue(); } }, - {"maintain", n => { Maintain = n.GetBoolValue(); } }, - {"pull", n => { Pull = n.GetBoolValue(); } }, - {"push", n => { Push = n.GetBoolValue(); } }, - {"triage", n => { Triage = n.GetBoolValue(); } }, + { "admin", n => { Admin = n.GetBoolValue(); } }, + { "maintain", n => { Maintain = n.GetBoolValue(); } }, + { "pull", n => { Pull = n.GetBoolValue(); } }, + { "push", n => { Push = n.GetBoolValue(); } }, + { "triage", n => { Triage = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/Repositories.cs b/src/GitHub/Models/Repositories.cs index 66cad374..bfc38351 100644 --- a/src/GitHub/Models/Repositories.cs +++ b/src/GitHub/Models/Repositories.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Repositories : IAdditionalDataHolder, IParsable + public partial class Repositories : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,10 +24,10 @@ public class Repositories : IAdditionalDataHolder, IParsable /// The matches property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Matches { get; set; } + public List? Matches { get; set; } #nullable restore #else - public List Matches { get; set; } + public List Matches { get; set; } #endif /// The object_type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -52,7 +54,7 @@ public class Repositories : IAdditionalDataHolder, IParsable public string Property { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Repositories() { @@ -61,12 +63,12 @@ public Repositories() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Repositories CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Repositories CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Repositories(); + return new global::GitHub.Models.Repositories(); } /// /// The deserialization information for the current model @@ -76,11 +78,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"fragment", n => { Fragment = n.GetStringValue(); } }, - {"matches", n => { Matches = n.GetCollectionOfObjectValues(Repositories_matches.CreateFromDiscriminatorValue)?.ToList(); } }, - {"object_type", n => { ObjectType = n.GetStringValue(); } }, - {"object_url", n => { ObjectUrl = n.GetStringValue(); } }, - {"property", n => { Property = n.GetStringValue(); } }, + { "fragment", n => { Fragment = n.GetStringValue(); } }, + { "matches", n => { Matches = n.GetCollectionOfObjectValues(global::GitHub.Models.Repositories_matches.CreateFromDiscriminatorValue)?.AsList(); } }, + { "object_type", n => { ObjectType = n.GetStringValue(); } }, + { "object_url", n => { ObjectUrl = n.GetStringValue(); } }, + { "property", n => { Property = n.GetStringValue(); } }, }; } /// @@ -91,7 +93,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("fragment", Fragment); - writer.WriteCollectionOfObjectValues("matches", Matches); + writer.WriteCollectionOfObjectValues("matches", Matches); writer.WriteStringValue("object_type", ObjectType); writer.WriteStringValue("object_url", ObjectUrl); writer.WriteStringValue("property", Property); diff --git a/src/GitHub/Models/Repositories503Error.cs b/src/GitHub/Models/Repositories503Error.cs index 689f0c98..ab771232 100644 --- a/src/GitHub/Models/Repositories503Error.cs +++ b/src/GitHub/Models/Repositories503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Repositories503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class Repositories503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class Repositories503Error : ApiException, IAdditionalDataHolder, IParsab #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Repositories503Error() { @@ -46,12 +42,12 @@ public Repositories503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Repositories503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Repositories503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Repositories503Error(); + return new global::GitHub.Models.Repositories503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/Repositories_matches.cs b/src/GitHub/Models/Repositories_matches.cs index a2e69ae2..5e332a6c 100644 --- a/src/GitHub/Models/Repositories_matches.cs +++ b/src/GitHub/Models/Repositories_matches.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Repositories_matches : IAdditionalDataHolder, IParsable + public partial class Repositories_matches : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class Repositories_matches : IAdditionalDataHolder, IParsable public string Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Repositories_matches() { @@ -37,12 +39,12 @@ public Repositories_matches() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Repositories_matches CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Repositories_matches CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Repositories_matches(); + return new global::GitHub.Models.Repositories_matches(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"indices", n => { Indices = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"text", n => { Text = n.GetStringValue(); } }, + { "indices", n => { Indices = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "text", n => { Text = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Repository.cs b/src/GitHub/Models/Repository.cs index 20711c4a..bba0e55a 100644 --- a/src/GitHub/Models/Repository.cs +++ b/src/GitHub/Models/Repository.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A repository on GitHub. /// - public class Repository : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Repository : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -316,10 +318,10 @@ public class Repository : IAdditionalDataHolder, IParsable /// License Simple #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableLicenseSimple? License { get; set; } + public global::GitHub.Models.NullableLicenseSimple? License { get; set; } #nullable restore #else - public NullableLicenseSimple License { get; set; } + public global::GitHub.Models.NullableLicenseSimple License { get; set; } #endif /// The master_branch property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -330,9 +332,9 @@ public class Repository : IAdditionalDataHolder, IParsable public string MasterBranch { get; set; } #endif /// 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. - public Repository_merge_commit_message? MergeCommitMessage { get; set; } + public global::GitHub.Models.Repository_merge_commit_message? MergeCommitMessage { get; set; } /// 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). - public Repository_merge_commit_title? MergeCommitTitle { get; set; } + public global::GitHub.Models.Repository_merge_commit_title? MergeCommitTitle { get; set; } /// The merges_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -388,18 +390,18 @@ public class Repository : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Owner { get; set; } + public global::GitHub.Models.SimpleUser? Owner { get; set; } #nullable restore #else - public SimpleUser Owner { get; set; } + public global::GitHub.Models.SimpleUser Owner { get; set; } #endif /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Repository_permissions? Permissions { get; set; } + public global::GitHub.Models.Repository_permissions? Permissions { get; set; } #nullable restore #else - public Repository_permissions Permissions { get; set; } + public global::GitHub.Models.Repository_permissions Permissions { get; set; } #endif /// Whether the repository is private or public. public bool? Private { get; set; } @@ -424,9 +426,9 @@ public class Repository : IAdditionalDataHolder, IParsable /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. public int? Size { get; set; } /// 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. - public Repository_squash_merge_commit_message? SquashMergeCommitMessage { get; set; } + public global::GitHub.Models.Repository_squash_merge_commit_message? SquashMergeCommitMessage { get; set; } /// 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). - public Repository_squash_merge_commit_title? SquashMergeCommitTitle { get; set; } + public global::GitHub.Models.Repository_squash_merge_commit_title? SquashMergeCommitTitle { get; set; } /// The ssh_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -553,7 +555,7 @@ public class Repository : IAdditionalDataHolder, IParsable /// Whether to require contributors to sign off on web-based commits public bool? WebCommitSignoffRequired { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Repository() { @@ -563,12 +565,12 @@ public Repository() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Repository CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Repository CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Repository(); + return new global::GitHub.Models.Repository(); } /// /// The deserialization information for the current model @@ -578,101 +580,101 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allow_auto_merge", n => { AllowAutoMerge = n.GetBoolValue(); } }, - {"allow_forking", n => { AllowForking = n.GetBoolValue(); } }, - {"allow_merge_commit", n => { AllowMergeCommit = n.GetBoolValue(); } }, - {"allow_rebase_merge", n => { AllowRebaseMerge = n.GetBoolValue(); } }, - {"allow_squash_merge", n => { AllowSquashMerge = n.GetBoolValue(); } }, - {"allow_update_branch", n => { AllowUpdateBranch = n.GetBoolValue(); } }, - {"anonymous_access_enabled", n => { AnonymousAccessEnabled = n.GetBoolValue(); } }, - {"archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, - {"archived", n => { Archived = n.GetBoolValue(); } }, - {"assignees_url", n => { AssigneesUrl = n.GetStringValue(); } }, - {"blobs_url", n => { BlobsUrl = n.GetStringValue(); } }, - {"branches_url", n => { BranchesUrl = n.GetStringValue(); } }, - {"clone_url", n => { CloneUrl = n.GetStringValue(); } }, - {"collaborators_url", n => { CollaboratorsUrl = n.GetStringValue(); } }, - {"comments_url", n => { CommentsUrl = n.GetStringValue(); } }, - {"commits_url", n => { CommitsUrl = n.GetStringValue(); } }, - {"compare_url", n => { CompareUrl = n.GetStringValue(); } }, - {"contents_url", n => { ContentsUrl = n.GetStringValue(); } }, - {"contributors_url", n => { ContributorsUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"default_branch", n => { DefaultBranch = n.GetStringValue(); } }, - {"delete_branch_on_merge", n => { DeleteBranchOnMerge = n.GetBoolValue(); } }, - {"deployments_url", n => { DeploymentsUrl = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"disabled", n => { Disabled = n.GetBoolValue(); } }, - {"downloads_url", n => { DownloadsUrl = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"fork", n => { Fork = n.GetBoolValue(); } }, - {"forks", n => { Forks = n.GetIntValue(); } }, - {"forks_count", n => { ForksCount = n.GetIntValue(); } }, - {"forks_url", n => { ForksUrl = n.GetStringValue(); } }, - {"full_name", n => { FullName = n.GetStringValue(); } }, - {"git_commits_url", n => { GitCommitsUrl = n.GetStringValue(); } }, - {"git_refs_url", n => { GitRefsUrl = n.GetStringValue(); } }, - {"git_tags_url", n => { GitTagsUrl = n.GetStringValue(); } }, - {"git_url", n => { GitUrl = n.GetStringValue(); } }, - {"has_discussions", n => { HasDiscussions = n.GetBoolValue(); } }, - {"has_downloads", n => { HasDownloads = n.GetBoolValue(); } }, - {"has_issues", n => { HasIssues = n.GetBoolValue(); } }, - {"has_pages", n => { HasPages = n.GetBoolValue(); } }, - {"has_projects", n => { HasProjects = n.GetBoolValue(); } }, - {"has_wiki", n => { HasWiki = n.GetBoolValue(); } }, - {"homepage", n => { Homepage = n.GetStringValue(); } }, - {"hooks_url", n => { HooksUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"is_template", n => { IsTemplate = n.GetBoolValue(); } }, - {"issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, - {"issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } }, - {"issues_url", n => { IssuesUrl = n.GetStringValue(); } }, - {"keys_url", n => { KeysUrl = n.GetStringValue(); } }, - {"labels_url", n => { LabelsUrl = n.GetStringValue(); } }, - {"language", n => { Language = n.GetStringValue(); } }, - {"languages_url", n => { LanguagesUrl = n.GetStringValue(); } }, - {"license", n => { License = n.GetObjectValue(NullableLicenseSimple.CreateFromDiscriminatorValue); } }, - {"master_branch", n => { MasterBranch = n.GetStringValue(); } }, - {"merge_commit_message", n => { MergeCommitMessage = n.GetEnumValue(); } }, - {"merge_commit_title", n => { MergeCommitTitle = n.GetEnumValue(); } }, - {"merges_url", n => { MergesUrl = n.GetStringValue(); } }, - {"milestones_url", n => { MilestonesUrl = n.GetStringValue(); } }, - {"mirror_url", n => { MirrorUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, - {"open_issues", n => { OpenIssues = n.GetIntValue(); } }, - {"open_issues_count", n => { OpenIssuesCount = n.GetIntValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"permissions", n => { Permissions = n.GetObjectValue(Repository_permissions.CreateFromDiscriminatorValue); } }, - {"private", n => { Private = n.GetBoolValue(); } }, - {"pulls_url", n => { PullsUrl = n.GetStringValue(); } }, - {"pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, - {"releases_url", n => { ReleasesUrl = n.GetStringValue(); } }, - {"size", n => { Size = n.GetIntValue(); } }, - {"squash_merge_commit_message", n => { SquashMergeCommitMessage = n.GetEnumValue(); } }, - {"squash_merge_commit_title", n => { SquashMergeCommitTitle = n.GetEnumValue(); } }, - {"ssh_url", n => { SshUrl = n.GetStringValue(); } }, - {"stargazers_count", n => { StargazersCount = n.GetIntValue(); } }, - {"stargazers_url", n => { StargazersUrl = n.GetStringValue(); } }, - {"starred_at", n => { StarredAt = n.GetStringValue(); } }, - {"statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, - {"subscribers_url", n => { SubscribersUrl = n.GetStringValue(); } }, - {"subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, - {"svn_url", n => { SvnUrl = n.GetStringValue(); } }, - {"tags_url", n => { TagsUrl = n.GetStringValue(); } }, - {"teams_url", n => { TeamsUrl = n.GetStringValue(); } }, - {"temp_clone_token", n => { TempCloneToken = n.GetStringValue(); } }, - {"topics", n => { Topics = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"trees_url", n => { TreesUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"use_squash_pr_title_as_default", n => { UseSquashPrTitleAsDefault = n.GetBoolValue(); } }, - {"visibility", n => { Visibility = n.GetStringValue(); } }, - {"watchers", n => { Watchers = n.GetIntValue(); } }, - {"watchers_count", n => { WatchersCount = n.GetIntValue(); } }, - {"web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, + { "allow_auto_merge", n => { AllowAutoMerge = n.GetBoolValue(); } }, + { "allow_forking", n => { AllowForking = n.GetBoolValue(); } }, + { "allow_merge_commit", n => { AllowMergeCommit = n.GetBoolValue(); } }, + { "allow_rebase_merge", n => { AllowRebaseMerge = n.GetBoolValue(); } }, + { "allow_squash_merge", n => { AllowSquashMerge = n.GetBoolValue(); } }, + { "allow_update_branch", n => { AllowUpdateBranch = n.GetBoolValue(); } }, + { "anonymous_access_enabled", n => { AnonymousAccessEnabled = n.GetBoolValue(); } }, + { "archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, + { "archived", n => { Archived = n.GetBoolValue(); } }, + { "assignees_url", n => { AssigneesUrl = n.GetStringValue(); } }, + { "blobs_url", n => { BlobsUrl = n.GetStringValue(); } }, + { "branches_url", n => { BranchesUrl = n.GetStringValue(); } }, + { "clone_url", n => { CloneUrl = n.GetStringValue(); } }, + { "collaborators_url", n => { CollaboratorsUrl = n.GetStringValue(); } }, + { "comments_url", n => { CommentsUrl = n.GetStringValue(); } }, + { "commits_url", n => { CommitsUrl = n.GetStringValue(); } }, + { "compare_url", n => { CompareUrl = n.GetStringValue(); } }, + { "contents_url", n => { ContentsUrl = n.GetStringValue(); } }, + { "contributors_url", n => { ContributorsUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "default_branch", n => { DefaultBranch = n.GetStringValue(); } }, + { "delete_branch_on_merge", n => { DeleteBranchOnMerge = n.GetBoolValue(); } }, + { "deployments_url", n => { DeploymentsUrl = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "disabled", n => { Disabled = n.GetBoolValue(); } }, + { "downloads_url", n => { DownloadsUrl = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "fork", n => { Fork = n.GetBoolValue(); } }, + { "forks", n => { Forks = n.GetIntValue(); } }, + { "forks_count", n => { ForksCount = n.GetIntValue(); } }, + { "forks_url", n => { ForksUrl = n.GetStringValue(); } }, + { "full_name", n => { FullName = n.GetStringValue(); } }, + { "git_commits_url", n => { GitCommitsUrl = n.GetStringValue(); } }, + { "git_refs_url", n => { GitRefsUrl = n.GetStringValue(); } }, + { "git_tags_url", n => { GitTagsUrl = n.GetStringValue(); } }, + { "git_url", n => { GitUrl = n.GetStringValue(); } }, + { "has_discussions", n => { HasDiscussions = n.GetBoolValue(); } }, + { "has_downloads", n => { HasDownloads = n.GetBoolValue(); } }, + { "has_issues", n => { HasIssues = n.GetBoolValue(); } }, + { "has_pages", n => { HasPages = n.GetBoolValue(); } }, + { "has_projects", n => { HasProjects = n.GetBoolValue(); } }, + { "has_wiki", n => { HasWiki = n.GetBoolValue(); } }, + { "homepage", n => { Homepage = n.GetStringValue(); } }, + { "hooks_url", n => { HooksUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "is_template", n => { IsTemplate = n.GetBoolValue(); } }, + { "issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, + { "issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } }, + { "issues_url", n => { IssuesUrl = n.GetStringValue(); } }, + { "keys_url", n => { KeysUrl = n.GetStringValue(); } }, + { "labels_url", n => { LabelsUrl = n.GetStringValue(); } }, + { "language", n => { Language = n.GetStringValue(); } }, + { "languages_url", n => { LanguagesUrl = n.GetStringValue(); } }, + { "license", n => { License = n.GetObjectValue(global::GitHub.Models.NullableLicenseSimple.CreateFromDiscriminatorValue); } }, + { "master_branch", n => { MasterBranch = n.GetStringValue(); } }, + { "merge_commit_message", n => { MergeCommitMessage = n.GetEnumValue(); } }, + { "merge_commit_title", n => { MergeCommitTitle = n.GetEnumValue(); } }, + { "merges_url", n => { MergesUrl = n.GetStringValue(); } }, + { "milestones_url", n => { MilestonesUrl = n.GetStringValue(); } }, + { "mirror_url", n => { MirrorUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, + { "open_issues", n => { OpenIssues = n.GetIntValue(); } }, + { "open_issues_count", n => { OpenIssuesCount = n.GetIntValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.Repository_permissions.CreateFromDiscriminatorValue); } }, + { "private", n => { Private = n.GetBoolValue(); } }, + { "pulls_url", n => { PullsUrl = n.GetStringValue(); } }, + { "pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, + { "releases_url", n => { ReleasesUrl = n.GetStringValue(); } }, + { "size", n => { Size = n.GetIntValue(); } }, + { "squash_merge_commit_message", n => { SquashMergeCommitMessage = n.GetEnumValue(); } }, + { "squash_merge_commit_title", n => { SquashMergeCommitTitle = n.GetEnumValue(); } }, + { "ssh_url", n => { SshUrl = n.GetStringValue(); } }, + { "stargazers_count", n => { StargazersCount = n.GetIntValue(); } }, + { "stargazers_url", n => { StargazersUrl = n.GetStringValue(); } }, + { "starred_at", n => { StarredAt = n.GetStringValue(); } }, + { "statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, + { "subscribers_url", n => { SubscribersUrl = n.GetStringValue(); } }, + { "subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, + { "svn_url", n => { SvnUrl = n.GetStringValue(); } }, + { "tags_url", n => { TagsUrl = n.GetStringValue(); } }, + { "teams_url", n => { TeamsUrl = n.GetStringValue(); } }, + { "temp_clone_token", n => { TempCloneToken = n.GetStringValue(); } }, + { "topics", n => { Topics = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "trees_url", n => { TreesUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "use_squash_pr_title_as_default", n => { UseSquashPrTitleAsDefault = n.GetBoolValue(); } }, + { "visibility", n => { Visibility = n.GetStringValue(); } }, + { "watchers", n => { Watchers = n.GetIntValue(); } }, + { "watchers_count", n => { WatchersCount = n.GetIntValue(); } }, + { "web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, }; } /// @@ -736,10 +738,10 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("labels_url", LabelsUrl); writer.WriteStringValue("language", Language); writer.WriteStringValue("languages_url", LanguagesUrl); - writer.WriteObjectValue("license", License); + writer.WriteObjectValue("license", License); writer.WriteStringValue("master_branch", MasterBranch); - writer.WriteEnumValue("merge_commit_message", MergeCommitMessage); - writer.WriteEnumValue("merge_commit_title", MergeCommitTitle); + writer.WriteEnumValue("merge_commit_message", MergeCommitMessage); + writer.WriteEnumValue("merge_commit_title", MergeCommitTitle); writer.WriteStringValue("merges_url", MergesUrl); writer.WriteStringValue("milestones_url", MilestonesUrl); writer.WriteStringValue("mirror_url", MirrorUrl); @@ -748,15 +750,15 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("notifications_url", NotificationsUrl); writer.WriteIntValue("open_issues", OpenIssues); writer.WriteIntValue("open_issues_count", OpenIssuesCount); - writer.WriteObjectValue("owner", Owner); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("owner", Owner); + writer.WriteObjectValue("permissions", Permissions); writer.WriteBoolValue("private", Private); writer.WriteStringValue("pulls_url", PullsUrl); writer.WriteDateTimeOffsetValue("pushed_at", PushedAt); writer.WriteStringValue("releases_url", ReleasesUrl); writer.WriteIntValue("size", Size); - writer.WriteEnumValue("squash_merge_commit_message", SquashMergeCommitMessage); - writer.WriteEnumValue("squash_merge_commit_title", SquashMergeCommitTitle); + writer.WriteEnumValue("squash_merge_commit_message", SquashMergeCommitMessage); + writer.WriteEnumValue("squash_merge_commit_title", SquashMergeCommitTitle); writer.WriteStringValue("ssh_url", SshUrl); writer.WriteIntValue("stargazers_count", StargazersCount); writer.WriteStringValue("stargazers_url", StargazersUrl); diff --git a/src/GitHub/Models/RepositoryAdvisory.cs b/src/GitHub/Models/RepositoryAdvisory.cs index b097ec29..b2da0735 100644 --- a/src/GitHub/Models/RepositoryAdvisory.cs +++ b/src/GitHub/Models/RepositoryAdvisory.cs @@ -1,58 +1,60 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A repository security advisory. /// - public class RepositoryAdvisory : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryAdvisory : IParsable { /// The author of the advisory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Author { get; private set; } + public global::GitHub.Models.SimpleUser? Author { get; private set; } #nullable restore #else - public SimpleUser Author { get; private set; } + public global::GitHub.Models.SimpleUser Author { get; private set; } #endif /// The date and time of when the advisory was closed, in ISO 8601 format. public DateTimeOffset? ClosedAt { get; private set; } /// A list of teams that collaborate on the advisory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? CollaboratingTeams { get; set; } + public List? CollaboratingTeams { get; set; } #nullable restore #else - public List CollaboratingTeams { get; set; } + public List CollaboratingTeams { get; set; } #endif /// A list of users that collaborate on the advisory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? CollaboratingUsers { get; set; } + public List? CollaboratingUsers { get; set; } #nullable restore #else - public List CollaboratingUsers { get; set; } + public List CollaboratingUsers { get; set; } #endif /// The date and time of when the advisory was created, in ISO 8601 format. public DateTimeOffset? CreatedAt { get; private set; } /// The credits property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Credits { get; set; } + public List? Credits { get; set; } #nullable restore #else - public List Credits { get; set; } + public List Credits { get; set; } #endif /// The credits_detailed property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? CreditsDetailed { get; private set; } + public List? CreditsDetailed { get; private set; } #nullable restore #else - public List CreditsDetailed { get; private set; } + public List CreditsDetailed { get; private set; } #endif /// The Common Vulnerabilities and Exposures (CVE) ID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -65,10 +67,10 @@ public class RepositoryAdvisory : IParsable /// The cvss property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryAdvisory_cvss? Cvss { get; set; } + public global::GitHub.Models.RepositoryAdvisory_cvss? Cvss { get; set; } #nullable restore #else - public RepositoryAdvisory_cvss Cvss { get; set; } + public global::GitHub.Models.RepositoryAdvisory_cvss Cvss { get; set; } #endif /// A list of only the CWE IDs. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,10 +83,10 @@ public class RepositoryAdvisory : IParsable /// The cwes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Cwes { get; private set; } + public List? Cwes { get; private set; } #nullable restore #else - public List Cwes { get; private set; } + public List Cwes { get; private set; } #endif /// A detailed description of what the advisory entails. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -113,40 +115,40 @@ public class RepositoryAdvisory : IParsable /// The identifiers property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Identifiers { get; private set; } + public List? Identifiers { get; private set; } #nullable restore #else - public List Identifiers { get; private set; } + public List Identifiers { get; private set; } #endif /// A temporary private fork of the advisory's repository for collaborating on a fix. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleRepository? PrivateFork { get; private set; } + public global::GitHub.Models.SimpleRepository? PrivateFork { get; private set; } #nullable restore #else - public SimpleRepository PrivateFork { get; private set; } + public global::GitHub.Models.SimpleRepository PrivateFork { get; private set; } #endif /// The date and time of when the advisory was published, in ISO 8601 format. public DateTimeOffset? PublishedAt { get; private set; } /// The publisher of the advisory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Publisher { get; private set; } + public global::GitHub.Models.SimpleUser? Publisher { get; private set; } #nullable restore #else - public SimpleUser Publisher { get; private set; } + public global::GitHub.Models.SimpleUser Publisher { get; private set; } #endif /// The severity of the advisory. - public RepositoryAdvisory_severity? Severity { get; set; } + public global::GitHub.Models.RepositoryAdvisory_severity? Severity { get; set; } /// The state of the advisory. - public RepositoryAdvisory_state? State { get; set; } + public global::GitHub.Models.RepositoryAdvisory_state? State { get; set; } /// The submission property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryAdvisory_submission? Submission { get; private set; } + public global::GitHub.Models.RepositoryAdvisory_submission? Submission { get; private set; } #nullable restore #else - public RepositoryAdvisory_submission Submission { get; private set; } + public global::GitHub.Models.RepositoryAdvisory_submission Submission { get; private set; } #endif /// A short summary of the advisory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -169,22 +171,22 @@ public class RepositoryAdvisory : IParsable /// The vulnerabilities property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Vulnerabilities { get; set; } + public List? Vulnerabilities { get; set; } #nullable restore #else - public List Vulnerabilities { get; set; } + public List Vulnerabilities { get; set; } #endif /// The date and time of when the advisory was withdrawn, in ISO 8601 format. public DateTimeOffset? WithdrawnAt { get; private set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryAdvisory CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryAdvisory CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryAdvisory(); + return new global::GitHub.Models.RepositoryAdvisory(); } /// /// The deserialization information for the current model @@ -194,32 +196,32 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author", n => { Author = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"closed_at", n => { ClosedAt = n.GetDateTimeOffsetValue(); } }, - {"collaborating_teams", n => { CollaboratingTeams = n.GetCollectionOfObjectValues(Team.CreateFromDiscriminatorValue)?.ToList(); } }, - {"collaborating_users", n => { CollaboratingUsers = n.GetCollectionOfObjectValues(SimpleUser.CreateFromDiscriminatorValue)?.ToList(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"credits", n => { Credits = n.GetCollectionOfObjectValues(RepositoryAdvisory_credits.CreateFromDiscriminatorValue)?.ToList(); } }, - {"credits_detailed", n => { CreditsDetailed = n.GetCollectionOfObjectValues(RepositoryAdvisoryCredit.CreateFromDiscriminatorValue)?.ToList(); } }, - {"cve_id", n => { CveId = n.GetStringValue(); } }, - {"cvss", n => { Cvss = n.GetObjectValue(RepositoryAdvisory_cvss.CreateFromDiscriminatorValue); } }, - {"cwe_ids", n => { CweIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"cwes", n => { Cwes = n.GetCollectionOfObjectValues(RepositoryAdvisory_cwes.CreateFromDiscriminatorValue)?.ToList(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"ghsa_id", n => { GhsaId = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"identifiers", n => { Identifiers = n.GetCollectionOfObjectValues(RepositoryAdvisory_identifiers.CreateFromDiscriminatorValue)?.ToList(); } }, - {"private_fork", n => { PrivateFork = n.GetObjectValue(SimpleRepository.CreateFromDiscriminatorValue); } }, - {"published_at", n => { PublishedAt = n.GetDateTimeOffsetValue(); } }, - {"publisher", n => { Publisher = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"severity", n => { Severity = n.GetEnumValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"submission", n => { Submission = n.GetObjectValue(RepositoryAdvisory_submission.CreateFromDiscriminatorValue); } }, - {"summary", n => { Summary = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"vulnerabilities", n => { Vulnerabilities = n.GetCollectionOfObjectValues(RepositoryAdvisoryVulnerability.CreateFromDiscriminatorValue)?.ToList(); } }, - {"withdrawn_at", n => { WithdrawnAt = n.GetDateTimeOffsetValue(); } }, + { "author", n => { Author = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "closed_at", n => { ClosedAt = n.GetDateTimeOffsetValue(); } }, + { "collaborating_teams", n => { CollaboratingTeams = n.GetCollectionOfObjectValues(global::GitHub.Models.Team.CreateFromDiscriminatorValue)?.AsList(); } }, + { "collaborating_users", n => { CollaboratingUsers = n.GetCollectionOfObjectValues(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue)?.AsList(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "credits", n => { Credits = n.GetCollectionOfObjectValues(global::GitHub.Models.RepositoryAdvisory_credits.CreateFromDiscriminatorValue)?.AsList(); } }, + { "credits_detailed", n => { CreditsDetailed = n.GetCollectionOfObjectValues(global::GitHub.Models.RepositoryAdvisoryCredit.CreateFromDiscriminatorValue)?.AsList(); } }, + { "cve_id", n => { CveId = n.GetStringValue(); } }, + { "cvss", n => { Cvss = n.GetObjectValue(global::GitHub.Models.RepositoryAdvisory_cvss.CreateFromDiscriminatorValue); } }, + { "cwe_ids", n => { CweIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "cwes", n => { Cwes = n.GetCollectionOfObjectValues(global::GitHub.Models.RepositoryAdvisory_cwes.CreateFromDiscriminatorValue)?.AsList(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "ghsa_id", n => { GhsaId = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "identifiers", n => { Identifiers = n.GetCollectionOfObjectValues(global::GitHub.Models.RepositoryAdvisory_identifiers.CreateFromDiscriminatorValue)?.AsList(); } }, + { "private_fork", n => { PrivateFork = n.GetObjectValue(global::GitHub.Models.SimpleRepository.CreateFromDiscriminatorValue); } }, + { "published_at", n => { PublishedAt = n.GetDateTimeOffsetValue(); } }, + { "publisher", n => { Publisher = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "severity", n => { Severity = n.GetEnumValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "submission", n => { Submission = n.GetObjectValue(global::GitHub.Models.RepositoryAdvisory_submission.CreateFromDiscriminatorValue); } }, + { "summary", n => { Summary = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "vulnerabilities", n => { Vulnerabilities = n.GetCollectionOfObjectValues(global::GitHub.Models.RepositoryAdvisoryVulnerability.CreateFromDiscriminatorValue)?.AsList(); } }, + { "withdrawn_at", n => { WithdrawnAt = n.GetDateTimeOffsetValue(); } }, }; } /// @@ -229,17 +231,17 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("collaborating_teams", CollaboratingTeams); - writer.WriteCollectionOfObjectValues("collaborating_users", CollaboratingUsers); - writer.WriteCollectionOfObjectValues("credits", Credits); + writer.WriteCollectionOfObjectValues("collaborating_teams", CollaboratingTeams); + writer.WriteCollectionOfObjectValues("collaborating_users", CollaboratingUsers); + writer.WriteCollectionOfObjectValues("credits", Credits); writer.WriteStringValue("cve_id", CveId); - writer.WriteObjectValue("cvss", Cvss); + writer.WriteObjectValue("cvss", Cvss); writer.WriteCollectionOfPrimitiveValues("cwe_ids", CweIds); writer.WriteStringValue("description", Description); - writer.WriteEnumValue("severity", Severity); - writer.WriteEnumValue("state", State); + writer.WriteEnumValue("severity", Severity); + writer.WriteEnumValue("state", State); writer.WriteStringValue("summary", Summary); - writer.WriteCollectionOfObjectValues("vulnerabilities", Vulnerabilities); + writer.WriteCollectionOfObjectValues("vulnerabilities", Vulnerabilities); } } } diff --git a/src/GitHub/Models/RepositoryAdvisoryCreate.cs b/src/GitHub/Models/RepositoryAdvisoryCreate.cs index dc507fe0..b62e6dd2 100644 --- a/src/GitHub/Models/RepositoryAdvisoryCreate.cs +++ b/src/GitHub/Models/RepositoryAdvisoryCreate.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryAdvisoryCreate : IParsable + public partial class RepositoryAdvisoryCreate : IParsable #pragma warning restore CS1591 { /// A list of users receiving credit for their participation in the security advisory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Credits { get; set; } + public List? Credits { get; set; } #nullable restore #else - public List Credits { get; set; } + public List Credits { get; set; } #endif /// The Common Vulnerabilities and Exposures (CVE) ID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -50,7 +52,7 @@ public class RepositoryAdvisoryCreate : IParsable public string Description { get; set; } #endif /// The severity of the advisory. You must choose between setting this field or `cvss_vector_string`. - public RepositoryAdvisoryCreate_severity? Severity { get; set; } + public global::GitHub.Models.RepositoryAdvisoryCreate_severity? Severity { get; set; } /// Whether to create a temporary private fork of the repository to collaborate on a fix. public bool? StartPrivateFork { get; set; } /// A short summary of the advisory. @@ -64,20 +66,20 @@ public class RepositoryAdvisoryCreate : IParsable /// A product affected by the vulnerability detailed in a repository security advisory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Vulnerabilities { get; set; } + public List? Vulnerabilities { get; set; } #nullable restore #else - public List Vulnerabilities { get; set; } + public List Vulnerabilities { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryAdvisoryCreate CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryAdvisoryCreate CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryAdvisoryCreate(); + return new global::GitHub.Models.RepositoryAdvisoryCreate(); } /// /// The deserialization information for the current model @@ -87,15 +89,15 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"credits", n => { Credits = n.GetCollectionOfObjectValues(RepositoryAdvisoryCreate_credits.CreateFromDiscriminatorValue)?.ToList(); } }, - {"cve_id", n => { CveId = n.GetStringValue(); } }, - {"cvss_vector_string", n => { CvssVectorString = n.GetStringValue(); } }, - {"cwe_ids", n => { CweIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"severity", n => { Severity = n.GetEnumValue(); } }, - {"start_private_fork", n => { StartPrivateFork = n.GetBoolValue(); } }, - {"summary", n => { Summary = n.GetStringValue(); } }, - {"vulnerabilities", n => { Vulnerabilities = n.GetCollectionOfObjectValues(RepositoryAdvisoryCreate_vulnerabilities.CreateFromDiscriminatorValue)?.ToList(); } }, + { "credits", n => { Credits = n.GetCollectionOfObjectValues(global::GitHub.Models.RepositoryAdvisoryCreate_credits.CreateFromDiscriminatorValue)?.AsList(); } }, + { "cve_id", n => { CveId = n.GetStringValue(); } }, + { "cvss_vector_string", n => { CvssVectorString = n.GetStringValue(); } }, + { "cwe_ids", n => { CweIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "severity", n => { Severity = n.GetEnumValue(); } }, + { "start_private_fork", n => { StartPrivateFork = n.GetBoolValue(); } }, + { "summary", n => { Summary = n.GetStringValue(); } }, + { "vulnerabilities", n => { Vulnerabilities = n.GetCollectionOfObjectValues(global::GitHub.Models.RepositoryAdvisoryCreate_vulnerabilities.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -105,15 +107,15 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("credits", Credits); + writer.WriteCollectionOfObjectValues("credits", Credits); writer.WriteStringValue("cve_id", CveId); writer.WriteStringValue("cvss_vector_string", CvssVectorString); writer.WriteCollectionOfPrimitiveValues("cwe_ids", CweIds); writer.WriteStringValue("description", Description); - writer.WriteEnumValue("severity", Severity); + writer.WriteEnumValue("severity", Severity); writer.WriteBoolValue("start_private_fork", StartPrivateFork); writer.WriteStringValue("summary", Summary); - writer.WriteCollectionOfObjectValues("vulnerabilities", Vulnerabilities); + writer.WriteCollectionOfObjectValues("vulnerabilities", Vulnerabilities); } } } diff --git a/src/GitHub/Models/RepositoryAdvisoryCreate_credits.cs b/src/GitHub/Models/RepositoryAdvisoryCreate_credits.cs index 3f9887ad..4fa44f2c 100644 --- a/src/GitHub/Models/RepositoryAdvisoryCreate_credits.cs +++ b/src/GitHub/Models/RepositoryAdvisoryCreate_credits.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryAdvisoryCreate_credits : IParsable + public partial class RepositoryAdvisoryCreate_credits : IParsable #pragma warning restore CS1591 { /// The username of the user credited. @@ -18,16 +20,16 @@ public class RepositoryAdvisoryCreate_credits : IParsable public string Login { get; set; } #endif /// The type of credit the user is receiving. - public SecurityAdvisoryCreditTypes? Type { get; set; } + public global::GitHub.Models.SecurityAdvisoryCreditTypes? Type { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryAdvisoryCreate_credits CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryAdvisoryCreate_credits CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryAdvisoryCreate_credits(); + return new global::GitHub.Models.RepositoryAdvisoryCreate_credits(); } /// /// The deserialization information for the current model @@ -37,8 +39,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"login", n => { Login = n.GetStringValue(); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -49,7 +51,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("login", Login); - writer.WriteEnumValue("type", Type); + writer.WriteEnumValue("type", Type); } } } diff --git a/src/GitHub/Models/RepositoryAdvisoryCreate_severity.cs b/src/GitHub/Models/RepositoryAdvisoryCreate_severity.cs index b26ddfaf..6239044c 100644 --- a/src/GitHub/Models/RepositoryAdvisoryCreate_severity.cs +++ b/src/GitHub/Models/RepositoryAdvisoryCreate_severity.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The severity of the advisory. You must choose between setting this field or `cvss_vector_string`. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryAdvisoryCreate_severity { [EnumMember(Value = "critical")] diff --git a/src/GitHub/Models/RepositoryAdvisoryCreate_vulnerabilities.cs b/src/GitHub/Models/RepositoryAdvisoryCreate_vulnerabilities.cs index 2c7f06ac..198346ea 100644 --- a/src/GitHub/Models/RepositoryAdvisoryCreate_vulnerabilities.cs +++ b/src/GitHub/Models/RepositoryAdvisoryCreate_vulnerabilities.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryAdvisoryCreate_vulnerabilities : IParsable + public partial class RepositoryAdvisoryCreate_vulnerabilities : IParsable #pragma warning restore CS1591 { /// The name of the package affected by the vulnerability. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryAdvisoryCreate_vulnerabilities_package? Package { get; set; } + public global::GitHub.Models.RepositoryAdvisoryCreate_vulnerabilities_package? Package { get; set; } #nullable restore #else - public RepositoryAdvisoryCreate_vulnerabilities_package Package { get; set; } + public global::GitHub.Models.RepositoryAdvisoryCreate_vulnerabilities_package Package { get; set; } #endif /// The package version(s) that resolve the vulnerability. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -44,12 +46,12 @@ public class RepositoryAdvisoryCreate_vulnerabilities : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryAdvisoryCreate_vulnerabilities CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryAdvisoryCreate_vulnerabilities CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryAdvisoryCreate_vulnerabilities(); + return new global::GitHub.Models.RepositoryAdvisoryCreate_vulnerabilities(); } /// /// The deserialization information for the current model @@ -59,10 +61,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"package", n => { Package = n.GetObjectValue(RepositoryAdvisoryCreate_vulnerabilities_package.CreateFromDiscriminatorValue); } }, - {"patched_versions", n => { PatchedVersions = n.GetStringValue(); } }, - {"vulnerable_functions", n => { VulnerableFunctions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"vulnerable_version_range", n => { VulnerableVersionRange = n.GetStringValue(); } }, + { "package", n => { Package = n.GetObjectValue(global::GitHub.Models.RepositoryAdvisoryCreate_vulnerabilities_package.CreateFromDiscriminatorValue); } }, + { "patched_versions", n => { PatchedVersions = n.GetStringValue(); } }, + { "vulnerable_functions", n => { VulnerableFunctions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "vulnerable_version_range", n => { VulnerableVersionRange = n.GetStringValue(); } }, }; } /// @@ -72,7 +74,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("package", Package); + writer.WriteObjectValue("package", Package); writer.WriteStringValue("patched_versions", PatchedVersions); writer.WriteCollectionOfPrimitiveValues("vulnerable_functions", VulnerableFunctions); writer.WriteStringValue("vulnerable_version_range", VulnerableVersionRange); diff --git a/src/GitHub/Models/RepositoryAdvisoryCreate_vulnerabilities_package.cs b/src/GitHub/Models/RepositoryAdvisoryCreate_vulnerabilities_package.cs index 3e0f5157..cfdc9eeb 100644 --- a/src/GitHub/Models/RepositoryAdvisoryCreate_vulnerabilities_package.cs +++ b/src/GitHub/Models/RepositoryAdvisoryCreate_vulnerabilities_package.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The name of the package affected by the vulnerability. /// - public class RepositoryAdvisoryCreate_vulnerabilities_package : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryAdvisoryCreate_vulnerabilities_package : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The package's language or package management ecosystem. - public SecurityAdvisoryEcosystems? Ecosystem { get; set; } + public global::GitHub.Models.SecurityAdvisoryEcosystems? Ecosystem { get; set; } /// The unique package name within its ecosystem. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -23,7 +25,7 @@ public class RepositoryAdvisoryCreate_vulnerabilities_package : IAdditionalDataH public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryAdvisoryCreate_vulnerabilities_package() { @@ -32,12 +34,12 @@ public RepositoryAdvisoryCreate_vulnerabilities_package() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryAdvisoryCreate_vulnerabilities_package CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryAdvisoryCreate_vulnerabilities_package CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryAdvisoryCreate_vulnerabilities_package(); + return new global::GitHub.Models.RepositoryAdvisoryCreate_vulnerabilities_package(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"ecosystem", n => { Ecosystem = n.GetEnumValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "ecosystem", n => { Ecosystem = n.GetEnumValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("ecosystem", Ecosystem); + writer.WriteEnumValue("ecosystem", Ecosystem); writer.WriteStringValue("name", Name); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/RepositoryAdvisoryCredit.cs b/src/GitHub/Models/RepositoryAdvisoryCredit.cs index b5f2f20e..27721a47 100644 --- a/src/GitHub/Models/RepositoryAdvisoryCredit.cs +++ b/src/GitHub/Models/RepositoryAdvisoryCredit.cs @@ -1,36 +1,38 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A credit given to a user for a repository security advisory. /// - public class RepositoryAdvisoryCredit : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryAdvisoryCredit : IParsable { /// The state of the user's acceptance of the credit. - public RepositoryAdvisoryCredit_state? State { get; set; } + public global::GitHub.Models.RepositoryAdvisoryCredit_state? State { get; set; } /// The type of credit the user is receiving. - public SecurityAdvisoryCreditTypes? Type { get; set; } + public global::GitHub.Models.SecurityAdvisoryCreditTypes? Type { get; set; } /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? User { get; set; } + public global::GitHub.Models.SimpleUser? User { get; set; } #nullable restore #else - public SimpleUser User { get; set; } + public global::GitHub.Models.SimpleUser User { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryAdvisoryCredit CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryAdvisoryCredit CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryAdvisoryCredit(); + return new global::GitHub.Models.RepositoryAdvisoryCredit(); } /// /// The deserialization information for the current model @@ -40,9 +42,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"state", n => { State = n.GetEnumValue(); } }, - {"type", n => { Type = n.GetEnumValue(); } }, - {"user", n => { User = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -52,9 +54,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("state", State); - writer.WriteEnumValue("type", Type); - writer.WriteObjectValue("user", User); + writer.WriteEnumValue("state", State); + writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("user", User); } } } diff --git a/src/GitHub/Models/RepositoryAdvisoryCredit_state.cs b/src/GitHub/Models/RepositoryAdvisoryCredit_state.cs index f1c1331e..d7448964 100644 --- a/src/GitHub/Models/RepositoryAdvisoryCredit_state.cs +++ b/src/GitHub/Models/RepositoryAdvisoryCredit_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The state of the user's acceptance of the credit. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryAdvisoryCredit_state { [EnumMember(Value = "accepted")] diff --git a/src/GitHub/Models/RepositoryAdvisoryUpdate.cs b/src/GitHub/Models/RepositoryAdvisoryUpdate.cs index 8301558d..6eaf3165 100644 --- a/src/GitHub/Models/RepositoryAdvisoryUpdate.cs +++ b/src/GitHub/Models/RepositoryAdvisoryUpdate.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryAdvisoryUpdate : IParsable + public partial class RepositoryAdvisoryUpdate : IParsable #pragma warning restore CS1591 { /// A list of team slugs which have been granted write access to the advisory. @@ -28,10 +30,10 @@ public class RepositoryAdvisoryUpdate : IParsable /// A list of users receiving credit for their participation in the security advisory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Credits { get; set; } + public List? Credits { get; set; } #nullable restore #else - public List Credits { get; set; } + public List Credits { get; set; } #endif /// The Common Vulnerabilities and Exposures (CVE) ID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -66,9 +68,9 @@ public class RepositoryAdvisoryUpdate : IParsable public string Description { get; set; } #endif /// The severity of the advisory. You must choose between setting this field or `cvss_vector_string`. - public RepositoryAdvisoryUpdate_severity? Severity { get; set; } + public global::GitHub.Models.RepositoryAdvisoryUpdate_severity? Severity { get; set; } /// The state of the advisory. - public RepositoryAdvisoryUpdate_state? State { get; set; } + public global::GitHub.Models.RepositoryAdvisoryUpdate_state? State { get; set; } /// A short summary of the advisory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -80,20 +82,20 @@ public class RepositoryAdvisoryUpdate : IParsable /// A product affected by the vulnerability detailed in a repository security advisory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Vulnerabilities { get; set; } + public List? Vulnerabilities { get; set; } #nullable restore #else - public List Vulnerabilities { get; set; } + public List Vulnerabilities { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryAdvisoryUpdate CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryAdvisoryUpdate CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryAdvisoryUpdate(); + return new global::GitHub.Models.RepositoryAdvisoryUpdate(); } /// /// The deserialization information for the current model @@ -103,17 +105,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"collaborating_teams", n => { CollaboratingTeams = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"collaborating_users", n => { CollaboratingUsers = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"credits", n => { Credits = n.GetCollectionOfObjectValues(RepositoryAdvisoryUpdate_credits.CreateFromDiscriminatorValue)?.ToList(); } }, - {"cve_id", n => { CveId = n.GetStringValue(); } }, - {"cvss_vector_string", n => { CvssVectorString = n.GetStringValue(); } }, - {"cwe_ids", n => { CweIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"severity", n => { Severity = n.GetEnumValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"summary", n => { Summary = n.GetStringValue(); } }, - {"vulnerabilities", n => { Vulnerabilities = n.GetCollectionOfObjectValues(RepositoryAdvisoryUpdate_vulnerabilities.CreateFromDiscriminatorValue)?.ToList(); } }, + { "collaborating_teams", n => { CollaboratingTeams = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "collaborating_users", n => { CollaboratingUsers = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "credits", n => { Credits = n.GetCollectionOfObjectValues(global::GitHub.Models.RepositoryAdvisoryUpdate_credits.CreateFromDiscriminatorValue)?.AsList(); } }, + { "cve_id", n => { CveId = n.GetStringValue(); } }, + { "cvss_vector_string", n => { CvssVectorString = n.GetStringValue(); } }, + { "cwe_ids", n => { CweIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "severity", n => { Severity = n.GetEnumValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "summary", n => { Summary = n.GetStringValue(); } }, + { "vulnerabilities", n => { Vulnerabilities = n.GetCollectionOfObjectValues(global::GitHub.Models.RepositoryAdvisoryUpdate_vulnerabilities.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -125,15 +127,15 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("collaborating_teams", CollaboratingTeams); writer.WriteCollectionOfPrimitiveValues("collaborating_users", CollaboratingUsers); - writer.WriteCollectionOfObjectValues("credits", Credits); + writer.WriteCollectionOfObjectValues("credits", Credits); writer.WriteStringValue("cve_id", CveId); writer.WriteStringValue("cvss_vector_string", CvssVectorString); writer.WriteCollectionOfPrimitiveValues("cwe_ids", CweIds); writer.WriteStringValue("description", Description); - writer.WriteEnumValue("severity", Severity); - writer.WriteEnumValue("state", State); + writer.WriteEnumValue("severity", Severity); + writer.WriteEnumValue("state", State); writer.WriteStringValue("summary", Summary); - writer.WriteCollectionOfObjectValues("vulnerabilities", Vulnerabilities); + writer.WriteCollectionOfObjectValues("vulnerabilities", Vulnerabilities); } } } diff --git a/src/GitHub/Models/RepositoryAdvisoryUpdate_credits.cs b/src/GitHub/Models/RepositoryAdvisoryUpdate_credits.cs index dc0384b4..3a6d109e 100644 --- a/src/GitHub/Models/RepositoryAdvisoryUpdate_credits.cs +++ b/src/GitHub/Models/RepositoryAdvisoryUpdate_credits.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryAdvisoryUpdate_credits : IParsable + public partial class RepositoryAdvisoryUpdate_credits : IParsable #pragma warning restore CS1591 { /// The username of the user credited. @@ -18,16 +20,16 @@ public class RepositoryAdvisoryUpdate_credits : IParsable public string Login { get; set; } #endif /// The type of credit the user is receiving. - public SecurityAdvisoryCreditTypes? Type { get; set; } + public global::GitHub.Models.SecurityAdvisoryCreditTypes? Type { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryAdvisoryUpdate_credits CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryAdvisoryUpdate_credits CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryAdvisoryUpdate_credits(); + return new global::GitHub.Models.RepositoryAdvisoryUpdate_credits(); } /// /// The deserialization information for the current model @@ -37,8 +39,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"login", n => { Login = n.GetStringValue(); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -49,7 +51,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("login", Login); - writer.WriteEnumValue("type", Type); + writer.WriteEnumValue("type", Type); } } } diff --git a/src/GitHub/Models/RepositoryAdvisoryUpdate_severity.cs b/src/GitHub/Models/RepositoryAdvisoryUpdate_severity.cs index 9e1f6546..2c76db90 100644 --- a/src/GitHub/Models/RepositoryAdvisoryUpdate_severity.cs +++ b/src/GitHub/Models/RepositoryAdvisoryUpdate_severity.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The severity of the advisory. You must choose between setting this field or `cvss_vector_string`. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryAdvisoryUpdate_severity { [EnumMember(Value = "critical")] diff --git a/src/GitHub/Models/RepositoryAdvisoryUpdate_state.cs b/src/GitHub/Models/RepositoryAdvisoryUpdate_state.cs index e5ddae77..94847b0b 100644 --- a/src/GitHub/Models/RepositoryAdvisoryUpdate_state.cs +++ b/src/GitHub/Models/RepositoryAdvisoryUpdate_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The state of the advisory. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryAdvisoryUpdate_state { [EnumMember(Value = "published")] diff --git a/src/GitHub/Models/RepositoryAdvisoryUpdate_vulnerabilities.cs b/src/GitHub/Models/RepositoryAdvisoryUpdate_vulnerabilities.cs index 8f1718de..4ed44fad 100644 --- a/src/GitHub/Models/RepositoryAdvisoryUpdate_vulnerabilities.cs +++ b/src/GitHub/Models/RepositoryAdvisoryUpdate_vulnerabilities.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryAdvisoryUpdate_vulnerabilities : IParsable + public partial class RepositoryAdvisoryUpdate_vulnerabilities : IParsable #pragma warning restore CS1591 { /// The name of the package affected by the vulnerability. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryAdvisoryUpdate_vulnerabilities_package? Package { get; set; } + public global::GitHub.Models.RepositoryAdvisoryUpdate_vulnerabilities_package? Package { get; set; } #nullable restore #else - public RepositoryAdvisoryUpdate_vulnerabilities_package Package { get; set; } + public global::GitHub.Models.RepositoryAdvisoryUpdate_vulnerabilities_package Package { get; set; } #endif /// The package version(s) that resolve the vulnerability. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -44,12 +46,12 @@ public class RepositoryAdvisoryUpdate_vulnerabilities : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryAdvisoryUpdate_vulnerabilities CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryAdvisoryUpdate_vulnerabilities CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryAdvisoryUpdate_vulnerabilities(); + return new global::GitHub.Models.RepositoryAdvisoryUpdate_vulnerabilities(); } /// /// The deserialization information for the current model @@ -59,10 +61,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"package", n => { Package = n.GetObjectValue(RepositoryAdvisoryUpdate_vulnerabilities_package.CreateFromDiscriminatorValue); } }, - {"patched_versions", n => { PatchedVersions = n.GetStringValue(); } }, - {"vulnerable_functions", n => { VulnerableFunctions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"vulnerable_version_range", n => { VulnerableVersionRange = n.GetStringValue(); } }, + { "package", n => { Package = n.GetObjectValue(global::GitHub.Models.RepositoryAdvisoryUpdate_vulnerabilities_package.CreateFromDiscriminatorValue); } }, + { "patched_versions", n => { PatchedVersions = n.GetStringValue(); } }, + { "vulnerable_functions", n => { VulnerableFunctions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "vulnerable_version_range", n => { VulnerableVersionRange = n.GetStringValue(); } }, }; } /// @@ -72,7 +74,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("package", Package); + writer.WriteObjectValue("package", Package); writer.WriteStringValue("patched_versions", PatchedVersions); writer.WriteCollectionOfPrimitiveValues("vulnerable_functions", VulnerableFunctions); writer.WriteStringValue("vulnerable_version_range", VulnerableVersionRange); diff --git a/src/GitHub/Models/RepositoryAdvisoryUpdate_vulnerabilities_package.cs b/src/GitHub/Models/RepositoryAdvisoryUpdate_vulnerabilities_package.cs index a878c78f..7de75625 100644 --- a/src/GitHub/Models/RepositoryAdvisoryUpdate_vulnerabilities_package.cs +++ b/src/GitHub/Models/RepositoryAdvisoryUpdate_vulnerabilities_package.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The name of the package affected by the vulnerability. /// - public class RepositoryAdvisoryUpdate_vulnerabilities_package : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryAdvisoryUpdate_vulnerabilities_package : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The package's language or package management ecosystem. - public SecurityAdvisoryEcosystems? Ecosystem { get; set; } + public global::GitHub.Models.SecurityAdvisoryEcosystems? Ecosystem { get; set; } /// The unique package name within its ecosystem. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -23,7 +25,7 @@ public class RepositoryAdvisoryUpdate_vulnerabilities_package : IAdditionalDataH public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryAdvisoryUpdate_vulnerabilities_package() { @@ -32,12 +34,12 @@ public RepositoryAdvisoryUpdate_vulnerabilities_package() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryAdvisoryUpdate_vulnerabilities_package CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryAdvisoryUpdate_vulnerabilities_package CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryAdvisoryUpdate_vulnerabilities_package(); + return new global::GitHub.Models.RepositoryAdvisoryUpdate_vulnerabilities_package(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"ecosystem", n => { Ecosystem = n.GetEnumValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "ecosystem", n => { Ecosystem = n.GetEnumValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("ecosystem", Ecosystem); + writer.WriteEnumValue("ecosystem", Ecosystem); writer.WriteStringValue("name", Name); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/RepositoryAdvisoryVulnerability.cs b/src/GitHub/Models/RepositoryAdvisoryVulnerability.cs index 1f6b7775..793fcce0 100644 --- a/src/GitHub/Models/RepositoryAdvisoryVulnerability.cs +++ b/src/GitHub/Models/RepositoryAdvisoryVulnerability.cs @@ -1,22 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A product affected by the vulnerability detailed in a repository security advisory. /// - public class RepositoryAdvisoryVulnerability : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryAdvisoryVulnerability : IParsable { /// The name of the package affected by the vulnerability. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryAdvisoryVulnerability_package? Package { get; set; } + public global::GitHub.Models.RepositoryAdvisoryVulnerability_package? Package { get; set; } #nullable restore #else - public RepositoryAdvisoryVulnerability_package Package { get; set; } + public global::GitHub.Models.RepositoryAdvisoryVulnerability_package Package { get; set; } #endif /// The package version(s) that resolve the vulnerability. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -45,12 +47,12 @@ public class RepositoryAdvisoryVulnerability : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryAdvisoryVulnerability CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryAdvisoryVulnerability CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryAdvisoryVulnerability(); + return new global::GitHub.Models.RepositoryAdvisoryVulnerability(); } /// /// The deserialization information for the current model @@ -60,10 +62,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"package", n => { Package = n.GetObjectValue(RepositoryAdvisoryVulnerability_package.CreateFromDiscriminatorValue); } }, - {"patched_versions", n => { PatchedVersions = n.GetStringValue(); } }, - {"vulnerable_functions", n => { VulnerableFunctions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"vulnerable_version_range", n => { VulnerableVersionRange = n.GetStringValue(); } }, + { "package", n => { Package = n.GetObjectValue(global::GitHub.Models.RepositoryAdvisoryVulnerability_package.CreateFromDiscriminatorValue); } }, + { "patched_versions", n => { PatchedVersions = n.GetStringValue(); } }, + { "vulnerable_functions", n => { VulnerableFunctions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "vulnerable_version_range", n => { VulnerableVersionRange = n.GetStringValue(); } }, }; } /// @@ -73,7 +75,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("package", Package); + writer.WriteObjectValue("package", Package); writer.WriteStringValue("patched_versions", PatchedVersions); writer.WriteCollectionOfPrimitiveValues("vulnerable_functions", VulnerableFunctions); writer.WriteStringValue("vulnerable_version_range", VulnerableVersionRange); diff --git a/src/GitHub/Models/RepositoryAdvisoryVulnerability_package.cs b/src/GitHub/Models/RepositoryAdvisoryVulnerability_package.cs index 9335df5f..94add81e 100644 --- a/src/GitHub/Models/RepositoryAdvisoryVulnerability_package.cs +++ b/src/GitHub/Models/RepositoryAdvisoryVulnerability_package.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The name of the package affected by the vulnerability. /// - public class RepositoryAdvisoryVulnerability_package : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryAdvisoryVulnerability_package : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The package's language or package management ecosystem. - public SecurityAdvisoryEcosystems? Ecosystem { get; set; } + public global::GitHub.Models.SecurityAdvisoryEcosystems? Ecosystem { get; set; } /// The unique package name within its ecosystem. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -23,7 +25,7 @@ public class RepositoryAdvisoryVulnerability_package : IAdditionalDataHolder, IP public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryAdvisoryVulnerability_package() { @@ -32,12 +34,12 @@ public RepositoryAdvisoryVulnerability_package() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryAdvisoryVulnerability_package CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryAdvisoryVulnerability_package CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryAdvisoryVulnerability_package(); + return new global::GitHub.Models.RepositoryAdvisoryVulnerability_package(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"ecosystem", n => { Ecosystem = n.GetEnumValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "ecosystem", n => { Ecosystem = n.GetEnumValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("ecosystem", Ecosystem); + writer.WriteEnumValue("ecosystem", Ecosystem); writer.WriteStringValue("name", Name); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/RepositoryAdvisory_credits.cs b/src/GitHub/Models/RepositoryAdvisory_credits.cs index b5929f24..7059d5ab 100644 --- a/src/GitHub/Models/RepositoryAdvisory_credits.cs +++ b/src/GitHub/Models/RepositoryAdvisory_credits.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryAdvisory_credits : IAdditionalDataHolder, IParsable + public partial class RepositoryAdvisory_credits : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,9 +22,9 @@ public class RepositoryAdvisory_credits : IAdditionalDataHolder, IParsable public string Login { get; set; } #endif /// The type of credit the user is receiving. - public SecurityAdvisoryCreditTypes? Type { get; set; } + public global::GitHub.Models.SecurityAdvisoryCreditTypes? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryAdvisory_credits() { @@ -31,12 +33,12 @@ public RepositoryAdvisory_credits() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryAdvisory_credits CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryAdvisory_credits CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryAdvisory_credits(); + return new global::GitHub.Models.RepositoryAdvisory_credits(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"login", n => { Login = n.GetStringValue(); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("login", Login); - writer.WriteEnumValue("type", Type); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryAdvisory_cvss.cs b/src/GitHub/Models/RepositoryAdvisory_cvss.cs index 63348e07..f5bcfafd 100644 --- a/src/GitHub/Models/RepositoryAdvisory_cvss.cs +++ b/src/GitHub/Models/RepositoryAdvisory_cvss.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryAdvisory_cvss : IAdditionalDataHolder, IParsable + public partial class RepositoryAdvisory_cvss : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class RepositoryAdvisory_cvss : IAdditionalDataHolder, IParsable public string VectorString { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryAdvisory_cvss() { @@ -31,12 +33,12 @@ public RepositoryAdvisory_cvss() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryAdvisory_cvss CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryAdvisory_cvss CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryAdvisory_cvss(); + return new global::GitHub.Models.RepositoryAdvisory_cvss(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"score", n => { Score = n.GetDoubleValue(); } }, - {"vector_string", n => { VectorString = n.GetStringValue(); } }, + { "score", n => { Score = n.GetDoubleValue(); } }, + { "vector_string", n => { VectorString = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/RepositoryAdvisory_cwes.cs b/src/GitHub/Models/RepositoryAdvisory_cwes.cs index 44688792..f6573369 100644 --- a/src/GitHub/Models/RepositoryAdvisory_cwes.cs +++ b/src/GitHub/Models/RepositoryAdvisory_cwes.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryAdvisory_cwes : IAdditionalDataHolder, IParsable + public partial class RepositoryAdvisory_cwes : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class RepositoryAdvisory_cwes : IAdditionalDataHolder, IParsable public string Name { get; private set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryAdvisory_cwes() { @@ -37,12 +39,12 @@ public RepositoryAdvisory_cwes() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryAdvisory_cwes CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryAdvisory_cwes CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryAdvisory_cwes(); + return new global::GitHub.Models.RepositoryAdvisory_cwes(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"cwe_id", n => { CweId = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "cwe_id", n => { CweId = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/RepositoryAdvisory_identifiers.cs b/src/GitHub/Models/RepositoryAdvisory_identifiers.cs index 9ff0a963..8369943e 100644 --- a/src/GitHub/Models/RepositoryAdvisory_identifiers.cs +++ b/src/GitHub/Models/RepositoryAdvisory_identifiers.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryAdvisory_identifiers : IAdditionalDataHolder, IParsable + public partial class RepositoryAdvisory_identifiers : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The type of identifier. - public RepositoryAdvisory_identifiers_type? Type { get; set; } + public global::GitHub.Models.RepositoryAdvisory_identifiers_type? Type { get; set; } /// The identifier value. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -22,7 +24,7 @@ public class RepositoryAdvisory_identifiers : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryAdvisory_identifiers() { @@ -31,12 +33,12 @@ public RepositoryAdvisory_identifiers() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryAdvisory_identifiers CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryAdvisory_identifiers CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryAdvisory_identifiers(); + return new global::GitHub.Models.RepositoryAdvisory_identifiers(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"type", n => { Type = n.GetEnumValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, }; } /// @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("type", Type); + writer.WriteEnumValue("type", Type); writer.WriteStringValue("value", Value); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/RepositoryAdvisory_identifiers_type.cs b/src/GitHub/Models/RepositoryAdvisory_identifiers_type.cs index a15c2ebf..4e3697a9 100644 --- a/src/GitHub/Models/RepositoryAdvisory_identifiers_type.cs +++ b/src/GitHub/Models/RepositoryAdvisory_identifiers_type.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The type of identifier. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryAdvisory_identifiers_type { [EnumMember(Value = "CVE")] diff --git a/src/GitHub/Models/RepositoryAdvisory_severity.cs b/src/GitHub/Models/RepositoryAdvisory_severity.cs index 69c64d8e..245eba57 100644 --- a/src/GitHub/Models/RepositoryAdvisory_severity.cs +++ b/src/GitHub/Models/RepositoryAdvisory_severity.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The severity of the advisory. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryAdvisory_severity { [EnumMember(Value = "critical")] diff --git a/src/GitHub/Models/RepositoryAdvisory_state.cs b/src/GitHub/Models/RepositoryAdvisory_state.cs index aabef958..b3c12046 100644 --- a/src/GitHub/Models/RepositoryAdvisory_state.cs +++ b/src/GitHub/Models/RepositoryAdvisory_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The state of the advisory. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryAdvisory_state { [EnumMember(Value = "published")] diff --git a/src/GitHub/Models/RepositoryAdvisory_submission.cs b/src/GitHub/Models/RepositoryAdvisory_submission.cs index 3dd2f3c0..4c0a1b8f 100644 --- a/src/GitHub/Models/RepositoryAdvisory_submission.cs +++ b/src/GitHub/Models/RepositoryAdvisory_submission.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryAdvisory_submission : IAdditionalDataHolder, IParsable + public partial class RepositoryAdvisory_submission : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Whether a private vulnerability report was accepted by the repository's administrators. @@ -14,7 +16,7 @@ public class RepositoryAdvisory_submission : IAdditionalDataHolder, IParsable /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryAdvisory_submission() { @@ -23,12 +25,12 @@ public RepositoryAdvisory_submission() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryAdvisory_submission CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryAdvisory_submission CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryAdvisory_submission(); + return new global::GitHub.Models.RepositoryAdvisory_submission(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"accepted", n => { Accepted = n.GetBoolValue(); } }, + { "accepted", n => { Accepted = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/RepositoryCollaboratorPermission.cs b/src/GitHub/Models/RepositoryCollaboratorPermission.cs index 75c10893..274508fe 100644 --- a/src/GitHub/Models/RepositoryCollaboratorPermission.cs +++ b/src/GitHub/Models/RepositoryCollaboratorPermission.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Repository Collaborator Permission /// - public class RepositoryCollaboratorPermission : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryCollaboratorPermission : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -31,13 +33,13 @@ public class RepositoryCollaboratorPermission : IAdditionalDataHolder, IParsable /// Collaborator #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableCollaborator? User { get; set; } + public global::GitHub.Models.NullableCollaborator? User { get; set; } #nullable restore #else - public NullableCollaborator User { get; set; } + public global::GitHub.Models.NullableCollaborator User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryCollaboratorPermission() { @@ -46,12 +48,12 @@ public RepositoryCollaboratorPermission() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryCollaboratorPermission CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryCollaboratorPermission CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryCollaboratorPermission(); + return new global::GitHub.Models.RepositoryCollaboratorPermission(); } /// /// The deserialization information for the current model @@ -61,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"permission", n => { Permission = n.GetStringValue(); } }, - {"role_name", n => { RoleName = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(NullableCollaborator.CreateFromDiscriminatorValue); } }, + { "permission", n => { Permission = n.GetStringValue(); } }, + { "role_name", n => { RoleName = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.NullableCollaborator.CreateFromDiscriminatorValue); } }, }; } /// @@ -75,7 +77,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("permission", Permission); writer.WriteStringValue("role_name", RoleName); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryFineGrainedPermission.cs b/src/GitHub/Models/RepositoryFineGrainedPermission.cs index 91fa3f42..fa8a855c 100644 --- a/src/GitHub/Models/RepositoryFineGrainedPermission.cs +++ b/src/GitHub/Models/RepositoryFineGrainedPermission.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A fine-grained permission that protects repository resources. /// - public class RepositoryFineGrainedPermission : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryFineGrainedPermission : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class RepositoryFineGrainedPermission : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryFineGrainedPermission() { @@ -38,12 +40,12 @@ public RepositoryFineGrainedPermission() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryFineGrainedPermission CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryFineGrainedPermission CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryFineGrainedPermission(); + return new global::GitHub.Models.RepositoryFineGrainedPermission(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/RepositoryInvitation.cs b/src/GitHub/Models/RepositoryInvitation.cs index 6378b85f..c6221735 100644 --- a/src/GitHub/Models/RepositoryInvitation.cs +++ b/src/GitHub/Models/RepositoryInvitation.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Repository invitations let you manage who you collaborate with. /// - public class RepositoryInvitation : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryInvitation : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,18 +31,18 @@ public class RepositoryInvitation : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Invitee { get; set; } + public global::GitHub.Models.NullableSimpleUser? Invitee { get; set; } #nullable restore #else - public NullableSimpleUser Invitee { get; set; } + public global::GitHub.Models.NullableSimpleUser Invitee { get; set; } #endif /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Inviter { get; set; } + public global::GitHub.Models.NullableSimpleUser? Inviter { get; set; } #nullable restore #else - public NullableSimpleUser Inviter { get; set; } + public global::GitHub.Models.NullableSimpleUser Inviter { get; set; } #endif /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -51,14 +53,14 @@ public class RepositoryInvitation : IAdditionalDataHolder, IParsable public string NodeId { get; set; } #endif /// The permission associated with the invitation. - public RepositoryInvitation_permissions? Permissions { get; set; } + public global::GitHub.Models.RepositoryInvitation_permissions? Permissions { get; set; } /// Minimal Repository #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MinimalRepository? Repository { get; set; } + public global::GitHub.Models.MinimalRepository? Repository { get; set; } #nullable restore #else - public MinimalRepository Repository { get; set; } + public global::GitHub.Models.MinimalRepository Repository { get; set; } #endif /// URL for the repository invitation #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -69,7 +71,7 @@ public class RepositoryInvitation : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryInvitation() { @@ -78,12 +80,12 @@ public RepositoryInvitation() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryInvitation CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryInvitation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryInvitation(); + return new global::GitHub.Models.RepositoryInvitation(); } /// /// The deserialization information for the current model @@ -93,16 +95,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"expired", n => { Expired = n.GetBoolValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"invitee", n => { Invitee = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"inviter", n => { Inviter = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"permissions", n => { Permissions = n.GetEnumValue(); } }, - {"repository", n => { Repository = n.GetObjectValue(MinimalRepository.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "expired", n => { Expired = n.GetBoolValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "invitee", n => { Invitee = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "inviter", n => { Inviter = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "permissions", n => { Permissions = n.GetEnumValue(); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.MinimalRepository.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -116,11 +118,11 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("expired", Expired); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteLongValue("id", Id); - writer.WriteObjectValue("invitee", Invitee); - writer.WriteObjectValue("inviter", Inviter); + writer.WriteObjectValue("invitee", Invitee); + writer.WriteObjectValue("inviter", Inviter); writer.WriteStringValue("node_id", NodeId); - writer.WriteEnumValue("permissions", Permissions); - writer.WriteObjectValue("repository", Repository); + writer.WriteEnumValue("permissions", Permissions); + writer.WriteObjectValue("repository", Repository); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/RepositoryInvitation_permissions.cs b/src/GitHub/Models/RepositoryInvitation_permissions.cs index f768e453..7e864586 100644 --- a/src/GitHub/Models/RepositoryInvitation_permissions.cs +++ b/src/GitHub/Models/RepositoryInvitation_permissions.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The permission associated with the invitation. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryInvitation_permissions { [EnumMember(Value = "read")] diff --git a/src/GitHub/Models/RepositoryRule.cs b/src/GitHub/Models/RepositoryRule.cs index 260c29b7..27eb4622 100644 --- a/src/GitHub/Models/RepositoryRule.cs +++ b/src/GitHub/Models/RepositoryRule.cs @@ -1,1285 +1,1287 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// - /// Composed type wrapper for classes , , , , , , , , , , , , , , , , , , , , + /// Composed type wrapper for classes , , , , , , , , , , , , , , , , , , , , /// - public class RepositoryRule : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRule : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public File_extension_restriction? FileExtensionRestriction { get; set; } + public global::GitHub.Models.RepositoryRuleBranchNamePattern? RepositoryRuleBranchNamePattern { get; set; } #nullable restore #else - public File_extension_restriction FileExtensionRestriction { get; set; } + public global::GitHub.Models.RepositoryRuleBranchNamePattern RepositoryRuleBranchNamePattern { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public File_path_restriction? FilePathRestriction { get; set; } + public global::GitHub.Models.RepositoryRuleCodeScanning? RepositoryRuleCodeScanning { get; set; } #nullable restore #else - public File_path_restriction FilePathRestriction { get; set; } + public global::GitHub.Models.RepositoryRuleCodeScanning RepositoryRuleCodeScanning { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Max_file_path_length? MaxFilePathLength { get; set; } + public global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern? RepositoryRuleCommitAuthorEmailPattern { get; set; } #nullable restore #else - public Max_file_path_length MaxFilePathLength { get; set; } + public global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern RepositoryRuleCommitAuthorEmailPattern { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Max_file_size? MaxFileSize { get; set; } + public global::GitHub.Models.RepositoryRuleCommitMessagePattern? RepositoryRuleCommitMessagePattern { get; set; } #nullable restore #else - public Max_file_size MaxFileSize { get; set; } + public global::GitHub.Models.RepositoryRuleCommitMessagePattern RepositoryRuleCommitMessagePattern { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleBranchNamePattern? RepositoryRuleBranchNamePattern { get; set; } + public global::GitHub.Models.RepositoryRuleCommitterEmailPattern? RepositoryRuleCommitterEmailPattern { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleBranchNamePattern RepositoryRuleBranchNamePattern { get; set; } + public global::GitHub.Models.RepositoryRuleCommitterEmailPattern RepositoryRuleCommitterEmailPattern { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCodeScanning? RepositoryRuleCodeScanning { get; set; } + public global::GitHub.Models.RepositoryRuleCreation? RepositoryRuleCreation { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCodeScanning RepositoryRuleCodeScanning { get; set; } + public global::GitHub.Models.RepositoryRuleCreation RepositoryRuleCreation { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCommitAuthorEmailPattern? RepositoryRuleCommitAuthorEmailPattern { get; set; } + public global::GitHub.Models.RepositoryRuleDeletion? RepositoryRuleDeletion { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCommitAuthorEmailPattern RepositoryRuleCommitAuthorEmailPattern { get; set; } + public global::GitHub.Models.RepositoryRuleDeletion RepositoryRuleDeletion { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCommitMessagePattern? RepositoryRuleCommitMessagePattern { get; set; } + public global::GitHub.Models.RepositoryRuleMember1? RepositoryRuleMember1 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCommitMessagePattern RepositoryRuleCommitMessagePattern { get; set; } + public global::GitHub.Models.RepositoryRuleMember1 RepositoryRuleMember1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCommitterEmailPattern? RepositoryRuleCommitterEmailPattern { get; set; } + public global::GitHub.Models.RepositoryRuleMember2? RepositoryRuleMember2 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCommitterEmailPattern RepositoryRuleCommitterEmailPattern { get; set; } + public global::GitHub.Models.RepositoryRuleMember2 RepositoryRuleMember2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCreation? RepositoryRuleCreation { get; set; } + public global::GitHub.Models.RepositoryRuleMember3? RepositoryRuleMember3 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCreation RepositoryRuleCreation { get; set; } + public global::GitHub.Models.RepositoryRuleMember3 RepositoryRuleMember3 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleDeletion? RepositoryRuleDeletion { get; set; } + public global::GitHub.Models.RepositoryRuleMember4? RepositoryRuleMember4 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleDeletion RepositoryRuleDeletion { get; set; } + public global::GitHub.Models.RepositoryRuleMember4 RepositoryRuleMember4 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public File_extension_restriction? RepositoryRuleFileExtensionRestriction { get; set; } + public global::GitHub.Models.RepositoryRuleMergeQueue? RepositoryRuleMergeQueue { get; set; } #nullable restore #else - public File_extension_restriction RepositoryRuleFileExtensionRestriction { get; set; } + public global::GitHub.Models.RepositoryRuleMergeQueue RepositoryRuleMergeQueue { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public File_extension_restriction? RepositoryRuleFileExtensionRestriction0 { get; set; } + public global::GitHub.Models.RepositoryRuleNonFastForward? RepositoryRuleNonFastForward { get; set; } #nullable restore #else - public File_extension_restriction RepositoryRuleFileExtensionRestriction0 { get; set; } + public global::GitHub.Models.RepositoryRuleNonFastForward RepositoryRuleNonFastForward { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public File_extension_restriction? RepositoryRuleFileExtensionRestriction1 { get; set; } + public global::GitHub.Models.RepositoryRulePullRequest? RepositoryRulePullRequest { get; set; } #nullable restore #else - public File_extension_restriction RepositoryRuleFileExtensionRestriction1 { get; set; } + public global::GitHub.Models.RepositoryRulePullRequest RepositoryRulePullRequest { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public File_extension_restriction? RepositoryRuleFileExtensionRestriction2 { get; set; } + public global::GitHub.Models.RepositoryRuleBranchNamePattern? RepositoryRuleRepositoryRuleBranchNamePattern { get; set; } #nullable restore #else - public File_extension_restriction RepositoryRuleFileExtensionRestriction2 { get; set; } + public global::GitHub.Models.RepositoryRuleBranchNamePattern RepositoryRuleRepositoryRuleBranchNamePattern { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public File_path_restriction? RepositoryRuleFilePathRestriction { get; set; } + public global::GitHub.Models.RepositoryRuleBranchNamePattern? RepositoryRuleRepositoryRuleBranchNamePattern0 { get; set; } #nullable restore #else - public File_path_restriction RepositoryRuleFilePathRestriction { get; set; } + public global::GitHub.Models.RepositoryRuleBranchNamePattern RepositoryRuleRepositoryRuleBranchNamePattern0 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public File_path_restriction? RepositoryRuleFilePathRestriction0 { get; set; } + public global::GitHub.Models.RepositoryRuleBranchNamePattern? RepositoryRuleRepositoryRuleBranchNamePattern1 { get; set; } #nullable restore #else - public File_path_restriction RepositoryRuleFilePathRestriction0 { get; set; } + public global::GitHub.Models.RepositoryRuleBranchNamePattern RepositoryRuleRepositoryRuleBranchNamePattern1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public File_path_restriction? RepositoryRuleFilePathRestriction1 { get; set; } + public global::GitHub.Models.RepositoryRuleBranchNamePattern? RepositoryRuleRepositoryRuleBranchNamePattern2 { get; set; } #nullable restore #else - public File_path_restriction RepositoryRuleFilePathRestriction1 { get; set; } + public global::GitHub.Models.RepositoryRuleBranchNamePattern RepositoryRuleRepositoryRuleBranchNamePattern2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public File_path_restriction? RepositoryRuleFilePathRestriction2 { get; set; } + public global::GitHub.Models.RepositoryRuleCodeScanning? RepositoryRuleRepositoryRuleCodeScanning { get; set; } #nullable restore #else - public File_path_restriction RepositoryRuleFilePathRestriction2 { get; set; } + public global::GitHub.Models.RepositoryRuleCodeScanning RepositoryRuleRepositoryRuleCodeScanning { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Max_file_path_length? RepositoryRuleMaxFilePathLength { get; set; } + public global::GitHub.Models.RepositoryRuleCodeScanning? RepositoryRuleRepositoryRuleCodeScanning0 { get; set; } #nullable restore #else - public Max_file_path_length RepositoryRuleMaxFilePathLength { get; set; } + public global::GitHub.Models.RepositoryRuleCodeScanning RepositoryRuleRepositoryRuleCodeScanning0 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Max_file_path_length? RepositoryRuleMaxFilePathLength0 { get; set; } + public global::GitHub.Models.RepositoryRuleCodeScanning? RepositoryRuleRepositoryRuleCodeScanning1 { get; set; } #nullable restore #else - public Max_file_path_length RepositoryRuleMaxFilePathLength0 { get; set; } + public global::GitHub.Models.RepositoryRuleCodeScanning RepositoryRuleRepositoryRuleCodeScanning1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Max_file_path_length? RepositoryRuleMaxFilePathLength1 { get; set; } + public global::GitHub.Models.RepositoryRuleCodeScanning? RepositoryRuleRepositoryRuleCodeScanning2 { get; set; } #nullable restore #else - public Max_file_path_length RepositoryRuleMaxFilePathLength1 { get; set; } + public global::GitHub.Models.RepositoryRuleCodeScanning RepositoryRuleRepositoryRuleCodeScanning2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Max_file_path_length? RepositoryRuleMaxFilePathLength2 { get; set; } + public global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern? RepositoryRuleRepositoryRuleCommitAuthorEmailPattern { get; set; } #nullable restore #else - public Max_file_path_length RepositoryRuleMaxFilePathLength2 { get; set; } + public global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern RepositoryRuleRepositoryRuleCommitAuthorEmailPattern { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Max_file_size? RepositoryRuleMaxFileSize { get; set; } + public global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern? RepositoryRuleRepositoryRuleCommitAuthorEmailPattern0 { get; set; } #nullable restore #else - public Max_file_size RepositoryRuleMaxFileSize { get; set; } + public global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern RepositoryRuleRepositoryRuleCommitAuthorEmailPattern0 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Max_file_size? RepositoryRuleMaxFileSize0 { get; set; } + public global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern? RepositoryRuleRepositoryRuleCommitAuthorEmailPattern1 { get; set; } #nullable restore #else - public Max_file_size RepositoryRuleMaxFileSize0 { get; set; } + public global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern RepositoryRuleRepositoryRuleCommitAuthorEmailPattern1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Max_file_size? RepositoryRuleMaxFileSize1 { get; set; } + public global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern? RepositoryRuleRepositoryRuleCommitAuthorEmailPattern2 { get; set; } #nullable restore #else - public Max_file_size RepositoryRuleMaxFileSize1 { get; set; } + public global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern RepositoryRuleRepositoryRuleCommitAuthorEmailPattern2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Max_file_size? RepositoryRuleMaxFileSize2 { get; set; } + public global::GitHub.Models.RepositoryRuleCommitMessagePattern? RepositoryRuleRepositoryRuleCommitMessagePattern { get; set; } #nullable restore #else - public Max_file_size RepositoryRuleMaxFileSize2 { get; set; } + public global::GitHub.Models.RepositoryRuleCommitMessagePattern RepositoryRuleRepositoryRuleCommitMessagePattern { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleMergeQueue? RepositoryRuleMergeQueue { get; set; } + public global::GitHub.Models.RepositoryRuleCommitMessagePattern? RepositoryRuleRepositoryRuleCommitMessagePattern0 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleMergeQueue RepositoryRuleMergeQueue { get; set; } + public global::GitHub.Models.RepositoryRuleCommitMessagePattern RepositoryRuleRepositoryRuleCommitMessagePattern0 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleNonFastForward? RepositoryRuleNonFastForward { get; set; } + public global::GitHub.Models.RepositoryRuleCommitMessagePattern? RepositoryRuleRepositoryRuleCommitMessagePattern1 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleNonFastForward RepositoryRuleNonFastForward { get; set; } + public global::GitHub.Models.RepositoryRuleCommitMessagePattern RepositoryRuleRepositoryRuleCommitMessagePattern1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRulePullRequest? RepositoryRulePullRequest { get; set; } + public global::GitHub.Models.RepositoryRuleCommitMessagePattern? RepositoryRuleRepositoryRuleCommitMessagePattern2 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRulePullRequest RepositoryRulePullRequest { get; set; } + public global::GitHub.Models.RepositoryRuleCommitMessagePattern RepositoryRuleRepositoryRuleCommitMessagePattern2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleBranchNamePattern? RepositoryRuleRepositoryRuleBranchNamePattern { get; set; } + public global::GitHub.Models.RepositoryRuleCommitterEmailPattern? RepositoryRuleRepositoryRuleCommitterEmailPattern { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleBranchNamePattern RepositoryRuleRepositoryRuleBranchNamePattern { get; set; } + public global::GitHub.Models.RepositoryRuleCommitterEmailPattern RepositoryRuleRepositoryRuleCommitterEmailPattern { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleBranchNamePattern? RepositoryRuleRepositoryRuleBranchNamePattern0 { get; set; } + public global::GitHub.Models.RepositoryRuleCommitterEmailPattern? RepositoryRuleRepositoryRuleCommitterEmailPattern0 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleBranchNamePattern RepositoryRuleRepositoryRuleBranchNamePattern0 { get; set; } + public global::GitHub.Models.RepositoryRuleCommitterEmailPattern RepositoryRuleRepositoryRuleCommitterEmailPattern0 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleBranchNamePattern? RepositoryRuleRepositoryRuleBranchNamePattern1 { get; set; } + public global::GitHub.Models.RepositoryRuleCommitterEmailPattern? RepositoryRuleRepositoryRuleCommitterEmailPattern1 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleBranchNamePattern RepositoryRuleRepositoryRuleBranchNamePattern1 { get; set; } + public global::GitHub.Models.RepositoryRuleCommitterEmailPattern RepositoryRuleRepositoryRuleCommitterEmailPattern1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleBranchNamePattern? RepositoryRuleRepositoryRuleBranchNamePattern2 { get; set; } + public global::GitHub.Models.RepositoryRuleCommitterEmailPattern? RepositoryRuleRepositoryRuleCommitterEmailPattern2 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleBranchNamePattern RepositoryRuleRepositoryRuleBranchNamePattern2 { get; set; } + public global::GitHub.Models.RepositoryRuleCommitterEmailPattern RepositoryRuleRepositoryRuleCommitterEmailPattern2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCodeScanning? RepositoryRuleRepositoryRuleCodeScanning { get; set; } + public global::GitHub.Models.RepositoryRuleCreation? RepositoryRuleRepositoryRuleCreation { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCodeScanning RepositoryRuleRepositoryRuleCodeScanning { get; set; } + public global::GitHub.Models.RepositoryRuleCreation RepositoryRuleRepositoryRuleCreation { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCodeScanning? RepositoryRuleRepositoryRuleCodeScanning0 { get; set; } + public global::GitHub.Models.RepositoryRuleCreation? RepositoryRuleRepositoryRuleCreation0 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCodeScanning RepositoryRuleRepositoryRuleCodeScanning0 { get; set; } + public global::GitHub.Models.RepositoryRuleCreation RepositoryRuleRepositoryRuleCreation0 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCodeScanning? RepositoryRuleRepositoryRuleCodeScanning1 { get; set; } + public global::GitHub.Models.RepositoryRuleCreation? RepositoryRuleRepositoryRuleCreation1 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCodeScanning RepositoryRuleRepositoryRuleCodeScanning1 { get; set; } + public global::GitHub.Models.RepositoryRuleCreation RepositoryRuleRepositoryRuleCreation1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCodeScanning? RepositoryRuleRepositoryRuleCodeScanning2 { get; set; } + public global::GitHub.Models.RepositoryRuleCreation? RepositoryRuleRepositoryRuleCreation2 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCodeScanning RepositoryRuleRepositoryRuleCodeScanning2 { get; set; } + public global::GitHub.Models.RepositoryRuleCreation RepositoryRuleRepositoryRuleCreation2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCommitAuthorEmailPattern? RepositoryRuleRepositoryRuleCommitAuthorEmailPattern { get; set; } + public global::GitHub.Models.RepositoryRuleDeletion? RepositoryRuleRepositoryRuleDeletion { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCommitAuthorEmailPattern RepositoryRuleRepositoryRuleCommitAuthorEmailPattern { get; set; } + public global::GitHub.Models.RepositoryRuleDeletion RepositoryRuleRepositoryRuleDeletion { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCommitAuthorEmailPattern? RepositoryRuleRepositoryRuleCommitAuthorEmailPattern0 { get; set; } + public global::GitHub.Models.RepositoryRuleDeletion? RepositoryRuleRepositoryRuleDeletion0 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCommitAuthorEmailPattern RepositoryRuleRepositoryRuleCommitAuthorEmailPattern0 { get; set; } + public global::GitHub.Models.RepositoryRuleDeletion RepositoryRuleRepositoryRuleDeletion0 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCommitAuthorEmailPattern? RepositoryRuleRepositoryRuleCommitAuthorEmailPattern1 { get; set; } + public global::GitHub.Models.RepositoryRuleDeletion? RepositoryRuleRepositoryRuleDeletion1 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCommitAuthorEmailPattern RepositoryRuleRepositoryRuleCommitAuthorEmailPattern1 { get; set; } + public global::GitHub.Models.RepositoryRuleDeletion RepositoryRuleRepositoryRuleDeletion1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCommitAuthorEmailPattern? RepositoryRuleRepositoryRuleCommitAuthorEmailPattern2 { get; set; } + public global::GitHub.Models.RepositoryRuleDeletion? RepositoryRuleRepositoryRuleDeletion2 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCommitAuthorEmailPattern RepositoryRuleRepositoryRuleCommitAuthorEmailPattern2 { get; set; } + public global::GitHub.Models.RepositoryRuleDeletion RepositoryRuleRepositoryRuleDeletion2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCommitMessagePattern? RepositoryRuleRepositoryRuleCommitMessagePattern { get; set; } + public global::GitHub.Models.RepositoryRuleMember1? RepositoryRuleRepositoryRuleMember1 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCommitMessagePattern RepositoryRuleRepositoryRuleCommitMessagePattern { get; set; } + public global::GitHub.Models.RepositoryRuleMember1 RepositoryRuleRepositoryRuleMember1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCommitMessagePattern? RepositoryRuleRepositoryRuleCommitMessagePattern0 { get; set; } + public global::GitHub.Models.RepositoryRuleMember1? RepositoryRuleRepositoryRuleMember10 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCommitMessagePattern RepositoryRuleRepositoryRuleCommitMessagePattern0 { get; set; } + public global::GitHub.Models.RepositoryRuleMember1 RepositoryRuleRepositoryRuleMember10 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCommitMessagePattern? RepositoryRuleRepositoryRuleCommitMessagePattern1 { get; set; } + public global::GitHub.Models.RepositoryRuleMember1? RepositoryRuleRepositoryRuleMember11 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCommitMessagePattern RepositoryRuleRepositoryRuleCommitMessagePattern1 { get; set; } + public global::GitHub.Models.RepositoryRuleMember1 RepositoryRuleRepositoryRuleMember11 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCommitMessagePattern? RepositoryRuleRepositoryRuleCommitMessagePattern2 { get; set; } + public global::GitHub.Models.RepositoryRuleMember1? RepositoryRuleRepositoryRuleMember12 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCommitMessagePattern RepositoryRuleRepositoryRuleCommitMessagePattern2 { get; set; } + public global::GitHub.Models.RepositoryRuleMember1 RepositoryRuleRepositoryRuleMember12 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCommitterEmailPattern? RepositoryRuleRepositoryRuleCommitterEmailPattern { get; set; } + public global::GitHub.Models.RepositoryRuleMember2? RepositoryRuleRepositoryRuleMember2 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCommitterEmailPattern RepositoryRuleRepositoryRuleCommitterEmailPattern { get; set; } + public global::GitHub.Models.RepositoryRuleMember2 RepositoryRuleRepositoryRuleMember2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCommitterEmailPattern? RepositoryRuleRepositoryRuleCommitterEmailPattern0 { get; set; } + public global::GitHub.Models.RepositoryRuleMember2? RepositoryRuleRepositoryRuleMember20 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCommitterEmailPattern RepositoryRuleRepositoryRuleCommitterEmailPattern0 { get; set; } + public global::GitHub.Models.RepositoryRuleMember2 RepositoryRuleRepositoryRuleMember20 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCommitterEmailPattern? RepositoryRuleRepositoryRuleCommitterEmailPattern1 { get; set; } + public global::GitHub.Models.RepositoryRuleMember2? RepositoryRuleRepositoryRuleMember21 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCommitterEmailPattern RepositoryRuleRepositoryRuleCommitterEmailPattern1 { get; set; } + public global::GitHub.Models.RepositoryRuleMember2 RepositoryRuleRepositoryRuleMember21 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCommitterEmailPattern? RepositoryRuleRepositoryRuleCommitterEmailPattern2 { get; set; } + public global::GitHub.Models.RepositoryRuleMember2? RepositoryRuleRepositoryRuleMember22 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCommitterEmailPattern RepositoryRuleRepositoryRuleCommitterEmailPattern2 { get; set; } + public global::GitHub.Models.RepositoryRuleMember2 RepositoryRuleRepositoryRuleMember22 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCreation? RepositoryRuleRepositoryRuleCreation { get; set; } + public global::GitHub.Models.RepositoryRuleMember3? RepositoryRuleRepositoryRuleMember3 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCreation RepositoryRuleRepositoryRuleCreation { get; set; } + public global::GitHub.Models.RepositoryRuleMember3 RepositoryRuleRepositoryRuleMember3 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCreation? RepositoryRuleRepositoryRuleCreation0 { get; set; } + public global::GitHub.Models.RepositoryRuleMember3? RepositoryRuleRepositoryRuleMember30 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCreation RepositoryRuleRepositoryRuleCreation0 { get; set; } + public global::GitHub.Models.RepositoryRuleMember3 RepositoryRuleRepositoryRuleMember30 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCreation? RepositoryRuleRepositoryRuleCreation1 { get; set; } + public global::GitHub.Models.RepositoryRuleMember3? RepositoryRuleRepositoryRuleMember31 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCreation RepositoryRuleRepositoryRuleCreation1 { get; set; } + public global::GitHub.Models.RepositoryRuleMember3 RepositoryRuleRepositoryRuleMember31 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleCreation? RepositoryRuleRepositoryRuleCreation2 { get; set; } + public global::GitHub.Models.RepositoryRuleMember3? RepositoryRuleRepositoryRuleMember32 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleCreation RepositoryRuleRepositoryRuleCreation2 { get; set; } + public global::GitHub.Models.RepositoryRuleMember3 RepositoryRuleRepositoryRuleMember32 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleDeletion? RepositoryRuleRepositoryRuleDeletion { get; set; } + public global::GitHub.Models.RepositoryRuleMember4? RepositoryRuleRepositoryRuleMember4 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleDeletion RepositoryRuleRepositoryRuleDeletion { get; set; } + public global::GitHub.Models.RepositoryRuleMember4 RepositoryRuleRepositoryRuleMember4 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleDeletion? RepositoryRuleRepositoryRuleDeletion0 { get; set; } + public global::GitHub.Models.RepositoryRuleMember4? RepositoryRuleRepositoryRuleMember40 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleDeletion RepositoryRuleRepositoryRuleDeletion0 { get; set; } + public global::GitHub.Models.RepositoryRuleMember4 RepositoryRuleRepositoryRuleMember40 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleDeletion? RepositoryRuleRepositoryRuleDeletion1 { get; set; } + public global::GitHub.Models.RepositoryRuleMember4? RepositoryRuleRepositoryRuleMember41 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleDeletion RepositoryRuleRepositoryRuleDeletion1 { get; set; } + public global::GitHub.Models.RepositoryRuleMember4 RepositoryRuleRepositoryRuleMember41 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleDeletion? RepositoryRuleRepositoryRuleDeletion2 { get; set; } + public global::GitHub.Models.RepositoryRuleMember4? RepositoryRuleRepositoryRuleMember42 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleDeletion RepositoryRuleRepositoryRuleDeletion2 { get; set; } + public global::GitHub.Models.RepositoryRuleMember4 RepositoryRuleRepositoryRuleMember42 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleMergeQueue? RepositoryRuleRepositoryRuleMergeQueue { get; set; } + public global::GitHub.Models.RepositoryRuleMergeQueue? RepositoryRuleRepositoryRuleMergeQueue { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleMergeQueue RepositoryRuleRepositoryRuleMergeQueue { get; set; } + public global::GitHub.Models.RepositoryRuleMergeQueue RepositoryRuleRepositoryRuleMergeQueue { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleMergeQueue? RepositoryRuleRepositoryRuleMergeQueue0 { get; set; } + public global::GitHub.Models.RepositoryRuleMergeQueue? RepositoryRuleRepositoryRuleMergeQueue0 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleMergeQueue RepositoryRuleRepositoryRuleMergeQueue0 { get; set; } + public global::GitHub.Models.RepositoryRuleMergeQueue RepositoryRuleRepositoryRuleMergeQueue0 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleMergeQueue? RepositoryRuleRepositoryRuleMergeQueue1 { get; set; } + public global::GitHub.Models.RepositoryRuleMergeQueue? RepositoryRuleRepositoryRuleMergeQueue1 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleMergeQueue RepositoryRuleRepositoryRuleMergeQueue1 { get; set; } + public global::GitHub.Models.RepositoryRuleMergeQueue RepositoryRuleRepositoryRuleMergeQueue1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleMergeQueue? RepositoryRuleRepositoryRuleMergeQueue2 { get; set; } + public global::GitHub.Models.RepositoryRuleMergeQueue? RepositoryRuleRepositoryRuleMergeQueue2 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleMergeQueue RepositoryRuleRepositoryRuleMergeQueue2 { get; set; } + public global::GitHub.Models.RepositoryRuleMergeQueue RepositoryRuleRepositoryRuleMergeQueue2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleNonFastForward? RepositoryRuleRepositoryRuleNonFastForward { get; set; } + public global::GitHub.Models.RepositoryRuleNonFastForward? RepositoryRuleRepositoryRuleNonFastForward { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleNonFastForward RepositoryRuleRepositoryRuleNonFastForward { get; set; } + public global::GitHub.Models.RepositoryRuleNonFastForward RepositoryRuleRepositoryRuleNonFastForward { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleNonFastForward? RepositoryRuleRepositoryRuleNonFastForward0 { get; set; } + public global::GitHub.Models.RepositoryRuleNonFastForward? RepositoryRuleRepositoryRuleNonFastForward0 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleNonFastForward RepositoryRuleRepositoryRuleNonFastForward0 { get; set; } + public global::GitHub.Models.RepositoryRuleNonFastForward RepositoryRuleRepositoryRuleNonFastForward0 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleNonFastForward? RepositoryRuleRepositoryRuleNonFastForward1 { get; set; } + public global::GitHub.Models.RepositoryRuleNonFastForward? RepositoryRuleRepositoryRuleNonFastForward1 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleNonFastForward RepositoryRuleRepositoryRuleNonFastForward1 { get; set; } + public global::GitHub.Models.RepositoryRuleNonFastForward RepositoryRuleRepositoryRuleNonFastForward1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleNonFastForward? RepositoryRuleRepositoryRuleNonFastForward2 { get; set; } + public global::GitHub.Models.RepositoryRuleNonFastForward? RepositoryRuleRepositoryRuleNonFastForward2 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleNonFastForward RepositoryRuleRepositoryRuleNonFastForward2 { get; set; } + public global::GitHub.Models.RepositoryRuleNonFastForward RepositoryRuleRepositoryRuleNonFastForward2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRulePullRequest? RepositoryRuleRepositoryRulePullRequest { get; set; } + public global::GitHub.Models.RepositoryRulePullRequest? RepositoryRuleRepositoryRulePullRequest { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRulePullRequest RepositoryRuleRepositoryRulePullRequest { get; set; } + public global::GitHub.Models.RepositoryRulePullRequest RepositoryRuleRepositoryRulePullRequest { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRulePullRequest? RepositoryRuleRepositoryRulePullRequest0 { get; set; } + public global::GitHub.Models.RepositoryRulePullRequest? RepositoryRuleRepositoryRulePullRequest0 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRulePullRequest RepositoryRuleRepositoryRulePullRequest0 { get; set; } + public global::GitHub.Models.RepositoryRulePullRequest RepositoryRuleRepositoryRulePullRequest0 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRulePullRequest? RepositoryRuleRepositoryRulePullRequest1 { get; set; } + public global::GitHub.Models.RepositoryRulePullRequest? RepositoryRuleRepositoryRulePullRequest1 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRulePullRequest RepositoryRuleRepositoryRulePullRequest1 { get; set; } + public global::GitHub.Models.RepositoryRulePullRequest RepositoryRuleRepositoryRulePullRequest1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRulePullRequest? RepositoryRuleRepositoryRulePullRequest2 { get; set; } + public global::GitHub.Models.RepositoryRulePullRequest? RepositoryRuleRepositoryRulePullRequest2 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRulePullRequest RepositoryRuleRepositoryRulePullRequest2 { get; set; } + public global::GitHub.Models.RepositoryRulePullRequest RepositoryRuleRepositoryRulePullRequest2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleRequiredDeployments? RepositoryRuleRepositoryRuleRequiredDeployments { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredDeployments? RepositoryRuleRepositoryRuleRequiredDeployments { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleRequiredDeployments RepositoryRuleRepositoryRuleRequiredDeployments { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredDeployments RepositoryRuleRepositoryRuleRequiredDeployments { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleRequiredDeployments? RepositoryRuleRepositoryRuleRequiredDeployments0 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredDeployments? RepositoryRuleRepositoryRuleRequiredDeployments0 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleRequiredDeployments RepositoryRuleRepositoryRuleRequiredDeployments0 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredDeployments RepositoryRuleRepositoryRuleRequiredDeployments0 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleRequiredDeployments? RepositoryRuleRepositoryRuleRequiredDeployments1 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredDeployments? RepositoryRuleRepositoryRuleRequiredDeployments1 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleRequiredDeployments RepositoryRuleRepositoryRuleRequiredDeployments1 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredDeployments RepositoryRuleRepositoryRuleRequiredDeployments1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleRequiredDeployments? RepositoryRuleRepositoryRuleRequiredDeployments2 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredDeployments? RepositoryRuleRepositoryRuleRequiredDeployments2 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleRequiredDeployments RepositoryRuleRepositoryRuleRequiredDeployments2 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredDeployments RepositoryRuleRepositoryRuleRequiredDeployments2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleRequiredLinearHistory? RepositoryRuleRepositoryRuleRequiredLinearHistory { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredLinearHistory? RepositoryRuleRepositoryRuleRequiredLinearHistory { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleRequiredLinearHistory RepositoryRuleRepositoryRuleRequiredLinearHistory { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredLinearHistory RepositoryRuleRepositoryRuleRequiredLinearHistory { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleRequiredLinearHistory? RepositoryRuleRepositoryRuleRequiredLinearHistory0 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredLinearHistory? RepositoryRuleRepositoryRuleRequiredLinearHistory0 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleRequiredLinearHistory RepositoryRuleRepositoryRuleRequiredLinearHistory0 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredLinearHistory RepositoryRuleRepositoryRuleRequiredLinearHistory0 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleRequiredLinearHistory? RepositoryRuleRepositoryRuleRequiredLinearHistory1 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredLinearHistory? RepositoryRuleRepositoryRuleRequiredLinearHistory1 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleRequiredLinearHistory RepositoryRuleRepositoryRuleRequiredLinearHistory1 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredLinearHistory RepositoryRuleRepositoryRuleRequiredLinearHistory1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleRequiredLinearHistory? RepositoryRuleRepositoryRuleRequiredLinearHistory2 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredLinearHistory? RepositoryRuleRepositoryRuleRequiredLinearHistory2 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleRequiredLinearHistory RepositoryRuleRepositoryRuleRequiredLinearHistory2 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredLinearHistory RepositoryRuleRepositoryRuleRequiredLinearHistory2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleRequiredSignatures? RepositoryRuleRepositoryRuleRequiredSignatures { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredSignatures? RepositoryRuleRepositoryRuleRequiredSignatures { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleRequiredSignatures RepositoryRuleRepositoryRuleRequiredSignatures { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredSignatures RepositoryRuleRepositoryRuleRequiredSignatures { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleRequiredSignatures? RepositoryRuleRepositoryRuleRequiredSignatures0 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredSignatures? RepositoryRuleRepositoryRuleRequiredSignatures0 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleRequiredSignatures RepositoryRuleRepositoryRuleRequiredSignatures0 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredSignatures RepositoryRuleRepositoryRuleRequiredSignatures0 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleRequiredSignatures? RepositoryRuleRepositoryRuleRequiredSignatures1 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredSignatures? RepositoryRuleRepositoryRuleRequiredSignatures1 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleRequiredSignatures RepositoryRuleRepositoryRuleRequiredSignatures1 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredSignatures RepositoryRuleRepositoryRuleRequiredSignatures1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleRequiredSignatures? RepositoryRuleRepositoryRuleRequiredSignatures2 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredSignatures? RepositoryRuleRepositoryRuleRequiredSignatures2 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleRequiredSignatures RepositoryRuleRepositoryRuleRequiredSignatures2 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredSignatures RepositoryRuleRepositoryRuleRequiredSignatures2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleRequiredStatusChecks? RepositoryRuleRepositoryRuleRequiredStatusChecks { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredStatusChecks? RepositoryRuleRepositoryRuleRequiredStatusChecks { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleRequiredStatusChecks RepositoryRuleRepositoryRuleRequiredStatusChecks { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredStatusChecks RepositoryRuleRepositoryRuleRequiredStatusChecks { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleRequiredStatusChecks? RepositoryRuleRepositoryRuleRequiredStatusChecks0 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredStatusChecks? RepositoryRuleRepositoryRuleRequiredStatusChecks0 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleRequiredStatusChecks RepositoryRuleRepositoryRuleRequiredStatusChecks0 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredStatusChecks RepositoryRuleRepositoryRuleRequiredStatusChecks0 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleRequiredStatusChecks? RepositoryRuleRepositoryRuleRequiredStatusChecks1 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredStatusChecks? RepositoryRuleRepositoryRuleRequiredStatusChecks1 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleRequiredStatusChecks RepositoryRuleRepositoryRuleRequiredStatusChecks1 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredStatusChecks RepositoryRuleRepositoryRuleRequiredStatusChecks1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleRequiredStatusChecks? RepositoryRuleRepositoryRuleRequiredStatusChecks2 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredStatusChecks? RepositoryRuleRepositoryRuleRequiredStatusChecks2 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleRequiredStatusChecks RepositoryRuleRepositoryRuleRequiredStatusChecks2 { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredStatusChecks RepositoryRuleRepositoryRuleRequiredStatusChecks2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleTagNamePattern? RepositoryRuleRepositoryRuleTagNamePattern { get; set; } + public global::GitHub.Models.RepositoryRuleTagNamePattern? RepositoryRuleRepositoryRuleTagNamePattern { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleTagNamePattern RepositoryRuleRepositoryRuleTagNamePattern { get; set; } + public global::GitHub.Models.RepositoryRuleTagNamePattern RepositoryRuleRepositoryRuleTagNamePattern { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleTagNamePattern? RepositoryRuleRepositoryRuleTagNamePattern0 { get; set; } + public global::GitHub.Models.RepositoryRuleTagNamePattern? RepositoryRuleRepositoryRuleTagNamePattern0 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleTagNamePattern RepositoryRuleRepositoryRuleTagNamePattern0 { get; set; } + public global::GitHub.Models.RepositoryRuleTagNamePattern RepositoryRuleRepositoryRuleTagNamePattern0 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleTagNamePattern? RepositoryRuleRepositoryRuleTagNamePattern1 { get; set; } + public global::GitHub.Models.RepositoryRuleTagNamePattern? RepositoryRuleRepositoryRuleTagNamePattern1 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleTagNamePattern RepositoryRuleRepositoryRuleTagNamePattern1 { get; set; } + public global::GitHub.Models.RepositoryRuleTagNamePattern RepositoryRuleRepositoryRuleTagNamePattern1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleTagNamePattern? RepositoryRuleRepositoryRuleTagNamePattern2 { get; set; } + public global::GitHub.Models.RepositoryRuleTagNamePattern? RepositoryRuleRepositoryRuleTagNamePattern2 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleTagNamePattern RepositoryRuleRepositoryRuleTagNamePattern2 { get; set; } + public global::GitHub.Models.RepositoryRuleTagNamePattern RepositoryRuleRepositoryRuleTagNamePattern2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleUpdate? RepositoryRuleRepositoryRuleUpdate { get; set; } + public global::GitHub.Models.RepositoryRuleUpdate? RepositoryRuleRepositoryRuleUpdate { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleUpdate RepositoryRuleRepositoryRuleUpdate { get; set; } + public global::GitHub.Models.RepositoryRuleUpdate RepositoryRuleRepositoryRuleUpdate { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleUpdate? RepositoryRuleRepositoryRuleUpdate0 { get; set; } + public global::GitHub.Models.RepositoryRuleUpdate? RepositoryRuleRepositoryRuleUpdate0 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleUpdate RepositoryRuleRepositoryRuleUpdate0 { get; set; } + public global::GitHub.Models.RepositoryRuleUpdate RepositoryRuleRepositoryRuleUpdate0 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleUpdate? RepositoryRuleRepositoryRuleUpdate1 { get; set; } + public global::GitHub.Models.RepositoryRuleUpdate? RepositoryRuleRepositoryRuleUpdate1 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleUpdate RepositoryRuleRepositoryRuleUpdate1 { get; set; } + public global::GitHub.Models.RepositoryRuleUpdate RepositoryRuleRepositoryRuleUpdate1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleUpdate? RepositoryRuleRepositoryRuleUpdate2 { get; set; } + public global::GitHub.Models.RepositoryRuleUpdate? RepositoryRuleRepositoryRuleUpdate2 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleUpdate RepositoryRuleRepositoryRuleUpdate2 { get; set; } + public global::GitHub.Models.RepositoryRuleUpdate RepositoryRuleRepositoryRuleUpdate2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleWorkflows? RepositoryRuleRepositoryRuleWorkflows { get; set; } + public global::GitHub.Models.RepositoryRuleWorkflows? RepositoryRuleRepositoryRuleWorkflows { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleWorkflows RepositoryRuleRepositoryRuleWorkflows { get; set; } + public global::GitHub.Models.RepositoryRuleWorkflows RepositoryRuleRepositoryRuleWorkflows { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleWorkflows? RepositoryRuleRepositoryRuleWorkflows0 { get; set; } + public global::GitHub.Models.RepositoryRuleWorkflows? RepositoryRuleRepositoryRuleWorkflows0 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleWorkflows RepositoryRuleRepositoryRuleWorkflows0 { get; set; } + public global::GitHub.Models.RepositoryRuleWorkflows RepositoryRuleRepositoryRuleWorkflows0 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleWorkflows? RepositoryRuleRepositoryRuleWorkflows1 { get; set; } + public global::GitHub.Models.RepositoryRuleWorkflows? RepositoryRuleRepositoryRuleWorkflows1 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleWorkflows RepositoryRuleRepositoryRuleWorkflows1 { get; set; } + public global::GitHub.Models.RepositoryRuleWorkflows RepositoryRuleRepositoryRuleWorkflows1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleWorkflows? RepositoryRuleRepositoryRuleWorkflows2 { get; set; } + public global::GitHub.Models.RepositoryRuleWorkflows? RepositoryRuleRepositoryRuleWorkflows2 { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleWorkflows RepositoryRuleRepositoryRuleWorkflows2 { get; set; } + public global::GitHub.Models.RepositoryRuleWorkflows RepositoryRuleRepositoryRuleWorkflows2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleRequiredDeployments? RepositoryRuleRequiredDeployments { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredDeployments? RepositoryRuleRequiredDeployments { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleRequiredDeployments RepositoryRuleRequiredDeployments { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredDeployments RepositoryRuleRequiredDeployments { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleRequiredLinearHistory? RepositoryRuleRequiredLinearHistory { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredLinearHistory? RepositoryRuleRequiredLinearHistory { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleRequiredLinearHistory RepositoryRuleRequiredLinearHistory { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredLinearHistory RepositoryRuleRequiredLinearHistory { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleRequiredSignatures? RepositoryRuleRequiredSignatures { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredSignatures? RepositoryRuleRequiredSignatures { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleRequiredSignatures RepositoryRuleRequiredSignatures { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredSignatures RepositoryRuleRequiredSignatures { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleRequiredStatusChecks? RepositoryRuleRequiredStatusChecks { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredStatusChecks? RepositoryRuleRequiredStatusChecks { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleRequiredStatusChecks RepositoryRuleRequiredStatusChecks { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredStatusChecks RepositoryRuleRequiredStatusChecks { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleTagNamePattern? RepositoryRuleTagNamePattern { get; set; } + public global::GitHub.Models.RepositoryRuleTagNamePattern? RepositoryRuleTagNamePattern { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleTagNamePattern RepositoryRuleTagNamePattern { get; set; } + public global::GitHub.Models.RepositoryRuleTagNamePattern RepositoryRuleTagNamePattern { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleUpdate? RepositoryRuleUpdate { get; set; } + public global::GitHub.Models.RepositoryRuleUpdate? RepositoryRuleUpdate { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleUpdate RepositoryRuleUpdate { get; set; } + public global::GitHub.Models.RepositoryRuleUpdate RepositoryRuleUpdate { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRuleWorkflows? RepositoryRuleWorkflows { get; set; } + public global::GitHub.Models.RepositoryRuleWorkflows? RepositoryRuleWorkflows { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRuleWorkflows RepositoryRuleWorkflows { get; set; } + public global::GitHub.Models.RepositoryRuleWorkflows RepositoryRuleWorkflows { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRule CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRule CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new RepositoryRule(); - if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + var result = new global::GitHub.Models.RepositoryRule(); + if("repository-rule-branch-name-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.FileExtensionRestriction = new File_extension_restriction(); - } - else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) - { - result.FilePathRestriction = new File_path_restriction(); - } - else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) - { - result.MaxFilePathLength = new Max_file_path_length(); - } - else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) - { - result.MaxFileSize = new Max_file_size(); - } - else if("repository-rule-branch-name-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) - { - result.RepositoryRuleBranchNamePattern = new GitHub.Models.RepositoryRuleBranchNamePattern(); + result.RepositoryRuleBranchNamePattern = new global::GitHub.Models.RepositoryRuleBranchNamePattern(); } else if("repository-rule-code-scanning".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleCodeScanning = new GitHub.Models.RepositoryRuleCodeScanning(); + result.RepositoryRuleCodeScanning = new global::GitHub.Models.RepositoryRuleCodeScanning(); } else if("repository-rule-commit-author-email-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleCommitAuthorEmailPattern = new GitHub.Models.RepositoryRuleCommitAuthorEmailPattern(); + result.RepositoryRuleCommitAuthorEmailPattern = new global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern(); } else if("repository-rule-commit-message-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleCommitMessagePattern = new GitHub.Models.RepositoryRuleCommitMessagePattern(); + result.RepositoryRuleCommitMessagePattern = new global::GitHub.Models.RepositoryRuleCommitMessagePattern(); } else if("repository-rule-committer-email-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleCommitterEmailPattern = new GitHub.Models.RepositoryRuleCommitterEmailPattern(); + result.RepositoryRuleCommitterEmailPattern = new global::GitHub.Models.RepositoryRuleCommitterEmailPattern(); } else if("repository-rule-creation".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleCreation = new GitHub.Models.RepositoryRuleCreation(); + result.RepositoryRuleCreation = new global::GitHub.Models.RepositoryRuleCreation(); } else if("repository-rule-deletion".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleDeletion = new GitHub.Models.RepositoryRuleDeletion(); - } - else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) - { - result.RepositoryRuleFileExtensionRestriction = new File_extension_restriction(); - } - else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) - { - result.RepositoryRuleFileExtensionRestriction0 = new File_extension_restriction(); - } - else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) - { - result.RepositoryRuleFileExtensionRestriction1 = new File_extension_restriction(); - } - else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) - { - result.RepositoryRuleFileExtensionRestriction2 = new File_extension_restriction(); - } - else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) - { - result.RepositoryRuleFilePathRestriction = new File_path_restriction(); - } - else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) - { - result.RepositoryRuleFilePathRestriction0 = new File_path_restriction(); - } - else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) - { - result.RepositoryRuleFilePathRestriction1 = new File_path_restriction(); - } - else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) - { - result.RepositoryRuleFilePathRestriction2 = new File_path_restriction(); - } - else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) - { - result.RepositoryRuleMaxFilePathLength = new Max_file_path_length(); - } - else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) - { - result.RepositoryRuleMaxFilePathLength0 = new Max_file_path_length(); + result.RepositoryRuleDeletion = new global::GitHub.Models.RepositoryRuleDeletion(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleMaxFilePathLength1 = new Max_file_path_length(); + result.RepositoryRuleMember1 = new global::GitHub.Models.RepositoryRuleMember1(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleMaxFilePathLength2 = new Max_file_path_length(); + result.RepositoryRuleMember2 = new global::GitHub.Models.RepositoryRuleMember2(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleMaxFileSize = new Max_file_size(); + result.RepositoryRuleMember3 = new global::GitHub.Models.RepositoryRuleMember3(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleMaxFileSize0 = new Max_file_size(); - } - else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) - { - result.RepositoryRuleMaxFileSize1 = new Max_file_size(); - } - else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) - { - result.RepositoryRuleMaxFileSize2 = new Max_file_size(); + result.RepositoryRuleMember4 = new global::GitHub.Models.RepositoryRuleMember4(); } else if("repository-rule-merge-queue".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleMergeQueue = new GitHub.Models.RepositoryRuleMergeQueue(); + result.RepositoryRuleMergeQueue = new global::GitHub.Models.RepositoryRuleMergeQueue(); } else if("repository-rule-non-fast-forward".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleNonFastForward = new GitHub.Models.RepositoryRuleNonFastForward(); + result.RepositoryRuleNonFastForward = new global::GitHub.Models.RepositoryRuleNonFastForward(); } else if("repository-rule-pull-request".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRulePullRequest = new GitHub.Models.RepositoryRulePullRequest(); + result.RepositoryRulePullRequest = new global::GitHub.Models.RepositoryRulePullRequest(); } else if("repository-rule-branch-name-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleBranchNamePattern = new GitHub.Models.RepositoryRuleBranchNamePattern(); + result.RepositoryRuleRepositoryRuleBranchNamePattern = new global::GitHub.Models.RepositoryRuleBranchNamePattern(); } else if("repository-rule-branch-name-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleBranchNamePattern0 = new GitHub.Models.RepositoryRuleBranchNamePattern(); + result.RepositoryRuleRepositoryRuleBranchNamePattern0 = new global::GitHub.Models.RepositoryRuleBranchNamePattern(); } else if("repository-rule-branch-name-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleBranchNamePattern1 = new GitHub.Models.RepositoryRuleBranchNamePattern(); + result.RepositoryRuleRepositoryRuleBranchNamePattern1 = new global::GitHub.Models.RepositoryRuleBranchNamePattern(); } else if("repository-rule-branch-name-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleBranchNamePattern2 = new GitHub.Models.RepositoryRuleBranchNamePattern(); + result.RepositoryRuleRepositoryRuleBranchNamePattern2 = new global::GitHub.Models.RepositoryRuleBranchNamePattern(); } else if("repository-rule-code-scanning".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleCodeScanning = new GitHub.Models.RepositoryRuleCodeScanning(); + result.RepositoryRuleRepositoryRuleCodeScanning = new global::GitHub.Models.RepositoryRuleCodeScanning(); } else if("repository-rule-code-scanning".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleCodeScanning0 = new GitHub.Models.RepositoryRuleCodeScanning(); + result.RepositoryRuleRepositoryRuleCodeScanning0 = new global::GitHub.Models.RepositoryRuleCodeScanning(); } else if("repository-rule-code-scanning".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleCodeScanning1 = new GitHub.Models.RepositoryRuleCodeScanning(); + result.RepositoryRuleRepositoryRuleCodeScanning1 = new global::GitHub.Models.RepositoryRuleCodeScanning(); } else if("repository-rule-code-scanning".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleCodeScanning2 = new GitHub.Models.RepositoryRuleCodeScanning(); + result.RepositoryRuleRepositoryRuleCodeScanning2 = new global::GitHub.Models.RepositoryRuleCodeScanning(); } else if("repository-rule-commit-author-email-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleCommitAuthorEmailPattern = new GitHub.Models.RepositoryRuleCommitAuthorEmailPattern(); + result.RepositoryRuleRepositoryRuleCommitAuthorEmailPattern = new global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern(); } else if("repository-rule-commit-author-email-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleCommitAuthorEmailPattern0 = new GitHub.Models.RepositoryRuleCommitAuthorEmailPattern(); + result.RepositoryRuleRepositoryRuleCommitAuthorEmailPattern0 = new global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern(); } else if("repository-rule-commit-author-email-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleCommitAuthorEmailPattern1 = new GitHub.Models.RepositoryRuleCommitAuthorEmailPattern(); + result.RepositoryRuleRepositoryRuleCommitAuthorEmailPattern1 = new global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern(); } else if("repository-rule-commit-author-email-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleCommitAuthorEmailPattern2 = new GitHub.Models.RepositoryRuleCommitAuthorEmailPattern(); + result.RepositoryRuleRepositoryRuleCommitAuthorEmailPattern2 = new global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern(); } else if("repository-rule-commit-message-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleCommitMessagePattern = new GitHub.Models.RepositoryRuleCommitMessagePattern(); + result.RepositoryRuleRepositoryRuleCommitMessagePattern = new global::GitHub.Models.RepositoryRuleCommitMessagePattern(); } else if("repository-rule-commit-message-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleCommitMessagePattern0 = new GitHub.Models.RepositoryRuleCommitMessagePattern(); + result.RepositoryRuleRepositoryRuleCommitMessagePattern0 = new global::GitHub.Models.RepositoryRuleCommitMessagePattern(); } else if("repository-rule-commit-message-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleCommitMessagePattern1 = new GitHub.Models.RepositoryRuleCommitMessagePattern(); + result.RepositoryRuleRepositoryRuleCommitMessagePattern1 = new global::GitHub.Models.RepositoryRuleCommitMessagePattern(); } else if("repository-rule-commit-message-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleCommitMessagePattern2 = new GitHub.Models.RepositoryRuleCommitMessagePattern(); + result.RepositoryRuleRepositoryRuleCommitMessagePattern2 = new global::GitHub.Models.RepositoryRuleCommitMessagePattern(); } else if("repository-rule-committer-email-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleCommitterEmailPattern = new GitHub.Models.RepositoryRuleCommitterEmailPattern(); + result.RepositoryRuleRepositoryRuleCommitterEmailPattern = new global::GitHub.Models.RepositoryRuleCommitterEmailPattern(); } else if("repository-rule-committer-email-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleCommitterEmailPattern0 = new GitHub.Models.RepositoryRuleCommitterEmailPattern(); + result.RepositoryRuleRepositoryRuleCommitterEmailPattern0 = new global::GitHub.Models.RepositoryRuleCommitterEmailPattern(); } else if("repository-rule-committer-email-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleCommitterEmailPattern1 = new GitHub.Models.RepositoryRuleCommitterEmailPattern(); + result.RepositoryRuleRepositoryRuleCommitterEmailPattern1 = new global::GitHub.Models.RepositoryRuleCommitterEmailPattern(); } else if("repository-rule-committer-email-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleCommitterEmailPattern2 = new GitHub.Models.RepositoryRuleCommitterEmailPattern(); + result.RepositoryRuleRepositoryRuleCommitterEmailPattern2 = new global::GitHub.Models.RepositoryRuleCommitterEmailPattern(); } else if("repository-rule-creation".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleCreation = new GitHub.Models.RepositoryRuleCreation(); + result.RepositoryRuleRepositoryRuleCreation = new global::GitHub.Models.RepositoryRuleCreation(); } else if("repository-rule-creation".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleCreation0 = new GitHub.Models.RepositoryRuleCreation(); + result.RepositoryRuleRepositoryRuleCreation0 = new global::GitHub.Models.RepositoryRuleCreation(); } else if("repository-rule-creation".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleCreation1 = new GitHub.Models.RepositoryRuleCreation(); + result.RepositoryRuleRepositoryRuleCreation1 = new global::GitHub.Models.RepositoryRuleCreation(); } else if("repository-rule-creation".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleCreation2 = new GitHub.Models.RepositoryRuleCreation(); + result.RepositoryRuleRepositoryRuleCreation2 = new global::GitHub.Models.RepositoryRuleCreation(); } else if("repository-rule-deletion".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleDeletion = new GitHub.Models.RepositoryRuleDeletion(); + result.RepositoryRuleRepositoryRuleDeletion = new global::GitHub.Models.RepositoryRuleDeletion(); } else if("repository-rule-deletion".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleDeletion0 = new GitHub.Models.RepositoryRuleDeletion(); + result.RepositoryRuleRepositoryRuleDeletion0 = new global::GitHub.Models.RepositoryRuleDeletion(); } else if("repository-rule-deletion".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleDeletion1 = new GitHub.Models.RepositoryRuleDeletion(); + result.RepositoryRuleRepositoryRuleDeletion1 = new global::GitHub.Models.RepositoryRuleDeletion(); } else if("repository-rule-deletion".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleDeletion2 = new GitHub.Models.RepositoryRuleDeletion(); + result.RepositoryRuleRepositoryRuleDeletion2 = new global::GitHub.Models.RepositoryRuleDeletion(); + } + else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + { + result.RepositoryRuleRepositoryRuleMember1 = new global::GitHub.Models.RepositoryRuleMember1(); + } + else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + { + result.RepositoryRuleRepositoryRuleMember10 = new global::GitHub.Models.RepositoryRuleMember1(); + } + else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + { + result.RepositoryRuleRepositoryRuleMember11 = new global::GitHub.Models.RepositoryRuleMember1(); + } + else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + { + result.RepositoryRuleRepositoryRuleMember12 = new global::GitHub.Models.RepositoryRuleMember1(); + } + else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + { + result.RepositoryRuleRepositoryRuleMember2 = new global::GitHub.Models.RepositoryRuleMember2(); + } + else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + { + result.RepositoryRuleRepositoryRuleMember20 = new global::GitHub.Models.RepositoryRuleMember2(); + } + else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + { + result.RepositoryRuleRepositoryRuleMember21 = new global::GitHub.Models.RepositoryRuleMember2(); + } + else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + { + result.RepositoryRuleRepositoryRuleMember22 = new global::GitHub.Models.RepositoryRuleMember2(); + } + else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + { + result.RepositoryRuleRepositoryRuleMember3 = new global::GitHub.Models.RepositoryRuleMember3(); + } + else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + { + result.RepositoryRuleRepositoryRuleMember30 = new global::GitHub.Models.RepositoryRuleMember3(); + } + else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + { + result.RepositoryRuleRepositoryRuleMember31 = new global::GitHub.Models.RepositoryRuleMember3(); + } + else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + { + result.RepositoryRuleRepositoryRuleMember32 = new global::GitHub.Models.RepositoryRuleMember3(); + } + else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + { + result.RepositoryRuleRepositoryRuleMember4 = new global::GitHub.Models.RepositoryRuleMember4(); + } + else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + { + result.RepositoryRuleRepositoryRuleMember40 = new global::GitHub.Models.RepositoryRuleMember4(); + } + else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + { + result.RepositoryRuleRepositoryRuleMember41 = new global::GitHub.Models.RepositoryRuleMember4(); + } + else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + { + result.RepositoryRuleRepositoryRuleMember42 = new global::GitHub.Models.RepositoryRuleMember4(); } else if("repository-rule-merge-queue".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleMergeQueue = new GitHub.Models.RepositoryRuleMergeQueue(); + result.RepositoryRuleRepositoryRuleMergeQueue = new global::GitHub.Models.RepositoryRuleMergeQueue(); } else if("repository-rule-merge-queue".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleMergeQueue0 = new GitHub.Models.RepositoryRuleMergeQueue(); + result.RepositoryRuleRepositoryRuleMergeQueue0 = new global::GitHub.Models.RepositoryRuleMergeQueue(); } else if("repository-rule-merge-queue".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleMergeQueue1 = new GitHub.Models.RepositoryRuleMergeQueue(); + result.RepositoryRuleRepositoryRuleMergeQueue1 = new global::GitHub.Models.RepositoryRuleMergeQueue(); } else if("repository-rule-merge-queue".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleMergeQueue2 = new GitHub.Models.RepositoryRuleMergeQueue(); + result.RepositoryRuleRepositoryRuleMergeQueue2 = new global::GitHub.Models.RepositoryRuleMergeQueue(); } else if("repository-rule-non-fast-forward".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleNonFastForward = new GitHub.Models.RepositoryRuleNonFastForward(); + result.RepositoryRuleRepositoryRuleNonFastForward = new global::GitHub.Models.RepositoryRuleNonFastForward(); } else if("repository-rule-non-fast-forward".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleNonFastForward0 = new GitHub.Models.RepositoryRuleNonFastForward(); + result.RepositoryRuleRepositoryRuleNonFastForward0 = new global::GitHub.Models.RepositoryRuleNonFastForward(); } else if("repository-rule-non-fast-forward".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleNonFastForward1 = new GitHub.Models.RepositoryRuleNonFastForward(); + result.RepositoryRuleRepositoryRuleNonFastForward1 = new global::GitHub.Models.RepositoryRuleNonFastForward(); } else if("repository-rule-non-fast-forward".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleNonFastForward2 = new GitHub.Models.RepositoryRuleNonFastForward(); + result.RepositoryRuleRepositoryRuleNonFastForward2 = new global::GitHub.Models.RepositoryRuleNonFastForward(); } else if("repository-rule-pull-request".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRulePullRequest = new GitHub.Models.RepositoryRulePullRequest(); + result.RepositoryRuleRepositoryRulePullRequest = new global::GitHub.Models.RepositoryRulePullRequest(); } else if("repository-rule-pull-request".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRulePullRequest0 = new GitHub.Models.RepositoryRulePullRequest(); + result.RepositoryRuleRepositoryRulePullRequest0 = new global::GitHub.Models.RepositoryRulePullRequest(); } else if("repository-rule-pull-request".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRulePullRequest1 = new GitHub.Models.RepositoryRulePullRequest(); + result.RepositoryRuleRepositoryRulePullRequest1 = new global::GitHub.Models.RepositoryRulePullRequest(); } else if("repository-rule-pull-request".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRulePullRequest2 = new GitHub.Models.RepositoryRulePullRequest(); + result.RepositoryRuleRepositoryRulePullRequest2 = new global::GitHub.Models.RepositoryRulePullRequest(); } else if("repository-rule-required-deployments".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleRequiredDeployments = new GitHub.Models.RepositoryRuleRequiredDeployments(); + result.RepositoryRuleRepositoryRuleRequiredDeployments = new global::GitHub.Models.RepositoryRuleRequiredDeployments(); } else if("repository-rule-required-deployments".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleRequiredDeployments0 = new GitHub.Models.RepositoryRuleRequiredDeployments(); + result.RepositoryRuleRepositoryRuleRequiredDeployments0 = new global::GitHub.Models.RepositoryRuleRequiredDeployments(); } else if("repository-rule-required-deployments".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleRequiredDeployments1 = new GitHub.Models.RepositoryRuleRequiredDeployments(); + result.RepositoryRuleRepositoryRuleRequiredDeployments1 = new global::GitHub.Models.RepositoryRuleRequiredDeployments(); } else if("repository-rule-required-deployments".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleRequiredDeployments2 = new GitHub.Models.RepositoryRuleRequiredDeployments(); + result.RepositoryRuleRepositoryRuleRequiredDeployments2 = new global::GitHub.Models.RepositoryRuleRequiredDeployments(); } else if("repository-rule-required-linear-history".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleRequiredLinearHistory = new GitHub.Models.RepositoryRuleRequiredLinearHistory(); + result.RepositoryRuleRepositoryRuleRequiredLinearHistory = new global::GitHub.Models.RepositoryRuleRequiredLinearHistory(); } else if("repository-rule-required-linear-history".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleRequiredLinearHistory0 = new GitHub.Models.RepositoryRuleRequiredLinearHistory(); + result.RepositoryRuleRepositoryRuleRequiredLinearHistory0 = new global::GitHub.Models.RepositoryRuleRequiredLinearHistory(); } else if("repository-rule-required-linear-history".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleRequiredLinearHistory1 = new GitHub.Models.RepositoryRuleRequiredLinearHistory(); + result.RepositoryRuleRepositoryRuleRequiredLinearHistory1 = new global::GitHub.Models.RepositoryRuleRequiredLinearHistory(); } else if("repository-rule-required-linear-history".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleRequiredLinearHistory2 = new GitHub.Models.RepositoryRuleRequiredLinearHistory(); + result.RepositoryRuleRepositoryRuleRequiredLinearHistory2 = new global::GitHub.Models.RepositoryRuleRequiredLinearHistory(); } else if("repository-rule-required-signatures".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleRequiredSignatures = new GitHub.Models.RepositoryRuleRequiredSignatures(); + result.RepositoryRuleRepositoryRuleRequiredSignatures = new global::GitHub.Models.RepositoryRuleRequiredSignatures(); } else if("repository-rule-required-signatures".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleRequiredSignatures0 = new GitHub.Models.RepositoryRuleRequiredSignatures(); + result.RepositoryRuleRepositoryRuleRequiredSignatures0 = new global::GitHub.Models.RepositoryRuleRequiredSignatures(); } else if("repository-rule-required-signatures".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleRequiredSignatures1 = new GitHub.Models.RepositoryRuleRequiredSignatures(); + result.RepositoryRuleRepositoryRuleRequiredSignatures1 = new global::GitHub.Models.RepositoryRuleRequiredSignatures(); } else if("repository-rule-required-signatures".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleRequiredSignatures2 = new GitHub.Models.RepositoryRuleRequiredSignatures(); + result.RepositoryRuleRepositoryRuleRequiredSignatures2 = new global::GitHub.Models.RepositoryRuleRequiredSignatures(); } else if("repository-rule-required-status-checks".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleRequiredStatusChecks = new GitHub.Models.RepositoryRuleRequiredStatusChecks(); + result.RepositoryRuleRepositoryRuleRequiredStatusChecks = new global::GitHub.Models.RepositoryRuleRequiredStatusChecks(); } else if("repository-rule-required-status-checks".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleRequiredStatusChecks0 = new GitHub.Models.RepositoryRuleRequiredStatusChecks(); + result.RepositoryRuleRepositoryRuleRequiredStatusChecks0 = new global::GitHub.Models.RepositoryRuleRequiredStatusChecks(); } else if("repository-rule-required-status-checks".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleRequiredStatusChecks1 = new GitHub.Models.RepositoryRuleRequiredStatusChecks(); + result.RepositoryRuleRepositoryRuleRequiredStatusChecks1 = new global::GitHub.Models.RepositoryRuleRequiredStatusChecks(); } else if("repository-rule-required-status-checks".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleRequiredStatusChecks2 = new GitHub.Models.RepositoryRuleRequiredStatusChecks(); + result.RepositoryRuleRepositoryRuleRequiredStatusChecks2 = new global::GitHub.Models.RepositoryRuleRequiredStatusChecks(); } else if("repository-rule-tag-name-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleTagNamePattern = new GitHub.Models.RepositoryRuleTagNamePattern(); + result.RepositoryRuleRepositoryRuleTagNamePattern = new global::GitHub.Models.RepositoryRuleTagNamePattern(); } else if("repository-rule-tag-name-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleTagNamePattern0 = new GitHub.Models.RepositoryRuleTagNamePattern(); + result.RepositoryRuleRepositoryRuleTagNamePattern0 = new global::GitHub.Models.RepositoryRuleTagNamePattern(); } else if("repository-rule-tag-name-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleTagNamePattern1 = new GitHub.Models.RepositoryRuleTagNamePattern(); + result.RepositoryRuleRepositoryRuleTagNamePattern1 = new global::GitHub.Models.RepositoryRuleTagNamePattern(); } else if("repository-rule-tag-name-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleTagNamePattern2 = new GitHub.Models.RepositoryRuleTagNamePattern(); + result.RepositoryRuleRepositoryRuleTagNamePattern2 = new global::GitHub.Models.RepositoryRuleTagNamePattern(); } else if("repository-rule-update".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleUpdate = new GitHub.Models.RepositoryRuleUpdate(); + result.RepositoryRuleRepositoryRuleUpdate = new global::GitHub.Models.RepositoryRuleUpdate(); } else if("repository-rule-update".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleUpdate0 = new GitHub.Models.RepositoryRuleUpdate(); + result.RepositoryRuleRepositoryRuleUpdate0 = new global::GitHub.Models.RepositoryRuleUpdate(); } else if("repository-rule-update".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleUpdate1 = new GitHub.Models.RepositoryRuleUpdate(); + result.RepositoryRuleRepositoryRuleUpdate1 = new global::GitHub.Models.RepositoryRuleUpdate(); } else if("repository-rule-update".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleUpdate2 = new GitHub.Models.RepositoryRuleUpdate(); + result.RepositoryRuleRepositoryRuleUpdate2 = new global::GitHub.Models.RepositoryRuleUpdate(); } else if("repository-rule-workflows".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleWorkflows = new GitHub.Models.RepositoryRuleWorkflows(); + result.RepositoryRuleRepositoryRuleWorkflows = new global::GitHub.Models.RepositoryRuleWorkflows(); } else if("repository-rule-workflows".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleWorkflows0 = new GitHub.Models.RepositoryRuleWorkflows(); + result.RepositoryRuleRepositoryRuleWorkflows0 = new global::GitHub.Models.RepositoryRuleWorkflows(); } else if("repository-rule-workflows".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleWorkflows1 = new GitHub.Models.RepositoryRuleWorkflows(); + result.RepositoryRuleRepositoryRuleWorkflows1 = new global::GitHub.Models.RepositoryRuleWorkflows(); } else if("repository-rule-workflows".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRepositoryRuleWorkflows2 = new GitHub.Models.RepositoryRuleWorkflows(); + result.RepositoryRuleRepositoryRuleWorkflows2 = new global::GitHub.Models.RepositoryRuleWorkflows(); } else if("repository-rule-required-deployments".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRequiredDeployments = new GitHub.Models.RepositoryRuleRequiredDeployments(); + result.RepositoryRuleRequiredDeployments = new global::GitHub.Models.RepositoryRuleRequiredDeployments(); } else if("repository-rule-required-linear-history".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRequiredLinearHistory = new GitHub.Models.RepositoryRuleRequiredLinearHistory(); + result.RepositoryRuleRequiredLinearHistory = new global::GitHub.Models.RepositoryRuleRequiredLinearHistory(); } else if("repository-rule-required-signatures".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRequiredSignatures = new GitHub.Models.RepositoryRuleRequiredSignatures(); + result.RepositoryRuleRequiredSignatures = new global::GitHub.Models.RepositoryRuleRequiredSignatures(); } else if("repository-rule-required-status-checks".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleRequiredStatusChecks = new GitHub.Models.RepositoryRuleRequiredStatusChecks(); + result.RepositoryRuleRequiredStatusChecks = new global::GitHub.Models.RepositoryRuleRequiredStatusChecks(); } else if("repository-rule-tag-name-pattern".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleTagNamePattern = new GitHub.Models.RepositoryRuleTagNamePattern(); + result.RepositoryRuleTagNamePattern = new global::GitHub.Models.RepositoryRuleTagNamePattern(); } else if("repository-rule-update".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleUpdate = new GitHub.Models.RepositoryRuleUpdate(); + result.RepositoryRuleUpdate = new global::GitHub.Models.RepositoryRuleUpdate(); } else if("repository-rule-workflows".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.RepositoryRuleWorkflows = new GitHub.Models.RepositoryRuleWorkflows(); + result.RepositoryRuleWorkflows = new global::GitHub.Models.RepositoryRuleWorkflows(); } return result; } @@ -1289,23 +1291,7 @@ public static RepositoryRule CreateFromDiscriminatorValue(IParseNode parseNode) /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { - if(FileExtensionRestriction != null) - { - return FileExtensionRestriction.GetFieldDeserializers(); - } - else if(FilePathRestriction != null) - { - return FilePathRestriction.GetFieldDeserializers(); - } - else if(MaxFilePathLength != null) - { - return MaxFilePathLength.GetFieldDeserializers(); - } - else if(MaxFileSize != null) - { - return MaxFileSize.GetFieldDeserializers(); - } - else if(RepositoryRuleBranchNamePattern != null) + if(RepositoryRuleBranchNamePattern != null) { return RepositoryRuleBranchNamePattern.GetFieldDeserializers(); } @@ -1333,69 +1319,21 @@ public virtual IDictionary> GetFieldDeserializers() { return RepositoryRuleDeletion.GetFieldDeserializers(); } - else if(RepositoryRuleFileExtensionRestriction != null) - { - return RepositoryRuleFileExtensionRestriction.GetFieldDeserializers(); - } - else if(RepositoryRuleFileExtensionRestriction0 != null) - { - return RepositoryRuleFileExtensionRestriction0.GetFieldDeserializers(); - } - else if(RepositoryRuleFileExtensionRestriction1 != null) - { - return RepositoryRuleFileExtensionRestriction1.GetFieldDeserializers(); - } - else if(RepositoryRuleFileExtensionRestriction2 != null) - { - return RepositoryRuleFileExtensionRestriction2.GetFieldDeserializers(); - } - else if(RepositoryRuleFilePathRestriction != null) + else if(RepositoryRuleMember1 != null) { - return RepositoryRuleFilePathRestriction.GetFieldDeserializers(); + return RepositoryRuleMember1.GetFieldDeserializers(); } - else if(RepositoryRuleFilePathRestriction0 != null) + else if(RepositoryRuleMember2 != null) { - return RepositoryRuleFilePathRestriction0.GetFieldDeserializers(); + return RepositoryRuleMember2.GetFieldDeserializers(); } - else if(RepositoryRuleFilePathRestriction1 != null) + else if(RepositoryRuleMember3 != null) { - return RepositoryRuleFilePathRestriction1.GetFieldDeserializers(); + return RepositoryRuleMember3.GetFieldDeserializers(); } - else if(RepositoryRuleFilePathRestriction2 != null) + else if(RepositoryRuleMember4 != null) { - return RepositoryRuleFilePathRestriction2.GetFieldDeserializers(); - } - else if(RepositoryRuleMaxFilePathLength != null) - { - return RepositoryRuleMaxFilePathLength.GetFieldDeserializers(); - } - else if(RepositoryRuleMaxFilePathLength0 != null) - { - return RepositoryRuleMaxFilePathLength0.GetFieldDeserializers(); - } - else if(RepositoryRuleMaxFilePathLength1 != null) - { - return RepositoryRuleMaxFilePathLength1.GetFieldDeserializers(); - } - else if(RepositoryRuleMaxFilePathLength2 != null) - { - return RepositoryRuleMaxFilePathLength2.GetFieldDeserializers(); - } - else if(RepositoryRuleMaxFileSize != null) - { - return RepositoryRuleMaxFileSize.GetFieldDeserializers(); - } - else if(RepositoryRuleMaxFileSize0 != null) - { - return RepositoryRuleMaxFileSize0.GetFieldDeserializers(); - } - else if(RepositoryRuleMaxFileSize1 != null) - { - return RepositoryRuleMaxFileSize1.GetFieldDeserializers(); - } - else if(RepositoryRuleMaxFileSize2 != null) - { - return RepositoryRuleMaxFileSize2.GetFieldDeserializers(); + return RepositoryRuleMember4.GetFieldDeserializers(); } else if(RepositoryRuleMergeQueue != null) { @@ -1521,6 +1459,70 @@ public virtual IDictionary> GetFieldDeserializers() { return RepositoryRuleRepositoryRuleDeletion2.GetFieldDeserializers(); } + else if(RepositoryRuleRepositoryRuleMember1 != null) + { + return RepositoryRuleRepositoryRuleMember1.GetFieldDeserializers(); + } + else if(RepositoryRuleRepositoryRuleMember10 != null) + { + return RepositoryRuleRepositoryRuleMember10.GetFieldDeserializers(); + } + else if(RepositoryRuleRepositoryRuleMember11 != null) + { + return RepositoryRuleRepositoryRuleMember11.GetFieldDeserializers(); + } + else if(RepositoryRuleRepositoryRuleMember12 != null) + { + return RepositoryRuleRepositoryRuleMember12.GetFieldDeserializers(); + } + else if(RepositoryRuleRepositoryRuleMember2 != null) + { + return RepositoryRuleRepositoryRuleMember2.GetFieldDeserializers(); + } + else if(RepositoryRuleRepositoryRuleMember20 != null) + { + return RepositoryRuleRepositoryRuleMember20.GetFieldDeserializers(); + } + else if(RepositoryRuleRepositoryRuleMember21 != null) + { + return RepositoryRuleRepositoryRuleMember21.GetFieldDeserializers(); + } + else if(RepositoryRuleRepositoryRuleMember22 != null) + { + return RepositoryRuleRepositoryRuleMember22.GetFieldDeserializers(); + } + else if(RepositoryRuleRepositoryRuleMember3 != null) + { + return RepositoryRuleRepositoryRuleMember3.GetFieldDeserializers(); + } + else if(RepositoryRuleRepositoryRuleMember30 != null) + { + return RepositoryRuleRepositoryRuleMember30.GetFieldDeserializers(); + } + else if(RepositoryRuleRepositoryRuleMember31 != null) + { + return RepositoryRuleRepositoryRuleMember31.GetFieldDeserializers(); + } + else if(RepositoryRuleRepositoryRuleMember32 != null) + { + return RepositoryRuleRepositoryRuleMember32.GetFieldDeserializers(); + } + else if(RepositoryRuleRepositoryRuleMember4 != null) + { + return RepositoryRuleRepositoryRuleMember4.GetFieldDeserializers(); + } + else if(RepositoryRuleRepositoryRuleMember40 != null) + { + return RepositoryRuleRepositoryRuleMember40.GetFieldDeserializers(); + } + else if(RepositoryRuleRepositoryRuleMember41 != null) + { + return RepositoryRuleRepositoryRuleMember41.GetFieldDeserializers(); + } + else if(RepositoryRuleRepositoryRuleMember42 != null) + { + return RepositoryRuleRepositoryRuleMember42.GetFieldDeserializers(); + } else if(RepositoryRuleRepositoryRuleMergeQueue != null) { return RepositoryRuleRepositoryRuleMergeQueue.GetFieldDeserializers(); @@ -1718,425 +1720,425 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - if(FileExtensionRestriction != null) - { - writer.WriteObjectValue(null, FileExtensionRestriction); - } - else if(FilePathRestriction != null) - { - writer.WriteObjectValue(null, FilePathRestriction); - } - else if(MaxFilePathLength != null) - { - writer.WriteObjectValue(null, MaxFilePathLength); - } - else if(MaxFileSize != null) - { - writer.WriteObjectValue(null, MaxFileSize); - } - else if(RepositoryRuleBranchNamePattern != null) + if(RepositoryRuleBranchNamePattern != null) { - writer.WriteObjectValue(null, RepositoryRuleBranchNamePattern); + writer.WriteObjectValue(null, RepositoryRuleBranchNamePattern); } else if(RepositoryRuleCodeScanning != null) { - writer.WriteObjectValue(null, RepositoryRuleCodeScanning); + writer.WriteObjectValue(null, RepositoryRuleCodeScanning); } else if(RepositoryRuleCommitAuthorEmailPattern != null) { - writer.WriteObjectValue(null, RepositoryRuleCommitAuthorEmailPattern); + writer.WriteObjectValue(null, RepositoryRuleCommitAuthorEmailPattern); } else if(RepositoryRuleCommitMessagePattern != null) { - writer.WriteObjectValue(null, RepositoryRuleCommitMessagePattern); + writer.WriteObjectValue(null, RepositoryRuleCommitMessagePattern); } else if(RepositoryRuleCommitterEmailPattern != null) { - writer.WriteObjectValue(null, RepositoryRuleCommitterEmailPattern); + writer.WriteObjectValue(null, RepositoryRuleCommitterEmailPattern); } else if(RepositoryRuleCreation != null) { - writer.WriteObjectValue(null, RepositoryRuleCreation); + writer.WriteObjectValue(null, RepositoryRuleCreation); } else if(RepositoryRuleDeletion != null) { - writer.WriteObjectValue(null, RepositoryRuleDeletion); + writer.WriteObjectValue(null, RepositoryRuleDeletion); } - else if(RepositoryRuleFileExtensionRestriction != null) + else if(RepositoryRuleMember1 != null) { - writer.WriteObjectValue(null, RepositoryRuleFileExtensionRestriction); + writer.WriteObjectValue(null, RepositoryRuleMember1); } - else if(RepositoryRuleFileExtensionRestriction0 != null) + else if(RepositoryRuleMember2 != null) { - writer.WriteObjectValue(null, RepositoryRuleFileExtensionRestriction0); + writer.WriteObjectValue(null, RepositoryRuleMember2); } - else if(RepositoryRuleFileExtensionRestriction1 != null) + else if(RepositoryRuleMember3 != null) { - writer.WriteObjectValue(null, RepositoryRuleFileExtensionRestriction1); + writer.WriteObjectValue(null, RepositoryRuleMember3); } - else if(RepositoryRuleFileExtensionRestriction2 != null) + else if(RepositoryRuleMember4 != null) { - writer.WriteObjectValue(null, RepositoryRuleFileExtensionRestriction2); - } - else if(RepositoryRuleFilePathRestriction != null) - { - writer.WriteObjectValue(null, RepositoryRuleFilePathRestriction); - } - else if(RepositoryRuleFilePathRestriction0 != null) - { - writer.WriteObjectValue(null, RepositoryRuleFilePathRestriction0); - } - else if(RepositoryRuleFilePathRestriction1 != null) - { - writer.WriteObjectValue(null, RepositoryRuleFilePathRestriction1); - } - else if(RepositoryRuleFilePathRestriction2 != null) - { - writer.WriteObjectValue(null, RepositoryRuleFilePathRestriction2); - } - else if(RepositoryRuleMaxFilePathLength != null) - { - writer.WriteObjectValue(null, RepositoryRuleMaxFilePathLength); - } - else if(RepositoryRuleMaxFilePathLength0 != null) - { - writer.WriteObjectValue(null, RepositoryRuleMaxFilePathLength0); - } - else if(RepositoryRuleMaxFilePathLength1 != null) - { - writer.WriteObjectValue(null, RepositoryRuleMaxFilePathLength1); - } - else if(RepositoryRuleMaxFilePathLength2 != null) - { - writer.WriteObjectValue(null, RepositoryRuleMaxFilePathLength2); - } - else if(RepositoryRuleMaxFileSize != null) - { - writer.WriteObjectValue(null, RepositoryRuleMaxFileSize); - } - else if(RepositoryRuleMaxFileSize0 != null) - { - writer.WriteObjectValue(null, RepositoryRuleMaxFileSize0); - } - else if(RepositoryRuleMaxFileSize1 != null) - { - writer.WriteObjectValue(null, RepositoryRuleMaxFileSize1); - } - else if(RepositoryRuleMaxFileSize2 != null) - { - writer.WriteObjectValue(null, RepositoryRuleMaxFileSize2); + writer.WriteObjectValue(null, RepositoryRuleMember4); } else if(RepositoryRuleMergeQueue != null) { - writer.WriteObjectValue(null, RepositoryRuleMergeQueue); + writer.WriteObjectValue(null, RepositoryRuleMergeQueue); } else if(RepositoryRuleNonFastForward != null) { - writer.WriteObjectValue(null, RepositoryRuleNonFastForward); + writer.WriteObjectValue(null, RepositoryRuleNonFastForward); } else if(RepositoryRulePullRequest != null) { - writer.WriteObjectValue(null, RepositoryRulePullRequest); + writer.WriteObjectValue(null, RepositoryRulePullRequest); } else if(RepositoryRuleRepositoryRuleBranchNamePattern != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleBranchNamePattern); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleBranchNamePattern); } else if(RepositoryRuleRepositoryRuleBranchNamePattern0 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleBranchNamePattern0); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleBranchNamePattern0); } else if(RepositoryRuleRepositoryRuleBranchNamePattern1 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleBranchNamePattern1); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleBranchNamePattern1); } else if(RepositoryRuleRepositoryRuleBranchNamePattern2 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleBranchNamePattern2); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleBranchNamePattern2); } else if(RepositoryRuleRepositoryRuleCodeScanning != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCodeScanning); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCodeScanning); } else if(RepositoryRuleRepositoryRuleCodeScanning0 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCodeScanning0); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCodeScanning0); } else if(RepositoryRuleRepositoryRuleCodeScanning1 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCodeScanning1); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCodeScanning1); } else if(RepositoryRuleRepositoryRuleCodeScanning2 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCodeScanning2); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCodeScanning2); } else if(RepositoryRuleRepositoryRuleCommitAuthorEmailPattern != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitAuthorEmailPattern); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitAuthorEmailPattern); } else if(RepositoryRuleRepositoryRuleCommitAuthorEmailPattern0 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitAuthorEmailPattern0); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitAuthorEmailPattern0); } else if(RepositoryRuleRepositoryRuleCommitAuthorEmailPattern1 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitAuthorEmailPattern1); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitAuthorEmailPattern1); } else if(RepositoryRuleRepositoryRuleCommitAuthorEmailPattern2 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitAuthorEmailPattern2); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitAuthorEmailPattern2); } else if(RepositoryRuleRepositoryRuleCommitMessagePattern != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitMessagePattern); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitMessagePattern); } else if(RepositoryRuleRepositoryRuleCommitMessagePattern0 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitMessagePattern0); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitMessagePattern0); } else if(RepositoryRuleRepositoryRuleCommitMessagePattern1 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitMessagePattern1); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitMessagePattern1); } else if(RepositoryRuleRepositoryRuleCommitMessagePattern2 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitMessagePattern2); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitMessagePattern2); } else if(RepositoryRuleRepositoryRuleCommitterEmailPattern != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitterEmailPattern); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitterEmailPattern); } else if(RepositoryRuleRepositoryRuleCommitterEmailPattern0 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitterEmailPattern0); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitterEmailPattern0); } else if(RepositoryRuleRepositoryRuleCommitterEmailPattern1 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitterEmailPattern1); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitterEmailPattern1); } else if(RepositoryRuleRepositoryRuleCommitterEmailPattern2 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitterEmailPattern2); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCommitterEmailPattern2); } else if(RepositoryRuleRepositoryRuleCreation != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCreation); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCreation); } else if(RepositoryRuleRepositoryRuleCreation0 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCreation0); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCreation0); } else if(RepositoryRuleRepositoryRuleCreation1 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCreation1); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCreation1); } else if(RepositoryRuleRepositoryRuleCreation2 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCreation2); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleCreation2); } else if(RepositoryRuleRepositoryRuleDeletion != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleDeletion); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleDeletion); } else if(RepositoryRuleRepositoryRuleDeletion0 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleDeletion0); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleDeletion0); } else if(RepositoryRuleRepositoryRuleDeletion1 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleDeletion1); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleDeletion1); } else if(RepositoryRuleRepositoryRuleDeletion2 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleDeletion2); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleDeletion2); + } + else if(RepositoryRuleRepositoryRuleMember1 != null) + { + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMember1); + } + else if(RepositoryRuleRepositoryRuleMember10 != null) + { + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMember10); + } + else if(RepositoryRuleRepositoryRuleMember11 != null) + { + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMember11); + } + else if(RepositoryRuleRepositoryRuleMember12 != null) + { + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMember12); + } + else if(RepositoryRuleRepositoryRuleMember2 != null) + { + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMember2); + } + else if(RepositoryRuleRepositoryRuleMember20 != null) + { + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMember20); + } + else if(RepositoryRuleRepositoryRuleMember21 != null) + { + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMember21); + } + else if(RepositoryRuleRepositoryRuleMember22 != null) + { + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMember22); + } + else if(RepositoryRuleRepositoryRuleMember3 != null) + { + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMember3); + } + else if(RepositoryRuleRepositoryRuleMember30 != null) + { + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMember30); + } + else if(RepositoryRuleRepositoryRuleMember31 != null) + { + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMember31); + } + else if(RepositoryRuleRepositoryRuleMember32 != null) + { + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMember32); + } + else if(RepositoryRuleRepositoryRuleMember4 != null) + { + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMember4); + } + else if(RepositoryRuleRepositoryRuleMember40 != null) + { + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMember40); + } + else if(RepositoryRuleRepositoryRuleMember41 != null) + { + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMember41); + } + else if(RepositoryRuleRepositoryRuleMember42 != null) + { + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMember42); } else if(RepositoryRuleRepositoryRuleMergeQueue != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMergeQueue); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMergeQueue); } else if(RepositoryRuleRepositoryRuleMergeQueue0 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMergeQueue0); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMergeQueue0); } else if(RepositoryRuleRepositoryRuleMergeQueue1 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMergeQueue1); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMergeQueue1); } else if(RepositoryRuleRepositoryRuleMergeQueue2 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMergeQueue2); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleMergeQueue2); } else if(RepositoryRuleRepositoryRuleNonFastForward != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleNonFastForward); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleNonFastForward); } else if(RepositoryRuleRepositoryRuleNonFastForward0 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleNonFastForward0); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleNonFastForward0); } else if(RepositoryRuleRepositoryRuleNonFastForward1 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleNonFastForward1); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleNonFastForward1); } else if(RepositoryRuleRepositoryRuleNonFastForward2 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleNonFastForward2); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleNonFastForward2); } else if(RepositoryRuleRepositoryRulePullRequest != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRulePullRequest); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRulePullRequest); } else if(RepositoryRuleRepositoryRulePullRequest0 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRulePullRequest0); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRulePullRequest0); } else if(RepositoryRuleRepositoryRulePullRequest1 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRulePullRequest1); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRulePullRequest1); } else if(RepositoryRuleRepositoryRulePullRequest2 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRulePullRequest2); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRulePullRequest2); } else if(RepositoryRuleRepositoryRuleRequiredDeployments != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredDeployments); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredDeployments); } else if(RepositoryRuleRepositoryRuleRequiredDeployments0 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredDeployments0); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredDeployments0); } else if(RepositoryRuleRepositoryRuleRequiredDeployments1 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredDeployments1); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredDeployments1); } else if(RepositoryRuleRepositoryRuleRequiredDeployments2 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredDeployments2); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredDeployments2); } else if(RepositoryRuleRepositoryRuleRequiredLinearHistory != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredLinearHistory); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredLinearHistory); } else if(RepositoryRuleRepositoryRuleRequiredLinearHistory0 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredLinearHistory0); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredLinearHistory0); } else if(RepositoryRuleRepositoryRuleRequiredLinearHistory1 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredLinearHistory1); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredLinearHistory1); } else if(RepositoryRuleRepositoryRuleRequiredLinearHistory2 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredLinearHistory2); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredLinearHistory2); } else if(RepositoryRuleRepositoryRuleRequiredSignatures != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredSignatures); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredSignatures); } else if(RepositoryRuleRepositoryRuleRequiredSignatures0 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredSignatures0); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredSignatures0); } else if(RepositoryRuleRepositoryRuleRequiredSignatures1 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredSignatures1); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredSignatures1); } else if(RepositoryRuleRepositoryRuleRequiredSignatures2 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredSignatures2); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredSignatures2); } else if(RepositoryRuleRepositoryRuleRequiredStatusChecks != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredStatusChecks); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredStatusChecks); } else if(RepositoryRuleRepositoryRuleRequiredStatusChecks0 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredStatusChecks0); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredStatusChecks0); } else if(RepositoryRuleRepositoryRuleRequiredStatusChecks1 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredStatusChecks1); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredStatusChecks1); } else if(RepositoryRuleRepositoryRuleRequiredStatusChecks2 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredStatusChecks2); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleRequiredStatusChecks2); } else if(RepositoryRuleRepositoryRuleTagNamePattern != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleTagNamePattern); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleTagNamePattern); } else if(RepositoryRuleRepositoryRuleTagNamePattern0 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleTagNamePattern0); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleTagNamePattern0); } else if(RepositoryRuleRepositoryRuleTagNamePattern1 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleTagNamePattern1); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleTagNamePattern1); } else if(RepositoryRuleRepositoryRuleTagNamePattern2 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleTagNamePattern2); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleTagNamePattern2); } else if(RepositoryRuleRepositoryRuleUpdate != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleUpdate); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleUpdate); } else if(RepositoryRuleRepositoryRuleUpdate0 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleUpdate0); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleUpdate0); } else if(RepositoryRuleRepositoryRuleUpdate1 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleUpdate1); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleUpdate1); } else if(RepositoryRuleRepositoryRuleUpdate2 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleUpdate2); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleUpdate2); } else if(RepositoryRuleRepositoryRuleWorkflows != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleWorkflows); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleWorkflows); } else if(RepositoryRuleRepositoryRuleWorkflows0 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleWorkflows0); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleWorkflows0); } else if(RepositoryRuleRepositoryRuleWorkflows1 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleWorkflows1); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleWorkflows1); } else if(RepositoryRuleRepositoryRuleWorkflows2 != null) { - writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleWorkflows2); + writer.WriteObjectValue(null, RepositoryRuleRepositoryRuleWorkflows2); } else if(RepositoryRuleRequiredDeployments != null) { - writer.WriteObjectValue(null, RepositoryRuleRequiredDeployments); + writer.WriteObjectValue(null, RepositoryRuleRequiredDeployments); } else if(RepositoryRuleRequiredLinearHistory != null) { - writer.WriteObjectValue(null, RepositoryRuleRequiredLinearHistory); + writer.WriteObjectValue(null, RepositoryRuleRequiredLinearHistory); } else if(RepositoryRuleRequiredSignatures != null) { - writer.WriteObjectValue(null, RepositoryRuleRequiredSignatures); + writer.WriteObjectValue(null, RepositoryRuleRequiredSignatures); } else if(RepositoryRuleRequiredStatusChecks != null) { - writer.WriteObjectValue(null, RepositoryRuleRequiredStatusChecks); + writer.WriteObjectValue(null, RepositoryRuleRequiredStatusChecks); } else if(RepositoryRuleTagNamePattern != null) { - writer.WriteObjectValue(null, RepositoryRuleTagNamePattern); + writer.WriteObjectValue(null, RepositoryRuleTagNamePattern); } else if(RepositoryRuleUpdate != null) { - writer.WriteObjectValue(null, RepositoryRuleUpdate); + writer.WriteObjectValue(null, RepositoryRuleUpdate); } else if(RepositoryRuleWorkflows != null) { - writer.WriteObjectValue(null, RepositoryRuleWorkflows); + writer.WriteObjectValue(null, RepositoryRuleWorkflows); } } } diff --git a/src/GitHub/Models/RepositoryRuleBranchNamePattern.cs b/src/GitHub/Models/RepositoryRuleBranchNamePattern.cs index a9fc52df..a4dd8ff4 100644 --- a/src/GitHub/Models/RepositoryRuleBranchNamePattern.cs +++ b/src/GitHub/Models/RepositoryRuleBranchNamePattern.cs @@ -1,29 +1,31 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Parameters to be used for the branch_name_pattern rule /// - public class RepositoryRuleBranchNamePattern : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleBranchNamePattern : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The parameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryRuleBranchNamePattern_parameters? Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleBranchNamePattern_parameters? Parameters { get; set; } #nullable restore #else - public RepositoryRuleBranchNamePattern_parameters Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleBranchNamePattern_parameters Parameters { get; set; } #endif /// The type property - public RepositoryRuleBranchNamePattern_type? Type { get; set; } + public global::GitHub.Models.RepositoryRuleBranchNamePattern_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleBranchNamePattern() { @@ -32,12 +34,12 @@ public RepositoryRuleBranchNamePattern() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleBranchNamePattern CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleBranchNamePattern CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleBranchNamePattern(); + return new global::GitHub.Models.RepositoryRuleBranchNamePattern(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"parameters", n => { Parameters = n.GetObjectValue(RepositoryRuleBranchNamePattern_parameters.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "parameters", n => { Parameters = n.GetObjectValue(global::GitHub.Models.RepositoryRuleBranchNamePattern_parameters.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -58,8 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("parameters", Parameters); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRuleBranchNamePattern_parameters.cs b/src/GitHub/Models/RepositoryRuleBranchNamePattern_parameters.cs index beda52e6..e41287c5 100644 --- a/src/GitHub/Models/RepositoryRuleBranchNamePattern_parameters.cs +++ b/src/GitHub/Models/RepositoryRuleBranchNamePattern_parameters.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryRuleBranchNamePattern_parameters : IAdditionalDataHolder, IParsable + public partial class RepositoryRuleBranchNamePattern_parameters : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class RepositoryRuleBranchNamePattern_parameters : IAdditionalDataHolder, /// If true, the rule will fail if the pattern matches. public bool? Negate { get; set; } /// The operator to use for matching. - public RepositoryRuleBranchNamePattern_parameters_operator? Operator { get; set; } + public global::GitHub.Models.RepositoryRuleBranchNamePattern_parameters_operator? Operator { get; set; } /// The pattern to match with. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -32,7 +34,7 @@ public class RepositoryRuleBranchNamePattern_parameters : IAdditionalDataHolder, public string Pattern { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleBranchNamePattern_parameters() { @@ -41,12 +43,12 @@ public RepositoryRuleBranchNamePattern_parameters() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleBranchNamePattern_parameters CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleBranchNamePattern_parameters CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleBranchNamePattern_parameters(); + return new global::GitHub.Models.RepositoryRuleBranchNamePattern_parameters(); } /// /// The deserialization information for the current model @@ -56,10 +58,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, - {"negate", n => { Negate = n.GetBoolValue(); } }, - {"operator", n => { Operator = n.GetEnumValue(); } }, - {"pattern", n => { Pattern = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "negate", n => { Negate = n.GetBoolValue(); } }, + { "operator", n => { Operator = n.GetEnumValue(); } }, + { "pattern", n => { Pattern = n.GetStringValue(); } }, }; } /// @@ -71,7 +73,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); writer.WriteBoolValue("negate", Negate); - writer.WriteEnumValue("operator", Operator); + writer.WriteEnumValue("operator", Operator); writer.WriteStringValue("pattern", Pattern); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/RepositoryRuleBranchNamePattern_parameters_operator.cs b/src/GitHub/Models/RepositoryRuleBranchNamePattern_parameters_operator.cs index 5dc44739..2ecf08a2 100644 --- a/src/GitHub/Models/RepositoryRuleBranchNamePattern_parameters_operator.cs +++ b/src/GitHub/Models/RepositoryRuleBranchNamePattern_parameters_operator.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The operator to use for matching. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryRuleBranchNamePattern_parameters_operator { [EnumMember(Value = "starts_with")] diff --git a/src/GitHub/Models/RepositoryRuleBranchNamePattern_type.cs b/src/GitHub/Models/RepositoryRuleBranchNamePattern_type.cs index 9dbd28ae..6036a25b 100644 --- a/src/GitHub/Models/RepositoryRuleBranchNamePattern_type.cs +++ b/src/GitHub/Models/RepositoryRuleBranchNamePattern_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum RepositoryRuleBranchNamePattern_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/RepositoryRuleCodeScanning.cs b/src/GitHub/Models/RepositoryRuleCodeScanning.cs index 6042e4ec..4d80dfe5 100644 --- a/src/GitHub/Models/RepositoryRuleCodeScanning.cs +++ b/src/GitHub/Models/RepositoryRuleCodeScanning.cs @@ -1,29 +1,31 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated. /// - public class RepositoryRuleCodeScanning : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleCodeScanning : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The parameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryRuleCodeScanning_parameters? Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleCodeScanning_parameters? Parameters { get; set; } #nullable restore #else - public RepositoryRuleCodeScanning_parameters Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleCodeScanning_parameters Parameters { get; set; } #endif /// The type property - public RepositoryRuleCodeScanning_type? Type { get; set; } + public global::GitHub.Models.RepositoryRuleCodeScanning_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleCodeScanning() { @@ -32,12 +34,12 @@ public RepositoryRuleCodeScanning() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleCodeScanning CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleCodeScanning CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleCodeScanning(); + return new global::GitHub.Models.RepositoryRuleCodeScanning(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"parameters", n => { Parameters = n.GetObjectValue(RepositoryRuleCodeScanning_parameters.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "parameters", n => { Parameters = n.GetObjectValue(global::GitHub.Models.RepositoryRuleCodeScanning_parameters.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -58,8 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("parameters", Parameters); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRuleCodeScanning_parameters.cs b/src/GitHub/Models/RepositoryRuleCodeScanning_parameters.cs index b83d96ed..3be6640f 100644 --- a/src/GitHub/Models/RepositoryRuleCodeScanning_parameters.cs +++ b/src/GitHub/Models/RepositoryRuleCodeScanning_parameters.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryRuleCodeScanning_parameters : IAdditionalDataHolder, IParsable + public partial class RepositoryRuleCodeScanning_parameters : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,13 +16,13 @@ public class RepositoryRuleCodeScanning_parameters : IAdditionalDataHolder, IPar /// Tools that must provide code scanning results for this rule to pass. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? CodeScanningTools { get; set; } + public List? CodeScanningTools { get; set; } #nullable restore #else - public List CodeScanningTools { get; set; } + public List CodeScanningTools { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleCodeScanning_parameters() { @@ -29,12 +31,12 @@ public RepositoryRuleCodeScanning_parameters() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleCodeScanning_parameters CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleCodeScanning_parameters CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleCodeScanning_parameters(); + return new global::GitHub.Models.RepositoryRuleCodeScanning_parameters(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code_scanning_tools", n => { CodeScanningTools = n.GetCollectionOfObjectValues(RepositoryRuleParamsCodeScanningTool.CreateFromDiscriminatorValue)?.ToList(); } }, + { "code_scanning_tools", n => { CodeScanningTools = n.GetCollectionOfObjectValues(global::GitHub.Models.RepositoryRuleParamsCodeScanningTool.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -54,7 +56,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("code_scanning_tools", CodeScanningTools); + writer.WriteCollectionOfObjectValues("code_scanning_tools", CodeScanningTools); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRuleCodeScanning_type.cs b/src/GitHub/Models/RepositoryRuleCodeScanning_type.cs index 5ee516d9..c2b3b32c 100644 --- a/src/GitHub/Models/RepositoryRuleCodeScanning_type.cs +++ b/src/GitHub/Models/RepositoryRuleCodeScanning_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum RepositoryRuleCodeScanning_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/RepositoryRuleCommitAuthorEmailPattern.cs b/src/GitHub/Models/RepositoryRuleCommitAuthorEmailPattern.cs index 1c212d76..ed6a15cb 100644 --- a/src/GitHub/Models/RepositoryRuleCommitAuthorEmailPattern.cs +++ b/src/GitHub/Models/RepositoryRuleCommitAuthorEmailPattern.cs @@ -1,29 +1,31 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Parameters to be used for the commit_author_email_pattern rule /// - public class RepositoryRuleCommitAuthorEmailPattern : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleCommitAuthorEmailPattern : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The parameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryRuleCommitAuthorEmailPattern_parameters? Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern_parameters? Parameters { get; set; } #nullable restore #else - public RepositoryRuleCommitAuthorEmailPattern_parameters Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern_parameters Parameters { get; set; } #endif /// The type property - public RepositoryRuleCommitAuthorEmailPattern_type? Type { get; set; } + public global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleCommitAuthorEmailPattern() { @@ -32,12 +34,12 @@ public RepositoryRuleCommitAuthorEmailPattern() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleCommitAuthorEmailPattern CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleCommitAuthorEmailPattern(); + return new global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"parameters", n => { Parameters = n.GetObjectValue(RepositoryRuleCommitAuthorEmailPattern_parameters.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "parameters", n => { Parameters = n.GetObjectValue(global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern_parameters.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -58,8 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("parameters", Parameters); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRuleCommitAuthorEmailPattern_parameters.cs b/src/GitHub/Models/RepositoryRuleCommitAuthorEmailPattern_parameters.cs index c3004fe0..12230886 100644 --- a/src/GitHub/Models/RepositoryRuleCommitAuthorEmailPattern_parameters.cs +++ b/src/GitHub/Models/RepositoryRuleCommitAuthorEmailPattern_parameters.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryRuleCommitAuthorEmailPattern_parameters : IAdditionalDataHolder, IParsable + public partial class RepositoryRuleCommitAuthorEmailPattern_parameters : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class RepositoryRuleCommitAuthorEmailPattern_parameters : IAdditionalData /// If true, the rule will fail if the pattern matches. public bool? Negate { get; set; } /// The operator to use for matching. - public RepositoryRuleCommitAuthorEmailPattern_parameters_operator? Operator { get; set; } + public global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern_parameters_operator? Operator { get; set; } /// The pattern to match with. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -32,7 +34,7 @@ public class RepositoryRuleCommitAuthorEmailPattern_parameters : IAdditionalData public string Pattern { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleCommitAuthorEmailPattern_parameters() { @@ -41,12 +43,12 @@ public RepositoryRuleCommitAuthorEmailPattern_parameters() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleCommitAuthorEmailPattern_parameters CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern_parameters CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleCommitAuthorEmailPattern_parameters(); + return new global::GitHub.Models.RepositoryRuleCommitAuthorEmailPattern_parameters(); } /// /// The deserialization information for the current model @@ -56,10 +58,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, - {"negate", n => { Negate = n.GetBoolValue(); } }, - {"operator", n => { Operator = n.GetEnumValue(); } }, - {"pattern", n => { Pattern = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "negate", n => { Negate = n.GetBoolValue(); } }, + { "operator", n => { Operator = n.GetEnumValue(); } }, + { "pattern", n => { Pattern = n.GetStringValue(); } }, }; } /// @@ -71,7 +73,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); writer.WriteBoolValue("negate", Negate); - writer.WriteEnumValue("operator", Operator); + writer.WriteEnumValue("operator", Operator); writer.WriteStringValue("pattern", Pattern); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/RepositoryRuleCommitAuthorEmailPattern_parameters_operator.cs b/src/GitHub/Models/RepositoryRuleCommitAuthorEmailPattern_parameters_operator.cs index 71c1ea45..77f51e0c 100644 --- a/src/GitHub/Models/RepositoryRuleCommitAuthorEmailPattern_parameters_operator.cs +++ b/src/GitHub/Models/RepositoryRuleCommitAuthorEmailPattern_parameters_operator.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The operator to use for matching. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryRuleCommitAuthorEmailPattern_parameters_operator { [EnumMember(Value = "starts_with")] diff --git a/src/GitHub/Models/RepositoryRuleCommitAuthorEmailPattern_type.cs b/src/GitHub/Models/RepositoryRuleCommitAuthorEmailPattern_type.cs index 441f09f0..9d0fa0e3 100644 --- a/src/GitHub/Models/RepositoryRuleCommitAuthorEmailPattern_type.cs +++ b/src/GitHub/Models/RepositoryRuleCommitAuthorEmailPattern_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum RepositoryRuleCommitAuthorEmailPattern_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/RepositoryRuleCommitMessagePattern.cs b/src/GitHub/Models/RepositoryRuleCommitMessagePattern.cs index afbcf3be..529ade4e 100644 --- a/src/GitHub/Models/RepositoryRuleCommitMessagePattern.cs +++ b/src/GitHub/Models/RepositoryRuleCommitMessagePattern.cs @@ -1,29 +1,31 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Parameters to be used for the commit_message_pattern rule /// - public class RepositoryRuleCommitMessagePattern : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleCommitMessagePattern : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The parameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryRuleCommitMessagePattern_parameters? Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleCommitMessagePattern_parameters? Parameters { get; set; } #nullable restore #else - public RepositoryRuleCommitMessagePattern_parameters Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleCommitMessagePattern_parameters Parameters { get; set; } #endif /// The type property - public RepositoryRuleCommitMessagePattern_type? Type { get; set; } + public global::GitHub.Models.RepositoryRuleCommitMessagePattern_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleCommitMessagePattern() { @@ -32,12 +34,12 @@ public RepositoryRuleCommitMessagePattern() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleCommitMessagePattern CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleCommitMessagePattern CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleCommitMessagePattern(); + return new global::GitHub.Models.RepositoryRuleCommitMessagePattern(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"parameters", n => { Parameters = n.GetObjectValue(RepositoryRuleCommitMessagePattern_parameters.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "parameters", n => { Parameters = n.GetObjectValue(global::GitHub.Models.RepositoryRuleCommitMessagePattern_parameters.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -58,8 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("parameters", Parameters); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRuleCommitMessagePattern_parameters.cs b/src/GitHub/Models/RepositoryRuleCommitMessagePattern_parameters.cs index f79a4bfd..ee45728b 100644 --- a/src/GitHub/Models/RepositoryRuleCommitMessagePattern_parameters.cs +++ b/src/GitHub/Models/RepositoryRuleCommitMessagePattern_parameters.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryRuleCommitMessagePattern_parameters : IAdditionalDataHolder, IParsable + public partial class RepositoryRuleCommitMessagePattern_parameters : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class RepositoryRuleCommitMessagePattern_parameters : IAdditionalDataHold /// If true, the rule will fail if the pattern matches. public bool? Negate { get; set; } /// The operator to use for matching. - public RepositoryRuleCommitMessagePattern_parameters_operator? Operator { get; set; } + public global::GitHub.Models.RepositoryRuleCommitMessagePattern_parameters_operator? Operator { get; set; } /// The pattern to match with. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -32,7 +34,7 @@ public class RepositoryRuleCommitMessagePattern_parameters : IAdditionalDataHold public string Pattern { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleCommitMessagePattern_parameters() { @@ -41,12 +43,12 @@ public RepositoryRuleCommitMessagePattern_parameters() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleCommitMessagePattern_parameters CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleCommitMessagePattern_parameters CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleCommitMessagePattern_parameters(); + return new global::GitHub.Models.RepositoryRuleCommitMessagePattern_parameters(); } /// /// The deserialization information for the current model @@ -56,10 +58,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, - {"negate", n => { Negate = n.GetBoolValue(); } }, - {"operator", n => { Operator = n.GetEnumValue(); } }, - {"pattern", n => { Pattern = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "negate", n => { Negate = n.GetBoolValue(); } }, + { "operator", n => { Operator = n.GetEnumValue(); } }, + { "pattern", n => { Pattern = n.GetStringValue(); } }, }; } /// @@ -71,7 +73,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); writer.WriteBoolValue("negate", Negate); - writer.WriteEnumValue("operator", Operator); + writer.WriteEnumValue("operator", Operator); writer.WriteStringValue("pattern", Pattern); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/RepositoryRuleCommitMessagePattern_parameters_operator.cs b/src/GitHub/Models/RepositoryRuleCommitMessagePattern_parameters_operator.cs index 665fb5af..3a11e382 100644 --- a/src/GitHub/Models/RepositoryRuleCommitMessagePattern_parameters_operator.cs +++ b/src/GitHub/Models/RepositoryRuleCommitMessagePattern_parameters_operator.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The operator to use for matching. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryRuleCommitMessagePattern_parameters_operator { [EnumMember(Value = "starts_with")] diff --git a/src/GitHub/Models/RepositoryRuleCommitMessagePattern_type.cs b/src/GitHub/Models/RepositoryRuleCommitMessagePattern_type.cs index 858bcf33..5bb69e82 100644 --- a/src/GitHub/Models/RepositoryRuleCommitMessagePattern_type.cs +++ b/src/GitHub/Models/RepositoryRuleCommitMessagePattern_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum RepositoryRuleCommitMessagePattern_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/RepositoryRuleCommitterEmailPattern.cs b/src/GitHub/Models/RepositoryRuleCommitterEmailPattern.cs index cb80fae2..1311c7e1 100644 --- a/src/GitHub/Models/RepositoryRuleCommitterEmailPattern.cs +++ b/src/GitHub/Models/RepositoryRuleCommitterEmailPattern.cs @@ -1,29 +1,31 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Parameters to be used for the committer_email_pattern rule /// - public class RepositoryRuleCommitterEmailPattern : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleCommitterEmailPattern : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The parameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryRuleCommitterEmailPattern_parameters? Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleCommitterEmailPattern_parameters? Parameters { get; set; } #nullable restore #else - public RepositoryRuleCommitterEmailPattern_parameters Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleCommitterEmailPattern_parameters Parameters { get; set; } #endif /// The type property - public RepositoryRuleCommitterEmailPattern_type? Type { get; set; } + public global::GitHub.Models.RepositoryRuleCommitterEmailPattern_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleCommitterEmailPattern() { @@ -32,12 +34,12 @@ public RepositoryRuleCommitterEmailPattern() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleCommitterEmailPattern CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleCommitterEmailPattern CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleCommitterEmailPattern(); + return new global::GitHub.Models.RepositoryRuleCommitterEmailPattern(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"parameters", n => { Parameters = n.GetObjectValue(RepositoryRuleCommitterEmailPattern_parameters.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "parameters", n => { Parameters = n.GetObjectValue(global::GitHub.Models.RepositoryRuleCommitterEmailPattern_parameters.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -58,8 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("parameters", Parameters); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRuleCommitterEmailPattern_parameters.cs b/src/GitHub/Models/RepositoryRuleCommitterEmailPattern_parameters.cs index 8cc5636b..6664be16 100644 --- a/src/GitHub/Models/RepositoryRuleCommitterEmailPattern_parameters.cs +++ b/src/GitHub/Models/RepositoryRuleCommitterEmailPattern_parameters.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryRuleCommitterEmailPattern_parameters : IAdditionalDataHolder, IParsable + public partial class RepositoryRuleCommitterEmailPattern_parameters : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class RepositoryRuleCommitterEmailPattern_parameters : IAdditionalDataHol /// If true, the rule will fail if the pattern matches. public bool? Negate { get; set; } /// The operator to use for matching. - public RepositoryRuleCommitterEmailPattern_parameters_operator? Operator { get; set; } + public global::GitHub.Models.RepositoryRuleCommitterEmailPattern_parameters_operator? Operator { get; set; } /// The pattern to match with. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -32,7 +34,7 @@ public class RepositoryRuleCommitterEmailPattern_parameters : IAdditionalDataHol public string Pattern { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleCommitterEmailPattern_parameters() { @@ -41,12 +43,12 @@ public RepositoryRuleCommitterEmailPattern_parameters() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleCommitterEmailPattern_parameters CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleCommitterEmailPattern_parameters CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleCommitterEmailPattern_parameters(); + return new global::GitHub.Models.RepositoryRuleCommitterEmailPattern_parameters(); } /// /// The deserialization information for the current model @@ -56,10 +58,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, - {"negate", n => { Negate = n.GetBoolValue(); } }, - {"operator", n => { Operator = n.GetEnumValue(); } }, - {"pattern", n => { Pattern = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "negate", n => { Negate = n.GetBoolValue(); } }, + { "operator", n => { Operator = n.GetEnumValue(); } }, + { "pattern", n => { Pattern = n.GetStringValue(); } }, }; } /// @@ -71,7 +73,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); writer.WriteBoolValue("negate", Negate); - writer.WriteEnumValue("operator", Operator); + writer.WriteEnumValue("operator", Operator); writer.WriteStringValue("pattern", Pattern); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/RepositoryRuleCommitterEmailPattern_parameters_operator.cs b/src/GitHub/Models/RepositoryRuleCommitterEmailPattern_parameters_operator.cs index 4df53535..c57bb6ca 100644 --- a/src/GitHub/Models/RepositoryRuleCommitterEmailPattern_parameters_operator.cs +++ b/src/GitHub/Models/RepositoryRuleCommitterEmailPattern_parameters_operator.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The operator to use for matching. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryRuleCommitterEmailPattern_parameters_operator { [EnumMember(Value = "starts_with")] diff --git a/src/GitHub/Models/RepositoryRuleCommitterEmailPattern_type.cs b/src/GitHub/Models/RepositoryRuleCommitterEmailPattern_type.cs index dfb66fb7..97961586 100644 --- a/src/GitHub/Models/RepositoryRuleCommitterEmailPattern_type.cs +++ b/src/GitHub/Models/RepositoryRuleCommitterEmailPattern_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum RepositoryRuleCommitterEmailPattern_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/RepositoryRuleCreation.cs b/src/GitHub/Models/RepositoryRuleCreation.cs index a9967147..14636ce0 100644 --- a/src/GitHub/Models/RepositoryRuleCreation.cs +++ b/src/GitHub/Models/RepositoryRuleCreation.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Only allow users with bypass permission to create matching refs. /// - public class RepositoryRuleCreation : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleCreation : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The type property - public RepositoryRuleCreation_type? Type { get; set; } + public global::GitHub.Models.RepositoryRuleCreation_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleCreation() { @@ -24,12 +26,12 @@ public RepositoryRuleCreation() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleCreation CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleCreation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleCreation(); + return new global::GitHub.Models.RepositoryRuleCreation(); } /// /// The deserialization information for the current model @@ -39,7 +41,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"type", n => { Type = n.GetEnumValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -49,7 +51,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("type", Type); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRuleCreation_type.cs b/src/GitHub/Models/RepositoryRuleCreation_type.cs index 7bb4f411..a2439a52 100644 --- a/src/GitHub/Models/RepositoryRuleCreation_type.cs +++ b/src/GitHub/Models/RepositoryRuleCreation_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum RepositoryRuleCreation_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/RepositoryRuleDeletion.cs b/src/GitHub/Models/RepositoryRuleDeletion.cs index 833d6952..d8361097 100644 --- a/src/GitHub/Models/RepositoryRuleDeletion.cs +++ b/src/GitHub/Models/RepositoryRuleDeletion.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Only allow users with bypass permissions to delete matching refs. /// - public class RepositoryRuleDeletion : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleDeletion : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The type property - public RepositoryRuleDeletion_type? Type { get; set; } + public global::GitHub.Models.RepositoryRuleDeletion_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleDeletion() { @@ -24,12 +26,12 @@ public RepositoryRuleDeletion() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleDeletion CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleDeletion CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleDeletion(); + return new global::GitHub.Models.RepositoryRuleDeletion(); } /// /// The deserialization information for the current model @@ -39,7 +41,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"type", n => { Type = n.GetEnumValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -49,7 +51,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("type", Type); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRuleDeletion_type.cs b/src/GitHub/Models/RepositoryRuleDeletion_type.cs index 4d6220f5..ec3ffa6d 100644 --- a/src/GitHub/Models/RepositoryRuleDeletion_type.cs +++ b/src/GitHub/Models/RepositoryRuleDeletion_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum RepositoryRuleDeletion_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/RepositoryRuleDetailed.cs b/src/GitHub/Models/RepositoryRuleDetailed.cs index 1e4bf246..779e7a19 100644 --- a/src/GitHub/Models/RepositoryRuleDetailed.cs +++ b/src/GitHub/Models/RepositoryRuleDetailed.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A repository rule with ruleset details. /// - public class RepositoryRuleDetailed : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleDetailed : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleDetailed() { @@ -22,12 +24,12 @@ public RepositoryRuleDetailed() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleDetailed CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleDetailed CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleDetailed(); + return new global::GitHub.Models.RepositoryRuleDetailed(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/RepositoryRuleEnforcement.cs b/src/GitHub/Models/RepositoryRuleEnforcement.cs index 5d1a8460..5d40a695 100644 --- a/src/GitHub/Models/RepositoryRuleEnforcement.cs +++ b/src/GitHub/Models/RepositoryRuleEnforcement.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryRuleEnforcement { [EnumMember(Value = "disabled")] diff --git a/src/GitHub/Models/File_path_restriction.cs b/src/GitHub/Models/RepositoryRuleMember1.cs similarity index 58% rename from src/GitHub/Models/File_path_restriction.cs rename to src/GitHub/Models/RepositoryRuleMember1.cs index f862f22c..8537b655 100644 --- a/src/GitHub/Models/File_path_restriction.cs +++ b/src/GitHub/Models/RepositoryRuleMember1.cs @@ -1,43 +1,45 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// > [!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. /// - public class File_path_restriction : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleMember1 : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The parameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public File_path_restriction_parameters? Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleMember1_parameters? Parameters { get; set; } #nullable restore #else - public File_path_restriction_parameters Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleMember1_parameters Parameters { get; set; } #endif /// The type property - public File_path_restriction_type? Type { get; set; } + public global::GitHub.Models.RepositoryRuleMember1_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public File_path_restriction() + public RepositoryRuleMember1() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static File_path_restriction CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleMember1 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new File_path_restriction(); + return new global::GitHub.Models.RepositoryRuleMember1(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"parameters", n => { Parameters = n.GetObjectValue(File_path_restriction_parameters.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "parameters", n => { Parameters = n.GetObjectValue(global::GitHub.Models.RepositoryRuleMember1_parameters.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -58,8 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("parameters", Parameters); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/File_path_restriction_parameters.cs b/src/GitHub/Models/RepositoryRuleMember1_parameters.cs similarity index 71% rename from src/GitHub/Models/File_path_restriction_parameters.cs rename to src/GitHub/Models/RepositoryRuleMember1_parameters.cs index c5a8882b..46c7d7f7 100644 --- a/src/GitHub/Models/File_path_restriction_parameters.cs +++ b/src/GitHub/Models/RepositoryRuleMember1_parameters.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class File_path_restriction_parameters : IAdditionalDataHolder, IParsable + public partial class RepositoryRuleMember1_parameters : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,21 +22,21 @@ public class File_path_restriction_parameters : IAdditionalDataHolder, IParsable public List RestrictedFilePaths { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public File_path_restriction_parameters() + public RepositoryRuleMember1_parameters() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static File_path_restriction_parameters CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleMember1_parameters CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new File_path_restriction_parameters(); + return new global::GitHub.Models.RepositoryRuleMember1_parameters(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"restricted_file_paths", n => { RestrictedFilePaths = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "restricted_file_paths", n => { RestrictedFilePaths = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Models/File_path_restriction_type.cs b/src/GitHub/Models/RepositoryRuleMember1_type.cs similarity index 69% rename from src/GitHub/Models/File_path_restriction_type.cs rename to src/GitHub/Models/RepositoryRuleMember1_type.cs index 772fed36..9781c1ec 100644 --- a/src/GitHub/Models/File_path_restriction_type.cs +++ b/src/GitHub/Models/RepositoryRuleMember1_type.cs @@ -1,9 +1,11 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public enum File_path_restriction_type + public enum RepositoryRuleMember1_type #pragma warning restore CS1591 { [EnumMember(Value = "file_path_restriction")] diff --git a/src/GitHub/Models/Max_file_path_length.cs b/src/GitHub/Models/RepositoryRuleMember2.cs similarity index 58% rename from src/GitHub/Models/Max_file_path_length.cs rename to src/GitHub/Models/RepositoryRuleMember2.cs index 0cd06625..0a7994b7 100644 --- a/src/GitHub/Models/Max_file_path_length.cs +++ b/src/GitHub/Models/RepositoryRuleMember2.cs @@ -1,43 +1,45 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// > [!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. /// - public class Max_file_path_length : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleMember2 : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The parameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Max_file_path_length_parameters? Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleMember2_parameters? Parameters { get; set; } #nullable restore #else - public Max_file_path_length_parameters Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleMember2_parameters Parameters { get; set; } #endif /// The type property - public Max_file_path_length_type? Type { get; set; } + public global::GitHub.Models.RepositoryRuleMember2_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public Max_file_path_length() + public RepositoryRuleMember2() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Max_file_path_length CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleMember2 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Max_file_path_length(); + return new global::GitHub.Models.RepositoryRuleMember2(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"parameters", n => { Parameters = n.GetObjectValue(Max_file_path_length_parameters.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "parameters", n => { Parameters = n.GetObjectValue(global::GitHub.Models.RepositoryRuleMember2_parameters.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -58,8 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("parameters", Parameters); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/Max_file_path_length_parameters.cs b/src/GitHub/Models/RepositoryRuleMember2_parameters.cs similarity index 70% rename from src/GitHub/Models/Max_file_path_length_parameters.cs rename to src/GitHub/Models/RepositoryRuleMember2_parameters.cs index 6f0d5c57..3c4864a8 100644 --- a/src/GitHub/Models/Max_file_path_length_parameters.cs +++ b/src/GitHub/Models/RepositoryRuleMember2_parameters.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Max_file_path_length_parameters : IAdditionalDataHolder, IParsable + public partial class RepositoryRuleMember2_parameters : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,21 +16,21 @@ public class Max_file_path_length_parameters : IAdditionalDataHolder, IParsable /// The maximum amount of characters allowed in file paths public int? MaxFilePathLength { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public Max_file_path_length_parameters() + public RepositoryRuleMember2_parameters() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Max_file_path_length_parameters CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleMember2_parameters CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Max_file_path_length_parameters(); + return new global::GitHub.Models.RepositoryRuleMember2_parameters(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"max_file_path_length", n => { MaxFilePathLength = n.GetIntValue(); } }, + { "max_file_path_length", n => { MaxFilePathLength = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/Max_file_path_length_type.cs b/src/GitHub/Models/RepositoryRuleMember2_type.cs similarity index 69% rename from src/GitHub/Models/Max_file_path_length_type.cs rename to src/GitHub/Models/RepositoryRuleMember2_type.cs index 227181ac..56760e91 100644 --- a/src/GitHub/Models/Max_file_path_length_type.cs +++ b/src/GitHub/Models/RepositoryRuleMember2_type.cs @@ -1,9 +1,11 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public enum Max_file_path_length_type + public enum RepositoryRuleMember2_type #pragma warning restore CS1591 { [EnumMember(Value = "max_file_path_length")] diff --git a/src/GitHub/Models/File_extension_restriction.cs b/src/GitHub/Models/RepositoryRuleMember3.cs similarity index 58% rename from src/GitHub/Models/File_extension_restriction.cs rename to src/GitHub/Models/RepositoryRuleMember3.cs index 5e88b14e..b2fc4003 100644 --- a/src/GitHub/Models/File_extension_restriction.cs +++ b/src/GitHub/Models/RepositoryRuleMember3.cs @@ -1,43 +1,45 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// > [!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. /// - public class File_extension_restriction : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleMember3 : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The parameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public File_extension_restriction_parameters? Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleMember3_parameters? Parameters { get; set; } #nullable restore #else - public File_extension_restriction_parameters Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleMember3_parameters Parameters { get; set; } #endif /// The type property - public File_extension_restriction_type? Type { get; set; } + public global::GitHub.Models.RepositoryRuleMember3_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public File_extension_restriction() + public RepositoryRuleMember3() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static File_extension_restriction CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleMember3 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new File_extension_restriction(); + return new global::GitHub.Models.RepositoryRuleMember3(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"parameters", n => { Parameters = n.GetObjectValue(File_extension_restriction_parameters.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "parameters", n => { Parameters = n.GetObjectValue(global::GitHub.Models.RepositoryRuleMember3_parameters.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -58,8 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("parameters", Parameters); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/File_extension_restriction_parameters.cs b/src/GitHub/Models/RepositoryRuleMember3_parameters.cs similarity index 71% rename from src/GitHub/Models/File_extension_restriction_parameters.cs rename to src/GitHub/Models/RepositoryRuleMember3_parameters.cs index 986c735a..7577126d 100644 --- a/src/GitHub/Models/File_extension_restriction_parameters.cs +++ b/src/GitHub/Models/RepositoryRuleMember3_parameters.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class File_extension_restriction_parameters : IAdditionalDataHolder, IParsable + public partial class RepositoryRuleMember3_parameters : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,21 +22,21 @@ public class File_extension_restriction_parameters : IAdditionalDataHolder, IPar public List RestrictedFileExtensions { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public File_extension_restriction_parameters() + public RepositoryRuleMember3_parameters() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static File_extension_restriction_parameters CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleMember3_parameters CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new File_extension_restriction_parameters(); + return new global::GitHub.Models.RepositoryRuleMember3_parameters(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"restricted_file_extensions", n => { RestrictedFileExtensions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "restricted_file_extensions", n => { RestrictedFileExtensions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Models/File_extension_restriction_type.cs b/src/GitHub/Models/RepositoryRuleMember3_type.cs similarity index 70% rename from src/GitHub/Models/File_extension_restriction_type.cs rename to src/GitHub/Models/RepositoryRuleMember3_type.cs index 526a9728..aa7ccad4 100644 --- a/src/GitHub/Models/File_extension_restriction_type.cs +++ b/src/GitHub/Models/RepositoryRuleMember3_type.cs @@ -1,9 +1,11 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public enum File_extension_restriction_type + public enum RepositoryRuleMember3_type #pragma warning restore CS1591 { [EnumMember(Value = "file_extension_restriction")] diff --git a/src/GitHub/Models/Max_file_size.cs b/src/GitHub/Models/RepositoryRuleMember4.cs similarity index 58% rename from src/GitHub/Models/Max_file_size.cs rename to src/GitHub/Models/RepositoryRuleMember4.cs index fd2a4ff7..581c4304 100644 --- a/src/GitHub/Models/Max_file_size.cs +++ b/src/GitHub/Models/RepositoryRuleMember4.cs @@ -1,43 +1,45 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// > [!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. /// - public class Max_file_size : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleMember4 : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The parameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Max_file_size_parameters? Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleMember4_parameters? Parameters { get; set; } #nullable restore #else - public Max_file_size_parameters Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleMember4_parameters Parameters { get; set; } #endif /// The type property - public Max_file_size_type? Type { get; set; } + public global::GitHub.Models.RepositoryRuleMember4_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public Max_file_size() + public RepositoryRuleMember4() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Max_file_size CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleMember4 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Max_file_size(); + return new global::GitHub.Models.RepositoryRuleMember4(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"parameters", n => { Parameters = n.GetObjectValue(Max_file_size_parameters.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "parameters", n => { Parameters = n.GetObjectValue(global::GitHub.Models.RepositoryRuleMember4_parameters.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -58,8 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("parameters", Parameters); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/Max_file_size_parameters.cs b/src/GitHub/Models/RepositoryRuleMember4_parameters.cs similarity index 71% rename from src/GitHub/Models/Max_file_size_parameters.cs rename to src/GitHub/Models/RepositoryRuleMember4_parameters.cs index d224fdf3..28029b17 100644 --- a/src/GitHub/Models/Max_file_size_parameters.cs +++ b/src/GitHub/Models/RepositoryRuleMember4_parameters.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Max_file_size_parameters : IAdditionalDataHolder, IParsable + public partial class RepositoryRuleMember4_parameters : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,21 +16,21 @@ public class Max_file_size_parameters : IAdditionalDataHolder, IParsable /// The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS). public int? MaxFileSize { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public Max_file_size_parameters() + public RepositoryRuleMember4_parameters() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Max_file_size_parameters CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleMember4_parameters CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Max_file_size_parameters(); + return new global::GitHub.Models.RepositoryRuleMember4_parameters(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"max_file_size", n => { MaxFileSize = n.GetIntValue(); } }, + { "max_file_size", n => { MaxFileSize = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/Max_file_size_type.cs b/src/GitHub/Models/RepositoryRuleMember4_type.cs similarity index 68% rename from src/GitHub/Models/Max_file_size_type.cs rename to src/GitHub/Models/RepositoryRuleMember4_type.cs index 2c7bf7e6..69102274 100644 --- a/src/GitHub/Models/Max_file_size_type.cs +++ b/src/GitHub/Models/RepositoryRuleMember4_type.cs @@ -1,9 +1,11 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public enum Max_file_size_type + public enum RepositoryRuleMember4_type #pragma warning restore CS1591 { [EnumMember(Value = "max_file_size")] diff --git a/src/GitHub/Models/RepositoryRuleMergeQueue.cs b/src/GitHub/Models/RepositoryRuleMergeQueue.cs index c61698a0..c53507a4 100644 --- a/src/GitHub/Models/RepositoryRuleMergeQueue.cs +++ b/src/GitHub/Models/RepositoryRuleMergeQueue.cs @@ -1,29 +1,31 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Merges must be performed via a merge queue. /// - public class RepositoryRuleMergeQueue : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleMergeQueue : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The parameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryRuleMergeQueue_parameters? Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleMergeQueue_parameters? Parameters { get; set; } #nullable restore #else - public RepositoryRuleMergeQueue_parameters Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleMergeQueue_parameters Parameters { get; set; } #endif /// The type property - public RepositoryRuleMergeQueue_type? Type { get; set; } + public global::GitHub.Models.RepositoryRuleMergeQueue_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleMergeQueue() { @@ -32,12 +34,12 @@ public RepositoryRuleMergeQueue() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleMergeQueue CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleMergeQueue CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleMergeQueue(); + return new global::GitHub.Models.RepositoryRuleMergeQueue(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"parameters", n => { Parameters = n.GetObjectValue(RepositoryRuleMergeQueue_parameters.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "parameters", n => { Parameters = n.GetObjectValue(global::GitHub.Models.RepositoryRuleMergeQueue_parameters.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -58,8 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("parameters", Parameters); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRuleMergeQueue_parameters.cs b/src/GitHub/Models/RepositoryRuleMergeQueue_parameters.cs index ff3c11b1..f62792b7 100644 --- a/src/GitHub/Models/RepositoryRuleMergeQueue_parameters.cs +++ b/src/GitHub/Models/RepositoryRuleMergeQueue_parameters.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryRuleMergeQueue_parameters : IAdditionalDataHolder, IParsable + public partial class RepositoryRuleMergeQueue_parameters : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,19 +16,19 @@ public class RepositoryRuleMergeQueue_parameters : IAdditionalDataHolder, IParsa /// Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed public int? CheckResponseTimeoutMinutes { get; set; } /// When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge. - public RepositoryRuleMergeQueue_parameters_grouping_strategy? GroupingStrategy { get; set; } + public global::GitHub.Models.RepositoryRuleMergeQueue_parameters_grouping_strategy? GroupingStrategy { get; set; } /// Limit the number of queued pull requests requesting checks and workflow runs at the same time. public int? MaxEntriesToBuild { get; set; } /// The maximum number of PRs that will be merged together in a group. public int? MaxEntriesToMerge { get; set; } /// Method to use when merging changes from queued pull requests. - public RepositoryRuleMergeQueue_parameters_merge_method? MergeMethod { get; set; } + public global::GitHub.Models.RepositoryRuleMergeQueue_parameters_merge_method? MergeMethod { get; set; } /// The minimum number of PRs that will be merged together in a group. public int? MinEntriesToMerge { get; set; } /// The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged. public int? MinEntriesToMergeWaitMinutes { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleMergeQueue_parameters() { @@ -35,12 +37,12 @@ public RepositoryRuleMergeQueue_parameters() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleMergeQueue_parameters CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleMergeQueue_parameters CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleMergeQueue_parameters(); + return new global::GitHub.Models.RepositoryRuleMergeQueue_parameters(); } /// /// The deserialization information for the current model @@ -50,13 +52,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"check_response_timeout_minutes", n => { CheckResponseTimeoutMinutes = n.GetIntValue(); } }, - {"grouping_strategy", n => { GroupingStrategy = n.GetEnumValue(); } }, - {"max_entries_to_build", n => { MaxEntriesToBuild = n.GetIntValue(); } }, - {"max_entries_to_merge", n => { MaxEntriesToMerge = n.GetIntValue(); } }, - {"merge_method", n => { MergeMethod = n.GetEnumValue(); } }, - {"min_entries_to_merge", n => { MinEntriesToMerge = n.GetIntValue(); } }, - {"min_entries_to_merge_wait_minutes", n => { MinEntriesToMergeWaitMinutes = n.GetIntValue(); } }, + { "check_response_timeout_minutes", n => { CheckResponseTimeoutMinutes = n.GetIntValue(); } }, + { "grouping_strategy", n => { GroupingStrategy = n.GetEnumValue(); } }, + { "max_entries_to_build", n => { MaxEntriesToBuild = n.GetIntValue(); } }, + { "max_entries_to_merge", n => { MaxEntriesToMerge = n.GetIntValue(); } }, + { "merge_method", n => { MergeMethod = n.GetEnumValue(); } }, + { "min_entries_to_merge", n => { MinEntriesToMerge = n.GetIntValue(); } }, + { "min_entries_to_merge_wait_minutes", n => { MinEntriesToMergeWaitMinutes = n.GetIntValue(); } }, }; } /// @@ -67,10 +69,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("check_response_timeout_minutes", CheckResponseTimeoutMinutes); - writer.WriteEnumValue("grouping_strategy", GroupingStrategy); + writer.WriteEnumValue("grouping_strategy", GroupingStrategy); writer.WriteIntValue("max_entries_to_build", MaxEntriesToBuild); writer.WriteIntValue("max_entries_to_merge", MaxEntriesToMerge); - writer.WriteEnumValue("merge_method", MergeMethod); + writer.WriteEnumValue("merge_method", MergeMethod); writer.WriteIntValue("min_entries_to_merge", MinEntriesToMerge); writer.WriteIntValue("min_entries_to_merge_wait_minutes", MinEntriesToMergeWaitMinutes); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/RepositoryRuleMergeQueue_parameters_grouping_strategy.cs b/src/GitHub/Models/RepositoryRuleMergeQueue_parameters_grouping_strategy.cs index 3d083745..8b9876c5 100644 --- a/src/GitHub/Models/RepositoryRuleMergeQueue_parameters_grouping_strategy.cs +++ b/src/GitHub/Models/RepositoryRuleMergeQueue_parameters_grouping_strategy.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryRuleMergeQueue_parameters_grouping_strategy { [EnumMember(Value = "ALLGREEN")] diff --git a/src/GitHub/Models/RepositoryRuleMergeQueue_parameters_merge_method.cs b/src/GitHub/Models/RepositoryRuleMergeQueue_parameters_merge_method.cs index d26a563e..dd958c05 100644 --- a/src/GitHub/Models/RepositoryRuleMergeQueue_parameters_merge_method.cs +++ b/src/GitHub/Models/RepositoryRuleMergeQueue_parameters_merge_method.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Method to use when merging changes from queued pull requests. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryRuleMergeQueue_parameters_merge_method { [EnumMember(Value = "MERGE")] diff --git a/src/GitHub/Models/RepositoryRuleMergeQueue_type.cs b/src/GitHub/Models/RepositoryRuleMergeQueue_type.cs index 7584fc91..cf133095 100644 --- a/src/GitHub/Models/RepositoryRuleMergeQueue_type.cs +++ b/src/GitHub/Models/RepositoryRuleMergeQueue_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum RepositoryRuleMergeQueue_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/RepositoryRuleNonFastForward.cs b/src/GitHub/Models/RepositoryRuleNonFastForward.cs index 2bdce100..986818b3 100644 --- a/src/GitHub/Models/RepositoryRuleNonFastForward.cs +++ b/src/GitHub/Models/RepositoryRuleNonFastForward.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Prevent users with push access from force pushing to refs. /// - public class RepositoryRuleNonFastForward : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleNonFastForward : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The type property - public RepositoryRuleNonFastForward_type? Type { get; set; } + public global::GitHub.Models.RepositoryRuleNonFastForward_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleNonFastForward() { @@ -24,12 +26,12 @@ public RepositoryRuleNonFastForward() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleNonFastForward CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleNonFastForward CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleNonFastForward(); + return new global::GitHub.Models.RepositoryRuleNonFastForward(); } /// /// The deserialization information for the current model @@ -39,7 +41,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"type", n => { Type = n.GetEnumValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -49,7 +51,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("type", Type); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRuleNonFastForward_type.cs b/src/GitHub/Models/RepositoryRuleNonFastForward_type.cs index 2b1e16fc..ab5f3122 100644 --- a/src/GitHub/Models/RepositoryRuleNonFastForward_type.cs +++ b/src/GitHub/Models/RepositoryRuleNonFastForward_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum RepositoryRuleNonFastForward_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/RepositoryRuleParamsCodeScanningTool.cs b/src/GitHub/Models/RepositoryRuleParamsCodeScanningTool.cs index 83fa995b..9929fbe4 100644 --- a/src/GitHub/Models/RepositoryRuleParamsCodeScanningTool.cs +++ b/src/GitHub/Models/RepositoryRuleParamsCodeScanningTool.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A tool that must provide code scanning results for this rule to pass. /// - public class RepositoryRuleParamsCodeScanningTool : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleParamsCodeScanningTool : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." - public RepositoryRuleParamsCodeScanningTool_alerts_threshold? AlertsThreshold { get; set; } + public global::GitHub.Models.RepositoryRuleParamsCodeScanningTool_alerts_threshold? AlertsThreshold { get; set; } /// The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." - public RepositoryRuleParamsCodeScanningTool_security_alerts_threshold? SecurityAlertsThreshold { get; set; } + public global::GitHub.Models.RepositoryRuleParamsCodeScanningTool_security_alerts_threshold? SecurityAlertsThreshold { get; set; } /// The name of a code scanning tool #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -25,7 +27,7 @@ public class RepositoryRuleParamsCodeScanningTool : IAdditionalDataHolder, IPars public string Tool { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleParamsCodeScanningTool() { @@ -34,12 +36,12 @@ public RepositoryRuleParamsCodeScanningTool() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleParamsCodeScanningTool CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleParamsCodeScanningTool CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleParamsCodeScanningTool(); + return new global::GitHub.Models.RepositoryRuleParamsCodeScanningTool(); } /// /// The deserialization information for the current model @@ -49,9 +51,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"alerts_threshold", n => { AlertsThreshold = n.GetEnumValue(); } }, - {"security_alerts_threshold", n => { SecurityAlertsThreshold = n.GetEnumValue(); } }, - {"tool", n => { Tool = n.GetStringValue(); } }, + { "alerts_threshold", n => { AlertsThreshold = n.GetEnumValue(); } }, + { "security_alerts_threshold", n => { SecurityAlertsThreshold = n.GetEnumValue(); } }, + { "tool", n => { Tool = n.GetStringValue(); } }, }; } /// @@ -61,8 +63,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("alerts_threshold", AlertsThreshold); - writer.WriteEnumValue("security_alerts_threshold", SecurityAlertsThreshold); + writer.WriteEnumValue("alerts_threshold", AlertsThreshold); + writer.WriteEnumValue("security_alerts_threshold", SecurityAlertsThreshold); writer.WriteStringValue("tool", Tool); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/RepositoryRuleParamsCodeScanningTool_alerts_threshold.cs b/src/GitHub/Models/RepositoryRuleParamsCodeScanningTool_alerts_threshold.cs index f7a6425d..037b2728 100644 --- a/src/GitHub/Models/RepositoryRuleParamsCodeScanningTool_alerts_threshold.cs +++ b/src/GitHub/Models/RepositoryRuleParamsCodeScanningTool_alerts_threshold.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryRuleParamsCodeScanningTool_alerts_threshold { [EnumMember(Value = "none")] diff --git a/src/GitHub/Models/RepositoryRuleParamsCodeScanningTool_security_alerts_threshold.cs b/src/GitHub/Models/RepositoryRuleParamsCodeScanningTool_security_alerts_threshold.cs index d7de3259..0badc33f 100644 --- a/src/GitHub/Models/RepositoryRuleParamsCodeScanningTool_security_alerts_threshold.cs +++ b/src/GitHub/Models/RepositoryRuleParamsCodeScanningTool_security_alerts_threshold.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryRuleParamsCodeScanningTool_security_alerts_threshold { [EnumMember(Value = "none")] diff --git a/src/GitHub/Models/RepositoryRuleParamsStatusCheckConfiguration.cs b/src/GitHub/Models/RepositoryRuleParamsStatusCheckConfiguration.cs index 2a6ed765..0468c6ce 100644 --- a/src/GitHub/Models/RepositoryRuleParamsStatusCheckConfiguration.cs +++ b/src/GitHub/Models/RepositoryRuleParamsStatusCheckConfiguration.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Required status check /// - public class RepositoryRuleParamsStatusCheckConfiguration : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleParamsStatusCheckConfiguration : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,7 +25,7 @@ public class RepositoryRuleParamsStatusCheckConfiguration : IAdditionalDataHolde /// The optional integration ID that this status check must originate from. public int? IntegrationId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleParamsStatusCheckConfiguration() { @@ -32,12 +34,12 @@ public RepositoryRuleParamsStatusCheckConfiguration() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleParamsStatusCheckConfiguration CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleParamsStatusCheckConfiguration CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleParamsStatusCheckConfiguration(); + return new global::GitHub.Models.RepositoryRuleParamsStatusCheckConfiguration(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"context", n => { Context = n.GetStringValue(); } }, - {"integration_id", n => { IntegrationId = n.GetIntValue(); } }, + { "context", n => { Context = n.GetStringValue(); } }, + { "integration_id", n => { IntegrationId = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/RepositoryRuleParamsWorkflowFileReference.cs b/src/GitHub/Models/RepositoryRuleParamsWorkflowFileReference.cs index 2643727d..43add576 100644 --- a/src/GitHub/Models/RepositoryRuleParamsWorkflowFileReference.cs +++ b/src/GitHub/Models/RepositoryRuleParamsWorkflowFileReference.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A workflow that must run for this rule to pass /// - public class RepositoryRuleParamsWorkflowFileReference : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleParamsWorkflowFileReference : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -39,7 +41,7 @@ public class RepositoryRuleParamsWorkflowFileReference : IAdditionalDataHolder, public string Sha { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleParamsWorkflowFileReference() { @@ -48,12 +50,12 @@ public RepositoryRuleParamsWorkflowFileReference() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleParamsWorkflowFileReference CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleParamsWorkflowFileReference CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleParamsWorkflowFileReference(); + return new global::GitHub.Models.RepositoryRuleParamsWorkflowFileReference(); } /// /// The deserialization information for the current model @@ -63,10 +65,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"path", n => { Path = n.GetStringValue(); } }, - {"ref", n => { Ref = n.GetStringValue(); } }, - {"repository_id", n => { RepositoryId = n.GetIntValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, + { "repository_id", n => { RepositoryId = n.GetIntValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/RepositoryRulePullRequest.cs b/src/GitHub/Models/RepositoryRulePullRequest.cs index 3960a0b9..d079dd7e 100644 --- a/src/GitHub/Models/RepositoryRulePullRequest.cs +++ b/src/GitHub/Models/RepositoryRulePullRequest.cs @@ -1,29 +1,31 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. /// - public class RepositoryRulePullRequest : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRulePullRequest : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The parameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryRulePullRequest_parameters? Parameters { get; set; } + public global::GitHub.Models.RepositoryRulePullRequest_parameters? Parameters { get; set; } #nullable restore #else - public RepositoryRulePullRequest_parameters Parameters { get; set; } + public global::GitHub.Models.RepositoryRulePullRequest_parameters Parameters { get; set; } #endif /// The type property - public RepositoryRulePullRequest_type? Type { get; set; } + public global::GitHub.Models.RepositoryRulePullRequest_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRulePullRequest() { @@ -32,12 +34,12 @@ public RepositoryRulePullRequest() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRulePullRequest CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRulePullRequest CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRulePullRequest(); + return new global::GitHub.Models.RepositoryRulePullRequest(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"parameters", n => { Parameters = n.GetObjectValue(RepositoryRulePullRequest_parameters.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "parameters", n => { Parameters = n.GetObjectValue(global::GitHub.Models.RepositoryRulePullRequest_parameters.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -58,8 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("parameters", Parameters); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRulePullRequest_parameters.cs b/src/GitHub/Models/RepositoryRulePullRequest_parameters.cs index 9cbf33e8..ab077ef0 100644 --- a/src/GitHub/Models/RepositoryRulePullRequest_parameters.cs +++ b/src/GitHub/Models/RepositoryRulePullRequest_parameters.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryRulePullRequest_parameters : IAdditionalDataHolder, IParsable + public partial class RepositoryRulePullRequest_parameters : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class RepositoryRulePullRequest_parameters : IAdditionalDataHolder, IPars /// Whether the most recent reviewable push must be approved by someone other than the person who pushed it. public bool? RequireLastPushApproval { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRulePullRequest_parameters() { @@ -31,12 +33,12 @@ public RepositoryRulePullRequest_parameters() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRulePullRequest_parameters CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRulePullRequest_parameters CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRulePullRequest_parameters(); + return new global::GitHub.Models.RepositoryRulePullRequest_parameters(); } /// /// The deserialization information for the current model @@ -46,11 +48,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"dismiss_stale_reviews_on_push", n => { DismissStaleReviewsOnPush = n.GetBoolValue(); } }, - {"require_code_owner_review", n => { RequireCodeOwnerReview = n.GetBoolValue(); } }, - {"require_last_push_approval", n => { RequireLastPushApproval = n.GetBoolValue(); } }, - {"required_approving_review_count", n => { RequiredApprovingReviewCount = n.GetIntValue(); } }, - {"required_review_thread_resolution", n => { RequiredReviewThreadResolution = n.GetBoolValue(); } }, + { "dismiss_stale_reviews_on_push", n => { DismissStaleReviewsOnPush = n.GetBoolValue(); } }, + { "require_code_owner_review", n => { RequireCodeOwnerReview = n.GetBoolValue(); } }, + { "require_last_push_approval", n => { RequireLastPushApproval = n.GetBoolValue(); } }, + { "required_approving_review_count", n => { RequiredApprovingReviewCount = n.GetIntValue(); } }, + { "required_review_thread_resolution", n => { RequiredReviewThreadResolution = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/RepositoryRulePullRequest_type.cs b/src/GitHub/Models/RepositoryRulePullRequest_type.cs index 71f57cea..5a1bf151 100644 --- a/src/GitHub/Models/RepositoryRulePullRequest_type.cs +++ b/src/GitHub/Models/RepositoryRulePullRequest_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum RepositoryRulePullRequest_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/RepositoryRuleRequiredDeployments.cs b/src/GitHub/Models/RepositoryRuleRequiredDeployments.cs index 9a9d6114..2318bd5f 100644 --- a/src/GitHub/Models/RepositoryRuleRequiredDeployments.cs +++ b/src/GitHub/Models/RepositoryRuleRequiredDeployments.cs @@ -1,29 +1,31 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule. /// - public class RepositoryRuleRequiredDeployments : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleRequiredDeployments : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The parameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryRuleRequiredDeployments_parameters? Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredDeployments_parameters? Parameters { get; set; } #nullable restore #else - public RepositoryRuleRequiredDeployments_parameters Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredDeployments_parameters Parameters { get; set; } #endif /// The type property - public RepositoryRuleRequiredDeployments_type? Type { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredDeployments_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleRequiredDeployments() { @@ -32,12 +34,12 @@ public RepositoryRuleRequiredDeployments() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleRequiredDeployments CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleRequiredDeployments CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleRequiredDeployments(); + return new global::GitHub.Models.RepositoryRuleRequiredDeployments(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"parameters", n => { Parameters = n.GetObjectValue(RepositoryRuleRequiredDeployments_parameters.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "parameters", n => { Parameters = n.GetObjectValue(global::GitHub.Models.RepositoryRuleRequiredDeployments_parameters.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -58,8 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("parameters", Parameters); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRuleRequiredDeployments_parameters.cs b/src/GitHub/Models/RepositoryRuleRequiredDeployments_parameters.cs index 2d244fba..e9b71cc9 100644 --- a/src/GitHub/Models/RepositoryRuleRequiredDeployments_parameters.cs +++ b/src/GitHub/Models/RepositoryRuleRequiredDeployments_parameters.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryRuleRequiredDeployments_parameters : IAdditionalDataHolder, IParsable + public partial class RepositoryRuleRequiredDeployments_parameters : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class RepositoryRuleRequiredDeployments_parameters : IAdditionalDataHolde public List RequiredDeploymentEnvironments { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleRequiredDeployments_parameters() { @@ -29,12 +31,12 @@ public RepositoryRuleRequiredDeployments_parameters() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleRequiredDeployments_parameters CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleRequiredDeployments_parameters CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleRequiredDeployments_parameters(); + return new global::GitHub.Models.RepositoryRuleRequiredDeployments_parameters(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"required_deployment_environments", n => { RequiredDeploymentEnvironments = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "required_deployment_environments", n => { RequiredDeploymentEnvironments = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Models/RepositoryRuleRequiredDeployments_type.cs b/src/GitHub/Models/RepositoryRuleRequiredDeployments_type.cs index c59e40ce..f1982a09 100644 --- a/src/GitHub/Models/RepositoryRuleRequiredDeployments_type.cs +++ b/src/GitHub/Models/RepositoryRuleRequiredDeployments_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum RepositoryRuleRequiredDeployments_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/RepositoryRuleRequiredLinearHistory.cs b/src/GitHub/Models/RepositoryRuleRequiredLinearHistory.cs index 41fe3d4d..b41cdd08 100644 --- a/src/GitHub/Models/RepositoryRuleRequiredLinearHistory.cs +++ b/src/GitHub/Models/RepositoryRuleRequiredLinearHistory.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Prevent merge commits from being pushed to matching refs. /// - public class RepositoryRuleRequiredLinearHistory : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleRequiredLinearHistory : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The type property - public RepositoryRuleRequiredLinearHistory_type? Type { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredLinearHistory_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleRequiredLinearHistory() { @@ -24,12 +26,12 @@ public RepositoryRuleRequiredLinearHistory() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleRequiredLinearHistory CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleRequiredLinearHistory CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleRequiredLinearHistory(); + return new global::GitHub.Models.RepositoryRuleRequiredLinearHistory(); } /// /// The deserialization information for the current model @@ -39,7 +41,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"type", n => { Type = n.GetEnumValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -49,7 +51,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("type", Type); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRuleRequiredLinearHistory_type.cs b/src/GitHub/Models/RepositoryRuleRequiredLinearHistory_type.cs index abcd0435..941d0acc 100644 --- a/src/GitHub/Models/RepositoryRuleRequiredLinearHistory_type.cs +++ b/src/GitHub/Models/RepositoryRuleRequiredLinearHistory_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum RepositoryRuleRequiredLinearHistory_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/RepositoryRuleRequiredSignatures.cs b/src/GitHub/Models/RepositoryRuleRequiredSignatures.cs index 0505d104..9cd10e19 100644 --- a/src/GitHub/Models/RepositoryRuleRequiredSignatures.cs +++ b/src/GitHub/Models/RepositoryRuleRequiredSignatures.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Commits pushed to matching refs must have verified signatures. /// - public class RepositoryRuleRequiredSignatures : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleRequiredSignatures : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The type property - public RepositoryRuleRequiredSignatures_type? Type { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredSignatures_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleRequiredSignatures() { @@ -24,12 +26,12 @@ public RepositoryRuleRequiredSignatures() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleRequiredSignatures CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleRequiredSignatures CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleRequiredSignatures(); + return new global::GitHub.Models.RepositoryRuleRequiredSignatures(); } /// /// The deserialization information for the current model @@ -39,7 +41,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"type", n => { Type = n.GetEnumValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -49,7 +51,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("type", Type); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRuleRequiredSignatures_type.cs b/src/GitHub/Models/RepositoryRuleRequiredSignatures_type.cs index ec049fc4..46c07f64 100644 --- a/src/GitHub/Models/RepositoryRuleRequiredSignatures_type.cs +++ b/src/GitHub/Models/RepositoryRuleRequiredSignatures_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum RepositoryRuleRequiredSignatures_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/RepositoryRuleRequiredStatusChecks.cs b/src/GitHub/Models/RepositoryRuleRequiredStatusChecks.cs index 36730f7c..c9bc3341 100644 --- a/src/GitHub/Models/RepositoryRuleRequiredStatusChecks.cs +++ b/src/GitHub/Models/RepositoryRuleRequiredStatusChecks.cs @@ -1,29 +1,31 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass. /// - public class RepositoryRuleRequiredStatusChecks : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleRequiredStatusChecks : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The parameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryRuleRequiredStatusChecks_parameters? Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredStatusChecks_parameters? Parameters { get; set; } #nullable restore #else - public RepositoryRuleRequiredStatusChecks_parameters Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredStatusChecks_parameters Parameters { get; set; } #endif /// The type property - public RepositoryRuleRequiredStatusChecks_type? Type { get; set; } + public global::GitHub.Models.RepositoryRuleRequiredStatusChecks_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleRequiredStatusChecks() { @@ -32,12 +34,12 @@ public RepositoryRuleRequiredStatusChecks() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleRequiredStatusChecks CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleRequiredStatusChecks CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleRequiredStatusChecks(); + return new global::GitHub.Models.RepositoryRuleRequiredStatusChecks(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"parameters", n => { Parameters = n.GetObjectValue(RepositoryRuleRequiredStatusChecks_parameters.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "parameters", n => { Parameters = n.GetObjectValue(global::GitHub.Models.RepositoryRuleRequiredStatusChecks_parameters.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -58,8 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("parameters", Parameters); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRuleRequiredStatusChecks_parameters.cs b/src/GitHub/Models/RepositoryRuleRequiredStatusChecks_parameters.cs index 39cc66e0..20cdba7a 100644 --- a/src/GitHub/Models/RepositoryRuleRequiredStatusChecks_parameters.cs +++ b/src/GitHub/Models/RepositoryRuleRequiredStatusChecks_parameters.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryRuleRequiredStatusChecks_parameters : IAdditionalDataHolder, IParsable + public partial class RepositoryRuleRequiredStatusChecks_parameters : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -16,15 +18,15 @@ public class RepositoryRuleRequiredStatusChecks_parameters : IAdditionalDataHold /// Status checks that are required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? RequiredStatusChecks { get; set; } + public List? RequiredStatusChecks { get; set; } #nullable restore #else - public List RequiredStatusChecks { get; set; } + public List RequiredStatusChecks { get; set; } #endif /// Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. public bool? StrictRequiredStatusChecksPolicy { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleRequiredStatusChecks_parameters() { @@ -33,12 +35,12 @@ public RepositoryRuleRequiredStatusChecks_parameters() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleRequiredStatusChecks_parameters CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleRequiredStatusChecks_parameters CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleRequiredStatusChecks_parameters(); + return new global::GitHub.Models.RepositoryRuleRequiredStatusChecks_parameters(); } /// /// The deserialization information for the current model @@ -48,9 +50,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"do_not_enforce_on_create", n => { DoNotEnforceOnCreate = n.GetBoolValue(); } }, - {"required_status_checks", n => { RequiredStatusChecks = n.GetCollectionOfObjectValues(RepositoryRuleParamsStatusCheckConfiguration.CreateFromDiscriminatorValue)?.ToList(); } }, - {"strict_required_status_checks_policy", n => { StrictRequiredStatusChecksPolicy = n.GetBoolValue(); } }, + { "do_not_enforce_on_create", n => { DoNotEnforceOnCreate = n.GetBoolValue(); } }, + { "required_status_checks", n => { RequiredStatusChecks = n.GetCollectionOfObjectValues(global::GitHub.Models.RepositoryRuleParamsStatusCheckConfiguration.CreateFromDiscriminatorValue)?.AsList(); } }, + { "strict_required_status_checks_policy", n => { StrictRequiredStatusChecksPolicy = n.GetBoolValue(); } }, }; } /// @@ -61,7 +63,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("do_not_enforce_on_create", DoNotEnforceOnCreate); - writer.WriteCollectionOfObjectValues("required_status_checks", RequiredStatusChecks); + writer.WriteCollectionOfObjectValues("required_status_checks", RequiredStatusChecks); writer.WriteBoolValue("strict_required_status_checks_policy", StrictRequiredStatusChecksPolicy); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/RepositoryRuleRequiredStatusChecks_type.cs b/src/GitHub/Models/RepositoryRuleRequiredStatusChecks_type.cs index afe674f4..face56b8 100644 --- a/src/GitHub/Models/RepositoryRuleRequiredStatusChecks_type.cs +++ b/src/GitHub/Models/RepositoryRuleRequiredStatusChecks_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum RepositoryRuleRequiredStatusChecks_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/RepositoryRuleTagNamePattern.cs b/src/GitHub/Models/RepositoryRuleTagNamePattern.cs index 2c68b770..f1a77a9e 100644 --- a/src/GitHub/Models/RepositoryRuleTagNamePattern.cs +++ b/src/GitHub/Models/RepositoryRuleTagNamePattern.cs @@ -1,29 +1,31 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Parameters to be used for the tag_name_pattern rule /// - public class RepositoryRuleTagNamePattern : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleTagNamePattern : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The parameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryRuleTagNamePattern_parameters? Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleTagNamePattern_parameters? Parameters { get; set; } #nullable restore #else - public RepositoryRuleTagNamePattern_parameters Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleTagNamePattern_parameters Parameters { get; set; } #endif /// The type property - public RepositoryRuleTagNamePattern_type? Type { get; set; } + public global::GitHub.Models.RepositoryRuleTagNamePattern_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleTagNamePattern() { @@ -32,12 +34,12 @@ public RepositoryRuleTagNamePattern() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleTagNamePattern CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleTagNamePattern CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleTagNamePattern(); + return new global::GitHub.Models.RepositoryRuleTagNamePattern(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"parameters", n => { Parameters = n.GetObjectValue(RepositoryRuleTagNamePattern_parameters.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "parameters", n => { Parameters = n.GetObjectValue(global::GitHub.Models.RepositoryRuleTagNamePattern_parameters.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -58,8 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("parameters", Parameters); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRuleTagNamePattern_parameters.cs b/src/GitHub/Models/RepositoryRuleTagNamePattern_parameters.cs index 92b67a1c..839bf562 100644 --- a/src/GitHub/Models/RepositoryRuleTagNamePattern_parameters.cs +++ b/src/GitHub/Models/RepositoryRuleTagNamePattern_parameters.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryRuleTagNamePattern_parameters : IAdditionalDataHolder, IParsable + public partial class RepositoryRuleTagNamePattern_parameters : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class RepositoryRuleTagNamePattern_parameters : IAdditionalDataHolder, IP /// If true, the rule will fail if the pattern matches. public bool? Negate { get; set; } /// The operator to use for matching. - public RepositoryRuleTagNamePattern_parameters_operator? Operator { get; set; } + public global::GitHub.Models.RepositoryRuleTagNamePattern_parameters_operator? Operator { get; set; } /// The pattern to match with. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -32,7 +34,7 @@ public class RepositoryRuleTagNamePattern_parameters : IAdditionalDataHolder, IP public string Pattern { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleTagNamePattern_parameters() { @@ -41,12 +43,12 @@ public RepositoryRuleTagNamePattern_parameters() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleTagNamePattern_parameters CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleTagNamePattern_parameters CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleTagNamePattern_parameters(); + return new global::GitHub.Models.RepositoryRuleTagNamePattern_parameters(); } /// /// The deserialization information for the current model @@ -56,10 +58,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, - {"negate", n => { Negate = n.GetBoolValue(); } }, - {"operator", n => { Operator = n.GetEnumValue(); } }, - {"pattern", n => { Pattern = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "negate", n => { Negate = n.GetBoolValue(); } }, + { "operator", n => { Operator = n.GetEnumValue(); } }, + { "pattern", n => { Pattern = n.GetStringValue(); } }, }; } /// @@ -71,7 +73,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); writer.WriteBoolValue("negate", Negate); - writer.WriteEnumValue("operator", Operator); + writer.WriteEnumValue("operator", Operator); writer.WriteStringValue("pattern", Pattern); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/RepositoryRuleTagNamePattern_parameters_operator.cs b/src/GitHub/Models/RepositoryRuleTagNamePattern_parameters_operator.cs index 03ca4108..47638e3d 100644 --- a/src/GitHub/Models/RepositoryRuleTagNamePattern_parameters_operator.cs +++ b/src/GitHub/Models/RepositoryRuleTagNamePattern_parameters_operator.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The operator to use for matching. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryRuleTagNamePattern_parameters_operator { [EnumMember(Value = "starts_with")] diff --git a/src/GitHub/Models/RepositoryRuleTagNamePattern_type.cs b/src/GitHub/Models/RepositoryRuleTagNamePattern_type.cs index d84a4cbd..69be1cbf 100644 --- a/src/GitHub/Models/RepositoryRuleTagNamePattern_type.cs +++ b/src/GitHub/Models/RepositoryRuleTagNamePattern_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum RepositoryRuleTagNamePattern_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/RepositoryRuleUpdate.cs b/src/GitHub/Models/RepositoryRuleUpdate.cs index 298db1dc..c737023c 100644 --- a/src/GitHub/Models/RepositoryRuleUpdate.cs +++ b/src/GitHub/Models/RepositoryRuleUpdate.cs @@ -1,29 +1,31 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Only allow users with bypass permission to update matching refs. /// - public class RepositoryRuleUpdate : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleUpdate : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The parameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryRuleUpdate_parameters? Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleUpdate_parameters? Parameters { get; set; } #nullable restore #else - public RepositoryRuleUpdate_parameters Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleUpdate_parameters Parameters { get; set; } #endif /// The type property - public RepositoryRuleUpdate_type? Type { get; set; } + public global::GitHub.Models.RepositoryRuleUpdate_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleUpdate() { @@ -32,12 +34,12 @@ public RepositoryRuleUpdate() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleUpdate CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleUpdate CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleUpdate(); + return new global::GitHub.Models.RepositoryRuleUpdate(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"parameters", n => { Parameters = n.GetObjectValue(RepositoryRuleUpdate_parameters.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "parameters", n => { Parameters = n.GetObjectValue(global::GitHub.Models.RepositoryRuleUpdate_parameters.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -58,8 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("parameters", Parameters); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRuleUpdate_parameters.cs b/src/GitHub/Models/RepositoryRuleUpdate_parameters.cs index 8188f005..04e2214d 100644 --- a/src/GitHub/Models/RepositoryRuleUpdate_parameters.cs +++ b/src/GitHub/Models/RepositoryRuleUpdate_parameters.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryRuleUpdate_parameters : IAdditionalDataHolder, IParsable + public partial class RepositoryRuleUpdate_parameters : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class RepositoryRuleUpdate_parameters : IAdditionalDataHolder, IParsable /// Branch can pull changes from its upstream repository public bool? UpdateAllowsFetchAndMerge { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleUpdate_parameters() { @@ -23,12 +25,12 @@ public RepositoryRuleUpdate_parameters() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleUpdate_parameters CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleUpdate_parameters CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleUpdate_parameters(); + return new global::GitHub.Models.RepositoryRuleUpdate_parameters(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"update_allows_fetch_and_merge", n => { UpdateAllowsFetchAndMerge = n.GetBoolValue(); } }, + { "update_allows_fetch_and_merge", n => { UpdateAllowsFetchAndMerge = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/RepositoryRuleUpdate_type.cs b/src/GitHub/Models/RepositoryRuleUpdate_type.cs index e920611f..cf61365f 100644 --- a/src/GitHub/Models/RepositoryRuleUpdate_type.cs +++ b/src/GitHub/Models/RepositoryRuleUpdate_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum RepositoryRuleUpdate_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/RepositoryRuleWorkflows.cs b/src/GitHub/Models/RepositoryRuleWorkflows.cs index 7c2ebe3c..cc21ea2c 100644 --- a/src/GitHub/Models/RepositoryRuleWorkflows.cs +++ b/src/GitHub/Models/RepositoryRuleWorkflows.cs @@ -1,29 +1,31 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Require all changes made to a targeted branch to pass the specified workflows before they can be merged. /// - public class RepositoryRuleWorkflows : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleWorkflows : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The parameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryRuleWorkflows_parameters? Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleWorkflows_parameters? Parameters { get; set; } #nullable restore #else - public RepositoryRuleWorkflows_parameters Parameters { get; set; } + public global::GitHub.Models.RepositoryRuleWorkflows_parameters Parameters { get; set; } #endif /// The type property - public RepositoryRuleWorkflows_type? Type { get; set; } + public global::GitHub.Models.RepositoryRuleWorkflows_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleWorkflows() { @@ -32,12 +34,12 @@ public RepositoryRuleWorkflows() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleWorkflows CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleWorkflows CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleWorkflows(); + return new global::GitHub.Models.RepositoryRuleWorkflows(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"parameters", n => { Parameters = n.GetObjectValue(RepositoryRuleWorkflows_parameters.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "parameters", n => { Parameters = n.GetObjectValue(global::GitHub.Models.RepositoryRuleWorkflows_parameters.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -58,8 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("parameters", Parameters); - writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("parameters", Parameters); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRuleWorkflows_parameters.cs b/src/GitHub/Models/RepositoryRuleWorkflows_parameters.cs index 15768290..09ed8fa2 100644 --- a/src/GitHub/Models/RepositoryRuleWorkflows_parameters.cs +++ b/src/GitHub/Models/RepositoryRuleWorkflows_parameters.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryRuleWorkflows_parameters : IAdditionalDataHolder, IParsable + public partial class RepositoryRuleWorkflows_parameters : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -16,13 +18,13 @@ public class RepositoryRuleWorkflows_parameters : IAdditionalDataHolder, IParsab /// Workflows that must pass for this rule to pass. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Workflows { get; set; } + public List? Workflows { get; set; } #nullable restore #else - public List Workflows { get; set; } + public List Workflows { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleWorkflows_parameters() { @@ -31,12 +33,12 @@ public RepositoryRuleWorkflows_parameters() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleWorkflows_parameters CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleWorkflows_parameters CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleWorkflows_parameters(); + return new global::GitHub.Models.RepositoryRuleWorkflows_parameters(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"do_not_enforce_on_create", n => { DoNotEnforceOnCreate = n.GetBoolValue(); } }, - {"workflows", n => { Workflows = n.GetCollectionOfObjectValues(RepositoryRuleParamsWorkflowFileReference.CreateFromDiscriminatorValue)?.ToList(); } }, + { "do_not_enforce_on_create", n => { DoNotEnforceOnCreate = n.GetBoolValue(); } }, + { "workflows", n => { Workflows = n.GetCollectionOfObjectValues(global::GitHub.Models.RepositoryRuleParamsWorkflowFileReference.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("do_not_enforce_on_create", DoNotEnforceOnCreate); - writer.WriteCollectionOfObjectValues("workflows", Workflows); + writer.WriteCollectionOfObjectValues("workflows", Workflows); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRuleWorkflows_type.cs b/src/GitHub/Models/RepositoryRuleWorkflows_type.cs index 2a0897a7..16e2a2d6 100644 --- a/src/GitHub/Models/RepositoryRuleWorkflows_type.cs +++ b/src/GitHub/Models/RepositoryRuleWorkflows_type.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum RepositoryRuleWorkflows_type #pragma warning restore CS1591 diff --git a/src/GitHub/Models/RepositoryRuleset.cs b/src/GitHub/Models/RepositoryRuleset.cs index f9d0c155..86210ddc 100644 --- a/src/GitHub/Models/RepositoryRuleset.cs +++ b/src/GitHub/Models/RepositoryRuleset.cs @@ -1,48 +1,50 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A set of rules to apply when specified conditions are met. /// - public class RepositoryRuleset : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleset : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The actors that can bypass the rules in this ruleset #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? BypassActors { get; set; } + public List? BypassActors { get; set; } #nullable restore #else - public List BypassActors { get; set; } + public List BypassActors { get; set; } #endif /// The conditions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryRuleset_conditions? Conditions { get; set; } + public global::GitHub.Models.RepositoryRuleset.RepositoryRuleset_conditions? Conditions { get; set; } #nullable restore #else - public RepositoryRuleset_conditions Conditions { get; set; } + public global::GitHub.Models.RepositoryRuleset.RepositoryRuleset_conditions Conditions { get; set; } #endif /// The created_at property public DateTimeOffset? CreatedAt { get; set; } /// The bypass type of the user making the API request for this ruleset. This field is only returned whenquerying the repository-level endpoint. - public RepositoryRuleset_current_user_can_bypass? CurrentUserCanBypass { get; set; } + public global::GitHub.Models.RepositoryRuleset_current_user_can_bypass? CurrentUserCanBypass { get; set; } /// The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. - public RepositoryRuleEnforcement? Enforcement { get; set; } + public global::GitHub.Models.RepositoryRuleEnforcement? Enforcement { get; set; } /// The ID of the ruleset public int? Id { get; set; } /// The _links property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryRuleset__links? Links { get; set; } + public global::GitHub.Models.RepositoryRuleset__links? Links { get; set; } #nullable restore #else - public RepositoryRuleset__links Links { get; set; } + public global::GitHub.Models.RepositoryRuleset__links Links { get; set; } #endif /// The name of the ruleset #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -63,10 +65,10 @@ public class RepositoryRuleset : IAdditionalDataHolder, IParsable /// The rules property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Rules { get; set; } + public List? Rules { get; set; } #nullable restore #else - public List Rules { get; set; } + public List Rules { get; set; } #endif /// The name of the source #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -77,13 +79,13 @@ public class RepositoryRuleset : IAdditionalDataHolder, IParsable public string Source { get; set; } #endif /// The type of the source of the ruleset - public RepositoryRuleset_source_type? SourceType { get; set; } + public global::GitHub.Models.RepositoryRuleset_source_type? SourceType { get; set; } /// The target of the ruleset> [!NOTE]> The `push` target is in beta and is subject to change. - public RepositoryRuleset_target? Target { get; set; } + public global::GitHub.Models.RepositoryRuleset_target? Target { get; set; } /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleset() { @@ -92,12 +94,12 @@ public RepositoryRuleset() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleset CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleset CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleset(); + return new global::GitHub.Models.RepositoryRuleset(); } /// /// The deserialization information for the current model @@ -107,20 +109,20 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"bypass_actors", n => { BypassActors = n.GetCollectionOfObjectValues(RepositoryRulesetBypassActor.CreateFromDiscriminatorValue)?.ToList(); } }, - {"conditions", n => { Conditions = n.GetObjectValue(RepositoryRuleset_conditions.CreateFromDiscriminatorValue); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"current_user_can_bypass", n => { CurrentUserCanBypass = n.GetEnumValue(); } }, - {"enforcement", n => { Enforcement = n.GetEnumValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"_links", n => { Links = n.GetObjectValue(RepositoryRuleset__links.CreateFromDiscriminatorValue); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"rules", n => { Rules = n.GetCollectionOfObjectValues(RepositoryRule.CreateFromDiscriminatorValue)?.ToList(); } }, - {"source", n => { Source = n.GetStringValue(); } }, - {"source_type", n => { SourceType = n.GetEnumValue(); } }, - {"target", n => { Target = n.GetEnumValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "bypass_actors", n => { BypassActors = n.GetCollectionOfObjectValues(global::GitHub.Models.RepositoryRulesetBypassActor.CreateFromDiscriminatorValue)?.AsList(); } }, + { "conditions", n => { Conditions = n.GetObjectValue(global::GitHub.Models.RepositoryRuleset.RepositoryRuleset_conditions.CreateFromDiscriminatorValue); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "current_user_can_bypass", n => { CurrentUserCanBypass = n.GetEnumValue(); } }, + { "enforcement", n => { Enforcement = n.GetEnumValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "_links", n => { Links = n.GetObjectValue(global::GitHub.Models.RepositoryRuleset__links.CreateFromDiscriminatorValue); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "rules", n => { Rules = n.GetCollectionOfObjectValues(global::GitHub.Models.RepositoryRule.CreateFromDiscriminatorValue)?.AsList(); } }, + { "source", n => { Source = n.GetStringValue(); } }, + { "source_type", n => { SourceType = n.GetEnumValue(); } }, + { "target", n => { Target = n.GetEnumValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, }; } /// @@ -130,54 +132,55 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("bypass_actors", BypassActors); - writer.WriteObjectValue("conditions", Conditions); + writer.WriteCollectionOfObjectValues("bypass_actors", BypassActors); + writer.WriteObjectValue("conditions", Conditions); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); - writer.WriteEnumValue("current_user_can_bypass", CurrentUserCanBypass); - writer.WriteEnumValue("enforcement", Enforcement); + writer.WriteEnumValue("current_user_can_bypass", CurrentUserCanBypass); + writer.WriteEnumValue("enforcement", Enforcement); writer.WriteIntValue("id", Id); - writer.WriteObjectValue("_links", Links); + writer.WriteObjectValue("_links", Links); writer.WriteStringValue("name", Name); writer.WriteStringValue("node_id", NodeId); - writer.WriteCollectionOfObjectValues("rules", Rules); + writer.WriteCollectionOfObjectValues("rules", Rules); writer.WriteStringValue("source", Source); - writer.WriteEnumValue("source_type", SourceType); - writer.WriteEnumValue("target", Target); + writer.WriteEnumValue("source_type", SourceType); + writer.WriteEnumValue("target", Target); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteAdditionalData(AdditionalData); } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class RepositoryRuleset_conditions : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRuleset_conditions : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.OrgRulesetConditions? OrgRulesetConditions { get; set; } + public global::GitHub.Models.OrgRulesetConditions? OrgRulesetConditions { get; set; } #nullable restore #else - public GitHub.Models.OrgRulesetConditions OrgRulesetConditions { get; set; } + public global::GitHub.Models.OrgRulesetConditions OrgRulesetConditions { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RepositoryRulesetConditions? RepositoryRulesetConditions { get; set; } + public global::GitHub.Models.RepositoryRulesetConditions? RepositoryRulesetConditions { get; set; } #nullable restore #else - public GitHub.Models.RepositoryRulesetConditions RepositoryRulesetConditions { get; set; } + public global::GitHub.Models.RepositoryRulesetConditions RepositoryRulesetConditions { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleset_conditions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleset.RepositoryRuleset_conditions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - var result = new RepositoryRuleset_conditions(); - result.OrgRulesetConditions = new GitHub.Models.OrgRulesetConditions(); - result.RepositoryRulesetConditions = new GitHub.Models.RepositoryRulesetConditions(); + var result = new global::GitHub.Models.RepositoryRuleset.RepositoryRuleset_conditions(); + result.OrgRulesetConditions = new global::GitHub.Models.OrgRulesetConditions(); + result.RepositoryRulesetConditions = new global::GitHub.Models.RepositoryRulesetConditions(); return result; } /// @@ -199,7 +202,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue(null, OrgRulesetConditions, RepositoryRulesetConditions); + writer.WriteObjectValue(null, OrgRulesetConditions, RepositoryRulesetConditions); } } } diff --git a/src/GitHub/Models/RepositoryRulesetBypassActor.cs b/src/GitHub/Models/RepositoryRulesetBypassActor.cs index df27f164..7e9cb8c8 100644 --- a/src/GitHub/Models/RepositoryRulesetBypassActor.cs +++ b/src/GitHub/Models/RepositoryRulesetBypassActor.cs @@ -1,25 +1,27 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// An actor that can bypass rules in a ruleset /// - public class RepositoryRulesetBypassActor : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRulesetBypassActor : IAdditionalDataHolder, IParsable { /// The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories. public int? ActorId { get; set; } /// The type of actor that can bypass a ruleset. - public RepositoryRulesetBypassActor_actor_type? ActorType { get; set; } + public global::GitHub.Models.RepositoryRulesetBypassActor_actor_type? ActorType { get; set; } /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. - public RepositoryRulesetBypassActor_bypass_mode? BypassMode { get; set; } + public global::GitHub.Models.RepositoryRulesetBypassActor_bypass_mode? BypassMode { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRulesetBypassActor() { @@ -28,12 +30,12 @@ public RepositoryRulesetBypassActor() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRulesetBypassActor CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRulesetBypassActor CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRulesetBypassActor(); + return new global::GitHub.Models.RepositoryRulesetBypassActor(); } /// /// The deserialization information for the current model @@ -43,9 +45,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor_id", n => { ActorId = n.GetIntValue(); } }, - {"actor_type", n => { ActorType = n.GetEnumValue(); } }, - {"bypass_mode", n => { BypassMode = n.GetEnumValue(); } }, + { "actor_id", n => { ActorId = n.GetIntValue(); } }, + { "actor_type", n => { ActorType = n.GetEnumValue(); } }, + { "bypass_mode", n => { BypassMode = n.GetEnumValue(); } }, }; } /// @@ -56,8 +58,8 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("actor_id", ActorId); - writer.WriteEnumValue("actor_type", ActorType); - writer.WriteEnumValue("bypass_mode", BypassMode); + writer.WriteEnumValue("actor_type", ActorType); + writer.WriteEnumValue("bypass_mode", BypassMode); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRulesetBypassActor_actor_type.cs b/src/GitHub/Models/RepositoryRulesetBypassActor_actor_type.cs index 0b2fdcdb..099d9b7c 100644 --- a/src/GitHub/Models/RepositoryRulesetBypassActor_actor_type.cs +++ b/src/GitHub/Models/RepositoryRulesetBypassActor_actor_type.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The type of actor that can bypass a ruleset. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryRulesetBypassActor_actor_type { [EnumMember(Value = "Integration")] @@ -25,9 +27,5 @@ public enum RepositoryRulesetBypassActor_actor_type #pragma warning disable CS1591 DeployKey, #pragma warning restore CS1591 - [EnumMember(Value = "EnterpriseTeam")] - #pragma warning disable CS1591 - EnterpriseTeam, - #pragma warning restore CS1591 } } diff --git a/src/GitHub/Models/RepositoryRulesetBypassActor_bypass_mode.cs b/src/GitHub/Models/RepositoryRulesetBypassActor_bypass_mode.cs index c4df94f8..602d5f45 100644 --- a/src/GitHub/Models/RepositoryRulesetBypassActor_bypass_mode.cs +++ b/src/GitHub/Models/RepositoryRulesetBypassActor_bypass_mode.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryRulesetBypassActor_bypass_mode { [EnumMember(Value = "always")] diff --git a/src/GitHub/Models/RepositoryRulesetConditions.cs b/src/GitHub/Models/RepositoryRulesetConditions.cs index 6b7bc8fd..008f47aa 100644 --- a/src/GitHub/Models/RepositoryRulesetConditions.cs +++ b/src/GitHub/Models/RepositoryRulesetConditions.cs @@ -1,27 +1,29 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Parameters for a repository ruleset ref name condition /// - public class RepositoryRulesetConditions : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryRulesetConditions : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The ref_name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryRulesetConditions_ref_name? RefName { get; set; } + public global::GitHub.Models.RepositoryRulesetConditions_ref_name? RefName { get; set; } #nullable restore #else - public RepositoryRulesetConditions_ref_name RefName { get; set; } + public global::GitHub.Models.RepositoryRulesetConditions_ref_name RefName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRulesetConditions() { @@ -30,12 +32,12 @@ public RepositoryRulesetConditions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRulesetConditions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRulesetConditions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRulesetConditions(); + return new global::GitHub.Models.RepositoryRulesetConditions(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"ref_name", n => { RefName = n.GetObjectValue(RepositoryRulesetConditions_ref_name.CreateFromDiscriminatorValue); } }, + { "ref_name", n => { RefName = n.GetObjectValue(global::GitHub.Models.RepositoryRulesetConditions_ref_name.CreateFromDiscriminatorValue); } }, }; } /// @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("ref_name", RefName); + writer.WriteObjectValue("ref_name", RefName); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRulesetConditions_ref_name.cs b/src/GitHub/Models/RepositoryRulesetConditions_ref_name.cs index cc2e9fbe..66d41d01 100644 --- a/src/GitHub/Models/RepositoryRulesetConditions_ref_name.cs +++ b/src/GitHub/Models/RepositoryRulesetConditions_ref_name.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryRulesetConditions_ref_name : IAdditionalDataHolder, IParsable + public partial class RepositoryRulesetConditions_ref_name : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class RepositoryRulesetConditions_ref_name : IAdditionalDataHolder, IPars public List Include { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRulesetConditions_ref_name() { @@ -37,12 +39,12 @@ public RepositoryRulesetConditions_ref_name() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRulesetConditions_ref_name CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRulesetConditions_ref_name CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRulesetConditions_ref_name(); + return new global::GitHub.Models.RepositoryRulesetConditions_ref_name(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"exclude", n => { Exclude = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"include", n => { Include = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "exclude", n => { Exclude = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "include", n => { Include = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Models/RepositoryRuleset__links.cs b/src/GitHub/Models/RepositoryRuleset__links.cs index 0e85c442..64ed6a8c 100644 --- a/src/GitHub/Models/RepositoryRuleset__links.cs +++ b/src/GitHub/Models/RepositoryRuleset__links.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryRuleset__links : IAdditionalDataHolder, IParsable + public partial class RepositoryRuleset__links : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,21 +16,21 @@ public class RepositoryRuleset__links : IAdditionalDataHolder, IParsable /// The html property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryRuleset__links_html? Html { get; set; } + public global::GitHub.Models.RepositoryRuleset__links_html? Html { get; set; } #nullable restore #else - public RepositoryRuleset__links_html Html { get; set; } + public global::GitHub.Models.RepositoryRuleset__links_html Html { get; set; } #endif /// The self property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepositoryRuleset__links_self? Self { get; set; } + public global::GitHub.Models.RepositoryRuleset__links_self? Self { get; set; } #nullable restore #else - public RepositoryRuleset__links_self Self { get; set; } + public global::GitHub.Models.RepositoryRuleset__links_self Self { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleset__links() { @@ -37,12 +39,12 @@ public RepositoryRuleset__links() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleset__links CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleset__links CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleset__links(); + return new global::GitHub.Models.RepositoryRuleset__links(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"html", n => { Html = n.GetObjectValue(RepositoryRuleset__links_html.CreateFromDiscriminatorValue); } }, - {"self", n => { Self = n.GetObjectValue(RepositoryRuleset__links_self.CreateFromDiscriminatorValue); } }, + { "html", n => { Html = n.GetObjectValue(global::GitHub.Models.RepositoryRuleset__links_html.CreateFromDiscriminatorValue); } }, + { "self", n => { Self = n.GetObjectValue(global::GitHub.Models.RepositoryRuleset__links_self.CreateFromDiscriminatorValue); } }, }; } /// @@ -63,8 +65,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("html", Html); - writer.WriteObjectValue("self", Self); + writer.WriteObjectValue("html", Html); + writer.WriteObjectValue("self", Self); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RepositoryRuleset__links_html.cs b/src/GitHub/Models/RepositoryRuleset__links_html.cs index bb845262..89ee2f49 100644 --- a/src/GitHub/Models/RepositoryRuleset__links_html.cs +++ b/src/GitHub/Models/RepositoryRuleset__links_html.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryRuleset__links_html : IAdditionalDataHolder, IParsable + public partial class RepositoryRuleset__links_html : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class RepositoryRuleset__links_html : IAdditionalDataHolder, IParsable public string Href { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleset__links_html() { @@ -29,12 +31,12 @@ public RepositoryRuleset__links_html() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleset__links_html CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleset__links_html CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleset__links_html(); + return new global::GitHub.Models.RepositoryRuleset__links_html(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"href", n => { Href = n.GetStringValue(); } }, + { "href", n => { Href = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/RepositoryRuleset__links_self.cs b/src/GitHub/Models/RepositoryRuleset__links_self.cs index 72168349..a5ee8cff 100644 --- a/src/GitHub/Models/RepositoryRuleset__links_self.cs +++ b/src/GitHub/Models/RepositoryRuleset__links_self.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoryRuleset__links_self : IAdditionalDataHolder, IParsable + public partial class RepositoryRuleset__links_self : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class RepositoryRuleset__links_self : IAdditionalDataHolder, IParsable public string Href { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoryRuleset__links_self() { @@ -29,12 +31,12 @@ public RepositoryRuleset__links_self() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoryRuleset__links_self CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositoryRuleset__links_self CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoryRuleset__links_self(); + return new global::GitHub.Models.RepositoryRuleset__links_self(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"href", n => { Href = n.GetStringValue(); } }, + { "href", n => { Href = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/RepositoryRuleset_current_user_can_bypass.cs b/src/GitHub/Models/RepositoryRuleset_current_user_can_bypass.cs index fb5f2f0e..0b8fe4fb 100644 --- a/src/GitHub/Models/RepositoryRuleset_current_user_can_bypass.cs +++ b/src/GitHub/Models/RepositoryRuleset_current_user_can_bypass.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The bypass type of the user making the API request for this ruleset. This field is only returned whenquerying the repository-level endpoint. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryRuleset_current_user_can_bypass { [EnumMember(Value = "always")] diff --git a/src/GitHub/Models/RepositoryRuleset_source_type.cs b/src/GitHub/Models/RepositoryRuleset_source_type.cs index e1b572bf..490d5863 100644 --- a/src/GitHub/Models/RepositoryRuleset_source_type.cs +++ b/src/GitHub/Models/RepositoryRuleset_source_type.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The type of the source of the ruleset + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryRuleset_source_type { [EnumMember(Value = "Repository")] diff --git a/src/GitHub/Models/RepositoryRuleset_target.cs b/src/GitHub/Models/RepositoryRuleset_target.cs index 8506e67f..3abc0eb4 100644 --- a/src/GitHub/Models/RepositoryRuleset_target.cs +++ b/src/GitHub/Models/RepositoryRuleset_target.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The target of the ruleset> [!NOTE]> The `push` target is in beta and is subject to change. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RepositoryRuleset_target { [EnumMember(Value = "branch")] diff --git a/src/GitHub/Models/RepositorySubscription.cs b/src/GitHub/Models/RepositorySubscription.cs index 62bcd2bd..b335ddc0 100644 --- a/src/GitHub/Models/RepositorySubscription.cs +++ b/src/GitHub/Models/RepositorySubscription.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Repository invitations let you manage who you collaborate with. /// - public class RepositorySubscription : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositorySubscription : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -43,7 +45,7 @@ public class RepositorySubscription : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositorySubscription() { @@ -52,12 +54,12 @@ public RepositorySubscription() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositorySubscription CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RepositorySubscription CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositorySubscription(); + return new global::GitHub.Models.RepositorySubscription(); } /// /// The deserialization information for the current model @@ -67,12 +69,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"ignored", n => { Ignored = n.GetBoolValue(); } }, - {"reason", n => { Reason = n.GetStringValue(); } }, - {"repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, - {"subscribed", n => { Subscribed = n.GetBoolValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "ignored", n => { Ignored = n.GetBoolValue(); } }, + { "reason", n => { Reason = n.GetStringValue(); } }, + { "repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, + { "subscribed", n => { Subscribed = n.GetBoolValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Repository_merge_commit_message.cs b/src/GitHub/Models/Repository_merge_commit_message.cs index cf13e65c..3e2a3fc0 100644 --- a/src/GitHub/Models/Repository_merge_commit_message.cs +++ b/src/GitHub/Models/Repository_merge_commit_message.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// 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. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum Repository_merge_commit_message { [EnumMember(Value = "PR_BODY")] diff --git a/src/GitHub/Models/Repository_merge_commit_title.cs b/src/GitHub/Models/Repository_merge_commit_title.cs index 21602387..f611cf9d 100644 --- a/src/GitHub/Models/Repository_merge_commit_title.cs +++ b/src/GitHub/Models/Repository_merge_commit_title.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// 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). + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum Repository_merge_commit_title { [EnumMember(Value = "PR_TITLE")] diff --git a/src/GitHub/Models/Repository_permissions.cs b/src/GitHub/Models/Repository_permissions.cs index fe91833f..d0066654 100644 --- a/src/GitHub/Models/Repository_permissions.cs +++ b/src/GitHub/Models/Repository_permissions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Repository_permissions : IAdditionalDataHolder, IParsable + public partial class Repository_permissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class Repository_permissions : IAdditionalDataHolder, IParsable /// The triage property public bool? Triage { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Repository_permissions() { @@ -31,12 +33,12 @@ public Repository_permissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Repository_permissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Repository_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Repository_permissions(); + return new global::GitHub.Models.Repository_permissions(); } /// /// The deserialization information for the current model @@ -46,11 +48,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"admin", n => { Admin = n.GetBoolValue(); } }, - {"maintain", n => { Maintain = n.GetBoolValue(); } }, - {"pull", n => { Pull = n.GetBoolValue(); } }, - {"push", n => { Push = n.GetBoolValue(); } }, - {"triage", n => { Triage = n.GetBoolValue(); } }, + { "admin", n => { Admin = n.GetBoolValue(); } }, + { "maintain", n => { Maintain = n.GetBoolValue(); } }, + { "pull", n => { Pull = n.GetBoolValue(); } }, + { "push", n => { Push = n.GetBoolValue(); } }, + { "triage", n => { Triage = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/Repository_squash_merge_commit_message.cs b/src/GitHub/Models/Repository_squash_merge_commit_message.cs index 7bf0c2b0..779ad73e 100644 --- a/src/GitHub/Models/Repository_squash_merge_commit_message.cs +++ b/src/GitHub/Models/Repository_squash_merge_commit_message.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// 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. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum Repository_squash_merge_commit_message { [EnumMember(Value = "PR_BODY")] diff --git a/src/GitHub/Models/Repository_squash_merge_commit_title.cs b/src/GitHub/Models/Repository_squash_merge_commit_title.cs index 271fca8e..e5c206f8 100644 --- a/src/GitHub/Models/Repository_squash_merge_commit_title.cs +++ b/src/GitHub/Models/Repository_squash_merge_commit_title.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// 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). + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum Repository_squash_merge_commit_title { [EnumMember(Value = "PR_TITLE")] diff --git a/src/GitHub/Models/Resource503Error.cs b/src/GitHub/Models/Resource503Error.cs index 753574fa..2fc5d465 100644 --- a/src/GitHub/Models/Resource503Error.cs +++ b/src/GitHub/Models/Resource503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Resource503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class Resource503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class Resource503Error : ApiException, IAdditionalDataHolder, IParsable #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Resource503Error() { @@ -46,12 +42,12 @@ public Resource503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Resource503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Resource503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Resource503Error(); + return new global::GitHub.Models.Resource503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/ReviewComment.cs b/src/GitHub/Models/ReviewComment.cs index ecba4797..07674527 100644 --- a/src/GitHub/Models/ReviewComment.cs +++ b/src/GitHub/Models/ReviewComment.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Legacy Review Comment /// - public class ReviewComment : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReviewComment : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// How the author is associated with the repository. - public GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } + public global::GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } /// The body property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -73,10 +75,10 @@ public class ReviewComment : IAdditionalDataHolder, IParsable /// The _links property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ReviewComment__links? Links { get; set; } + public global::GitHub.Models.ReviewComment__links? Links { get; set; } #nullable restore #else - public ReviewComment__links Links { get; set; } + public global::GitHub.Models.ReviewComment__links Links { get; set; } #endif /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -123,17 +125,17 @@ public class ReviewComment : IAdditionalDataHolder, IParsable /// The reactions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ReactionRollup? Reactions { get; set; } + public global::GitHub.Models.ReactionRollup? Reactions { get; set; } #nullable restore #else - public ReactionRollup Reactions { get; set; } + public global::GitHub.Models.ReactionRollup Reactions { get; set; } #endif /// The side of the first line of the range for a multi-line comment. - public ReviewComment_side? Side { get; set; } + public global::GitHub.Models.ReviewComment_side? Side { get; set; } /// The first line of the range for a multi-line comment. public int? StartLine { get; set; } /// The side of the first line of the range for a multi-line comment. - public ReviewComment_start_side? StartSide { get; set; } + public global::GitHub.Models.ReviewComment_start_side? StartSide { get; set; } /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } /// The url property @@ -147,29 +149,29 @@ public class ReviewComment : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? User { get; set; } + public global::GitHub.Models.NullableSimpleUser? User { get; set; } #nullable restore #else - public NullableSimpleUser User { get; set; } + public global::GitHub.Models.NullableSimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReviewComment() { AdditionalData = new Dictionary(); - Side = ReviewComment_side.RIGHT; - StartSide = ReviewComment_start_side.RIGHT; + Side = global::GitHub.Models.ReviewComment_side.RIGHT; + StartSide = global::GitHub.Models.ReviewComment_start_side.RIGHT; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ReviewComment CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ReviewComment CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReviewComment(); + return new global::GitHub.Models.ReviewComment(); } /// /// The deserialization information for the current model @@ -179,34 +181,34 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, - {"body", n => { Body = n.GetStringValue(); } }, - {"body_html", n => { BodyHtml = n.GetStringValue(); } }, - {"body_text", n => { BodyText = n.GetStringValue(); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"diff_hunk", n => { DiffHunk = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"in_reply_to_id", n => { InReplyToId = n.GetIntValue(); } }, - {"line", n => { Line = n.GetIntValue(); } }, - {"_links", n => { Links = n.GetObjectValue(ReviewComment__links.CreateFromDiscriminatorValue); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"original_commit_id", n => { OriginalCommitId = n.GetStringValue(); } }, - {"original_line", n => { OriginalLine = n.GetIntValue(); } }, - {"original_position", n => { OriginalPosition = n.GetIntValue(); } }, - {"original_start_line", n => { OriginalStartLine = n.GetIntValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"position", n => { Position = n.GetIntValue(); } }, - {"pull_request_review_id", n => { PullRequestReviewId = n.GetLongValue(); } }, - {"pull_request_url", n => { PullRequestUrl = n.GetStringValue(); } }, - {"reactions", n => { Reactions = n.GetObjectValue(ReactionRollup.CreateFromDiscriminatorValue); } }, - {"side", n => { Side = n.GetEnumValue(); } }, - {"start_line", n => { StartLine = n.GetIntValue(); } }, - {"start_side", n => { StartSide = n.GetEnumValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "body_html", n => { BodyHtml = n.GetStringValue(); } }, + { "body_text", n => { BodyText = n.GetStringValue(); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "diff_hunk", n => { DiffHunk = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "in_reply_to_id", n => { InReplyToId = n.GetIntValue(); } }, + { "line", n => { Line = n.GetIntValue(); } }, + { "_links", n => { Links = n.GetObjectValue(global::GitHub.Models.ReviewComment__links.CreateFromDiscriminatorValue); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "original_commit_id", n => { OriginalCommitId = n.GetStringValue(); } }, + { "original_line", n => { OriginalLine = n.GetIntValue(); } }, + { "original_position", n => { OriginalPosition = n.GetIntValue(); } }, + { "original_start_line", n => { OriginalStartLine = n.GetIntValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "position", n => { Position = n.GetIntValue(); } }, + { "pull_request_review_id", n => { PullRequestReviewId = n.GetLongValue(); } }, + { "pull_request_url", n => { PullRequestUrl = n.GetStringValue(); } }, + { "reactions", n => { Reactions = n.GetObjectValue(global::GitHub.Models.ReactionRollup.CreateFromDiscriminatorValue); } }, + { "side", n => { Side = n.GetEnumValue(); } }, + { "start_line", n => { StartLine = n.GetIntValue(); } }, + { "start_side", n => { StartSide = n.GetEnumValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -216,7 +218,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("author_association", AuthorAssociation); + writer.WriteEnumValue("author_association", AuthorAssociation); writer.WriteStringValue("body", Body); writer.WriteStringValue("body_html", BodyHtml); writer.WriteStringValue("body_text", BodyText); @@ -227,7 +229,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteLongValue("id", Id); writer.WriteIntValue("in_reply_to_id", InReplyToId); writer.WriteIntValue("line", Line); - writer.WriteObjectValue("_links", Links); + writer.WriteObjectValue("_links", Links); writer.WriteStringValue("node_id", NodeId); writer.WriteStringValue("original_commit_id", OriginalCommitId); writer.WriteIntValue("original_line", OriginalLine); @@ -237,13 +239,13 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("position", Position); writer.WriteLongValue("pull_request_review_id", PullRequestReviewId); writer.WriteStringValue("pull_request_url", PullRequestUrl); - writer.WriteObjectValue("reactions", Reactions); - writer.WriteEnumValue("side", Side); + writer.WriteObjectValue("reactions", Reactions); + writer.WriteEnumValue("side", Side); writer.WriteIntValue("start_line", StartLine); - writer.WriteEnumValue("start_side", StartSide); + writer.WriteEnumValue("start_side", StartSide); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/ReviewComment__links.cs b/src/GitHub/Models/ReviewComment__links.cs index 71aace00..3a46bde5 100644 --- a/src/GitHub/Models/ReviewComment__links.cs +++ b/src/GitHub/Models/ReviewComment__links.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ReviewComment__links : IAdditionalDataHolder, IParsable + public partial class ReviewComment__links : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,29 +16,29 @@ public class ReviewComment__links : IAdditionalDataHolder, IParsable /// Hypermedia Link #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Link? Html { get; set; } + public global::GitHub.Models.Link? Html { get; set; } #nullable restore #else - public Link Html { get; set; } + public global::GitHub.Models.Link Html { get; set; } #endif /// Hypermedia Link #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Link? PullRequest { get; set; } + public global::GitHub.Models.Link? PullRequest { get; set; } #nullable restore #else - public Link PullRequest { get; set; } + public global::GitHub.Models.Link PullRequest { get; set; } #endif /// Hypermedia Link #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Link? Self { get; set; } + public global::GitHub.Models.Link? Self { get; set; } #nullable restore #else - public Link Self { get; set; } + public global::GitHub.Models.Link Self { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReviewComment__links() { @@ -45,12 +47,12 @@ public ReviewComment__links() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ReviewComment__links CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ReviewComment__links CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReviewComment__links(); + return new global::GitHub.Models.ReviewComment__links(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"html", n => { Html = n.GetObjectValue(Link.CreateFromDiscriminatorValue); } }, - {"pull_request", n => { PullRequest = n.GetObjectValue(Link.CreateFromDiscriminatorValue); } }, - {"self", n => { Self = n.GetObjectValue(Link.CreateFromDiscriminatorValue); } }, + { "html", n => { Html = n.GetObjectValue(global::GitHub.Models.Link.CreateFromDiscriminatorValue); } }, + { "pull_request", n => { PullRequest = n.GetObjectValue(global::GitHub.Models.Link.CreateFromDiscriminatorValue); } }, + { "self", n => { Self = n.GetObjectValue(global::GitHub.Models.Link.CreateFromDiscriminatorValue); } }, }; } /// @@ -72,9 +74,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("html", Html); - writer.WriteObjectValue("pull_request", PullRequest); - writer.WriteObjectValue("self", Self); + writer.WriteObjectValue("html", Html); + writer.WriteObjectValue("pull_request", PullRequest); + writer.WriteObjectValue("self", Self); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/ReviewComment_side.cs b/src/GitHub/Models/ReviewComment_side.cs index 830fc99e..61fd911f 100644 --- a/src/GitHub/Models/ReviewComment_side.cs +++ b/src/GitHub/Models/ReviewComment_side.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The side of the first line of the range for a multi-line comment. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ReviewComment_side { [EnumMember(Value = "LEFT")] diff --git a/src/GitHub/Models/ReviewComment_start_side.cs b/src/GitHub/Models/ReviewComment_start_side.cs index ea629b82..181c6ec3 100644 --- a/src/GitHub/Models/ReviewComment_start_side.cs +++ b/src/GitHub/Models/ReviewComment_start_side.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The side of the first line of the range for a multi-line comment. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ReviewComment_start_side { [EnumMember(Value = "LEFT")] diff --git a/src/GitHub/Models/ReviewCustomGatesCommentRequired.cs b/src/GitHub/Models/ReviewCustomGatesCommentRequired.cs index aa09f2f5..b0c0a1dd 100644 --- a/src/GitHub/Models/ReviewCustomGatesCommentRequired.cs +++ b/src/GitHub/Models/ReviewCustomGatesCommentRequired.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ReviewCustomGatesCommentRequired : IAdditionalDataHolder, IParsable + public partial class ReviewCustomGatesCommentRequired : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class ReviewCustomGatesCommentRequired : IAdditionalDataHolder, IParsable public string EnvironmentName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReviewCustomGatesCommentRequired() { @@ -37,12 +39,12 @@ public ReviewCustomGatesCommentRequired() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ReviewCustomGatesCommentRequired CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ReviewCustomGatesCommentRequired CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReviewCustomGatesCommentRequired(); + return new global::GitHub.Models.ReviewCustomGatesCommentRequired(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"comment", n => { Comment = n.GetStringValue(); } }, - {"environment_name", n => { EnvironmentName = n.GetStringValue(); } }, + { "comment", n => { Comment = n.GetStringValue(); } }, + { "environment_name", n => { EnvironmentName = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ReviewCustomGatesStateRequired.cs b/src/GitHub/Models/ReviewCustomGatesStateRequired.cs index f9b2bc46..49593c2d 100644 --- a/src/GitHub/Models/ReviewCustomGatesStateRequired.cs +++ b/src/GitHub/Models/ReviewCustomGatesStateRequired.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ReviewCustomGatesStateRequired : IAdditionalDataHolder, IParsable + public partial class ReviewCustomGatesStateRequired : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,9 +30,9 @@ public class ReviewCustomGatesStateRequired : IAdditionalDataHolder, IParsable public string EnvironmentName { get; set; } #endif /// Whether to approve or reject deployment to the specified environments. - public ReviewCustomGatesStateRequired_state? State { get; set; } + public global::GitHub.Models.ReviewCustomGatesStateRequired_state? State { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReviewCustomGatesStateRequired() { @@ -39,12 +41,12 @@ public ReviewCustomGatesStateRequired() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ReviewCustomGatesStateRequired CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ReviewCustomGatesStateRequired CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReviewCustomGatesStateRequired(); + return new global::GitHub.Models.ReviewCustomGatesStateRequired(); } /// /// The deserialization information for the current model @@ -54,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"comment", n => { Comment = n.GetStringValue(); } }, - {"environment_name", n => { EnvironmentName = n.GetStringValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, + { "comment", n => { Comment = n.GetStringValue(); } }, + { "environment_name", n => { EnvironmentName = n.GetStringValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, }; } /// @@ -68,7 +70,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("comment", Comment); writer.WriteStringValue("environment_name", EnvironmentName); - writer.WriteEnumValue("state", State); + writer.WriteEnumValue("state", State); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/ReviewCustomGatesStateRequired_state.cs b/src/GitHub/Models/ReviewCustomGatesStateRequired_state.cs index 0cb0cb24..f80fece0 100644 --- a/src/GitHub/Models/ReviewCustomGatesStateRequired_state.cs +++ b/src/GitHub/Models/ReviewCustomGatesStateRequired_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Whether to approve or reject deployment to the specified environments. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ReviewCustomGatesStateRequired_state { [EnumMember(Value = "approved")] diff --git a/src/GitHub/Models/ReviewDismissedIssueEvent.cs b/src/GitHub/Models/ReviewDismissedIssueEvent.cs index 28fa224e..2d6fb9c9 100644 --- a/src/GitHub/Models/ReviewDismissedIssueEvent.cs +++ b/src/GitHub/Models/ReviewDismissedIssueEvent.cs @@ -1,22 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Review Dismissed Issue Event /// - public class ReviewDismissedIssueEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReviewDismissedIssueEvent : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -47,10 +49,10 @@ public class ReviewDismissedIssueEvent : IAdditionalDataHolder, IParsable /// The dismissed_review property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ReviewDismissedIssueEvent_dismissed_review? DismissedReview { get; set; } + public global::GitHub.Models.ReviewDismissedIssueEvent_dismissed_review? DismissedReview { get; set; } #nullable restore #else - public ReviewDismissedIssueEvent_dismissed_review DismissedReview { get; set; } + public global::GitHub.Models.ReviewDismissedIssueEvent_dismissed_review DismissedReview { get; set; } #endif /// The event property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,10 +75,10 @@ public class ReviewDismissedIssueEvent : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +89,7 @@ public class ReviewDismissedIssueEvent : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReviewDismissedIssueEvent() { @@ -96,12 +98,12 @@ public ReviewDismissedIssueEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ReviewDismissedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ReviewDismissedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReviewDismissedIssueEvent(); + return new global::GitHub.Models.ReviewDismissedIssueEvent(); } /// /// The deserialization information for the current model @@ -111,16 +113,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"dismissed_review", n => { DismissedReview = n.GetObjectValue(ReviewDismissedIssueEvent_dismissed_review.CreateFromDiscriminatorValue); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "dismissed_review", n => { DismissedReview = n.GetObjectValue(global::GitHub.Models.ReviewDismissedIssueEvent_dismissed_review.CreateFromDiscriminatorValue); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -130,15 +132,15 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("actor", Actor); writer.WriteStringValue("commit_id", CommitId); writer.WriteStringValue("commit_url", CommitUrl); writer.WriteStringValue("created_at", CreatedAt); - writer.WriteObjectValue("dismissed_review", DismissedReview); + writer.WriteObjectValue("dismissed_review", DismissedReview); writer.WriteStringValue("event", Event); writer.WriteIntValue("id", Id); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/ReviewDismissedIssueEvent_dismissed_review.cs b/src/GitHub/Models/ReviewDismissedIssueEvent_dismissed_review.cs index ac878435..f0f7bfe7 100644 --- a/src/GitHub/Models/ReviewDismissedIssueEvent_dismissed_review.cs +++ b/src/GitHub/Models/ReviewDismissedIssueEvent_dismissed_review.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ReviewDismissedIssueEvent_dismissed_review : IAdditionalDataHolder, IParsable + public partial class ReviewDismissedIssueEvent_dismissed_review : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -38,7 +40,7 @@ public class ReviewDismissedIssueEvent_dismissed_review : IAdditionalDataHolder, public string State { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReviewDismissedIssueEvent_dismissed_review() { @@ -47,12 +49,12 @@ public ReviewDismissedIssueEvent_dismissed_review() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ReviewDismissedIssueEvent_dismissed_review CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ReviewDismissedIssueEvent_dismissed_review CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReviewDismissedIssueEvent_dismissed_review(); + return new global::GitHub.Models.ReviewDismissedIssueEvent_dismissed_review(); } /// /// The deserialization information for the current model @@ -62,10 +64,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"dismissal_commit_id", n => { DismissalCommitId = n.GetStringValue(); } }, - {"dismissal_message", n => { DismissalMessage = n.GetStringValue(); } }, - {"review_id", n => { ReviewId = n.GetIntValue(); } }, - {"state", n => { State = n.GetStringValue(); } }, + { "dismissal_commit_id", n => { DismissalCommitId = n.GetStringValue(); } }, + { "dismissal_message", n => { DismissalMessage = n.GetStringValue(); } }, + { "review_id", n => { ReviewId = n.GetIntValue(); } }, + { "state", n => { State = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ReviewRequestRemovedIssueEvent.cs b/src/GitHub/Models/ReviewRequestRemovedIssueEvent.cs index 78993bba..09ef3d70 100644 --- a/src/GitHub/Models/ReviewRequestRemovedIssueEvent.cs +++ b/src/GitHub/Models/ReviewRequestRemovedIssueEvent.cs @@ -1,22 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Review Request Removed Issue Event /// - public class ReviewRequestRemovedIssueEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReviewRequestRemovedIssueEvent : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -65,34 +67,34 @@ public class ReviewRequestRemovedIssueEvent : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? RequestedReviewer { get; set; } + public global::GitHub.Models.SimpleUser? RequestedReviewer { get; set; } #nullable restore #else - public SimpleUser RequestedReviewer { get; set; } + public global::GitHub.Models.SimpleUser RequestedReviewer { get; set; } #endif /// Groups of organization members that gives permissions on specified repositories. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Team? RequestedTeam { get; set; } + public global::GitHub.Models.Team? RequestedTeam { get; set; } #nullable restore #else - public Team RequestedTeam { get; set; } + public global::GitHub.Models.Team RequestedTeam { get; set; } #endif /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? ReviewRequester { get; set; } + public global::GitHub.Models.SimpleUser? ReviewRequester { get; set; } #nullable restore #else - public SimpleUser ReviewRequester { get; set; } + public global::GitHub.Models.SimpleUser ReviewRequester { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -103,7 +105,7 @@ public class ReviewRequestRemovedIssueEvent : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReviewRequestRemovedIssueEvent() { @@ -112,12 +114,12 @@ public ReviewRequestRemovedIssueEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ReviewRequestRemovedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ReviewRequestRemovedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReviewRequestRemovedIssueEvent(); + return new global::GitHub.Models.ReviewRequestRemovedIssueEvent(); } /// /// The deserialization information for the current model @@ -127,18 +129,18 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"requested_reviewer", n => { RequestedReviewer = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"requested_team", n => { RequestedTeam = n.GetObjectValue(Team.CreateFromDiscriminatorValue); } }, - {"review_requester", n => { ReviewRequester = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "requested_reviewer", n => { RequestedReviewer = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "requested_team", n => { RequestedTeam = n.GetObjectValue(global::GitHub.Models.Team.CreateFromDiscriminatorValue); } }, + { "review_requester", n => { ReviewRequester = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -148,17 +150,17 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("actor", Actor); writer.WriteStringValue("commit_id", CommitId); writer.WriteStringValue("commit_url", CommitUrl); writer.WriteStringValue("created_at", CreatedAt); writer.WriteStringValue("event", Event); writer.WriteIntValue("id", Id); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); - writer.WriteObjectValue("requested_reviewer", RequestedReviewer); - writer.WriteObjectValue("requested_team", RequestedTeam); - writer.WriteObjectValue("review_requester", ReviewRequester); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("requested_reviewer", RequestedReviewer); + writer.WriteObjectValue("requested_team", RequestedTeam); + writer.WriteObjectValue("review_requester", ReviewRequester); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/ReviewRequestedIssueEvent.cs b/src/GitHub/Models/ReviewRequestedIssueEvent.cs index 8c940edd..901bae6c 100644 --- a/src/GitHub/Models/ReviewRequestedIssueEvent.cs +++ b/src/GitHub/Models/ReviewRequestedIssueEvent.cs @@ -1,22 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Review Requested Issue Event /// - public class ReviewRequestedIssueEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReviewRequestedIssueEvent : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -65,34 +67,34 @@ public class ReviewRequestedIssueEvent : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? RequestedReviewer { get; set; } + public global::GitHub.Models.SimpleUser? RequestedReviewer { get; set; } #nullable restore #else - public SimpleUser RequestedReviewer { get; set; } + public global::GitHub.Models.SimpleUser RequestedReviewer { get; set; } #endif /// Groups of organization members that gives permissions on specified repositories. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Team? RequestedTeam { get; set; } + public global::GitHub.Models.Team? RequestedTeam { get; set; } #nullable restore #else - public Team RequestedTeam { get; set; } + public global::GitHub.Models.Team RequestedTeam { get; set; } #endif /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? ReviewRequester { get; set; } + public global::GitHub.Models.SimpleUser? ReviewRequester { get; set; } #nullable restore #else - public SimpleUser ReviewRequester { get; set; } + public global::GitHub.Models.SimpleUser ReviewRequester { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -103,7 +105,7 @@ public class ReviewRequestedIssueEvent : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReviewRequestedIssueEvent() { @@ -112,12 +114,12 @@ public ReviewRequestedIssueEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ReviewRequestedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ReviewRequestedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReviewRequestedIssueEvent(); + return new global::GitHub.Models.ReviewRequestedIssueEvent(); } /// /// The deserialization information for the current model @@ -127,18 +129,18 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"requested_reviewer", n => { RequestedReviewer = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"requested_team", n => { RequestedTeam = n.GetObjectValue(Team.CreateFromDiscriminatorValue); } }, - {"review_requester", n => { ReviewRequester = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "requested_reviewer", n => { RequestedReviewer = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "requested_team", n => { RequestedTeam = n.GetObjectValue(global::GitHub.Models.Team.CreateFromDiscriminatorValue); } }, + { "review_requester", n => { ReviewRequester = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -148,17 +150,17 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("actor", Actor); writer.WriteStringValue("commit_id", CommitId); writer.WriteStringValue("commit_url", CommitUrl); writer.WriteStringValue("created_at", CreatedAt); writer.WriteStringValue("event", Event); writer.WriteIntValue("id", Id); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); - writer.WriteObjectValue("requested_reviewer", RequestedReviewer); - writer.WriteObjectValue("requested_team", RequestedTeam); - writer.WriteObjectValue("review_requester", ReviewRequester); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("requested_reviewer", RequestedReviewer); + writer.WriteObjectValue("requested_team", RequestedTeam); + writer.WriteObjectValue("review_requester", ReviewRequester); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/Root.cs b/src/GitHub/Models/Root.cs index 0147204c..2c7ea420 100644 --- a/src/GitHub/Models/Root.cs +++ b/src/GitHub/Models/Root.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Root : IAdditionalDataHolder, IParsable + public partial class Root : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -277,7 +279,7 @@ public class Root : IAdditionalDataHolder, IParsable public string UserUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Root() { @@ -286,12 +288,12 @@ public Root() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Root CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Root CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Root(); + return new global::GitHub.Models.Root(); } /// /// The deserialization information for the current model @@ -301,39 +303,39 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"authorizations_url", n => { AuthorizationsUrl = n.GetStringValue(); } }, - {"code_search_url", n => { CodeSearchUrl = n.GetStringValue(); } }, - {"commit_search_url", n => { CommitSearchUrl = n.GetStringValue(); } }, - {"current_user_authorizations_html_url", n => { CurrentUserAuthorizationsHtmlUrl = n.GetStringValue(); } }, - {"current_user_repositories_url", n => { CurrentUserRepositoriesUrl = n.GetStringValue(); } }, - {"current_user_url", n => { CurrentUserUrl = n.GetStringValue(); } }, - {"emails_url", n => { EmailsUrl = n.GetStringValue(); } }, - {"emojis_url", n => { EmojisUrl = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"feeds_url", n => { FeedsUrl = n.GetStringValue(); } }, - {"followers_url", n => { FollowersUrl = n.GetStringValue(); } }, - {"following_url", n => { FollowingUrl = n.GetStringValue(); } }, - {"gists_url", n => { GistsUrl = n.GetStringValue(); } }, - {"hub_url", n => { HubUrl = n.GetStringValue(); } }, - {"issue_search_url", n => { IssueSearchUrl = n.GetStringValue(); } }, - {"issues_url", n => { IssuesUrl = n.GetStringValue(); } }, - {"keys_url", n => { KeysUrl = n.GetStringValue(); } }, - {"label_search_url", n => { LabelSearchUrl = n.GetStringValue(); } }, - {"notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, - {"organization_repositories_url", n => { OrganizationRepositoriesUrl = n.GetStringValue(); } }, - {"organization_teams_url", n => { OrganizationTeamsUrl = n.GetStringValue(); } }, - {"organization_url", n => { OrganizationUrl = n.GetStringValue(); } }, - {"public_gists_url", n => { PublicGistsUrl = n.GetStringValue(); } }, - {"rate_limit_url", n => { RateLimitUrl = n.GetStringValue(); } }, - {"repository_search_url", n => { RepositorySearchUrl = n.GetStringValue(); } }, - {"repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, - {"starred_gists_url", n => { StarredGistsUrl = n.GetStringValue(); } }, - {"starred_url", n => { StarredUrl = n.GetStringValue(); } }, - {"topic_search_url", n => { TopicSearchUrl = n.GetStringValue(); } }, - {"user_organizations_url", n => { UserOrganizationsUrl = n.GetStringValue(); } }, - {"user_repositories_url", n => { UserRepositoriesUrl = n.GetStringValue(); } }, - {"user_search_url", n => { UserSearchUrl = n.GetStringValue(); } }, - {"user_url", n => { UserUrl = n.GetStringValue(); } }, + { "authorizations_url", n => { AuthorizationsUrl = n.GetStringValue(); } }, + { "code_search_url", n => { CodeSearchUrl = n.GetStringValue(); } }, + { "commit_search_url", n => { CommitSearchUrl = n.GetStringValue(); } }, + { "current_user_authorizations_html_url", n => { CurrentUserAuthorizationsHtmlUrl = n.GetStringValue(); } }, + { "current_user_repositories_url", n => { CurrentUserRepositoriesUrl = n.GetStringValue(); } }, + { "current_user_url", n => { CurrentUserUrl = n.GetStringValue(); } }, + { "emails_url", n => { EmailsUrl = n.GetStringValue(); } }, + { "emojis_url", n => { EmojisUrl = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "feeds_url", n => { FeedsUrl = n.GetStringValue(); } }, + { "followers_url", n => { FollowersUrl = n.GetStringValue(); } }, + { "following_url", n => { FollowingUrl = n.GetStringValue(); } }, + { "gists_url", n => { GistsUrl = n.GetStringValue(); } }, + { "hub_url", n => { HubUrl = n.GetStringValue(); } }, + { "issue_search_url", n => { IssueSearchUrl = n.GetStringValue(); } }, + { "issues_url", n => { IssuesUrl = n.GetStringValue(); } }, + { "keys_url", n => { KeysUrl = n.GetStringValue(); } }, + { "label_search_url", n => { LabelSearchUrl = n.GetStringValue(); } }, + { "notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, + { "organization_repositories_url", n => { OrganizationRepositoriesUrl = n.GetStringValue(); } }, + { "organization_teams_url", n => { OrganizationTeamsUrl = n.GetStringValue(); } }, + { "organization_url", n => { OrganizationUrl = n.GetStringValue(); } }, + { "public_gists_url", n => { PublicGistsUrl = n.GetStringValue(); } }, + { "rate_limit_url", n => { RateLimitUrl = n.GetStringValue(); } }, + { "repository_search_url", n => { RepositorySearchUrl = n.GetStringValue(); } }, + { "repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, + { "starred_gists_url", n => { StarredGistsUrl = n.GetStringValue(); } }, + { "starred_url", n => { StarredUrl = n.GetStringValue(); } }, + { "topic_search_url", n => { TopicSearchUrl = n.GetStringValue(); } }, + { "user_organizations_url", n => { UserOrganizationsUrl = n.GetStringValue(); } }, + { "user_repositories_url", n => { UserRepositoriesUrl = n.GetStringValue(); } }, + { "user_search_url", n => { UserSearchUrl = n.GetStringValue(); } }, + { "user_url", n => { UserUrl = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/RuleSuite.cs b/src/GitHub/Models/RuleSuite.cs index 8e92cbdc..3ce25223 100644 --- a/src/GitHub/Models/RuleSuite.cs +++ b/src/GitHub/Models/RuleSuite.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Response /// - public class RuleSuite : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RuleSuite : IAdditionalDataHolder, IParsable { /// The number that identifies the user. public int? ActorId { get; set; } @@ -39,7 +41,7 @@ public class RuleSuite : IAdditionalDataHolder, IParsable public string BeforeSha { get; set; } #endif /// The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. - public RuleSuite_evaluation_result? EvaluationResult { get; set; } + public global::GitHub.Models.RuleSuite_evaluation_result? EvaluationResult { get; set; } /// The unique identifier of the rule insight. public int? Id { get; set; } /// The pushed_at property @@ -63,17 +65,17 @@ public class RuleSuite : IAdditionalDataHolder, IParsable public string RepositoryName { get; set; } #endif /// The result of the rule evaluations for rules with the `active` enforcement status. - public RuleSuite_result? Result { get; set; } + public global::GitHub.Models.RuleSuite_result? Result { get; set; } /// Details on the evaluated rules. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? RuleEvaluations { get; set; } + public List? RuleEvaluations { get; set; } #nullable restore #else - public List RuleEvaluations { get; set; } + public List RuleEvaluations { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RuleSuite() { @@ -82,12 +84,12 @@ public RuleSuite() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RuleSuite CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RuleSuite CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RuleSuite(); + return new global::GitHub.Models.RuleSuite(); } /// /// The deserialization information for the current model @@ -97,18 +99,18 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor_id", n => { ActorId = n.GetIntValue(); } }, - {"actor_name", n => { ActorName = n.GetStringValue(); } }, - {"after_sha", n => { AfterSha = n.GetStringValue(); } }, - {"before_sha", n => { BeforeSha = n.GetStringValue(); } }, - {"evaluation_result", n => { EvaluationResult = n.GetEnumValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, - {"ref", n => { Ref = n.GetStringValue(); } }, - {"repository_id", n => { RepositoryId = n.GetIntValue(); } }, - {"repository_name", n => { RepositoryName = n.GetStringValue(); } }, - {"result", n => { Result = n.GetEnumValue(); } }, - {"rule_evaluations", n => { RuleEvaluations = n.GetCollectionOfObjectValues(RuleSuite_rule_evaluations.CreateFromDiscriminatorValue)?.ToList(); } }, + { "actor_id", n => { ActorId = n.GetIntValue(); } }, + { "actor_name", n => { ActorName = n.GetStringValue(); } }, + { "after_sha", n => { AfterSha = n.GetStringValue(); } }, + { "before_sha", n => { BeforeSha = n.GetStringValue(); } }, + { "evaluation_result", n => { EvaluationResult = n.GetEnumValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, + { "repository_id", n => { RepositoryId = n.GetIntValue(); } }, + { "repository_name", n => { RepositoryName = n.GetStringValue(); } }, + { "result", n => { Result = n.GetEnumValue(); } }, + { "rule_evaluations", n => { RuleEvaluations = n.GetCollectionOfObjectValues(global::GitHub.Models.RuleSuite_rule_evaluations.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -122,14 +124,14 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("actor_name", ActorName); writer.WriteStringValue("after_sha", AfterSha); writer.WriteStringValue("before_sha", BeforeSha); - writer.WriteEnumValue("evaluation_result", EvaluationResult); + writer.WriteEnumValue("evaluation_result", EvaluationResult); writer.WriteIntValue("id", Id); writer.WriteDateTimeOffsetValue("pushed_at", PushedAt); writer.WriteStringValue("ref", Ref); writer.WriteIntValue("repository_id", RepositoryId); writer.WriteStringValue("repository_name", RepositoryName); - writer.WriteEnumValue("result", Result); - writer.WriteCollectionOfObjectValues("rule_evaluations", RuleEvaluations); + writer.WriteEnumValue("result", Result); + writer.WriteCollectionOfObjectValues("rule_evaluations", RuleEvaluations); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RuleSuite_evaluation_result.cs b/src/GitHub/Models/RuleSuite_evaluation_result.cs index 5b0bcdf5..74627270 100644 --- a/src/GitHub/Models/RuleSuite_evaluation_result.cs +++ b/src/GitHub/Models/RuleSuite_evaluation_result.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RuleSuite_evaluation_result { [EnumMember(Value = "pass")] diff --git a/src/GitHub/Models/RuleSuite_result.cs b/src/GitHub/Models/RuleSuite_result.cs index f44beeb0..bb00cd7d 100644 --- a/src/GitHub/Models/RuleSuite_result.cs +++ b/src/GitHub/Models/RuleSuite_result.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The result of the rule evaluations for rules with the `active` enforcement status. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RuleSuite_result { [EnumMember(Value = "pass")] diff --git a/src/GitHub/Models/RuleSuite_rule_evaluations.cs b/src/GitHub/Models/RuleSuite_rule_evaluations.cs index 95db68c0..5453ed70 100644 --- a/src/GitHub/Models/RuleSuite_rule_evaluations.cs +++ b/src/GitHub/Models/RuleSuite_rule_evaluations.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RuleSuite_rule_evaluations : IAdditionalDataHolder, IParsable + public partial class RuleSuite_rule_evaluations : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,16 +22,16 @@ public class RuleSuite_rule_evaluations : IAdditionalDataHolder, IParsable public string Details { get; set; } #endif /// The enforcement level of this rule source. - public RuleSuite_rule_evaluations_enforcement? Enforcement { get; set; } + public global::GitHub.Models.RuleSuite_rule_evaluations_enforcement? Enforcement { get; set; } /// The result of the evaluation of the individual rule. - public RuleSuite_rule_evaluations_result? Result { get; set; } + public global::GitHub.Models.RuleSuite_rule_evaluations_result? Result { get; set; } /// The rule_source property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RuleSuite_rule_evaluations_rule_source? RuleSource { get; set; } + public global::GitHub.Models.RuleSuite_rule_evaluations_rule_source? RuleSource { get; set; } #nullable restore #else - public RuleSuite_rule_evaluations_rule_source RuleSource { get; set; } + public global::GitHub.Models.RuleSuite_rule_evaluations_rule_source RuleSource { get; set; } #endif /// The type of rule. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -40,7 +42,7 @@ public class RuleSuite_rule_evaluations : IAdditionalDataHolder, IParsable public string RuleType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RuleSuite_rule_evaluations() { @@ -49,12 +51,12 @@ public RuleSuite_rule_evaluations() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RuleSuite_rule_evaluations CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RuleSuite_rule_evaluations CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RuleSuite_rule_evaluations(); + return new global::GitHub.Models.RuleSuite_rule_evaluations(); } /// /// The deserialization information for the current model @@ -64,11 +66,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"details", n => { Details = n.GetStringValue(); } }, - {"enforcement", n => { Enforcement = n.GetEnumValue(); } }, - {"result", n => { Result = n.GetEnumValue(); } }, - {"rule_source", n => { RuleSource = n.GetObjectValue(RuleSuite_rule_evaluations_rule_source.CreateFromDiscriminatorValue); } }, - {"rule_type", n => { RuleType = n.GetStringValue(); } }, + { "details", n => { Details = n.GetStringValue(); } }, + { "enforcement", n => { Enforcement = n.GetEnumValue(); } }, + { "result", n => { Result = n.GetEnumValue(); } }, + { "rule_source", n => { RuleSource = n.GetObjectValue(global::GitHub.Models.RuleSuite_rule_evaluations_rule_source.CreateFromDiscriminatorValue); } }, + { "rule_type", n => { RuleType = n.GetStringValue(); } }, }; } /// @@ -79,9 +81,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("details", Details); - writer.WriteEnumValue("enforcement", Enforcement); - writer.WriteEnumValue("result", Result); - writer.WriteObjectValue("rule_source", RuleSource); + writer.WriteEnumValue("enforcement", Enforcement); + writer.WriteEnumValue("result", Result); + writer.WriteObjectValue("rule_source", RuleSource); writer.WriteStringValue("rule_type", RuleType); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/RuleSuite_rule_evaluations_enforcement.cs b/src/GitHub/Models/RuleSuite_rule_evaluations_enforcement.cs index 4fdea2d7..99a9d436 100644 --- a/src/GitHub/Models/RuleSuite_rule_evaluations_enforcement.cs +++ b/src/GitHub/Models/RuleSuite_rule_evaluations_enforcement.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The enforcement level of this rule source. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RuleSuite_rule_evaluations_enforcement { [EnumMember(Value = "active")] diff --git a/src/GitHub/Models/RuleSuite_rule_evaluations_result.cs b/src/GitHub/Models/RuleSuite_rule_evaluations_result.cs index 18b03bf1..0d4911cc 100644 --- a/src/GitHub/Models/RuleSuite_rule_evaluations_result.cs +++ b/src/GitHub/Models/RuleSuite_rule_evaluations_result.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The result of the evaluation of the individual rule. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RuleSuite_rule_evaluations_result { [EnumMember(Value = "pass")] diff --git a/src/GitHub/Models/RuleSuite_rule_evaluations_rule_source.cs b/src/GitHub/Models/RuleSuite_rule_evaluations_rule_source.cs index f01d30c6..11ab477c 100644 --- a/src/GitHub/Models/RuleSuite_rule_evaluations_rule_source.cs +++ b/src/GitHub/Models/RuleSuite_rule_evaluations_rule_source.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RuleSuite_rule_evaluations_rule_source : IAdditionalDataHolder, IParsable + public partial class RuleSuite_rule_evaluations_rule_source : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,7 +32,7 @@ public class RuleSuite_rule_evaluations_rule_source : IAdditionalDataHolder, IPa public string Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RuleSuite_rule_evaluations_rule_source() { @@ -39,12 +41,12 @@ public RuleSuite_rule_evaluations_rule_source() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RuleSuite_rule_evaluations_rule_source CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RuleSuite_rule_evaluations_rule_source CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RuleSuite_rule_evaluations_rule_source(); + return new global::GitHub.Models.RuleSuite_rule_evaluations_rule_source(); } /// /// The deserialization information for the current model @@ -54,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/RuleSuites.cs b/src/GitHub/Models/RuleSuites.cs index d486fefe..d9ddc05f 100644 --- a/src/GitHub/Models/RuleSuites.cs +++ b/src/GitHub/Models/RuleSuites.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RuleSuites : IAdditionalDataHolder, IParsable + public partial class RuleSuites : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The number that identifies the user. @@ -38,7 +40,7 @@ public class RuleSuites : IAdditionalDataHolder, IParsable public string BeforeSha { get; set; } #endif /// The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. - public RuleSuites_evaluation_result? EvaluationResult { get; set; } + public global::GitHub.Models.RuleSuites_evaluation_result? EvaluationResult { get; set; } /// The unique identifier of the rule insight. public int? Id { get; set; } /// The pushed_at property @@ -62,9 +64,9 @@ public class RuleSuites : IAdditionalDataHolder, IParsable public string RepositoryName { get; set; } #endif /// The result of the rule evaluations for rules with the `active` enforcement status. - public RuleSuites_result? Result { get; set; } + public global::GitHub.Models.RuleSuites_result? Result { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RuleSuites() { @@ -73,12 +75,12 @@ public RuleSuites() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RuleSuites CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RuleSuites CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RuleSuites(); + return new global::GitHub.Models.RuleSuites(); } /// /// The deserialization information for the current model @@ -88,17 +90,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor_id", n => { ActorId = n.GetIntValue(); } }, - {"actor_name", n => { ActorName = n.GetStringValue(); } }, - {"after_sha", n => { AfterSha = n.GetStringValue(); } }, - {"before_sha", n => { BeforeSha = n.GetStringValue(); } }, - {"evaluation_result", n => { EvaluationResult = n.GetEnumValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, - {"ref", n => { Ref = n.GetStringValue(); } }, - {"repository_id", n => { RepositoryId = n.GetIntValue(); } }, - {"repository_name", n => { RepositoryName = n.GetStringValue(); } }, - {"result", n => { Result = n.GetEnumValue(); } }, + { "actor_id", n => { ActorId = n.GetIntValue(); } }, + { "actor_name", n => { ActorName = n.GetStringValue(); } }, + { "after_sha", n => { AfterSha = n.GetStringValue(); } }, + { "before_sha", n => { BeforeSha = n.GetStringValue(); } }, + { "evaluation_result", n => { EvaluationResult = n.GetEnumValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, + { "repository_id", n => { RepositoryId = n.GetIntValue(); } }, + { "repository_name", n => { RepositoryName = n.GetStringValue(); } }, + { "result", n => { Result = n.GetEnumValue(); } }, }; } /// @@ -112,13 +114,13 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("actor_name", ActorName); writer.WriteStringValue("after_sha", AfterSha); writer.WriteStringValue("before_sha", BeforeSha); - writer.WriteEnumValue("evaluation_result", EvaluationResult); + writer.WriteEnumValue("evaluation_result", EvaluationResult); writer.WriteIntValue("id", Id); writer.WriteDateTimeOffsetValue("pushed_at", PushedAt); writer.WriteStringValue("ref", Ref); writer.WriteIntValue("repository_id", RepositoryId); writer.WriteStringValue("repository_name", RepositoryName); - writer.WriteEnumValue("result", Result); + writer.WriteEnumValue("result", Result); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RuleSuites_evaluation_result.cs b/src/GitHub/Models/RuleSuites_evaluation_result.cs index b066c96a..06971946 100644 --- a/src/GitHub/Models/RuleSuites_evaluation_result.cs +++ b/src/GitHub/Models/RuleSuites_evaluation_result.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RuleSuites_evaluation_result { [EnumMember(Value = "pass")] diff --git a/src/GitHub/Models/RuleSuites_result.cs b/src/GitHub/Models/RuleSuites_result.cs index b924d562..a1ba0d86 100644 --- a/src/GitHub/Models/RuleSuites_result.cs +++ b/src/GitHub/Models/RuleSuites_result.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The result of the rule evaluations for rules with the `active` enforcement status. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RuleSuites_result { [EnumMember(Value = "pass")] diff --git a/src/GitHub/Models/Runner.cs b/src/GitHub/Models/Runner.cs index 35838398..800dd17c 100644 --- a/src/GitHub/Models/Runner.cs +++ b/src/GitHub/Models/Runner.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A self hosted runner /// - public class Runner : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Runner : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -19,10 +21,10 @@ public class Runner : IAdditionalDataHolder, IParsable /// The labels property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Labels { get; set; } + public List? Labels { get; set; } #nullable restore #else - public List Labels { get; set; } + public List Labels { get; set; } #endif /// The name of the runner. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -51,7 +53,7 @@ public class Runner : IAdditionalDataHolder, IParsable public string Status { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Runner() { @@ -60,12 +62,12 @@ public Runner() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Runner CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Runner CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Runner(); + return new global::GitHub.Models.Runner(); } /// /// The deserialization information for the current model @@ -75,13 +77,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"busy", n => { Busy = n.GetBoolValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"labels", n => { Labels = n.GetCollectionOfObjectValues(RunnerLabel.CreateFromDiscriminatorValue)?.ToList(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"os", n => { Os = n.GetStringValue(); } }, - {"runner_group_id", n => { RunnerGroupId = n.GetIntValue(); } }, - {"status", n => { Status = n.GetStringValue(); } }, + { "busy", n => { Busy = n.GetBoolValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfObjectValues(global::GitHub.Models.RunnerLabel.CreateFromDiscriminatorValue)?.AsList(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "os", n => { Os = n.GetStringValue(); } }, + { "runner_group_id", n => { RunnerGroupId = n.GetIntValue(); } }, + { "status", n => { Status = n.GetStringValue(); } }, }; } /// @@ -93,7 +95,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("busy", Busy); writer.WriteIntValue("id", Id); - writer.WriteCollectionOfObjectValues("labels", Labels); + writer.WriteCollectionOfObjectValues("labels", Labels); writer.WriteStringValue("name", Name); writer.WriteStringValue("os", Os); writer.WriteIntValue("runner_group_id", RunnerGroupId); diff --git a/src/GitHub/Models/RunnerApplication.cs b/src/GitHub/Models/RunnerApplication.cs index d7b33cb8..a7d4198c 100644 --- a/src/GitHub/Models/RunnerApplication.cs +++ b/src/GitHub/Models/RunnerApplication.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Runner Application /// - public class RunnerApplication : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RunnerApplication : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -61,7 +63,7 @@ public class RunnerApplication : IAdditionalDataHolder, IParsable public string TempDownloadToken { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RunnerApplication() { @@ -70,12 +72,12 @@ public RunnerApplication() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RunnerApplication CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RunnerApplication CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RunnerApplication(); + return new global::GitHub.Models.RunnerApplication(); } /// /// The deserialization information for the current model @@ -85,12 +87,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"architecture", n => { Architecture = n.GetStringValue(); } }, - {"download_url", n => { DownloadUrl = n.GetStringValue(); } }, - {"filename", n => { Filename = n.GetStringValue(); } }, - {"os", n => { Os = n.GetStringValue(); } }, - {"sha256_checksum", n => { Sha256Checksum = n.GetStringValue(); } }, - {"temp_download_token", n => { TempDownloadToken = n.GetStringValue(); } }, + { "architecture", n => { Architecture = n.GetStringValue(); } }, + { "download_url", n => { DownloadUrl = n.GetStringValue(); } }, + { "filename", n => { Filename = n.GetStringValue(); } }, + { "os", n => { Os = n.GetStringValue(); } }, + { "sha256_checksum", n => { Sha256Checksum = n.GetStringValue(); } }, + { "temp_download_token", n => { TempDownloadToken = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/RunnerGroupsEnterprise.cs b/src/GitHub/Models/RunnerGroupsEnterprise.cs index 7ef185eb..939676bf 100644 --- a/src/GitHub/Models/RunnerGroupsEnterprise.cs +++ b/src/GitHub/Models/RunnerGroupsEnterprise.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RunnerGroupsEnterprise : IAdditionalDataHolder, IParsable + public partial class RunnerGroupsEnterprise : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -70,7 +72,7 @@ public class RunnerGroupsEnterprise : IAdditionalDataHolder, IParsable /// If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified. public bool? WorkflowRestrictionsReadOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RunnerGroupsEnterprise() { @@ -79,12 +81,12 @@ public RunnerGroupsEnterprise() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RunnerGroupsEnterprise CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RunnerGroupsEnterprise CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RunnerGroupsEnterprise(); + return new global::GitHub.Models.RunnerGroupsEnterprise(); } /// /// The deserialization information for the current model @@ -94,17 +96,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allows_public_repositories", n => { AllowsPublicRepositories = n.GetBoolValue(); } }, - {"default", n => { Default = n.GetBoolValue(); } }, - {"hosted_runners_url", n => { HostedRunnersUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetDoubleValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"restricted_to_workflows", n => { RestrictedToWorkflows = n.GetBoolValue(); } }, - {"runners_url", n => { RunnersUrl = n.GetStringValue(); } }, - {"selected_organizations_url", n => { SelectedOrganizationsUrl = n.GetStringValue(); } }, - {"selected_workflows", n => { SelectedWorkflows = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"visibility", n => { Visibility = n.GetStringValue(); } }, - {"workflow_restrictions_read_only", n => { WorkflowRestrictionsReadOnly = n.GetBoolValue(); } }, + { "allows_public_repositories", n => { AllowsPublicRepositories = n.GetBoolValue(); } }, + { "default", n => { Default = n.GetBoolValue(); } }, + { "hosted_runners_url", n => { HostedRunnersUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetDoubleValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "restricted_to_workflows", n => { RestrictedToWorkflows = n.GetBoolValue(); } }, + { "runners_url", n => { RunnersUrl = n.GetStringValue(); } }, + { "selected_organizations_url", n => { SelectedOrganizationsUrl = n.GetStringValue(); } }, + { "selected_workflows", n => { SelectedWorkflows = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "visibility", n => { Visibility = n.GetStringValue(); } }, + { "workflow_restrictions_read_only", n => { WorkflowRestrictionsReadOnly = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/RunnerGroupsOrg.cs b/src/GitHub/Models/RunnerGroupsOrg.cs index 394576a6..e0020e94 100644 --- a/src/GitHub/Models/RunnerGroupsOrg.cs +++ b/src/GitHub/Models/RunnerGroupsOrg.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RunnerGroupsOrg : IAdditionalDataHolder, IParsable + public partial class RunnerGroupsOrg : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -74,7 +76,7 @@ public class RunnerGroupsOrg : IAdditionalDataHolder, IParsable /// If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified. public bool? WorkflowRestrictionsReadOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RunnerGroupsOrg() { @@ -83,12 +85,12 @@ public RunnerGroupsOrg() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RunnerGroupsOrg CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RunnerGroupsOrg CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RunnerGroupsOrg(); + return new global::GitHub.Models.RunnerGroupsOrg(); } /// /// The deserialization information for the current model @@ -98,19 +100,19 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allows_public_repositories", n => { AllowsPublicRepositories = n.GetBoolValue(); } }, - {"default", n => { Default = n.GetBoolValue(); } }, - {"hosted_runners_url", n => { HostedRunnersUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetDoubleValue(); } }, - {"inherited", n => { Inherited = n.GetBoolValue(); } }, - {"inherited_allows_public_repositories", n => { InheritedAllowsPublicRepositories = n.GetBoolValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"restricted_to_workflows", n => { RestrictedToWorkflows = n.GetBoolValue(); } }, - {"runners_url", n => { RunnersUrl = n.GetStringValue(); } }, - {"selected_repositories_url", n => { SelectedRepositoriesUrl = n.GetStringValue(); } }, - {"selected_workflows", n => { SelectedWorkflows = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"visibility", n => { Visibility = n.GetStringValue(); } }, - {"workflow_restrictions_read_only", n => { WorkflowRestrictionsReadOnly = n.GetBoolValue(); } }, + { "allows_public_repositories", n => { AllowsPublicRepositories = n.GetBoolValue(); } }, + { "default", n => { Default = n.GetBoolValue(); } }, + { "hosted_runners_url", n => { HostedRunnersUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetDoubleValue(); } }, + { "inherited", n => { Inherited = n.GetBoolValue(); } }, + { "inherited_allows_public_repositories", n => { InheritedAllowsPublicRepositories = n.GetBoolValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "restricted_to_workflows", n => { RestrictedToWorkflows = n.GetBoolValue(); } }, + { "runners_url", n => { RunnersUrl = n.GetStringValue(); } }, + { "selected_repositories_url", n => { SelectedRepositoriesUrl = n.GetStringValue(); } }, + { "selected_workflows", n => { SelectedWorkflows = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "visibility", n => { Visibility = n.GetStringValue(); } }, + { "workflow_restrictions_read_only", n => { WorkflowRestrictionsReadOnly = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/RunnerLabel.cs b/src/GitHub/Models/RunnerLabel.cs index 8f609992..7af86373 100644 --- a/src/GitHub/Models/RunnerLabel.cs +++ b/src/GitHub/Models/RunnerLabel.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A label for a self hosted runner /// - public class RunnerLabel : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RunnerLabel : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,9 +25,9 @@ public class RunnerLabel : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// The type of label. Read-only labels are applied automatically when the runner is configured. - public RunnerLabel_type? Type { get; set; } + public global::GitHub.Models.RunnerLabel_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RunnerLabel() { @@ -34,12 +36,12 @@ public RunnerLabel() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RunnerLabel CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.RunnerLabel CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RunnerLabel(); + return new global::GitHub.Models.RunnerLabel(); } /// /// The deserialization information for the current model @@ -49,9 +51,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -63,7 +65,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("id", Id); writer.WriteStringValue("name", Name); - writer.WriteEnumValue("type", Type); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/RunnerLabel_type.cs b/src/GitHub/Models/RunnerLabel_type.cs index 82ab639b..b7ac839d 100644 --- a/src/GitHub/Models/RunnerLabel_type.cs +++ b/src/GitHub/Models/RunnerLabel_type.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The type of label. Read-only labels are applied automatically when the runner is configured. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RunnerLabel_type { [EnumMember(Value = "read-only")] diff --git a/src/GitHub/Models/ScimEnterpriseGroupList.cs b/src/GitHub/Models/ScimEnterpriseGroupList.cs index 7f1ccca8..b086dbdb 100644 --- a/src/GitHub/Models/ScimEnterpriseGroupList.cs +++ b/src/GitHub/Models/ScimEnterpriseGroupList.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ScimEnterpriseGroupList : IAdditionalDataHolder, IParsable + public partial class ScimEnterpriseGroupList : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -16,25 +18,25 @@ public class ScimEnterpriseGroupList : IAdditionalDataHolder, IParsable /// Information about each provisioned group. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Resources { get; set; } + public List? Resources { get; set; } #nullable restore #else - public List Resources { get; set; } + public List Resources { get; set; } #endif /// The URIs that are used to indicate the namespaces of the list SCIM schemas. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Schemas { get; set; } + public List? Schemas { get; set; } #nullable restore #else - public List Schemas { get; set; } + public List Schemas { get; set; } #endif /// A starting index for the returned page public int? StartIndex { get; set; } /// Number of results found public int? TotalResults { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ScimEnterpriseGroupList() { @@ -43,12 +45,12 @@ public ScimEnterpriseGroupList() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ScimEnterpriseGroupList CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ScimEnterpriseGroupList CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ScimEnterpriseGroupList(); + return new global::GitHub.Models.ScimEnterpriseGroupList(); } /// /// The deserialization information for the current model @@ -58,11 +60,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"itemsPerPage", n => { ItemsPerPage = n.GetIntValue(); } }, - {"Resources", n => { Resources = n.GetCollectionOfObjectValues(ScimEnterpriseGroupResponse.CreateFromDiscriminatorValue)?.ToList(); } }, - {"schemas", n => { Schemas = n.GetCollectionOfEnumValues()?.ToList(); } }, - {"startIndex", n => { StartIndex = n.GetIntValue(); } }, - {"totalResults", n => { TotalResults = n.GetIntValue(); } }, + { "itemsPerPage", n => { ItemsPerPage = n.GetIntValue(); } }, + { "Resources", n => { Resources = n.GetCollectionOfObjectValues(global::GitHub.Models.ScimEnterpriseGroupResponse.CreateFromDiscriminatorValue)?.AsList(); } }, + { "schemas", n => { Schemas = n.GetCollectionOfEnumValues()?.AsList(); } }, + { "startIndex", n => { StartIndex = n.GetIntValue(); } }, + { "totalResults", n => { TotalResults = n.GetIntValue(); } }, }; } /// @@ -73,8 +75,8 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("itemsPerPage", ItemsPerPage); - writer.WriteCollectionOfObjectValues("Resources", Resources); - writer.WriteCollectionOfEnumValues("schemas", Schemas); + writer.WriteCollectionOfObjectValues("Resources", Resources); + writer.WriteCollectionOfEnumValues("schemas", Schemas); writer.WriteIntValue("startIndex", StartIndex); writer.WriteIntValue("totalResults", TotalResults); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/ScimEnterpriseGroupList_schemas.cs b/src/GitHub/Models/ScimEnterpriseGroupList_schemas.cs index 40552602..3ada211b 100644 --- a/src/GitHub/Models/ScimEnterpriseGroupList_schemas.cs +++ b/src/GitHub/Models/ScimEnterpriseGroupList_schemas.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum ScimEnterpriseGroupList_schemas #pragma warning restore CS1591 diff --git a/src/GitHub/Models/ScimEnterpriseGroupResponse.cs b/src/GitHub/Models/ScimEnterpriseGroupResponse.cs index 81e0399a..2826febb 100644 --- a/src/GitHub/Models/ScimEnterpriseGroupResponse.cs +++ b/src/GitHub/Models/ScimEnterpriseGroupResponse.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ScimEnterpriseGroupResponse : GroupResponse, IParsable + public partial class ScimEnterpriseGroupResponse : global::GitHub.Models.GroupResponse, IParsable #pragma warning restore CS1591 { /// The internally generated id for the group object. @@ -20,20 +22,20 @@ public class ScimEnterpriseGroupResponse : GroupResponse, IParsable /// The metadata associated with the creation/updates to the user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Meta? Meta { get; set; } + public global::GitHub.Models.Meta? Meta { get; set; } #nullable restore #else - public GitHub.Models.Meta Meta { get; set; } + public global::GitHub.Models.Meta Meta { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new ScimEnterpriseGroupResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::GitHub.Models.ScimEnterpriseGroupResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ScimEnterpriseGroupResponse(); + return new global::GitHub.Models.ScimEnterpriseGroupResponse(); } /// /// The deserialization information for the current model @@ -43,8 +45,8 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"id", n => { Id = n.GetStringValue(); } }, - {"meta", n => { Meta = n.GetObjectValue(GitHub.Models.Meta.CreateFromDiscriminatorValue); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "meta", n => { Meta = n.GetObjectValue(global::GitHub.Models.Meta.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,7 +58,7 @@ public override void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("id", Id); - writer.WriteObjectValue("meta", Meta); + writer.WriteObjectValue("meta", Meta); } } } diff --git a/src/GitHub/Models/ScimEnterpriseGroupResponse_members.cs b/src/GitHub/Models/ScimEnterpriseGroupResponse_members.cs index 3ef07e91..25b9646b 100644 --- a/src/GitHub/Models/ScimEnterpriseGroupResponse_members.cs +++ b/src/GitHub/Models/ScimEnterpriseGroupResponse_members.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ScimEnterpriseGroupResponse_members : IAdditionalDataHolder, IParsable + public partial class ScimEnterpriseGroupResponse_members : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class ScimEnterpriseGroupResponse_members : IAdditionalDataHolder, IParsa public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ScimEnterpriseGroupResponse_members() { @@ -45,12 +47,12 @@ public ScimEnterpriseGroupResponse_members() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ScimEnterpriseGroupResponse_members CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ScimEnterpriseGroupResponse_members CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ScimEnterpriseGroupResponse_members(); + return new global::GitHub.Models.ScimEnterpriseGroupResponse_members(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"display", n => { Display = n.GetStringValue(); } }, - {"$ref", n => { Ref = n.GetStringValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, + { "display", n => { Display = n.GetStringValue(); } }, + { "$ref", n => { Ref = n.GetStringValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ScimEnterpriseUserList.cs b/src/GitHub/Models/ScimEnterpriseUserList.cs index 67c8e65b..1aee90b6 100644 --- a/src/GitHub/Models/ScimEnterpriseUserList.cs +++ b/src/GitHub/Models/ScimEnterpriseUserList.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ScimEnterpriseUserList : IAdditionalDataHolder, IParsable + public partial class ScimEnterpriseUserList : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -16,25 +18,25 @@ public class ScimEnterpriseUserList : IAdditionalDataHolder, IParsable /// Information about each provisioned account. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Resources { get; set; } + public List? Resources { get; set; } #nullable restore #else - public List Resources { get; set; } + public List Resources { get; set; } #endif /// The URIs that are used to indicate the namespaces of the list SCIM schemas. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Schemas { get; set; } + public List? Schemas { get; set; } #nullable restore #else - public List Schemas { get; set; } + public List Schemas { get; set; } #endif /// A starting index for the returned page public int? StartIndex { get; set; } /// Number of results found public int? TotalResults { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ScimEnterpriseUserList() { @@ -43,12 +45,12 @@ public ScimEnterpriseUserList() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ScimEnterpriseUserList CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ScimEnterpriseUserList CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ScimEnterpriseUserList(); + return new global::GitHub.Models.ScimEnterpriseUserList(); } /// /// The deserialization information for the current model @@ -58,11 +60,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"itemsPerPage", n => { ItemsPerPage = n.GetIntValue(); } }, - {"Resources", n => { Resources = n.GetCollectionOfObjectValues(ScimEnterpriseUserResponse.CreateFromDiscriminatorValue)?.ToList(); } }, - {"schemas", n => { Schemas = n.GetCollectionOfEnumValues()?.ToList(); } }, - {"startIndex", n => { StartIndex = n.GetIntValue(); } }, - {"totalResults", n => { TotalResults = n.GetIntValue(); } }, + { "itemsPerPage", n => { ItemsPerPage = n.GetIntValue(); } }, + { "Resources", n => { Resources = n.GetCollectionOfObjectValues(global::GitHub.Models.ScimEnterpriseUserResponse.CreateFromDiscriminatorValue)?.AsList(); } }, + { "schemas", n => { Schemas = n.GetCollectionOfEnumValues()?.AsList(); } }, + { "startIndex", n => { StartIndex = n.GetIntValue(); } }, + { "totalResults", n => { TotalResults = n.GetIntValue(); } }, }; } /// @@ -73,8 +75,8 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("itemsPerPage", ItemsPerPage); - writer.WriteCollectionOfObjectValues("Resources", Resources); - writer.WriteCollectionOfEnumValues("schemas", Schemas); + writer.WriteCollectionOfObjectValues("Resources", Resources); + writer.WriteCollectionOfEnumValues("schemas", Schemas); writer.WriteIntValue("startIndex", StartIndex); writer.WriteIntValue("totalResults", TotalResults); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/ScimEnterpriseUserList_schemas.cs b/src/GitHub/Models/ScimEnterpriseUserList_schemas.cs index a43aaa7e..7e2e5450 100644 --- a/src/GitHub/Models/ScimEnterpriseUserList_schemas.cs +++ b/src/GitHub/Models/ScimEnterpriseUserList_schemas.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum ScimEnterpriseUserList_schemas #pragma warning restore CS1591 diff --git a/src/GitHub/Models/ScimEnterpriseUserResponse.cs b/src/GitHub/Models/ScimEnterpriseUserResponse.cs index bbc1aa9e..3ae56bc3 100644 --- a/src/GitHub/Models/ScimEnterpriseUserResponse.cs +++ b/src/GitHub/Models/ScimEnterpriseUserResponse.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ScimEnterpriseUserResponse : UserResponse, IParsable + public partial class ScimEnterpriseUserResponse : global::GitHub.Models.UserResponse, IParsable #pragma warning restore CS1591 { /// Provisioned SCIM groups that the user is a member of. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Groups { get; set; } + public List? Groups { get; set; } #nullable restore #else - public List Groups { get; set; } + public List Groups { get; set; } #endif /// The internally generated id for the user object. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -28,20 +30,20 @@ public class ScimEnterpriseUserResponse : UserResponse, IParsable /// The metadata associated with the creation/updates to the user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Meta? Meta { get; set; } + public global::GitHub.Models.Meta? Meta { get; set; } #nullable restore #else - public GitHub.Models.Meta Meta { get; set; } + public global::GitHub.Models.Meta Meta { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new ScimEnterpriseUserResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::GitHub.Models.ScimEnterpriseUserResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ScimEnterpriseUserResponse(); + return new global::GitHub.Models.ScimEnterpriseUserResponse(); } /// /// The deserialization information for the current model @@ -51,9 +53,9 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"groups", n => { Groups = n.GetCollectionOfObjectValues(ScimEnterpriseUserResponse_groups.CreateFromDiscriminatorValue)?.ToList(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"meta", n => { Meta = n.GetObjectValue(GitHub.Models.Meta.CreateFromDiscriminatorValue); } }, + { "groups", n => { Groups = n.GetCollectionOfObjectValues(global::GitHub.Models.ScimEnterpriseUserResponse_groups.CreateFromDiscriminatorValue)?.AsList(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "meta", n => { Meta = n.GetObjectValue(global::GitHub.Models.Meta.CreateFromDiscriminatorValue); } }, }; } /// @@ -64,9 +66,9 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("groups", Groups); + writer.WriteCollectionOfObjectValues("groups", Groups); writer.WriteStringValue("id", Id); - writer.WriteObjectValue("meta", Meta); + writer.WriteObjectValue("meta", Meta); } } } diff --git a/src/GitHub/Models/ScimEnterpriseUserResponse_groups.cs b/src/GitHub/Models/ScimEnterpriseUserResponse_groups.cs index 2d864c09..cdbfa923 100644 --- a/src/GitHub/Models/ScimEnterpriseUserResponse_groups.cs +++ b/src/GitHub/Models/ScimEnterpriseUserResponse_groups.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ScimEnterpriseUserResponse_groups : IAdditionalDataHolder, IParsable + public partial class ScimEnterpriseUserResponse_groups : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class ScimEnterpriseUserResponse_groups : IAdditionalDataHolder, IParsabl public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ScimEnterpriseUserResponse_groups() { @@ -45,12 +47,12 @@ public ScimEnterpriseUserResponse_groups() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ScimEnterpriseUserResponse_groups CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ScimEnterpriseUserResponse_groups CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ScimEnterpriseUserResponse_groups(); + return new global::GitHub.Models.ScimEnterpriseUserResponse_groups(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"display", n => { Display = n.GetStringValue(); } }, - {"$ref", n => { Ref = n.GetStringValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, + { "display", n => { Display = n.GetStringValue(); } }, + { "$ref", n => { Ref = n.GetStringValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ScimError.cs b/src/GitHub/Models/ScimError.cs index 7919b747..a93e1270 100644 --- a/src/GitHub/Models/ScimError.cs +++ b/src/GitHub/Models/ScimError.cs @@ -1,15 +1,17 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Scim Error /// - public class ScimError : ApiException, IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ScimError : ApiException, IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,14 +31,8 @@ public class ScimError : ApiException, IAdditionalDataHolder, IParsable #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// The schemas property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -56,7 +52,7 @@ public class ScimError : ApiException, IAdditionalDataHolder, IParsable /// The status property public int? Status { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ScimError() { @@ -65,12 +61,12 @@ public ScimError() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ScimError CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ScimError CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ScimError(); + return new global::GitHub.Models.ScimError(); } /// /// The deserialization information for the current model @@ -80,12 +76,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"detail", n => { Detail = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, - {"schemas", n => { Schemas = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"scimType", n => { ScimType = n.GetStringValue(); } }, - {"status", n => { Status = n.GetIntValue(); } }, + { "detail", n => { Detail = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, + { "schemas", n => { Schemas = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "scimType", n => { ScimType = n.GetStringValue(); } }, + { "status", n => { Status = n.GetIntValue(); } }, }; } /// @@ -97,7 +92,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("detail", Detail); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteCollectionOfPrimitiveValues("schemas", Schemas); writer.WriteStringValue("scimType", ScimType); writer.WriteIntValue("status", Status); diff --git a/src/GitHub/Models/ScimUser.cs b/src/GitHub/Models/ScimUser.cs index 100353f3..827c17e0 100644 --- a/src/GitHub/Models/ScimUser.cs +++ b/src/GitHub/Models/ScimUser.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// SCIM /Users provisioning endpoints /// - public class ScimUser : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ScimUser : IAdditionalDataHolder, IParsable { /// The active status of the User. public bool? Active { get; set; } @@ -25,10 +27,10 @@ public class ScimUser : IAdditionalDataHolder, IParsable /// user emails #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Emails { get; set; } + public List? Emails { get; set; } #nullable restore #else - public List Emails { get; set; } + public List Emails { get; set; } #endif /// The ID of the User. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -41,10 +43,10 @@ public class ScimUser : IAdditionalDataHolder, IParsable /// associated groups #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Groups { get; set; } + public List? Groups { get; set; } #nullable restore #else - public List Groups { get; set; } + public List Groups { get; set; } #endif /// Unique identifier of an external identity #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -57,36 +59,36 @@ public class ScimUser : IAdditionalDataHolder, IParsable /// The meta property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ScimUser_meta? Meta { get; set; } + public global::GitHub.Models.ScimUser_meta? Meta { get; set; } #nullable restore #else - public ScimUser_meta Meta { get; set; } + public global::GitHub.Models.ScimUser_meta Meta { get; set; } #endif /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ScimUser_name? Name { get; set; } + public global::GitHub.Models.ScimUser_name? Name { get; set; } #nullable restore #else - public ScimUser_name Name { get; set; } + public global::GitHub.Models.ScimUser_name Name { get; set; } #endif /// Set of operations to be performed #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Operations { get; set; } + public List? Operations { get; set; } #nullable restore #else - public List Operations { get; set; } + public List Operations { get; set; } #endif /// The ID of the organization. public int? OrganizationId { get; set; } /// The roles property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Roles { get; set; } + public List? Roles { get; set; } #nullable restore #else - public List Roles { get; set; } + public List Roles { get; set; } #endif /// SCIM schema used. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,7 +107,7 @@ public class ScimUser : IAdditionalDataHolder, IParsable public string UserName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ScimUser() { @@ -114,12 +116,12 @@ public ScimUser() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ScimUser CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ScimUser CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ScimUser(); + return new global::GitHub.Models.ScimUser(); } /// /// The deserialization information for the current model @@ -129,19 +131,19 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"active", n => { Active = n.GetBoolValue(); } }, - {"displayName", n => { DisplayName = n.GetStringValue(); } }, - {"emails", n => { Emails = n.GetCollectionOfObjectValues(ScimUser_emails.CreateFromDiscriminatorValue)?.ToList(); } }, - {"externalId", n => { ExternalId = n.GetStringValue(); } }, - {"groups", n => { Groups = n.GetCollectionOfObjectValues(ScimUser_groups.CreateFromDiscriminatorValue)?.ToList(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"meta", n => { Meta = n.GetObjectValue(ScimUser_meta.CreateFromDiscriminatorValue); } }, - {"name", n => { Name = n.GetObjectValue(ScimUser_name.CreateFromDiscriminatorValue); } }, - {"operations", n => { Operations = n.GetCollectionOfObjectValues(ScimUser_operations.CreateFromDiscriminatorValue)?.ToList(); } }, - {"organization_id", n => { OrganizationId = n.GetIntValue(); } }, - {"roles", n => { Roles = n.GetCollectionOfObjectValues(ScimUser_roles.CreateFromDiscriminatorValue)?.ToList(); } }, - {"schemas", n => { Schemas = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"userName", n => { UserName = n.GetStringValue(); } }, + { "active", n => { Active = n.GetBoolValue(); } }, + { "displayName", n => { DisplayName = n.GetStringValue(); } }, + { "emails", n => { Emails = n.GetCollectionOfObjectValues(global::GitHub.Models.ScimUser_emails.CreateFromDiscriminatorValue)?.AsList(); } }, + { "externalId", n => { ExternalId = n.GetStringValue(); } }, + { "groups", n => { Groups = n.GetCollectionOfObjectValues(global::GitHub.Models.ScimUser_groups.CreateFromDiscriminatorValue)?.AsList(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "meta", n => { Meta = n.GetObjectValue(global::GitHub.Models.ScimUser_meta.CreateFromDiscriminatorValue); } }, + { "name", n => { Name = n.GetObjectValue(global::GitHub.Models.ScimUser_name.CreateFromDiscriminatorValue); } }, + { "operations", n => { Operations = n.GetCollectionOfObjectValues(global::GitHub.Models.ScimUser_operations.CreateFromDiscriminatorValue)?.AsList(); } }, + { "organization_id", n => { OrganizationId = n.GetIntValue(); } }, + { "roles", n => { Roles = n.GetCollectionOfObjectValues(global::GitHub.Models.ScimUser_roles.CreateFromDiscriminatorValue)?.AsList(); } }, + { "schemas", n => { Schemas = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "userName", n => { UserName = n.GetStringValue(); } }, }; } /// @@ -153,15 +155,15 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("active", Active); writer.WriteStringValue("displayName", DisplayName); - writer.WriteCollectionOfObjectValues("emails", Emails); + writer.WriteCollectionOfObjectValues("emails", Emails); writer.WriteStringValue("externalId", ExternalId); - writer.WriteCollectionOfObjectValues("groups", Groups); + writer.WriteCollectionOfObjectValues("groups", Groups); writer.WriteStringValue("id", Id); - writer.WriteObjectValue("meta", Meta); - writer.WriteObjectValue("name", Name); - writer.WriteCollectionOfObjectValues("operations", Operations); + writer.WriteObjectValue("meta", Meta); + writer.WriteObjectValue("name", Name); + writer.WriteCollectionOfObjectValues("operations", Operations); writer.WriteIntValue("organization_id", OrganizationId); - writer.WriteCollectionOfObjectValues("roles", Roles); + writer.WriteCollectionOfObjectValues("roles", Roles); writer.WriteCollectionOfPrimitiveValues("schemas", Schemas); writer.WriteStringValue("userName", UserName); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/ScimUserList.cs b/src/GitHub/Models/ScimUserList.cs index fd70e3ca..72aa396d 100644 --- a/src/GitHub/Models/ScimUserList.cs +++ b/src/GitHub/Models/ScimUserList.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// SCIM User List /// - public class ScimUserList : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ScimUserList : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -17,10 +19,10 @@ public class ScimUserList : IAdditionalDataHolder, IParsable /// The Resources property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Resources { get; set; } + public List? Resources { get; set; } #nullable restore #else - public List Resources { get; set; } + public List Resources { get; set; } #endif /// SCIM schema used. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -35,7 +37,7 @@ public class ScimUserList : IAdditionalDataHolder, IParsable /// The totalResults property public int? TotalResults { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ScimUserList() { @@ -44,12 +46,12 @@ public ScimUserList() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ScimUserList CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ScimUserList CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ScimUserList(); + return new global::GitHub.Models.ScimUserList(); } /// /// The deserialization information for the current model @@ -59,11 +61,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"itemsPerPage", n => { ItemsPerPage = n.GetIntValue(); } }, - {"Resources", n => { Resources = n.GetCollectionOfObjectValues(ScimUser.CreateFromDiscriminatorValue)?.ToList(); } }, - {"schemas", n => { Schemas = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"startIndex", n => { StartIndex = n.GetIntValue(); } }, - {"totalResults", n => { TotalResults = n.GetIntValue(); } }, + { "itemsPerPage", n => { ItemsPerPage = n.GetIntValue(); } }, + { "Resources", n => { Resources = n.GetCollectionOfObjectValues(global::GitHub.Models.ScimUser.CreateFromDiscriminatorValue)?.AsList(); } }, + { "schemas", n => { Schemas = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "startIndex", n => { StartIndex = n.GetIntValue(); } }, + { "totalResults", n => { TotalResults = n.GetIntValue(); } }, }; } /// @@ -74,7 +76,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("itemsPerPage", ItemsPerPage); - writer.WriteCollectionOfObjectValues("Resources", Resources); + writer.WriteCollectionOfObjectValues("Resources", Resources); writer.WriteCollectionOfPrimitiveValues("schemas", Schemas); writer.WriteIntValue("startIndex", StartIndex); writer.WriteIntValue("totalResults", TotalResults); diff --git a/src/GitHub/Models/ScimUser_emails.cs b/src/GitHub/Models/ScimUser_emails.cs index b05ad50c..915df648 100644 --- a/src/GitHub/Models/ScimUser_emails.cs +++ b/src/GitHub/Models/ScimUser_emails.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ScimUser_emails : IAdditionalDataHolder, IParsable + public partial class ScimUser_emails : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,7 +32,7 @@ public class ScimUser_emails : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ScimUser_emails() { @@ -39,12 +41,12 @@ public ScimUser_emails() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ScimUser_emails CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ScimUser_emails CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ScimUser_emails(); + return new global::GitHub.Models.ScimUser_emails(); } /// /// The deserialization information for the current model @@ -54,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"primary", n => { Primary = n.GetBoolValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, + { "primary", n => { Primary = n.GetBoolValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ScimUser_groups.cs b/src/GitHub/Models/ScimUser_groups.cs index bf11124a..4822c1e3 100644 --- a/src/GitHub/Models/ScimUser_groups.cs +++ b/src/GitHub/Models/ScimUser_groups.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ScimUser_groups : IAdditionalDataHolder, IParsable + public partial class ScimUser_groups : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class ScimUser_groups : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ScimUser_groups() { @@ -37,12 +39,12 @@ public ScimUser_groups() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ScimUser_groups CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ScimUser_groups CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ScimUser_groups(); + return new global::GitHub.Models.ScimUser_groups(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"display", n => { Display = n.GetStringValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, + { "display", n => { Display = n.GetStringValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ScimUser_meta.cs b/src/GitHub/Models/ScimUser_meta.cs index 3cdc0b7c..7e8c0f61 100644 --- a/src/GitHub/Models/ScimUser_meta.cs +++ b/src/GitHub/Models/ScimUser_meta.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ScimUser_meta : IAdditionalDataHolder, IParsable + public partial class ScimUser_meta : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -32,7 +34,7 @@ public class ScimUser_meta : IAdditionalDataHolder, IParsable public string ResourceType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ScimUser_meta() { @@ -41,12 +43,12 @@ public ScimUser_meta() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ScimUser_meta CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ScimUser_meta CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ScimUser_meta(); + return new global::GitHub.Models.ScimUser_meta(); } /// /// The deserialization information for the current model @@ -56,10 +58,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created", n => { Created = n.GetDateTimeOffsetValue(); } }, - {"lastModified", n => { LastModified = n.GetDateTimeOffsetValue(); } }, - {"location", n => { Location = n.GetStringValue(); } }, - {"resourceType", n => { ResourceType = n.GetStringValue(); } }, + { "created", n => { Created = n.GetDateTimeOffsetValue(); } }, + { "lastModified", n => { LastModified = n.GetDateTimeOffsetValue(); } }, + { "location", n => { Location = n.GetStringValue(); } }, + { "resourceType", n => { ResourceType = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ScimUser_name.cs b/src/GitHub/Models/ScimUser_name.cs index facad630..9b10508e 100644 --- a/src/GitHub/Models/ScimUser_name.cs +++ b/src/GitHub/Models/ScimUser_name.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ScimUser_name : IAdditionalDataHolder, IParsable + public partial class ScimUser_name : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class ScimUser_name : IAdditionalDataHolder, IParsable public string GivenName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ScimUser_name() { @@ -45,12 +47,12 @@ public ScimUser_name() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ScimUser_name CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ScimUser_name CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ScimUser_name(); + return new global::GitHub.Models.ScimUser_name(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"familyName", n => { FamilyName = n.GetStringValue(); } }, - {"formatted", n => { Formatted = n.GetStringValue(); } }, - {"givenName", n => { GivenName = n.GetStringValue(); } }, + { "familyName", n => { FamilyName = n.GetStringValue(); } }, + { "formatted", n => { Formatted = n.GetStringValue(); } }, + { "givenName", n => { GivenName = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ScimUser_operations.cs b/src/GitHub/Models/ScimUser_operations.cs index 67165ce5..72ed7d2c 100644 --- a/src/GitHub/Models/ScimUser_operations.cs +++ b/src/GitHub/Models/ScimUser_operations.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ScimUser_operations : IAdditionalDataHolder, IParsable + public partial class ScimUser_operations : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The op property - public ScimUser_operations_op? Op { get; set; } + public global::GitHub.Models.ScimUser_operations_op? Op { get; set; } /// The path property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -24,13 +26,13 @@ public class ScimUser_operations : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ScimUser_operations_value? Value { get; set; } + public global::GitHub.Models.ScimUser_operations.ScimUser_operations_value? Value { get; set; } #nullable restore #else - public ScimUser_operations_value Value { get; set; } + public global::GitHub.Models.ScimUser_operations.ScimUser_operations_value Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ScimUser_operations() { @@ -39,12 +41,12 @@ public ScimUser_operations() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ScimUser_operations CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ScimUser_operations CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ScimUser_operations(); + return new global::GitHub.Models.ScimUser_operations(); } /// /// The deserialization information for the current model @@ -54,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"op", n => { Op = n.GetEnumValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"value", n => { Value = n.GetObjectValue(ScimUser_operations_value.CreateFromDiscriminatorValue); } }, + { "op", n => { Op = n.GetEnumValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "value", n => { Value = n.GetObjectValue(global::GitHub.Models.ScimUser_operations.ScimUser_operations_value.CreateFromDiscriminatorValue); } }, }; } /// @@ -66,31 +68,32 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("op", Op); + writer.WriteEnumValue("op", Op); writer.WriteStringValue("path", Path); - writer.WriteObjectValue("value", Value); + writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); } /// - /// Composed type wrapper for classes , , + /// Composed type wrapper for classes , , /// - public class ScimUser_operations_value : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ScimUser_operations_value : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ScimUser_operations_valueMember1? ScimUserOperationsValueMember1 { get; set; } + public global::GitHub.Models.ScimUser_operations_valueMember1? ScimUserOperationsValueMember1 { get; set; } #nullable restore #else - public ScimUser_operations_valueMember1 ScimUserOperationsValueMember1 { get; set; } + public global::GitHub.Models.ScimUser_operations_valueMember1 ScimUserOperationsValueMember1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ScimUser_operations_valueMember2? ScimUserOperationsValueMember2 { get; set; } + public global::GitHub.Models.ScimUser_operations_valueMember2? ScimUserOperationsValueMember2 { get; set; } #nullable restore #else - public ScimUser_operations_valueMember2 ScimUserOperationsValueMember2 { get; set; } + public global::GitHub.Models.ScimUser_operations_valueMember2 ScimUserOperationsValueMember2 { get; set; } #endif /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -103,20 +106,20 @@ public class ScimUser_operations_value : IComposedTypeWrapper, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ScimUser_operations_value CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ScimUser_operations.ScimUser_operations_value CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new ScimUser_operations_value(); + var result = new global::GitHub.Models.ScimUser_operations.ScimUser_operations_value(); if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.ScimUserOperationsValueMember1 = new ScimUser_operations_valueMember1(); + result.ScimUserOperationsValueMember1 = new global::GitHub.Models.ScimUser_operations_valueMember1(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.ScimUserOperationsValueMember2 = new ScimUser_operations_valueMember2(); + result.ScimUserOperationsValueMember2 = new global::GitHub.Models.ScimUser_operations_valueMember2(); } else if(parseNode.GetStringValue() is string stringValue) { @@ -149,11 +152,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(ScimUserOperationsValueMember1 != null) { - writer.WriteObjectValue(null, ScimUserOperationsValueMember1); + writer.WriteObjectValue(null, ScimUserOperationsValueMember1); } else if(ScimUserOperationsValueMember2 != null) { - writer.WriteObjectValue(null, ScimUserOperationsValueMember2); + writer.WriteObjectValue(null, ScimUserOperationsValueMember2); } else if(String != null) { diff --git a/src/GitHub/Models/ScimUser_operations_op.cs b/src/GitHub/Models/ScimUser_operations_op.cs index d61da559..d3521f8a 100644 --- a/src/GitHub/Models/ScimUser_operations_op.cs +++ b/src/GitHub/Models/ScimUser_operations_op.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum ScimUser_operations_op #pragma warning restore CS1591 diff --git a/src/GitHub/Models/ScimUser_operations_valueMember1.cs b/src/GitHub/Models/ScimUser_operations_valueMember1.cs index 98a61719..09f7b979 100644 --- a/src/GitHub/Models/ScimUser_operations_valueMember1.cs +++ b/src/GitHub/Models/ScimUser_operations_valueMember1.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ScimUser_operations_valueMember1 : IAdditionalDataHolder, IParsable + public partial class ScimUser_operations_valueMember1 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ScimUser_operations_valueMember1() { @@ -21,12 +23,12 @@ public ScimUser_operations_valueMember1() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ScimUser_operations_valueMember1 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ScimUser_operations_valueMember1 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ScimUser_operations_valueMember1(); + return new global::GitHub.Models.ScimUser_operations_valueMember1(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/ScimUser_operations_valueMember2.cs b/src/GitHub/Models/ScimUser_operations_valueMember2.cs index 173ee286..3bbe3cee 100644 --- a/src/GitHub/Models/ScimUser_operations_valueMember2.cs +++ b/src/GitHub/Models/ScimUser_operations_valueMember2.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ScimUser_operations_valueMember2 : IAdditionalDataHolder, IParsable + public partial class ScimUser_operations_valueMember2 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ScimUser_operations_valueMember2() { @@ -21,12 +23,12 @@ public ScimUser_operations_valueMember2() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ScimUser_operations_valueMember2 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ScimUser_operations_valueMember2 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ScimUser_operations_valueMember2(); + return new global::GitHub.Models.ScimUser_operations_valueMember2(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/ScimUser_roles.cs b/src/GitHub/Models/ScimUser_roles.cs index 1e20ce90..1e040092 100644 --- a/src/GitHub/Models/ScimUser_roles.cs +++ b/src/GitHub/Models/ScimUser_roles.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ScimUser_roles : IAdditionalDataHolder, IParsable + public partial class ScimUser_roles : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -38,7 +40,7 @@ public class ScimUser_roles : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ScimUser_roles() { @@ -47,12 +49,12 @@ public ScimUser_roles() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ScimUser_roles CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ScimUser_roles CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ScimUser_roles(); + return new global::GitHub.Models.ScimUser_roles(); } /// /// The deserialization information for the current model @@ -62,10 +64,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"display", n => { Display = n.GetStringValue(); } }, - {"primary", n => { Primary = n.GetBoolValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, + { "display", n => { Display = n.GetStringValue(); } }, + { "primary", n => { Primary = n.GetBoolValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SecretScanningAlert.cs b/src/GitHub/Models/SecretScanningAlert.cs index 667b25f8..d2142d7b 100644 --- a/src/GitHub/Models/SecretScanningAlert.cs +++ b/src/GitHub/Models/SecretScanningAlert.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SecretScanningAlert : IAdditionalDataHolder, IParsable + public partial class SecretScanningAlert : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -38,13 +40,13 @@ public class SecretScanningAlert : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? PushProtectionBypassedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser? PushProtectionBypassedBy { get; set; } #nullable restore #else - public NullableSimpleUser PushProtectionBypassedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser PushProtectionBypassedBy { get; set; } #endif /// **Required when the `state` is `resolved`.** The reason for resolving the alert. - public SecretScanningAlertResolution? Resolution { get; set; } + public global::GitHub.Models.SecretScanningAlertResolution? Resolution { get; set; } /// An optional comment to resolve an alert. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -58,10 +60,10 @@ public class SecretScanningAlert : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? ResolvedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser? ResolvedBy { get; set; } #nullable restore #else - public NullableSimpleUser ResolvedBy { get; set; } + public global::GitHub.Models.NullableSimpleUser ResolvedBy { get; set; } #endif /// The secret that was detected. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -88,7 +90,7 @@ public class SecretScanningAlert : IAdditionalDataHolder, IParsable public string SecretTypeDisplayName { get; set; } #endif /// Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`. - public SecretScanningAlertState? State { get; set; } + public global::GitHub.Models.SecretScanningAlertState? State { get; set; } /// The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. public DateTimeOffset? UpdatedAt { get; private set; } /// The REST API URL of the alert resource. @@ -100,9 +102,9 @@ public class SecretScanningAlert : IAdditionalDataHolder, IParsable public string Url { get; private set; } #endif /// The token status as of the latest validity check. - public SecretScanningAlert_validity? Validity { get; set; } + public global::GitHub.Models.SecretScanningAlert_validity? Validity { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretScanningAlert() { @@ -111,12 +113,12 @@ public SecretScanningAlert() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretScanningAlert CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecretScanningAlert CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretScanningAlert(); + return new global::GitHub.Models.SecretScanningAlert(); } /// /// The deserialization information for the current model @@ -126,24 +128,24 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"locations_url", n => { LocationsUrl = n.GetStringValue(); } }, - {"number", n => { Number = n.GetIntValue(); } }, - {"push_protection_bypassed", n => { PushProtectionBypassed = n.GetBoolValue(); } }, - {"push_protection_bypassed_at", n => { PushProtectionBypassedAt = n.GetDateTimeOffsetValue(); } }, - {"push_protection_bypassed_by", n => { PushProtectionBypassedBy = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"resolution", n => { Resolution = n.GetEnumValue(); } }, - {"resolution_comment", n => { ResolutionComment = n.GetStringValue(); } }, - {"resolved_at", n => { ResolvedAt = n.GetDateTimeOffsetValue(); } }, - {"resolved_by", n => { ResolvedBy = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"secret", n => { Secret = n.GetStringValue(); } }, - {"secret_type", n => { SecretType = n.GetStringValue(); } }, - {"secret_type_display_name", n => { SecretTypeDisplayName = n.GetStringValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"validity", n => { Validity = n.GetEnumValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "locations_url", n => { LocationsUrl = n.GetStringValue(); } }, + { "number", n => { Number = n.GetIntValue(); } }, + { "push_protection_bypassed", n => { PushProtectionBypassed = n.GetBoolValue(); } }, + { "push_protection_bypassed_at", n => { PushProtectionBypassedAt = n.GetDateTimeOffsetValue(); } }, + { "push_protection_bypassed_by", n => { PushProtectionBypassedBy = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "resolution", n => { Resolution = n.GetEnumValue(); } }, + { "resolution_comment", n => { ResolutionComment = n.GetStringValue(); } }, + { "resolved_at", n => { ResolvedAt = n.GetDateTimeOffsetValue(); } }, + { "resolved_by", n => { ResolvedBy = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "secret", n => { Secret = n.GetStringValue(); } }, + { "secret_type", n => { SecretType = n.GetStringValue(); } }, + { "secret_type_display_name", n => { SecretTypeDisplayName = n.GetStringValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "validity", n => { Validity = n.GetEnumValue(); } }, }; } /// @@ -156,16 +158,16 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("locations_url", LocationsUrl); writer.WriteBoolValue("push_protection_bypassed", PushProtectionBypassed); writer.WriteDateTimeOffsetValue("push_protection_bypassed_at", PushProtectionBypassedAt); - writer.WriteObjectValue("push_protection_bypassed_by", PushProtectionBypassedBy); - writer.WriteEnumValue("resolution", Resolution); + writer.WriteObjectValue("push_protection_bypassed_by", PushProtectionBypassedBy); + writer.WriteEnumValue("resolution", Resolution); writer.WriteStringValue("resolution_comment", ResolutionComment); writer.WriteDateTimeOffsetValue("resolved_at", ResolvedAt); - writer.WriteObjectValue("resolved_by", ResolvedBy); + writer.WriteObjectValue("resolved_by", ResolvedBy); writer.WriteStringValue("secret", Secret); writer.WriteStringValue("secret_type", SecretType); writer.WriteStringValue("secret_type_display_name", SecretTypeDisplayName); - writer.WriteEnumValue("state", State); - writer.WriteEnumValue("validity", Validity); + writer.WriteEnumValue("state", State); + writer.WriteEnumValue("validity", Validity); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/SecretScanningAlert503Error.cs b/src/GitHub/Models/SecretScanningAlert503Error.cs index 38f26a3d..4989a49e 100644 --- a/src/GitHub/Models/SecretScanningAlert503Error.cs +++ b/src/GitHub/Models/SecretScanningAlert503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SecretScanningAlert503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class SecretScanningAlert503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class SecretScanningAlert503Error : ApiException, IAdditionalDataHolder, #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretScanningAlert503Error() { @@ -46,12 +42,12 @@ public SecretScanningAlert503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretScanningAlert503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecretScanningAlert503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretScanningAlert503Error(); + return new global::GitHub.Models.SecretScanningAlert503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/SecretScanningAlertResolution.cs b/src/GitHub/Models/SecretScanningAlertResolution.cs index c4bd36ab..ab30fb78 100644 --- a/src/GitHub/Models/SecretScanningAlertResolution.cs +++ b/src/GitHub/Models/SecretScanningAlertResolution.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// **Required when the `state` is `resolved`.** The reason for resolving the alert. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum SecretScanningAlertResolution { [EnumMember(Value = "false_positive")] diff --git a/src/GitHub/Models/SecretScanningAlertState.cs b/src/GitHub/Models/SecretScanningAlertState.cs index 70f25063..99abb2fc 100644 --- a/src/GitHub/Models/SecretScanningAlertState.cs +++ b/src/GitHub/Models/SecretScanningAlertState.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum SecretScanningAlertState { [EnumMember(Value = "open")] diff --git a/src/GitHub/Models/SecretScanningAlert_validity.cs b/src/GitHub/Models/SecretScanningAlert_validity.cs index 69e4f7eb..bd0c6512 100644 --- a/src/GitHub/Models/SecretScanningAlert_validity.cs +++ b/src/GitHub/Models/SecretScanningAlert_validity.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The token status as of the latest validity check. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum SecretScanningAlert_validity { [EnumMember(Value = "active")] diff --git a/src/GitHub/Models/SecretScanningLocation.cs b/src/GitHub/Models/SecretScanningLocation.cs index 7bbc5934..57712986 100644 --- a/src/GitHub/Models/SecretScanningLocation.cs +++ b/src/GitHub/Models/SecretScanningLocation.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SecretScanningLocation : IAdditionalDataHolder, IParsable + public partial class SecretScanningLocation : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,15 +16,15 @@ public class SecretScanningLocation : IAdditionalDataHolder, IParsable /// The details property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SecretScanningLocation_details? Details { get; set; } + public global::GitHub.Models.SecretScanningLocation.SecretScanningLocation_details? Details { get; set; } #nullable restore #else - public SecretScanningLocation_details Details { get; set; } + public global::GitHub.Models.SecretScanningLocation.SecretScanningLocation_details Details { get; set; } #endif /// The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found. - public SecretScanningLocation_type? Type { get; set; } + public global::GitHub.Models.SecretScanningLocation_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretScanningLocation() { @@ -31,12 +33,12 @@ public SecretScanningLocation() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretScanningLocation CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecretScanningLocation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretScanningLocation(); + return new global::GitHub.Models.SecretScanningLocation(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"details", n => { Details = n.GetObjectValue(SecretScanningLocation_details.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "details", n => { Details = n.GetObjectValue(global::GitHub.Models.SecretScanningLocation.SecretScanningLocation_details.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -57,180 +59,181 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("details", Details); - writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("details", Details); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } /// - /// Composed type wrapper for classes , , , , , , , , , , , , + /// Composed type wrapper for classes , , , , , , , , , , , , /// - public class SecretScanningLocation_details : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretScanningLocation_details : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SecretScanningLocationCommit? SecretScanningLocationCommit { get; set; } + public global::GitHub.Models.SecretScanningLocationCommit? SecretScanningLocationCommit { get; set; } #nullable restore #else - public GitHub.Models.SecretScanningLocationCommit SecretScanningLocationCommit { get; set; } + public global::GitHub.Models.SecretScanningLocationCommit SecretScanningLocationCommit { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SecretScanningLocationDiscussionBody? SecretScanningLocationDiscussionBody { get; set; } + public global::GitHub.Models.SecretScanningLocationDiscussionBody? SecretScanningLocationDiscussionBody { get; set; } #nullable restore #else - public GitHub.Models.SecretScanningLocationDiscussionBody SecretScanningLocationDiscussionBody { get; set; } + public global::GitHub.Models.SecretScanningLocationDiscussionBody SecretScanningLocationDiscussionBody { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SecretScanningLocationDiscussionComment? SecretScanningLocationDiscussionComment { get; set; } + public global::GitHub.Models.SecretScanningLocationDiscussionComment? SecretScanningLocationDiscussionComment { get; set; } #nullable restore #else - public GitHub.Models.SecretScanningLocationDiscussionComment SecretScanningLocationDiscussionComment { get; set; } + public global::GitHub.Models.SecretScanningLocationDiscussionComment SecretScanningLocationDiscussionComment { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SecretScanningLocationDiscussionTitle? SecretScanningLocationDiscussionTitle { get; set; } + public global::GitHub.Models.SecretScanningLocationDiscussionTitle? SecretScanningLocationDiscussionTitle { get; set; } #nullable restore #else - public GitHub.Models.SecretScanningLocationDiscussionTitle SecretScanningLocationDiscussionTitle { get; set; } + public global::GitHub.Models.SecretScanningLocationDiscussionTitle SecretScanningLocationDiscussionTitle { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SecretScanningLocationIssueBody? SecretScanningLocationIssueBody { get; set; } + public global::GitHub.Models.SecretScanningLocationIssueBody? SecretScanningLocationIssueBody { get; set; } #nullable restore #else - public GitHub.Models.SecretScanningLocationIssueBody SecretScanningLocationIssueBody { get; set; } + public global::GitHub.Models.SecretScanningLocationIssueBody SecretScanningLocationIssueBody { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SecretScanningLocationIssueComment? SecretScanningLocationIssueComment { get; set; } + public global::GitHub.Models.SecretScanningLocationIssueComment? SecretScanningLocationIssueComment { get; set; } #nullable restore #else - public GitHub.Models.SecretScanningLocationIssueComment SecretScanningLocationIssueComment { get; set; } + public global::GitHub.Models.SecretScanningLocationIssueComment SecretScanningLocationIssueComment { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SecretScanningLocationIssueTitle? SecretScanningLocationIssueTitle { get; set; } + public global::GitHub.Models.SecretScanningLocationIssueTitle? SecretScanningLocationIssueTitle { get; set; } #nullable restore #else - public GitHub.Models.SecretScanningLocationIssueTitle SecretScanningLocationIssueTitle { get; set; } + public global::GitHub.Models.SecretScanningLocationIssueTitle SecretScanningLocationIssueTitle { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SecretScanningLocationPullRequestBody? SecretScanningLocationPullRequestBody { get; set; } + public global::GitHub.Models.SecretScanningLocationPullRequestBody? SecretScanningLocationPullRequestBody { get; set; } #nullable restore #else - public GitHub.Models.SecretScanningLocationPullRequestBody SecretScanningLocationPullRequestBody { get; set; } + public global::GitHub.Models.SecretScanningLocationPullRequestBody SecretScanningLocationPullRequestBody { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SecretScanningLocationPullRequestComment? SecretScanningLocationPullRequestComment { get; set; } + public global::GitHub.Models.SecretScanningLocationPullRequestComment? SecretScanningLocationPullRequestComment { get; set; } #nullable restore #else - public GitHub.Models.SecretScanningLocationPullRequestComment SecretScanningLocationPullRequestComment { get; set; } + public global::GitHub.Models.SecretScanningLocationPullRequestComment SecretScanningLocationPullRequestComment { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SecretScanningLocationPullRequestReview? SecretScanningLocationPullRequestReview { get; set; } + public global::GitHub.Models.SecretScanningLocationPullRequestReview? SecretScanningLocationPullRequestReview { get; set; } #nullable restore #else - public GitHub.Models.SecretScanningLocationPullRequestReview SecretScanningLocationPullRequestReview { get; set; } + public global::GitHub.Models.SecretScanningLocationPullRequestReview SecretScanningLocationPullRequestReview { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SecretScanningLocationPullRequestReviewComment? SecretScanningLocationPullRequestReviewComment { get; set; } + public global::GitHub.Models.SecretScanningLocationPullRequestReviewComment? SecretScanningLocationPullRequestReviewComment { get; set; } #nullable restore #else - public GitHub.Models.SecretScanningLocationPullRequestReviewComment SecretScanningLocationPullRequestReviewComment { get; set; } + public global::GitHub.Models.SecretScanningLocationPullRequestReviewComment SecretScanningLocationPullRequestReviewComment { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SecretScanningLocationPullRequestTitle? SecretScanningLocationPullRequestTitle { get; set; } + public global::GitHub.Models.SecretScanningLocationPullRequestTitle? SecretScanningLocationPullRequestTitle { get; set; } #nullable restore #else - public GitHub.Models.SecretScanningLocationPullRequestTitle SecretScanningLocationPullRequestTitle { get; set; } + public global::GitHub.Models.SecretScanningLocationPullRequestTitle SecretScanningLocationPullRequestTitle { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.SecretScanningLocationWikiCommit? SecretScanningLocationWikiCommit { get; set; } + public global::GitHub.Models.SecretScanningLocationWikiCommit? SecretScanningLocationWikiCommit { get; set; } #nullable restore #else - public GitHub.Models.SecretScanningLocationWikiCommit SecretScanningLocationWikiCommit { get; set; } + public global::GitHub.Models.SecretScanningLocationWikiCommit SecretScanningLocationWikiCommit { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretScanningLocation_details CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecretScanningLocation.SecretScanningLocation_details CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new SecretScanningLocation_details(); + var result = new global::GitHub.Models.SecretScanningLocation.SecretScanningLocation_details(); if("secret-scanning-location-commit".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.SecretScanningLocationCommit = new GitHub.Models.SecretScanningLocationCommit(); + result.SecretScanningLocationCommit = new global::GitHub.Models.SecretScanningLocationCommit(); } else if("secret-scanning-location-discussion-body".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.SecretScanningLocationDiscussionBody = new GitHub.Models.SecretScanningLocationDiscussionBody(); + result.SecretScanningLocationDiscussionBody = new global::GitHub.Models.SecretScanningLocationDiscussionBody(); } else if("secret-scanning-location-discussion-comment".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.SecretScanningLocationDiscussionComment = new GitHub.Models.SecretScanningLocationDiscussionComment(); + result.SecretScanningLocationDiscussionComment = new global::GitHub.Models.SecretScanningLocationDiscussionComment(); } else if("secret-scanning-location-discussion-title".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.SecretScanningLocationDiscussionTitle = new GitHub.Models.SecretScanningLocationDiscussionTitle(); + result.SecretScanningLocationDiscussionTitle = new global::GitHub.Models.SecretScanningLocationDiscussionTitle(); } else if("secret-scanning-location-issue-body".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.SecretScanningLocationIssueBody = new GitHub.Models.SecretScanningLocationIssueBody(); + result.SecretScanningLocationIssueBody = new global::GitHub.Models.SecretScanningLocationIssueBody(); } else if("secret-scanning-location-issue-comment".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.SecretScanningLocationIssueComment = new GitHub.Models.SecretScanningLocationIssueComment(); + result.SecretScanningLocationIssueComment = new global::GitHub.Models.SecretScanningLocationIssueComment(); } else if("secret-scanning-location-issue-title".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.SecretScanningLocationIssueTitle = new GitHub.Models.SecretScanningLocationIssueTitle(); + result.SecretScanningLocationIssueTitle = new global::GitHub.Models.SecretScanningLocationIssueTitle(); } else if("secret-scanning-location-pull-request-body".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.SecretScanningLocationPullRequestBody = new GitHub.Models.SecretScanningLocationPullRequestBody(); + result.SecretScanningLocationPullRequestBody = new global::GitHub.Models.SecretScanningLocationPullRequestBody(); } else if("secret-scanning-location-pull-request-comment".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.SecretScanningLocationPullRequestComment = new GitHub.Models.SecretScanningLocationPullRequestComment(); + result.SecretScanningLocationPullRequestComment = new global::GitHub.Models.SecretScanningLocationPullRequestComment(); } else if("secret-scanning-location-pull-request-review".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.SecretScanningLocationPullRequestReview = new GitHub.Models.SecretScanningLocationPullRequestReview(); + result.SecretScanningLocationPullRequestReview = new global::GitHub.Models.SecretScanningLocationPullRequestReview(); } else if("secret-scanning-location-pull-request-review-comment".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.SecretScanningLocationPullRequestReviewComment = new GitHub.Models.SecretScanningLocationPullRequestReviewComment(); + result.SecretScanningLocationPullRequestReviewComment = new global::GitHub.Models.SecretScanningLocationPullRequestReviewComment(); } else if("secret-scanning-location-pull-request-title".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.SecretScanningLocationPullRequestTitle = new GitHub.Models.SecretScanningLocationPullRequestTitle(); + result.SecretScanningLocationPullRequestTitle = new global::GitHub.Models.SecretScanningLocationPullRequestTitle(); } else if("secret-scanning-location-wiki-commit".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.SecretScanningLocationWikiCommit = new GitHub.Models.SecretScanningLocationWikiCommit(); + result.SecretScanningLocationWikiCommit = new global::GitHub.Models.SecretScanningLocationWikiCommit(); } return result; } @@ -303,55 +306,55 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(SecretScanningLocationCommit != null) { - writer.WriteObjectValue(null, SecretScanningLocationCommit); + writer.WriteObjectValue(null, SecretScanningLocationCommit); } else if(SecretScanningLocationDiscussionBody != null) { - writer.WriteObjectValue(null, SecretScanningLocationDiscussionBody); + writer.WriteObjectValue(null, SecretScanningLocationDiscussionBody); } else if(SecretScanningLocationDiscussionComment != null) { - writer.WriteObjectValue(null, SecretScanningLocationDiscussionComment); + writer.WriteObjectValue(null, SecretScanningLocationDiscussionComment); } else if(SecretScanningLocationDiscussionTitle != null) { - writer.WriteObjectValue(null, SecretScanningLocationDiscussionTitle); + writer.WriteObjectValue(null, SecretScanningLocationDiscussionTitle); } else if(SecretScanningLocationIssueBody != null) { - writer.WriteObjectValue(null, SecretScanningLocationIssueBody); + writer.WriteObjectValue(null, SecretScanningLocationIssueBody); } else if(SecretScanningLocationIssueComment != null) { - writer.WriteObjectValue(null, SecretScanningLocationIssueComment); + writer.WriteObjectValue(null, SecretScanningLocationIssueComment); } else if(SecretScanningLocationIssueTitle != null) { - writer.WriteObjectValue(null, SecretScanningLocationIssueTitle); + writer.WriteObjectValue(null, SecretScanningLocationIssueTitle); } else if(SecretScanningLocationPullRequestBody != null) { - writer.WriteObjectValue(null, SecretScanningLocationPullRequestBody); + writer.WriteObjectValue(null, SecretScanningLocationPullRequestBody); } else if(SecretScanningLocationPullRequestComment != null) { - writer.WriteObjectValue(null, SecretScanningLocationPullRequestComment); + writer.WriteObjectValue(null, SecretScanningLocationPullRequestComment); } else if(SecretScanningLocationPullRequestReview != null) { - writer.WriteObjectValue(null, SecretScanningLocationPullRequestReview); + writer.WriteObjectValue(null, SecretScanningLocationPullRequestReview); } else if(SecretScanningLocationPullRequestReviewComment != null) { - writer.WriteObjectValue(null, SecretScanningLocationPullRequestReviewComment); + writer.WriteObjectValue(null, SecretScanningLocationPullRequestReviewComment); } else if(SecretScanningLocationPullRequestTitle != null) { - writer.WriteObjectValue(null, SecretScanningLocationPullRequestTitle); + writer.WriteObjectValue(null, SecretScanningLocationPullRequestTitle); } else if(SecretScanningLocationWikiCommit != null) { - writer.WriteObjectValue(null, SecretScanningLocationWikiCommit); + writer.WriteObjectValue(null, SecretScanningLocationWikiCommit); } } } diff --git a/src/GitHub/Models/SecretScanningLocationCommit.cs b/src/GitHub/Models/SecretScanningLocationCommit.cs index 8c792ee6..d3ed67d0 100644 --- a/src/GitHub/Models/SecretScanningLocationCommit.cs +++ b/src/GitHub/Models/SecretScanningLocationCommit.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository. /// - public class SecretScanningLocationCommit : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretScanningLocationCommit : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -61,7 +63,7 @@ public class SecretScanningLocationCommit : IAdditionalDataHolder, IParsable /// Line number at which the secret starts in the file public double? StartLine { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretScanningLocationCommit() { @@ -70,12 +72,12 @@ public SecretScanningLocationCommit() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretScanningLocationCommit CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecretScanningLocationCommit CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretScanningLocationCommit(); + return new global::GitHub.Models.SecretScanningLocationCommit(); } /// /// The deserialization information for the current model @@ -85,15 +87,15 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"blob_sha", n => { BlobSha = n.GetStringValue(); } }, - {"blob_url", n => { BlobUrl = n.GetStringValue(); } }, - {"commit_sha", n => { CommitSha = n.GetStringValue(); } }, - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"end_column", n => { EndColumn = n.GetDoubleValue(); } }, - {"end_line", n => { EndLine = n.GetDoubleValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"start_column", n => { StartColumn = n.GetDoubleValue(); } }, - {"start_line", n => { StartLine = n.GetDoubleValue(); } }, + { "blob_sha", n => { BlobSha = n.GetStringValue(); } }, + { "blob_url", n => { BlobUrl = n.GetStringValue(); } }, + { "commit_sha", n => { CommitSha = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "end_column", n => { EndColumn = n.GetDoubleValue(); } }, + { "end_line", n => { EndLine = n.GetDoubleValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "start_column", n => { StartColumn = n.GetDoubleValue(); } }, + { "start_line", n => { StartLine = n.GetDoubleValue(); } }, }; } /// diff --git a/src/GitHub/Models/SecretScanningLocationDiscussionBody.cs b/src/GitHub/Models/SecretScanningLocationDiscussionBody.cs index 6c66fb81..d6981e75 100644 --- a/src/GitHub/Models/SecretScanningLocationDiscussionBody.cs +++ b/src/GitHub/Models/SecretScanningLocationDiscussionBody.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion. /// - public class SecretScanningLocationDiscussionBody : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretScanningLocationDiscussionBody : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -21,7 +23,7 @@ public class SecretScanningLocationDiscussionBody : IAdditionalDataHolder, IPars public string DiscussionBodyUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretScanningLocationDiscussionBody() { @@ -30,12 +32,12 @@ public SecretScanningLocationDiscussionBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretScanningLocationDiscussionBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecretScanningLocationDiscussionBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretScanningLocationDiscussionBody(); + return new global::GitHub.Models.SecretScanningLocationDiscussionBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"discussion_body_url", n => { DiscussionBodyUrl = n.GetStringValue(); } }, + { "discussion_body_url", n => { DiscussionBodyUrl = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SecretScanningLocationDiscussionComment.cs b/src/GitHub/Models/SecretScanningLocationDiscussionComment.cs index 663c8ec6..51514999 100644 --- a/src/GitHub/Models/SecretScanningLocationDiscussionComment.cs +++ b/src/GitHub/Models/SecretScanningLocationDiscussionComment.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion. /// - public class SecretScanningLocationDiscussionComment : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretScanningLocationDiscussionComment : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -21,7 +23,7 @@ public class SecretScanningLocationDiscussionComment : IAdditionalDataHolder, IP public string DiscussionCommentUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretScanningLocationDiscussionComment() { @@ -30,12 +32,12 @@ public SecretScanningLocationDiscussionComment() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretScanningLocationDiscussionComment CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecretScanningLocationDiscussionComment CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretScanningLocationDiscussionComment(); + return new global::GitHub.Models.SecretScanningLocationDiscussionComment(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"discussion_comment_url", n => { DiscussionCommentUrl = n.GetStringValue(); } }, + { "discussion_comment_url", n => { DiscussionCommentUrl = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SecretScanningLocationDiscussionTitle.cs b/src/GitHub/Models/SecretScanningLocationDiscussionTitle.cs index 839a8fb2..3e3baaa5 100644 --- a/src/GitHub/Models/SecretScanningLocationDiscussionTitle.cs +++ b/src/GitHub/Models/SecretScanningLocationDiscussionTitle.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion. /// - public class SecretScanningLocationDiscussionTitle : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretScanningLocationDiscussionTitle : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -21,7 +23,7 @@ public class SecretScanningLocationDiscussionTitle : IAdditionalDataHolder, IPar public string DiscussionTitleUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretScanningLocationDiscussionTitle() { @@ -30,12 +32,12 @@ public SecretScanningLocationDiscussionTitle() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretScanningLocationDiscussionTitle CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecretScanningLocationDiscussionTitle CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretScanningLocationDiscussionTitle(); + return new global::GitHub.Models.SecretScanningLocationDiscussionTitle(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"discussion_title_url", n => { DiscussionTitleUrl = n.GetStringValue(); } }, + { "discussion_title_url", n => { DiscussionTitleUrl = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SecretScanningLocationIssueBody.cs b/src/GitHub/Models/SecretScanningLocationIssueBody.cs index 53fa4e6e..90974015 100644 --- a/src/GitHub/Models/SecretScanningLocationIssueBody.cs +++ b/src/GitHub/Models/SecretScanningLocationIssueBody.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue. /// - public class SecretScanningLocationIssueBody : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretScanningLocationIssueBody : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -21,7 +23,7 @@ public class SecretScanningLocationIssueBody : IAdditionalDataHolder, IParsable public string IssueBodyUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretScanningLocationIssueBody() { @@ -30,12 +32,12 @@ public SecretScanningLocationIssueBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretScanningLocationIssueBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecretScanningLocationIssueBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretScanningLocationIssueBody(); + return new global::GitHub.Models.SecretScanningLocationIssueBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"issue_body_url", n => { IssueBodyUrl = n.GetStringValue(); } }, + { "issue_body_url", n => { IssueBodyUrl = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SecretScanningLocationIssueComment.cs b/src/GitHub/Models/SecretScanningLocationIssueComment.cs index 543cc1ad..76d88881 100644 --- a/src/GitHub/Models/SecretScanningLocationIssueComment.cs +++ b/src/GitHub/Models/SecretScanningLocationIssueComment.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue. /// - public class SecretScanningLocationIssueComment : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretScanningLocationIssueComment : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -21,7 +23,7 @@ public class SecretScanningLocationIssueComment : IAdditionalDataHolder, IParsab public string IssueCommentUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretScanningLocationIssueComment() { @@ -30,12 +32,12 @@ public SecretScanningLocationIssueComment() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretScanningLocationIssueComment CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecretScanningLocationIssueComment CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretScanningLocationIssueComment(); + return new global::GitHub.Models.SecretScanningLocationIssueComment(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, + { "issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SecretScanningLocationIssueTitle.cs b/src/GitHub/Models/SecretScanningLocationIssueTitle.cs index 37b94137..c695f8cb 100644 --- a/src/GitHub/Models/SecretScanningLocationIssueTitle.cs +++ b/src/GitHub/Models/SecretScanningLocationIssueTitle.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue. /// - public class SecretScanningLocationIssueTitle : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretScanningLocationIssueTitle : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -21,7 +23,7 @@ public class SecretScanningLocationIssueTitle : IAdditionalDataHolder, IParsable public string IssueTitleUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretScanningLocationIssueTitle() { @@ -30,12 +32,12 @@ public SecretScanningLocationIssueTitle() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretScanningLocationIssueTitle CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecretScanningLocationIssueTitle CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretScanningLocationIssueTitle(); + return new global::GitHub.Models.SecretScanningLocationIssueTitle(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"issue_title_url", n => { IssueTitleUrl = n.GetStringValue(); } }, + { "issue_title_url", n => { IssueTitleUrl = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SecretScanningLocationPullRequestBody.cs b/src/GitHub/Models/SecretScanningLocationPullRequestBody.cs index 3ebc38c3..87ef4025 100644 --- a/src/GitHub/Models/SecretScanningLocationPullRequestBody.cs +++ b/src/GitHub/Models/SecretScanningLocationPullRequestBody.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request. /// - public class SecretScanningLocationPullRequestBody : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretScanningLocationPullRequestBody : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -21,7 +23,7 @@ public class SecretScanningLocationPullRequestBody : IAdditionalDataHolder, IPar public string PullRequestBodyUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretScanningLocationPullRequestBody() { @@ -30,12 +32,12 @@ public SecretScanningLocationPullRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretScanningLocationPullRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecretScanningLocationPullRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretScanningLocationPullRequestBody(); + return new global::GitHub.Models.SecretScanningLocationPullRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"pull_request_body_url", n => { PullRequestBodyUrl = n.GetStringValue(); } }, + { "pull_request_body_url", n => { PullRequestBodyUrl = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SecretScanningLocationPullRequestComment.cs b/src/GitHub/Models/SecretScanningLocationPullRequestComment.cs index b83107c3..f613d8c5 100644 --- a/src/GitHub/Models/SecretScanningLocationPullRequestComment.cs +++ b/src/GitHub/Models/SecretScanningLocationPullRequestComment.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request. /// - public class SecretScanningLocationPullRequestComment : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretScanningLocationPullRequestComment : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -21,7 +23,7 @@ public class SecretScanningLocationPullRequestComment : IAdditionalDataHolder, I public string PullRequestCommentUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretScanningLocationPullRequestComment() { @@ -30,12 +32,12 @@ public SecretScanningLocationPullRequestComment() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretScanningLocationPullRequestComment CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecretScanningLocationPullRequestComment CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretScanningLocationPullRequestComment(); + return new global::GitHub.Models.SecretScanningLocationPullRequestComment(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"pull_request_comment_url", n => { PullRequestCommentUrl = n.GetStringValue(); } }, + { "pull_request_comment_url", n => { PullRequestCommentUrl = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SecretScanningLocationPullRequestReview.cs b/src/GitHub/Models/SecretScanningLocationPullRequestReview.cs index 6ef2f297..02f9db24 100644 --- a/src/GitHub/Models/SecretScanningLocationPullRequestReview.cs +++ b/src/GitHub/Models/SecretScanningLocationPullRequestReview.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request. /// - public class SecretScanningLocationPullRequestReview : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretScanningLocationPullRequestReview : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -21,7 +23,7 @@ public class SecretScanningLocationPullRequestReview : IAdditionalDataHolder, IP public string PullRequestReviewUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretScanningLocationPullRequestReview() { @@ -30,12 +32,12 @@ public SecretScanningLocationPullRequestReview() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretScanningLocationPullRequestReview CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecretScanningLocationPullRequestReview CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretScanningLocationPullRequestReview(); + return new global::GitHub.Models.SecretScanningLocationPullRequestReview(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"pull_request_review_url", n => { PullRequestReviewUrl = n.GetStringValue(); } }, + { "pull_request_review_url", n => { PullRequestReviewUrl = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SecretScanningLocationPullRequestReviewComment.cs b/src/GitHub/Models/SecretScanningLocationPullRequestReviewComment.cs index 78bb6195..aa30e909 100644 --- a/src/GitHub/Models/SecretScanningLocationPullRequestReviewComment.cs +++ b/src/GitHub/Models/SecretScanningLocationPullRequestReviewComment.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request. /// - public class SecretScanningLocationPullRequestReviewComment : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretScanningLocationPullRequestReviewComment : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -21,7 +23,7 @@ public class SecretScanningLocationPullRequestReviewComment : IAdditionalDataHol public string PullRequestReviewCommentUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretScanningLocationPullRequestReviewComment() { @@ -30,12 +32,12 @@ public SecretScanningLocationPullRequestReviewComment() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretScanningLocationPullRequestReviewComment CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecretScanningLocationPullRequestReviewComment CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretScanningLocationPullRequestReviewComment(); + return new global::GitHub.Models.SecretScanningLocationPullRequestReviewComment(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"pull_request_review_comment_url", n => { PullRequestReviewCommentUrl = n.GetStringValue(); } }, + { "pull_request_review_comment_url", n => { PullRequestReviewCommentUrl = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SecretScanningLocationPullRequestTitle.cs b/src/GitHub/Models/SecretScanningLocationPullRequestTitle.cs index 243b2d7a..941bc5e0 100644 --- a/src/GitHub/Models/SecretScanningLocationPullRequestTitle.cs +++ b/src/GitHub/Models/SecretScanningLocationPullRequestTitle.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request. /// - public class SecretScanningLocationPullRequestTitle : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretScanningLocationPullRequestTitle : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -21,7 +23,7 @@ public class SecretScanningLocationPullRequestTitle : IAdditionalDataHolder, IPa public string PullRequestTitleUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretScanningLocationPullRequestTitle() { @@ -30,12 +32,12 @@ public SecretScanningLocationPullRequestTitle() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretScanningLocationPullRequestTitle CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecretScanningLocationPullRequestTitle CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretScanningLocationPullRequestTitle(); + return new global::GitHub.Models.SecretScanningLocationPullRequestTitle(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"pull_request_title_url", n => { PullRequestTitleUrl = n.GetStringValue(); } }, + { "pull_request_title_url", n => { PullRequestTitleUrl = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SecretScanningLocationWikiCommit.cs b/src/GitHub/Models/SecretScanningLocationWikiCommit.cs index 34e95a13..4899dce1 100644 --- a/src/GitHub/Models/SecretScanningLocationWikiCommit.cs +++ b/src/GitHub/Models/SecretScanningLocationWikiCommit.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki. /// - public class SecretScanningLocationWikiCommit : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretScanningLocationWikiCommit : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -61,7 +63,7 @@ public class SecretScanningLocationWikiCommit : IAdditionalDataHolder, IParsable /// Line number at which the secret starts in the file public double? StartLine { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretScanningLocationWikiCommit() { @@ -70,12 +72,12 @@ public SecretScanningLocationWikiCommit() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretScanningLocationWikiCommit CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecretScanningLocationWikiCommit CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretScanningLocationWikiCommit(); + return new global::GitHub.Models.SecretScanningLocationWikiCommit(); } /// /// The deserialization information for the current model @@ -85,15 +87,15 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"blob_sha", n => { BlobSha = n.GetStringValue(); } }, - {"commit_sha", n => { CommitSha = n.GetStringValue(); } }, - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"end_column", n => { EndColumn = n.GetDoubleValue(); } }, - {"end_line", n => { EndLine = n.GetDoubleValue(); } }, - {"page_url", n => { PageUrl = n.GetStringValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"start_column", n => { StartColumn = n.GetDoubleValue(); } }, - {"start_line", n => { StartLine = n.GetDoubleValue(); } }, + { "blob_sha", n => { BlobSha = n.GetStringValue(); } }, + { "commit_sha", n => { CommitSha = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "end_column", n => { EndColumn = n.GetDoubleValue(); } }, + { "end_line", n => { EndLine = n.GetDoubleValue(); } }, + { "page_url", n => { PageUrl = n.GetStringValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "start_column", n => { StartColumn = n.GetDoubleValue(); } }, + { "start_line", n => { StartLine = n.GetDoubleValue(); } }, }; } /// diff --git a/src/GitHub/Models/SecretScanningLocation_type.cs b/src/GitHub/Models/SecretScanningLocation_type.cs index 28d75dd1..279703c3 100644 --- a/src/GitHub/Models/SecretScanningLocation_type.cs +++ b/src/GitHub/Models/SecretScanningLocation_type.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum SecretScanningLocation_type { [EnumMember(Value = "commit")] diff --git a/src/GitHub/Models/SecretScanningPushProtectionBypass.cs b/src/GitHub/Models/SecretScanningPushProtectionBypass.cs index 287c9b58..65458518 100644 --- a/src/GitHub/Models/SecretScanningPushProtectionBypass.cs +++ b/src/GitHub/Models/SecretScanningPushProtectionBypass.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SecretScanningPushProtectionBypass : IAdditionalDataHolder, IParsable + public partial class SecretScanningPushProtectionBypass : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class SecretScanningPushProtectionBypass : IAdditionalDataHolder, IParsab /// The time that the bypass will expire in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. public DateTimeOffset? ExpireAt { get; set; } /// The reason for bypassing push protection. - public SecretScanningPushProtectionBypassReason? Reason { get; set; } + public global::GitHub.Models.SecretScanningPushProtectionBypassReason? Reason { get; set; } /// The token type this bypass is for. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -24,7 +26,7 @@ public class SecretScanningPushProtectionBypass : IAdditionalDataHolder, IParsab public string TokenType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretScanningPushProtectionBypass() { @@ -33,12 +35,12 @@ public SecretScanningPushProtectionBypass() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretScanningPushProtectionBypass CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecretScanningPushProtectionBypass CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretScanningPushProtectionBypass(); + return new global::GitHub.Models.SecretScanningPushProtectionBypass(); } /// /// The deserialization information for the current model @@ -48,9 +50,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"expire_at", n => { ExpireAt = n.GetDateTimeOffsetValue(); } }, - {"reason", n => { Reason = n.GetEnumValue(); } }, - {"token_type", n => { TokenType = n.GetStringValue(); } }, + { "expire_at", n => { ExpireAt = n.GetDateTimeOffsetValue(); } }, + { "reason", n => { Reason = n.GetEnumValue(); } }, + { "token_type", n => { TokenType = n.GetStringValue(); } }, }; } /// @@ -61,7 +63,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("expire_at", ExpireAt); - writer.WriteEnumValue("reason", Reason); + writer.WriteEnumValue("reason", Reason); writer.WriteStringValue("token_type", TokenType); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/SecretScanningPushProtectionBypass503Error.cs b/src/GitHub/Models/SecretScanningPushProtectionBypass503Error.cs index d926a0e3..e2f4c0c8 100644 --- a/src/GitHub/Models/SecretScanningPushProtectionBypass503Error.cs +++ b/src/GitHub/Models/SecretScanningPushProtectionBypass503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SecretScanningPushProtectionBypass503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class SecretScanningPushProtectionBypass503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class SecretScanningPushProtectionBypass503Error : ApiException, IAdditio #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretScanningPushProtectionBypass503Error() { @@ -46,12 +42,12 @@ public SecretScanningPushProtectionBypass503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretScanningPushProtectionBypass503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecretScanningPushProtectionBypass503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretScanningPushProtectionBypass503Error(); + return new global::GitHub.Models.SecretScanningPushProtectionBypass503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/SecretScanningPushProtectionBypassReason.cs b/src/GitHub/Models/SecretScanningPushProtectionBypassReason.cs index 33f542a0..7cba733c 100644 --- a/src/GitHub/Models/SecretScanningPushProtectionBypassReason.cs +++ b/src/GitHub/Models/SecretScanningPushProtectionBypassReason.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The reason for bypassing push protection. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum SecretScanningPushProtectionBypassReason { [EnumMember(Value = "false_positive")] diff --git a/src/GitHub/Models/SecurityAdvisoryCreditTypes.cs b/src/GitHub/Models/SecurityAdvisoryCreditTypes.cs index c692ad6d..33099df4 100644 --- a/src/GitHub/Models/SecurityAdvisoryCreditTypes.cs +++ b/src/GitHub/Models/SecurityAdvisoryCreditTypes.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The type of credit the user is receiving. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum SecurityAdvisoryCreditTypes { [EnumMember(Value = "analyst")] diff --git a/src/GitHub/Models/SecurityAdvisoryEcosystems.cs b/src/GitHub/Models/SecurityAdvisoryEcosystems.cs index 66cb9ce7..53f2e2ea 100644 --- a/src/GitHub/Models/SecurityAdvisoryEcosystems.cs +++ b/src/GitHub/Models/SecurityAdvisoryEcosystems.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The package's language or package management ecosystem. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum SecurityAdvisoryEcosystems { [EnumMember(Value = "rubygems")] diff --git a/src/GitHub/Models/SecurityAndAnalysis.cs b/src/GitHub/Models/SecurityAndAnalysis.cs index 4ca32f01..b753bda7 100644 --- a/src/GitHub/Models/SecurityAndAnalysis.cs +++ b/src/GitHub/Models/SecurityAndAnalysis.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SecurityAndAnalysis : IAdditionalDataHolder, IParsable + public partial class SecurityAndAnalysis : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,53 +16,53 @@ public class SecurityAndAnalysis : IAdditionalDataHolder, IParsable /// The advanced_security property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SecurityAndAnalysis_advanced_security? AdvancedSecurity { get; set; } + public global::GitHub.Models.SecurityAndAnalysis_advanced_security? AdvancedSecurity { get; set; } #nullable restore #else - public SecurityAndAnalysis_advanced_security AdvancedSecurity { get; set; } + public global::GitHub.Models.SecurityAndAnalysis_advanced_security AdvancedSecurity { get; set; } #endif /// Enable or disable Dependabot security updates for the repository. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SecurityAndAnalysis_dependabot_security_updates? DependabotSecurityUpdates { get; set; } + public global::GitHub.Models.SecurityAndAnalysis_dependabot_security_updates? DependabotSecurityUpdates { get; set; } #nullable restore #else - public SecurityAndAnalysis_dependabot_security_updates DependabotSecurityUpdates { get; set; } + public global::GitHub.Models.SecurityAndAnalysis_dependabot_security_updates DependabotSecurityUpdates { get; set; } #endif /// The secret_scanning property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SecurityAndAnalysis_secret_scanning? SecretScanning { get; set; } + public global::GitHub.Models.SecurityAndAnalysis_secret_scanning? SecretScanning { get; set; } #nullable restore #else - public SecurityAndAnalysis_secret_scanning SecretScanning { get; set; } + public global::GitHub.Models.SecurityAndAnalysis_secret_scanning SecretScanning { get; set; } #endif /// The secret_scanning_non_provider_patterns property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SecurityAndAnalysis_secret_scanning_non_provider_patterns? SecretScanningNonProviderPatterns { get; set; } + public global::GitHub.Models.SecurityAndAnalysis_secret_scanning_non_provider_patterns? SecretScanningNonProviderPatterns { get; set; } #nullable restore #else - public SecurityAndAnalysis_secret_scanning_non_provider_patterns SecretScanningNonProviderPatterns { get; set; } + public global::GitHub.Models.SecurityAndAnalysis_secret_scanning_non_provider_patterns SecretScanningNonProviderPatterns { get; set; } #endif /// The secret_scanning_push_protection property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SecurityAndAnalysis_secret_scanning_push_protection? SecretScanningPushProtection { get; set; } + public global::GitHub.Models.SecurityAndAnalysis_secret_scanning_push_protection? SecretScanningPushProtection { get; set; } #nullable restore #else - public SecurityAndAnalysis_secret_scanning_push_protection SecretScanningPushProtection { get; set; } + public global::GitHub.Models.SecurityAndAnalysis_secret_scanning_push_protection SecretScanningPushProtection { get; set; } #endif /// The secret_scanning_validity_checks property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SecurityAndAnalysis_secret_scanning_validity_checks? SecretScanningValidityChecks { get; set; } + public global::GitHub.Models.SecurityAndAnalysis_secret_scanning_validity_checks? SecretScanningValidityChecks { get; set; } #nullable restore #else - public SecurityAndAnalysis_secret_scanning_validity_checks SecretScanningValidityChecks { get; set; } + public global::GitHub.Models.SecurityAndAnalysis_secret_scanning_validity_checks SecretScanningValidityChecks { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecurityAndAnalysis() { @@ -69,12 +71,12 @@ public SecurityAndAnalysis() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecurityAndAnalysis CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecurityAndAnalysis CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecurityAndAnalysis(); + return new global::GitHub.Models.SecurityAndAnalysis(); } /// /// The deserialization information for the current model @@ -84,12 +86,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"advanced_security", n => { AdvancedSecurity = n.GetObjectValue(SecurityAndAnalysis_advanced_security.CreateFromDiscriminatorValue); } }, - {"dependabot_security_updates", n => { DependabotSecurityUpdates = n.GetObjectValue(SecurityAndAnalysis_dependabot_security_updates.CreateFromDiscriminatorValue); } }, - {"secret_scanning", n => { SecretScanning = n.GetObjectValue(SecurityAndAnalysis_secret_scanning.CreateFromDiscriminatorValue); } }, - {"secret_scanning_non_provider_patterns", n => { SecretScanningNonProviderPatterns = n.GetObjectValue(SecurityAndAnalysis_secret_scanning_non_provider_patterns.CreateFromDiscriminatorValue); } }, - {"secret_scanning_push_protection", n => { SecretScanningPushProtection = n.GetObjectValue(SecurityAndAnalysis_secret_scanning_push_protection.CreateFromDiscriminatorValue); } }, - {"secret_scanning_validity_checks", n => { SecretScanningValidityChecks = n.GetObjectValue(SecurityAndAnalysis_secret_scanning_validity_checks.CreateFromDiscriminatorValue); } }, + { "advanced_security", n => { AdvancedSecurity = n.GetObjectValue(global::GitHub.Models.SecurityAndAnalysis_advanced_security.CreateFromDiscriminatorValue); } }, + { "dependabot_security_updates", n => { DependabotSecurityUpdates = n.GetObjectValue(global::GitHub.Models.SecurityAndAnalysis_dependabot_security_updates.CreateFromDiscriminatorValue); } }, + { "secret_scanning", n => { SecretScanning = n.GetObjectValue(global::GitHub.Models.SecurityAndAnalysis_secret_scanning.CreateFromDiscriminatorValue); } }, + { "secret_scanning_non_provider_patterns", n => { SecretScanningNonProviderPatterns = n.GetObjectValue(global::GitHub.Models.SecurityAndAnalysis_secret_scanning_non_provider_patterns.CreateFromDiscriminatorValue); } }, + { "secret_scanning_push_protection", n => { SecretScanningPushProtection = n.GetObjectValue(global::GitHub.Models.SecurityAndAnalysis_secret_scanning_push_protection.CreateFromDiscriminatorValue); } }, + { "secret_scanning_validity_checks", n => { SecretScanningValidityChecks = n.GetObjectValue(global::GitHub.Models.SecurityAndAnalysis_secret_scanning_validity_checks.CreateFromDiscriminatorValue); } }, }; } /// @@ -99,12 +101,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("advanced_security", AdvancedSecurity); - writer.WriteObjectValue("dependabot_security_updates", DependabotSecurityUpdates); - writer.WriteObjectValue("secret_scanning", SecretScanning); - writer.WriteObjectValue("secret_scanning_non_provider_patterns", SecretScanningNonProviderPatterns); - writer.WriteObjectValue("secret_scanning_push_protection", SecretScanningPushProtection); - writer.WriteObjectValue("secret_scanning_validity_checks", SecretScanningValidityChecks); + writer.WriteObjectValue("advanced_security", AdvancedSecurity); + writer.WriteObjectValue("dependabot_security_updates", DependabotSecurityUpdates); + writer.WriteObjectValue("secret_scanning", SecretScanning); + writer.WriteObjectValue("secret_scanning_non_provider_patterns", SecretScanningNonProviderPatterns); + writer.WriteObjectValue("secret_scanning_push_protection", SecretScanningPushProtection); + writer.WriteObjectValue("secret_scanning_validity_checks", SecretScanningValidityChecks); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/SecurityAndAnalysis_advanced_security.cs b/src/GitHub/Models/SecurityAndAnalysis_advanced_security.cs index c2c23016..ff3414cf 100644 --- a/src/GitHub/Models/SecurityAndAnalysis_advanced_security.cs +++ b/src/GitHub/Models/SecurityAndAnalysis_advanced_security.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SecurityAndAnalysis_advanced_security : IAdditionalDataHolder, IParsable + public partial class SecurityAndAnalysis_advanced_security : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The status property - public SecurityAndAnalysis_advanced_security_status? Status { get; set; } + public global::GitHub.Models.SecurityAndAnalysis_advanced_security_status? Status { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecurityAndAnalysis_advanced_security() { @@ -23,12 +25,12 @@ public SecurityAndAnalysis_advanced_security() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecurityAndAnalysis_advanced_security CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecurityAndAnalysis_advanced_security CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecurityAndAnalysis_advanced_security(); + return new global::GitHub.Models.SecurityAndAnalysis_advanced_security(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"status", n => { Status = n.GetEnumValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("status", Status); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/SecurityAndAnalysis_advanced_security_status.cs b/src/GitHub/Models/SecurityAndAnalysis_advanced_security_status.cs index 063538ba..f46d9a70 100644 --- a/src/GitHub/Models/SecurityAndAnalysis_advanced_security_status.cs +++ b/src/GitHub/Models/SecurityAndAnalysis_advanced_security_status.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum SecurityAndAnalysis_advanced_security_status #pragma warning restore CS1591 diff --git a/src/GitHub/Models/SecurityAndAnalysis_dependabot_security_updates.cs b/src/GitHub/Models/SecurityAndAnalysis_dependabot_security_updates.cs index de7cc6ff..7d30e165 100644 --- a/src/GitHub/Models/SecurityAndAnalysis_dependabot_security_updates.cs +++ b/src/GitHub/Models/SecurityAndAnalysis_dependabot_security_updates.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Enable or disable Dependabot security updates for the repository. /// - public class SecurityAndAnalysis_dependabot_security_updates : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecurityAndAnalysis_dependabot_security_updates : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The enablement status of Dependabot security updates for the repository. - public SecurityAndAnalysis_dependabot_security_updates_status? Status { get; set; } + public global::GitHub.Models.SecurityAndAnalysis_dependabot_security_updates_status? Status { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecurityAndAnalysis_dependabot_security_updates() { @@ -24,12 +26,12 @@ public SecurityAndAnalysis_dependabot_security_updates() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecurityAndAnalysis_dependabot_security_updates CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecurityAndAnalysis_dependabot_security_updates CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecurityAndAnalysis_dependabot_security_updates(); + return new global::GitHub.Models.SecurityAndAnalysis_dependabot_security_updates(); } /// /// The deserialization information for the current model @@ -39,7 +41,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"status", n => { Status = n.GetEnumValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, }; } /// @@ -49,7 +51,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("status", Status); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/SecurityAndAnalysis_dependabot_security_updates_status.cs b/src/GitHub/Models/SecurityAndAnalysis_dependabot_security_updates_status.cs index 8fbf349d..3f6f27b7 100644 --- a/src/GitHub/Models/SecurityAndAnalysis_dependabot_security_updates_status.cs +++ b/src/GitHub/Models/SecurityAndAnalysis_dependabot_security_updates_status.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The enablement status of Dependabot security updates for the repository. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum SecurityAndAnalysis_dependabot_security_updates_status { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Models/SecurityAndAnalysis_secret_scanning.cs b/src/GitHub/Models/SecurityAndAnalysis_secret_scanning.cs index 3194a432..bb83ff9f 100644 --- a/src/GitHub/Models/SecurityAndAnalysis_secret_scanning.cs +++ b/src/GitHub/Models/SecurityAndAnalysis_secret_scanning.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SecurityAndAnalysis_secret_scanning : IAdditionalDataHolder, IParsable + public partial class SecurityAndAnalysis_secret_scanning : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The status property - public SecurityAndAnalysis_secret_scanning_status? Status { get; set; } + public global::GitHub.Models.SecurityAndAnalysis_secret_scanning_status? Status { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecurityAndAnalysis_secret_scanning() { @@ -23,12 +25,12 @@ public SecurityAndAnalysis_secret_scanning() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecurityAndAnalysis_secret_scanning CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecurityAndAnalysis_secret_scanning CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecurityAndAnalysis_secret_scanning(); + return new global::GitHub.Models.SecurityAndAnalysis_secret_scanning(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"status", n => { Status = n.GetEnumValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("status", Status); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_non_provider_patterns.cs b/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_non_provider_patterns.cs index a7eed61a..14ddbd9d 100644 --- a/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_non_provider_patterns.cs +++ b/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_non_provider_patterns.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SecurityAndAnalysis_secret_scanning_non_provider_patterns : IAdditionalDataHolder, IParsable + public partial class SecurityAndAnalysis_secret_scanning_non_provider_patterns : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The status property - public SecurityAndAnalysis_secret_scanning_non_provider_patterns_status? Status { get; set; } + public global::GitHub.Models.SecurityAndAnalysis_secret_scanning_non_provider_patterns_status? Status { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecurityAndAnalysis_secret_scanning_non_provider_patterns() { @@ -23,12 +25,12 @@ public SecurityAndAnalysis_secret_scanning_non_provider_patterns() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecurityAndAnalysis_secret_scanning_non_provider_patterns CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecurityAndAnalysis_secret_scanning_non_provider_patterns CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecurityAndAnalysis_secret_scanning_non_provider_patterns(); + return new global::GitHub.Models.SecurityAndAnalysis_secret_scanning_non_provider_patterns(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"status", n => { Status = n.GetEnumValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("status", Status); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_non_provider_patterns_status.cs b/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_non_provider_patterns_status.cs index 4dfece33..4cfc6d0a 100644 --- a/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_non_provider_patterns_status.cs +++ b/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_non_provider_patterns_status.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum SecurityAndAnalysis_secret_scanning_non_provider_patterns_status #pragma warning restore CS1591 diff --git a/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_push_protection.cs b/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_push_protection.cs index a39384b3..2f4a5542 100644 --- a/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_push_protection.cs +++ b/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_push_protection.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SecurityAndAnalysis_secret_scanning_push_protection : IAdditionalDataHolder, IParsable + public partial class SecurityAndAnalysis_secret_scanning_push_protection : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The status property - public SecurityAndAnalysis_secret_scanning_push_protection_status? Status { get; set; } + public global::GitHub.Models.SecurityAndAnalysis_secret_scanning_push_protection_status? Status { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecurityAndAnalysis_secret_scanning_push_protection() { @@ -23,12 +25,12 @@ public SecurityAndAnalysis_secret_scanning_push_protection() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecurityAndAnalysis_secret_scanning_push_protection CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecurityAndAnalysis_secret_scanning_push_protection CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecurityAndAnalysis_secret_scanning_push_protection(); + return new global::GitHub.Models.SecurityAndAnalysis_secret_scanning_push_protection(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"status", n => { Status = n.GetEnumValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("status", Status); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_push_protection_status.cs b/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_push_protection_status.cs index 9513d055..01353341 100644 --- a/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_push_protection_status.cs +++ b/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_push_protection_status.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum SecurityAndAnalysis_secret_scanning_push_protection_status #pragma warning restore CS1591 diff --git a/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_status.cs b/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_status.cs index b80efaad..5b261b02 100644 --- a/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_status.cs +++ b/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_status.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum SecurityAndAnalysis_secret_scanning_status #pragma warning restore CS1591 diff --git a/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_validity_checks.cs b/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_validity_checks.cs index 6222d18a..f11c287f 100644 --- a/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_validity_checks.cs +++ b/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_validity_checks.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SecurityAndAnalysis_secret_scanning_validity_checks : IAdditionalDataHolder, IParsable + public partial class SecurityAndAnalysis_secret_scanning_validity_checks : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The status property - public SecurityAndAnalysis_secret_scanning_validity_checks_status? Status { get; set; } + public global::GitHub.Models.SecurityAndAnalysis_secret_scanning_validity_checks_status? Status { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecurityAndAnalysis_secret_scanning_validity_checks() { @@ -23,12 +25,12 @@ public SecurityAndAnalysis_secret_scanning_validity_checks() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecurityAndAnalysis_secret_scanning_validity_checks CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SecurityAndAnalysis_secret_scanning_validity_checks CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecurityAndAnalysis_secret_scanning_validity_checks(); + return new global::GitHub.Models.SecurityAndAnalysis_secret_scanning_validity_checks(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"status", n => { Status = n.GetEnumValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("status", Status); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_validity_checks_status.cs b/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_validity_checks_status.cs index 778e5f4e..1f5a9472 100644 --- a/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_validity_checks_status.cs +++ b/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_validity_checks_status.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum SecurityAndAnalysis_secret_scanning_validity_checks_status #pragma warning restore CS1591 diff --git a/src/GitHub/Models/SelectedActions.cs b/src/GitHub/Models/SelectedActions.cs index d2687f86..94f1f960 100644 --- a/src/GitHub/Models/SelectedActions.cs +++ b/src/GitHub/Models/SelectedActions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SelectedActions : IAdditionalDataHolder, IParsable + public partial class SelectedActions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -24,7 +26,7 @@ public class SelectedActions : IAdditionalDataHolder, IParsable /// Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators. public bool? VerifiedAllowed { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SelectedActions() { @@ -33,12 +35,12 @@ public SelectedActions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SelectedActions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SelectedActions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SelectedActions(); + return new global::GitHub.Models.SelectedActions(); } /// /// The deserialization information for the current model @@ -48,9 +50,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"github_owned_allowed", n => { GithubOwnedAllowed = n.GetBoolValue(); } }, - {"patterns_allowed", n => { PatternsAllowed = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"verified_allowed", n => { VerifiedAllowed = n.GetBoolValue(); } }, + { "github_owned_allowed", n => { GithubOwnedAllowed = n.GetBoolValue(); } }, + { "patterns_allowed", n => { PatternsAllowed = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "verified_allowed", n => { VerifiedAllowed = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/ServerStatistics.cs b/src/GitHub/Models/ServerStatistics.cs index e012ef7c..75acd9d9 100644 --- a/src/GitHub/Models/ServerStatistics.cs +++ b/src/GitHub/Models/ServerStatistics.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ServerStatistics : IAdditionalDataHolder, IParsable + public partial class ServerStatistics : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Actions metrics that are included in the Server Statistics payload/export from GHES #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ServerStatisticsActions? ActionsStats { get; set; } + public global::GitHub.Models.ServerStatisticsActions? ActionsStats { get; set; } #nullable restore #else - public ServerStatisticsActions ActionsStats { get; set; } + public global::GitHub.Models.ServerStatisticsActions ActionsStats { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -30,18 +32,18 @@ public class ServerStatistics : IAdditionalDataHolder, IParsable /// The dormant_users property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ServerStatistics_dormant_users? DormantUsers { get; set; } + public global::GitHub.Models.ServerStatistics_dormant_users? DormantUsers { get; set; } #nullable restore #else - public ServerStatistics_dormant_users DormantUsers { get; set; } + public global::GitHub.Models.ServerStatistics_dormant_users DormantUsers { get; set; } #endif /// The ghe_stats property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ServerStatistics_ghe_stats? GheStats { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats? GheStats { get; set; } #nullable restore #else - public ServerStatistics_ghe_stats GheStats { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats GheStats { get; set; } #endif /// The ghes_version property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -54,10 +56,10 @@ public class ServerStatistics : IAdditionalDataHolder, IParsable /// The github_connect property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ServerStatistics_github_connect? GithubConnect { get; set; } + public global::GitHub.Models.ServerStatistics_github_connect? GithubConnect { get; set; } #nullable restore #else - public ServerStatistics_github_connect GithubConnect { get; set; } + public global::GitHub.Models.ServerStatistics_github_connect GithubConnect { get; set; } #endif /// The host_name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -70,10 +72,10 @@ public class ServerStatistics : IAdditionalDataHolder, IParsable /// Packages metrics that are included in the Server Statistics payload/export from GHES #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ServerStatisticsPackages? PackagesStats { get; set; } + public global::GitHub.Models.ServerStatisticsPackages? PackagesStats { get; set; } #nullable restore #else - public ServerStatisticsPackages PackagesStats { get; set; } + public global::GitHub.Models.ServerStatisticsPackages PackagesStats { get; set; } #endif /// The schema_version property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -92,7 +94,7 @@ public class ServerStatistics : IAdditionalDataHolder, IParsable public string ServerId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ServerStatistics() { @@ -101,12 +103,12 @@ public ServerStatistics() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ServerStatistics CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ServerStatistics CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ServerStatistics(); + return new global::GitHub.Models.ServerStatistics(); } /// /// The deserialization information for the current model @@ -116,16 +118,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actions_stats", n => { ActionsStats = n.GetObjectValue(ServerStatisticsActions.CreateFromDiscriminatorValue); } }, - {"collection_date", n => { CollectionDate = n.GetStringValue(); } }, - {"dormant_users", n => { DormantUsers = n.GetObjectValue(ServerStatistics_dormant_users.CreateFromDiscriminatorValue); } }, - {"ghe_stats", n => { GheStats = n.GetObjectValue(ServerStatistics_ghe_stats.CreateFromDiscriminatorValue); } }, - {"ghes_version", n => { GhesVersion = n.GetStringValue(); } }, - {"github_connect", n => { GithubConnect = n.GetObjectValue(ServerStatistics_github_connect.CreateFromDiscriminatorValue); } }, - {"host_name", n => { HostName = n.GetStringValue(); } }, - {"packages_stats", n => { PackagesStats = n.GetObjectValue(ServerStatisticsPackages.CreateFromDiscriminatorValue); } }, - {"schema_version", n => { SchemaVersion = n.GetStringValue(); } }, - {"server_id", n => { ServerId = n.GetStringValue(); } }, + { "actions_stats", n => { ActionsStats = n.GetObjectValue(global::GitHub.Models.ServerStatisticsActions.CreateFromDiscriminatorValue); } }, + { "collection_date", n => { CollectionDate = n.GetStringValue(); } }, + { "dormant_users", n => { DormantUsers = n.GetObjectValue(global::GitHub.Models.ServerStatistics_dormant_users.CreateFromDiscriminatorValue); } }, + { "ghe_stats", n => { GheStats = n.GetObjectValue(global::GitHub.Models.ServerStatistics_ghe_stats.CreateFromDiscriminatorValue); } }, + { "ghes_version", n => { GhesVersion = n.GetStringValue(); } }, + { "github_connect", n => { GithubConnect = n.GetObjectValue(global::GitHub.Models.ServerStatistics_github_connect.CreateFromDiscriminatorValue); } }, + { "host_name", n => { HostName = n.GetStringValue(); } }, + { "packages_stats", n => { PackagesStats = n.GetObjectValue(global::GitHub.Models.ServerStatisticsPackages.CreateFromDiscriminatorValue); } }, + { "schema_version", n => { SchemaVersion = n.GetStringValue(); } }, + { "server_id", n => { ServerId = n.GetStringValue(); } }, }; } /// @@ -135,14 +137,14 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actions_stats", ActionsStats); + writer.WriteObjectValue("actions_stats", ActionsStats); writer.WriteStringValue("collection_date", CollectionDate); - writer.WriteObjectValue("dormant_users", DormantUsers); - writer.WriteObjectValue("ghe_stats", GheStats); + writer.WriteObjectValue("dormant_users", DormantUsers); + writer.WriteObjectValue("ghe_stats", GheStats); writer.WriteStringValue("ghes_version", GhesVersion); - writer.WriteObjectValue("github_connect", GithubConnect); + writer.WriteObjectValue("github_connect", GithubConnect); writer.WriteStringValue("host_name", HostName); - writer.WriteObjectValue("packages_stats", PackagesStats); + writer.WriteObjectValue("packages_stats", PackagesStats); writer.WriteStringValue("schema_version", SchemaVersion); writer.WriteStringValue("server_id", ServerId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/ServerStatisticsActions.cs b/src/GitHub/Models/ServerStatisticsActions.cs index ec47c28b..bd5780fa 100644 --- a/src/GitHub/Models/ServerStatisticsActions.cs +++ b/src/GitHub/Models/ServerStatisticsActions.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Actions metrics that are included in the Server Statistics payload/export from GHES /// - public class ServerStatisticsActions : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ServerStatisticsActions : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,7 +25,7 @@ public class ServerStatisticsActions : IAdditionalDataHolder, IParsable public string PercentageOfReposUsingActions { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ServerStatisticsActions() { @@ -32,12 +34,12 @@ public ServerStatisticsActions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ServerStatisticsActions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ServerStatisticsActions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ServerStatisticsActions(); + return new global::GitHub.Models.ServerStatisticsActions(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"number_of_repos_using_actions", n => { NumberOfReposUsingActions = n.GetIntValue(); } }, - {"percentage_of_repos_using_actions", n => { PercentageOfReposUsingActions = n.GetStringValue(); } }, + { "number_of_repos_using_actions", n => { NumberOfReposUsingActions = n.GetIntValue(); } }, + { "percentage_of_repos_using_actions", n => { PercentageOfReposUsingActions = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ServerStatisticsPackages.cs b/src/GitHub/Models/ServerStatisticsPackages.cs index 34ff8684..b213edad 100644 --- a/src/GitHub/Models/ServerStatisticsPackages.cs +++ b/src/GitHub/Models/ServerStatisticsPackages.cs @@ -1,31 +1,33 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Packages metrics that are included in the Server Statistics payload/export from GHES /// - public class ServerStatisticsPackages : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ServerStatisticsPackages : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The details of the package ecosystems that are enabled in a GHES installation #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Ecosystems { get; set; } + public List? Ecosystems { get; set; } #nullable restore #else - public List Ecosystems { get; set; } + public List Ecosystems { get; set; } #endif /// Whether GitHub Packages is enabled globally in a GHES installation public bool? RegistryEnabled { get; set; } /// Whether a beta registry is enabled in a GHES installation public bool? RegistryV2Enabled { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ServerStatisticsPackages() { @@ -34,12 +36,12 @@ public ServerStatisticsPackages() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ServerStatisticsPackages CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ServerStatisticsPackages CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ServerStatisticsPackages(); + return new global::GitHub.Models.ServerStatisticsPackages(); } /// /// The deserialization information for the current model @@ -49,9 +51,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"ecosystems", n => { Ecosystems = n.GetCollectionOfObjectValues(ServerStatisticsPackages_ecosystems.CreateFromDiscriminatorValue)?.ToList(); } }, - {"registry_enabled", n => { RegistryEnabled = n.GetBoolValue(); } }, - {"registry_v2_enabled", n => { RegistryV2Enabled = n.GetBoolValue(); } }, + { "ecosystems", n => { Ecosystems = n.GetCollectionOfObjectValues(global::GitHub.Models.ServerStatisticsPackages_ecosystems.CreateFromDiscriminatorValue)?.AsList(); } }, + { "registry_enabled", n => { RegistryEnabled = n.GetBoolValue(); } }, + { "registry_v2_enabled", n => { RegistryV2Enabled = n.GetBoolValue(); } }, }; } /// @@ -61,7 +63,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("ecosystems", Ecosystems); + writer.WriteCollectionOfObjectValues("ecosystems", Ecosystems); writer.WriteBoolValue("registry_enabled", RegistryEnabled); writer.WriteBoolValue("registry_v2_enabled", RegistryV2Enabled); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/ServerStatisticsPackages_ecosystems.cs b/src/GitHub/Models/ServerStatisticsPackages_ecosystems.cs index aeee44ce..0e7ec5b0 100644 --- a/src/GitHub/Models/ServerStatisticsPackages_ecosystems.cs +++ b/src/GitHub/Models/ServerStatisticsPackages_ecosystems.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ServerStatisticsPackages_ecosystems : IAdditionalDataHolder, IParsable + public partial class ServerStatisticsPackages_ecosystems : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,11 +22,11 @@ public class ServerStatisticsPackages_ecosystems : IAdditionalDataHolder, IParsa /// The total number of packages in an ecosystem that have been updated in the 24 hours prior to `collection_date` for a GHES installation public int? DailyUpdateCount { get; set; } /// Shows if a package system is enabled, disabled, or read-only in a GHES installation - public ServerStatisticsPackages_ecosystems_enabled? Enabled { get; set; } + public global::GitHub.Models.ServerStatisticsPackages_ecosystems_enabled? Enabled { get; set; } /// The total number of internal packages in a package ecosystem in a GHES installation public int? InternalPackagesCount { get; set; } /// The name of the package ecosystem - public ServerStatisticsPackages_ecosystems_name? Name { get; set; } + public global::GitHub.Models.ServerStatisticsPackages_ecosystems_name? Name { get; set; } /// The total number of organization packages in a package ecosystem in a GHES installation public int? OrganizationPackagesCount { get; set; } /// The total number of private packages in a package ecosystem in a GHES installation @@ -36,7 +38,7 @@ public class ServerStatisticsPackages_ecosystems : IAdditionalDataHolder, IParsa /// The total number of user packages in a package ecosystem in a GHES installation public int? UserPackagesCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ServerStatisticsPackages_ecosystems() { @@ -45,12 +47,12 @@ public ServerStatisticsPackages_ecosystems() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ServerStatisticsPackages_ecosystems CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ServerStatisticsPackages_ecosystems CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ServerStatisticsPackages_ecosystems(); + return new global::GitHub.Models.ServerStatisticsPackages_ecosystems(); } /// /// The deserialization information for the current model @@ -60,18 +62,18 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"daily_create_count", n => { DailyCreateCount = n.GetIntValue(); } }, - {"daily_delete_count", n => { DailyDeleteCount = n.GetIntValue(); } }, - {"daily_download_count", n => { DailyDownloadCount = n.GetIntValue(); } }, - {"daily_update_count", n => { DailyUpdateCount = n.GetIntValue(); } }, - {"enabled", n => { Enabled = n.GetEnumValue(); } }, - {"internal_packages_count", n => { InternalPackagesCount = n.GetIntValue(); } }, - {"name", n => { Name = n.GetEnumValue(); } }, - {"organization_packages_count", n => { OrganizationPackagesCount = n.GetIntValue(); } }, - {"private_packages_count", n => { PrivatePackagesCount = n.GetIntValue(); } }, - {"public_packages_count", n => { PublicPackagesCount = n.GetIntValue(); } }, - {"published_packages_count", n => { PublishedPackagesCount = n.GetIntValue(); } }, - {"user_packages_count", n => { UserPackagesCount = n.GetIntValue(); } }, + { "daily_create_count", n => { DailyCreateCount = n.GetIntValue(); } }, + { "daily_delete_count", n => { DailyDeleteCount = n.GetIntValue(); } }, + { "daily_download_count", n => { DailyDownloadCount = n.GetIntValue(); } }, + { "daily_update_count", n => { DailyUpdateCount = n.GetIntValue(); } }, + { "enabled", n => { Enabled = n.GetEnumValue(); } }, + { "internal_packages_count", n => { InternalPackagesCount = n.GetIntValue(); } }, + { "name", n => { Name = n.GetEnumValue(); } }, + { "organization_packages_count", n => { OrganizationPackagesCount = n.GetIntValue(); } }, + { "private_packages_count", n => { PrivatePackagesCount = n.GetIntValue(); } }, + { "public_packages_count", n => { PublicPackagesCount = n.GetIntValue(); } }, + { "published_packages_count", n => { PublishedPackagesCount = n.GetIntValue(); } }, + { "user_packages_count", n => { UserPackagesCount = n.GetIntValue(); } }, }; } /// @@ -85,9 +87,9 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("daily_delete_count", DailyDeleteCount); writer.WriteIntValue("daily_download_count", DailyDownloadCount); writer.WriteIntValue("daily_update_count", DailyUpdateCount); - writer.WriteEnumValue("enabled", Enabled); + writer.WriteEnumValue("enabled", Enabled); writer.WriteIntValue("internal_packages_count", InternalPackagesCount); - writer.WriteEnumValue("name", Name); + writer.WriteEnumValue("name", Name); writer.WriteIntValue("organization_packages_count", OrganizationPackagesCount); writer.WriteIntValue("private_packages_count", PrivatePackagesCount); writer.WriteIntValue("public_packages_count", PublicPackagesCount); diff --git a/src/GitHub/Models/ServerStatisticsPackages_ecosystems_enabled.cs b/src/GitHub/Models/ServerStatisticsPackages_ecosystems_enabled.cs index eeef6e6f..58f8e592 100644 --- a/src/GitHub/Models/ServerStatisticsPackages_ecosystems_enabled.cs +++ b/src/GitHub/Models/ServerStatisticsPackages_ecosystems_enabled.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Shows if a package system is enabled, disabled, or read-only in a GHES installation + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ServerStatisticsPackages_ecosystems_enabled { [EnumMember(Value = "TRUE")] diff --git a/src/GitHub/Models/ServerStatisticsPackages_ecosystems_name.cs b/src/GitHub/Models/ServerStatisticsPackages_ecosystems_name.cs index 9aed7fa4..05ba5f2c 100644 --- a/src/GitHub/Models/ServerStatisticsPackages_ecosystems_name.cs +++ b/src/GitHub/Models/ServerStatisticsPackages_ecosystems_name.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The name of the package ecosystem + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ServerStatisticsPackages_ecosystems_name { [EnumMember(Value = "npm")] diff --git a/src/GitHub/Models/ServerStatistics_dormant_users.cs b/src/GitHub/Models/ServerStatistics_dormant_users.cs index 1eb247fa..fea33d3a 100644 --- a/src/GitHub/Models/ServerStatistics_dormant_users.cs +++ b/src/GitHub/Models/ServerStatistics_dormant_users.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ServerStatistics_dormant_users : IAdditionalDataHolder, IParsable + public partial class ServerStatistics_dormant_users : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class ServerStatistics_dormant_users : IAdditionalDataHolder, IParsable /// The total_dormant_users property public int? TotalDormantUsers { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ServerStatistics_dormant_users() { @@ -31,12 +33,12 @@ public ServerStatistics_dormant_users() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ServerStatistics_dormant_users CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ServerStatistics_dormant_users CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ServerStatistics_dormant_users(); + return new global::GitHub.Models.ServerStatistics_dormant_users(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"dormancy_threshold", n => { DormancyThreshold = n.GetStringValue(); } }, - {"total_dormant_users", n => { TotalDormantUsers = n.GetIntValue(); } }, + { "dormancy_threshold", n => { DormancyThreshold = n.GetStringValue(); } }, + { "total_dormant_users", n => { TotalDormantUsers = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/ServerStatistics_ghe_stats.cs b/src/GitHub/Models/ServerStatistics_ghe_stats.cs index 123661f5..5ec6a862 100644 --- a/src/GitHub/Models/ServerStatistics_ghe_stats.cs +++ b/src/GitHub/Models/ServerStatistics_ghe_stats.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ServerStatistics_ghe_stats : IAdditionalDataHolder, IParsable + public partial class ServerStatistics_ghe_stats : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,85 +16,85 @@ public class ServerStatistics_ghe_stats : IAdditionalDataHolder, IParsable /// The comments property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ServerStatistics_ghe_stats_comments? Comments { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats_comments? Comments { get; set; } #nullable restore #else - public ServerStatistics_ghe_stats_comments Comments { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats_comments Comments { get; set; } #endif /// The gists property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ServerStatistics_ghe_stats_gists? Gists { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats_gists? Gists { get; set; } #nullable restore #else - public ServerStatistics_ghe_stats_gists Gists { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats_gists Gists { get; set; } #endif /// The hooks property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ServerStatistics_ghe_stats_hooks? Hooks { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats_hooks? Hooks { get; set; } #nullable restore #else - public ServerStatistics_ghe_stats_hooks Hooks { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats_hooks Hooks { get; set; } #endif /// The issues property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ServerStatistics_ghe_stats_issues? Issues { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats_issues? Issues { get; set; } #nullable restore #else - public ServerStatistics_ghe_stats_issues Issues { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats_issues Issues { get; set; } #endif /// The milestones property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ServerStatistics_ghe_stats_milestones? Milestones { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats_milestones? Milestones { get; set; } #nullable restore #else - public ServerStatistics_ghe_stats_milestones Milestones { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats_milestones Milestones { get; set; } #endif /// The orgs property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ServerStatistics_ghe_stats_orgs? Orgs { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats_orgs? Orgs { get; set; } #nullable restore #else - public ServerStatistics_ghe_stats_orgs Orgs { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats_orgs Orgs { get; set; } #endif /// The pages property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ServerStatistics_ghe_stats_pages? Pages { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats_pages? Pages { get; set; } #nullable restore #else - public ServerStatistics_ghe_stats_pages Pages { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats_pages Pages { get; set; } #endif /// The pulls property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ServerStatistics_ghe_stats_pulls? Pulls { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats_pulls? Pulls { get; set; } #nullable restore #else - public ServerStatistics_ghe_stats_pulls Pulls { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats_pulls Pulls { get; set; } #endif /// The repos property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ServerStatistics_ghe_stats_repos? Repos { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats_repos? Repos { get; set; } #nullable restore #else - public ServerStatistics_ghe_stats_repos Repos { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats_repos Repos { get; set; } #endif /// The users property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ServerStatistics_ghe_stats_users? Users { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats_users? Users { get; set; } #nullable restore #else - public ServerStatistics_ghe_stats_users Users { get; set; } + public global::GitHub.Models.ServerStatistics_ghe_stats_users Users { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ServerStatistics_ghe_stats() { @@ -101,12 +103,12 @@ public ServerStatistics_ghe_stats() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ServerStatistics_ghe_stats CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ServerStatistics_ghe_stats CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ServerStatistics_ghe_stats(); + return new global::GitHub.Models.ServerStatistics_ghe_stats(); } /// /// The deserialization information for the current model @@ -116,16 +118,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"comments", n => { Comments = n.GetObjectValue(ServerStatistics_ghe_stats_comments.CreateFromDiscriminatorValue); } }, - {"gists", n => { Gists = n.GetObjectValue(ServerStatistics_ghe_stats_gists.CreateFromDiscriminatorValue); } }, - {"hooks", n => { Hooks = n.GetObjectValue(ServerStatistics_ghe_stats_hooks.CreateFromDiscriminatorValue); } }, - {"issues", n => { Issues = n.GetObjectValue(ServerStatistics_ghe_stats_issues.CreateFromDiscriminatorValue); } }, - {"milestones", n => { Milestones = n.GetObjectValue(ServerStatistics_ghe_stats_milestones.CreateFromDiscriminatorValue); } }, - {"orgs", n => { Orgs = n.GetObjectValue(ServerStatistics_ghe_stats_orgs.CreateFromDiscriminatorValue); } }, - {"pages", n => { Pages = n.GetObjectValue(ServerStatistics_ghe_stats_pages.CreateFromDiscriminatorValue); } }, - {"pulls", n => { Pulls = n.GetObjectValue(ServerStatistics_ghe_stats_pulls.CreateFromDiscriminatorValue); } }, - {"repos", n => { Repos = n.GetObjectValue(ServerStatistics_ghe_stats_repos.CreateFromDiscriminatorValue); } }, - {"users", n => { Users = n.GetObjectValue(ServerStatistics_ghe_stats_users.CreateFromDiscriminatorValue); } }, + { "comments", n => { Comments = n.GetObjectValue(global::GitHub.Models.ServerStatistics_ghe_stats_comments.CreateFromDiscriminatorValue); } }, + { "gists", n => { Gists = n.GetObjectValue(global::GitHub.Models.ServerStatistics_ghe_stats_gists.CreateFromDiscriminatorValue); } }, + { "hooks", n => { Hooks = n.GetObjectValue(global::GitHub.Models.ServerStatistics_ghe_stats_hooks.CreateFromDiscriminatorValue); } }, + { "issues", n => { Issues = n.GetObjectValue(global::GitHub.Models.ServerStatistics_ghe_stats_issues.CreateFromDiscriminatorValue); } }, + { "milestones", n => { Milestones = n.GetObjectValue(global::GitHub.Models.ServerStatistics_ghe_stats_milestones.CreateFromDiscriminatorValue); } }, + { "orgs", n => { Orgs = n.GetObjectValue(global::GitHub.Models.ServerStatistics_ghe_stats_orgs.CreateFromDiscriminatorValue); } }, + { "pages", n => { Pages = n.GetObjectValue(global::GitHub.Models.ServerStatistics_ghe_stats_pages.CreateFromDiscriminatorValue); } }, + { "pulls", n => { Pulls = n.GetObjectValue(global::GitHub.Models.ServerStatistics_ghe_stats_pulls.CreateFromDiscriminatorValue); } }, + { "repos", n => { Repos = n.GetObjectValue(global::GitHub.Models.ServerStatistics_ghe_stats_repos.CreateFromDiscriminatorValue); } }, + { "users", n => { Users = n.GetObjectValue(global::GitHub.Models.ServerStatistics_ghe_stats_users.CreateFromDiscriminatorValue); } }, }; } /// @@ -135,16 +137,16 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("comments", Comments); - writer.WriteObjectValue("gists", Gists); - writer.WriteObjectValue("hooks", Hooks); - writer.WriteObjectValue("issues", Issues); - writer.WriteObjectValue("milestones", Milestones); - writer.WriteObjectValue("orgs", Orgs); - writer.WriteObjectValue("pages", Pages); - writer.WriteObjectValue("pulls", Pulls); - writer.WriteObjectValue("repos", Repos); - writer.WriteObjectValue("users", Users); + writer.WriteObjectValue("comments", Comments); + writer.WriteObjectValue("gists", Gists); + writer.WriteObjectValue("hooks", Hooks); + writer.WriteObjectValue("issues", Issues); + writer.WriteObjectValue("milestones", Milestones); + writer.WriteObjectValue("orgs", Orgs); + writer.WriteObjectValue("pages", Pages); + writer.WriteObjectValue("pulls", Pulls); + writer.WriteObjectValue("repos", Repos); + writer.WriteObjectValue("users", Users); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/ServerStatistics_ghe_stats_comments.cs b/src/GitHub/Models/ServerStatistics_ghe_stats_comments.cs index a7782d83..806d6fb7 100644 --- a/src/GitHub/Models/ServerStatistics_ghe_stats_comments.cs +++ b/src/GitHub/Models/ServerStatistics_ghe_stats_comments.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ServerStatistics_ghe_stats_comments : IAdditionalDataHolder, IParsable + public partial class ServerStatistics_ghe_stats_comments : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class ServerStatistics_ghe_stats_comments : IAdditionalDataHolder, IParsa /// The total_pull_request_comments property public int? TotalPullRequestComments { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ServerStatistics_ghe_stats_comments() { @@ -29,12 +31,12 @@ public ServerStatistics_ghe_stats_comments() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ServerStatistics_ghe_stats_comments CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ServerStatistics_ghe_stats_comments CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ServerStatistics_ghe_stats_comments(); + return new global::GitHub.Models.ServerStatistics_ghe_stats_comments(); } /// /// The deserialization information for the current model @@ -44,10 +46,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"total_commit_comments", n => { TotalCommitComments = n.GetIntValue(); } }, - {"total_gist_comments", n => { TotalGistComments = n.GetIntValue(); } }, - {"total_issue_comments", n => { TotalIssueComments = n.GetIntValue(); } }, - {"total_pull_request_comments", n => { TotalPullRequestComments = n.GetIntValue(); } }, + { "total_commit_comments", n => { TotalCommitComments = n.GetIntValue(); } }, + { "total_gist_comments", n => { TotalGistComments = n.GetIntValue(); } }, + { "total_issue_comments", n => { TotalIssueComments = n.GetIntValue(); } }, + { "total_pull_request_comments", n => { TotalPullRequestComments = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/ServerStatistics_ghe_stats_gists.cs b/src/GitHub/Models/ServerStatistics_ghe_stats_gists.cs index 3030432e..19ff34cb 100644 --- a/src/GitHub/Models/ServerStatistics_ghe_stats_gists.cs +++ b/src/GitHub/Models/ServerStatistics_ghe_stats_gists.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ServerStatistics_ghe_stats_gists : IAdditionalDataHolder, IParsable + public partial class ServerStatistics_ghe_stats_gists : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -18,7 +20,7 @@ public class ServerStatistics_ghe_stats_gists : IAdditionalDataHolder, IParsable /// The total_gists property public int? TotalGists { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ServerStatistics_ghe_stats_gists() { @@ -27,12 +29,12 @@ public ServerStatistics_ghe_stats_gists() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ServerStatistics_ghe_stats_gists CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ServerStatistics_ghe_stats_gists CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ServerStatistics_ghe_stats_gists(); + return new global::GitHub.Models.ServerStatistics_ghe_stats_gists(); } /// /// The deserialization information for the current model @@ -42,9 +44,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"private_gists", n => { PrivateGists = n.GetIntValue(); } }, - {"public_gists", n => { PublicGists = n.GetIntValue(); } }, - {"total_gists", n => { TotalGists = n.GetIntValue(); } }, + { "private_gists", n => { PrivateGists = n.GetIntValue(); } }, + { "public_gists", n => { PublicGists = n.GetIntValue(); } }, + { "total_gists", n => { TotalGists = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/ServerStatistics_ghe_stats_hooks.cs b/src/GitHub/Models/ServerStatistics_ghe_stats_hooks.cs index a3995c26..46b0df5f 100644 --- a/src/GitHub/Models/ServerStatistics_ghe_stats_hooks.cs +++ b/src/GitHub/Models/ServerStatistics_ghe_stats_hooks.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ServerStatistics_ghe_stats_hooks : IAdditionalDataHolder, IParsable + public partial class ServerStatistics_ghe_stats_hooks : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The active_hooks property @@ -18,7 +20,7 @@ public class ServerStatistics_ghe_stats_hooks : IAdditionalDataHolder, IParsable /// The total_hooks property public int? TotalHooks { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ServerStatistics_ghe_stats_hooks() { @@ -27,12 +29,12 @@ public ServerStatistics_ghe_stats_hooks() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ServerStatistics_ghe_stats_hooks CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ServerStatistics_ghe_stats_hooks CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ServerStatistics_ghe_stats_hooks(); + return new global::GitHub.Models.ServerStatistics_ghe_stats_hooks(); } /// /// The deserialization information for the current model @@ -42,9 +44,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"active_hooks", n => { ActiveHooks = n.GetIntValue(); } }, - {"inactive_hooks", n => { InactiveHooks = n.GetIntValue(); } }, - {"total_hooks", n => { TotalHooks = n.GetIntValue(); } }, + { "active_hooks", n => { ActiveHooks = n.GetIntValue(); } }, + { "inactive_hooks", n => { InactiveHooks = n.GetIntValue(); } }, + { "total_hooks", n => { TotalHooks = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/ServerStatistics_ghe_stats_issues.cs b/src/GitHub/Models/ServerStatistics_ghe_stats_issues.cs index c5d28151..e9e6d84e 100644 --- a/src/GitHub/Models/ServerStatistics_ghe_stats_issues.cs +++ b/src/GitHub/Models/ServerStatistics_ghe_stats_issues.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ServerStatistics_ghe_stats_issues : IAdditionalDataHolder, IParsable + public partial class ServerStatistics_ghe_stats_issues : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -18,7 +20,7 @@ public class ServerStatistics_ghe_stats_issues : IAdditionalDataHolder, IParsabl /// The total_issues property public int? TotalIssues { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ServerStatistics_ghe_stats_issues() { @@ -27,12 +29,12 @@ public ServerStatistics_ghe_stats_issues() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ServerStatistics_ghe_stats_issues CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ServerStatistics_ghe_stats_issues CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ServerStatistics_ghe_stats_issues(); + return new global::GitHub.Models.ServerStatistics_ghe_stats_issues(); } /// /// The deserialization information for the current model @@ -42,9 +44,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"closed_issues", n => { ClosedIssues = n.GetIntValue(); } }, - {"open_issues", n => { OpenIssues = n.GetIntValue(); } }, - {"total_issues", n => { TotalIssues = n.GetIntValue(); } }, + { "closed_issues", n => { ClosedIssues = n.GetIntValue(); } }, + { "open_issues", n => { OpenIssues = n.GetIntValue(); } }, + { "total_issues", n => { TotalIssues = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/ServerStatistics_ghe_stats_milestones.cs b/src/GitHub/Models/ServerStatistics_ghe_stats_milestones.cs index 8f9a12c9..d558a76f 100644 --- a/src/GitHub/Models/ServerStatistics_ghe_stats_milestones.cs +++ b/src/GitHub/Models/ServerStatistics_ghe_stats_milestones.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ServerStatistics_ghe_stats_milestones : IAdditionalDataHolder, IParsable + public partial class ServerStatistics_ghe_stats_milestones : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -18,7 +20,7 @@ public class ServerStatistics_ghe_stats_milestones : IAdditionalDataHolder, IPar /// The total_milestones property public int? TotalMilestones { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ServerStatistics_ghe_stats_milestones() { @@ -27,12 +29,12 @@ public ServerStatistics_ghe_stats_milestones() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ServerStatistics_ghe_stats_milestones CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ServerStatistics_ghe_stats_milestones CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ServerStatistics_ghe_stats_milestones(); + return new global::GitHub.Models.ServerStatistics_ghe_stats_milestones(); } /// /// The deserialization information for the current model @@ -42,9 +44,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"closed_milestones", n => { ClosedMilestones = n.GetIntValue(); } }, - {"open_milestones", n => { OpenMilestones = n.GetIntValue(); } }, - {"total_milestones", n => { TotalMilestones = n.GetIntValue(); } }, + { "closed_milestones", n => { ClosedMilestones = n.GetIntValue(); } }, + { "open_milestones", n => { OpenMilestones = n.GetIntValue(); } }, + { "total_milestones", n => { TotalMilestones = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/ServerStatistics_ghe_stats_orgs.cs b/src/GitHub/Models/ServerStatistics_ghe_stats_orgs.cs index 68848e99..7bee79a5 100644 --- a/src/GitHub/Models/ServerStatistics_ghe_stats_orgs.cs +++ b/src/GitHub/Models/ServerStatistics_ghe_stats_orgs.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ServerStatistics_ghe_stats_orgs : IAdditionalDataHolder, IParsable + public partial class ServerStatistics_ghe_stats_orgs : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class ServerStatistics_ghe_stats_orgs : IAdditionalDataHolder, IParsable /// The total_teams property public int? TotalTeams { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ServerStatistics_ghe_stats_orgs() { @@ -29,12 +31,12 @@ public ServerStatistics_ghe_stats_orgs() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ServerStatistics_ghe_stats_orgs CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ServerStatistics_ghe_stats_orgs CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ServerStatistics_ghe_stats_orgs(); + return new global::GitHub.Models.ServerStatistics_ghe_stats_orgs(); } /// /// The deserialization information for the current model @@ -44,10 +46,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"disabled_orgs", n => { DisabledOrgs = n.GetIntValue(); } }, - {"total_orgs", n => { TotalOrgs = n.GetIntValue(); } }, - {"total_team_members", n => { TotalTeamMembers = n.GetIntValue(); } }, - {"total_teams", n => { TotalTeams = n.GetIntValue(); } }, + { "disabled_orgs", n => { DisabledOrgs = n.GetIntValue(); } }, + { "total_orgs", n => { TotalOrgs = n.GetIntValue(); } }, + { "total_team_members", n => { TotalTeamMembers = n.GetIntValue(); } }, + { "total_teams", n => { TotalTeams = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/ServerStatistics_ghe_stats_pages.cs b/src/GitHub/Models/ServerStatistics_ghe_stats_pages.cs index ad4dc47c..508c606f 100644 --- a/src/GitHub/Models/ServerStatistics_ghe_stats_pages.cs +++ b/src/GitHub/Models/ServerStatistics_ghe_stats_pages.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ServerStatistics_ghe_stats_pages : IAdditionalDataHolder, IParsable + public partial class ServerStatistics_ghe_stats_pages : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class ServerStatistics_ghe_stats_pages : IAdditionalDataHolder, IParsable /// The total_pages property public int? TotalPages { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ServerStatistics_ghe_stats_pages() { @@ -23,12 +25,12 @@ public ServerStatistics_ghe_stats_pages() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ServerStatistics_ghe_stats_pages CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ServerStatistics_ghe_stats_pages CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ServerStatistics_ghe_stats_pages(); + return new global::GitHub.Models.ServerStatistics_ghe_stats_pages(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"total_pages", n => { TotalPages = n.GetIntValue(); } }, + { "total_pages", n => { TotalPages = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/ServerStatistics_ghe_stats_pulls.cs b/src/GitHub/Models/ServerStatistics_ghe_stats_pulls.cs index 18effd18..91506fb7 100644 --- a/src/GitHub/Models/ServerStatistics_ghe_stats_pulls.cs +++ b/src/GitHub/Models/ServerStatistics_ghe_stats_pulls.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ServerStatistics_ghe_stats_pulls : IAdditionalDataHolder, IParsable + public partial class ServerStatistics_ghe_stats_pulls : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class ServerStatistics_ghe_stats_pulls : IAdditionalDataHolder, IParsable /// The unmergeable_pulls property public int? UnmergeablePulls { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ServerStatistics_ghe_stats_pulls() { @@ -29,12 +31,12 @@ public ServerStatistics_ghe_stats_pulls() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ServerStatistics_ghe_stats_pulls CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ServerStatistics_ghe_stats_pulls CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ServerStatistics_ghe_stats_pulls(); + return new global::GitHub.Models.ServerStatistics_ghe_stats_pulls(); } /// /// The deserialization information for the current model @@ -44,10 +46,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"mergeable_pulls", n => { MergeablePulls = n.GetIntValue(); } }, - {"merged_pulls", n => { MergedPulls = n.GetIntValue(); } }, - {"total_pulls", n => { TotalPulls = n.GetIntValue(); } }, - {"unmergeable_pulls", n => { UnmergeablePulls = n.GetIntValue(); } }, + { "mergeable_pulls", n => { MergeablePulls = n.GetIntValue(); } }, + { "merged_pulls", n => { MergedPulls = n.GetIntValue(); } }, + { "total_pulls", n => { TotalPulls = n.GetIntValue(); } }, + { "unmergeable_pulls", n => { UnmergeablePulls = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/ServerStatistics_ghe_stats_repos.cs b/src/GitHub/Models/ServerStatistics_ghe_stats_repos.cs index 28c1cf36..f2bf8e43 100644 --- a/src/GitHub/Models/ServerStatistics_ghe_stats_repos.cs +++ b/src/GitHub/Models/ServerStatistics_ghe_stats_repos.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ServerStatistics_ghe_stats_repos : IAdditionalDataHolder, IParsable + public partial class ServerStatistics_ghe_stats_repos : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -24,7 +26,7 @@ public class ServerStatistics_ghe_stats_repos : IAdditionalDataHolder, IParsable /// The total_wikis property public int? TotalWikis { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ServerStatistics_ghe_stats_repos() { @@ -33,12 +35,12 @@ public ServerStatistics_ghe_stats_repos() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ServerStatistics_ghe_stats_repos CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ServerStatistics_ghe_stats_repos CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ServerStatistics_ghe_stats_repos(); + return new global::GitHub.Models.ServerStatistics_ghe_stats_repos(); } /// /// The deserialization information for the current model @@ -48,12 +50,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"fork_repos", n => { ForkRepos = n.GetIntValue(); } }, - {"org_repos", n => { OrgRepos = n.GetIntValue(); } }, - {"root_repos", n => { RootRepos = n.GetIntValue(); } }, - {"total_pushes", n => { TotalPushes = n.GetIntValue(); } }, - {"total_repos", n => { TotalRepos = n.GetIntValue(); } }, - {"total_wikis", n => { TotalWikis = n.GetIntValue(); } }, + { "fork_repos", n => { ForkRepos = n.GetIntValue(); } }, + { "org_repos", n => { OrgRepos = n.GetIntValue(); } }, + { "root_repos", n => { RootRepos = n.GetIntValue(); } }, + { "total_pushes", n => { TotalPushes = n.GetIntValue(); } }, + { "total_repos", n => { TotalRepos = n.GetIntValue(); } }, + { "total_wikis", n => { TotalWikis = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/ServerStatistics_ghe_stats_users.cs b/src/GitHub/Models/ServerStatistics_ghe_stats_users.cs index 9f212f57..a4c5d409 100644 --- a/src/GitHub/Models/ServerStatistics_ghe_stats_users.cs +++ b/src/GitHub/Models/ServerStatistics_ghe_stats_users.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ServerStatistics_ghe_stats_users : IAdditionalDataHolder, IParsable + public partial class ServerStatistics_ghe_stats_users : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -18,7 +20,7 @@ public class ServerStatistics_ghe_stats_users : IAdditionalDataHolder, IParsable /// The total_users property public int? TotalUsers { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ServerStatistics_ghe_stats_users() { @@ -27,12 +29,12 @@ public ServerStatistics_ghe_stats_users() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ServerStatistics_ghe_stats_users CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ServerStatistics_ghe_stats_users CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ServerStatistics_ghe_stats_users(); + return new global::GitHub.Models.ServerStatistics_ghe_stats_users(); } /// /// The deserialization information for the current model @@ -42,9 +44,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"admin_users", n => { AdminUsers = n.GetIntValue(); } }, - {"suspended_users", n => { SuspendedUsers = n.GetIntValue(); } }, - {"total_users", n => { TotalUsers = n.GetIntValue(); } }, + { "admin_users", n => { AdminUsers = n.GetIntValue(); } }, + { "suspended_users", n => { SuspendedUsers = n.GetIntValue(); } }, + { "total_users", n => { TotalUsers = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/ServerStatistics_github_connect.cs b/src/GitHub/Models/ServerStatistics_github_connect.cs index 626b388c..b78ac951 100644 --- a/src/GitHub/Models/ServerStatistics_github_connect.cs +++ b/src/GitHub/Models/ServerStatistics_github_connect.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ServerStatistics_github_connect : IAdditionalDataHolder, IParsable + public partial class ServerStatistics_github_connect : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class ServerStatistics_github_connect : IAdditionalDataHolder, IParsable public List FeaturesEnabled { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ServerStatistics_github_connect() { @@ -29,12 +31,12 @@ public ServerStatistics_github_connect() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ServerStatistics_github_connect CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ServerStatistics_github_connect CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ServerStatistics_github_connect(); + return new global::GitHub.Models.ServerStatistics_github_connect(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"features_enabled", n => { FeaturesEnabled = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "features_enabled", n => { FeaturesEnabled = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Models/ShortBlob.cs b/src/GitHub/Models/ShortBlob.cs index b9e9b5df..44e9b59e 100644 --- a/src/GitHub/Models/ShortBlob.cs +++ b/src/GitHub/Models/ShortBlob.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Short Blob /// - public class ShortBlob : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ShortBlob : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class ShortBlob : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ShortBlob() { @@ -38,12 +40,12 @@ public ShortBlob() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ShortBlob CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ShortBlob CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ShortBlob(); + return new global::GitHub.Models.ShortBlob(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"sha", n => { Sha = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/ShortBranch.cs b/src/GitHub/Models/ShortBranch.cs index 121132e0..a625548e 100644 --- a/src/GitHub/Models/ShortBranch.cs +++ b/src/GitHub/Models/ShortBranch.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Short Branch /// - public class ShortBranch : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ShortBranch : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The commit property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ShortBranch_commit? Commit { get; set; } + public global::GitHub.Models.ShortBranch_commit? Commit { get; set; } #nullable restore #else - public ShortBranch_commit Commit { get; set; } + public global::GitHub.Models.ShortBranch_commit Commit { get; set; } #endif /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -33,10 +35,10 @@ public class ShortBranch : IAdditionalDataHolder, IParsable /// Branch Protection #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public BranchProtection? Protection { get; set; } + public global::GitHub.Models.BranchProtection? Protection { get; set; } #nullable restore #else - public BranchProtection Protection { get; set; } + public global::GitHub.Models.BranchProtection Protection { get; set; } #endif /// The protection_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -47,7 +49,7 @@ public class ShortBranch : IAdditionalDataHolder, IParsable public string ProtectionUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ShortBranch() { @@ -56,12 +58,12 @@ public ShortBranch() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ShortBranch CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ShortBranch CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ShortBranch(); + return new global::GitHub.Models.ShortBranch(); } /// /// The deserialization information for the current model @@ -71,11 +73,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"commit", n => { Commit = n.GetObjectValue(ShortBranch_commit.CreateFromDiscriminatorValue); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"protected", n => { Protected = n.GetBoolValue(); } }, - {"protection", n => { Protection = n.GetObjectValue(BranchProtection.CreateFromDiscriminatorValue); } }, - {"protection_url", n => { ProtectionUrl = n.GetStringValue(); } }, + { "commit", n => { Commit = n.GetObjectValue(global::GitHub.Models.ShortBranch_commit.CreateFromDiscriminatorValue); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "protected", n => { Protected = n.GetBoolValue(); } }, + { "protection", n => { Protection = n.GetObjectValue(global::GitHub.Models.BranchProtection.CreateFromDiscriminatorValue); } }, + { "protection_url", n => { ProtectionUrl = n.GetStringValue(); } }, }; } /// @@ -85,10 +87,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("commit", Commit); + writer.WriteObjectValue("commit", Commit); writer.WriteStringValue("name", Name); writer.WriteBoolValue("protected", Protected); - writer.WriteObjectValue("protection", Protection); + writer.WriteObjectValue("protection", Protection); writer.WriteStringValue("protection_url", ProtectionUrl); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/ShortBranch_commit.cs b/src/GitHub/Models/ShortBranch_commit.cs index 4e568257..581f5a83 100644 --- a/src/GitHub/Models/ShortBranch_commit.cs +++ b/src/GitHub/Models/ShortBranch_commit.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ShortBranch_commit : IAdditionalDataHolder, IParsable + public partial class ShortBranch_commit : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class ShortBranch_commit : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ShortBranch_commit() { @@ -37,12 +39,12 @@ public ShortBranch_commit() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ShortBranch_commit CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ShortBranch_commit CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ShortBranch_commit(); + return new global::GitHub.Models.ShortBranch_commit(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"sha", n => { Sha = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SigstoreBundle0.cs b/src/GitHub/Models/SigstoreBundle0.cs index ce8ce44c..99b51a01 100644 --- a/src/GitHub/Models/SigstoreBundle0.cs +++ b/src/GitHub/Models/SigstoreBundle0.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Sigstore Bundle v0.1 /// - public class SigstoreBundle0 : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SigstoreBundle0 : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The dsseEnvelope property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SigstoreBundle0_dsseEnvelope? DsseEnvelope { get; set; } + public global::GitHub.Models.SigstoreBundle0_dsseEnvelope? DsseEnvelope { get; set; } #nullable restore #else - public SigstoreBundle0_dsseEnvelope DsseEnvelope { get; set; } + public global::GitHub.Models.SigstoreBundle0_dsseEnvelope DsseEnvelope { get; set; } #endif /// The mediaType property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -31,13 +33,13 @@ public class SigstoreBundle0 : IAdditionalDataHolder, IParsable /// The verificationMaterial property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SigstoreBundle0_verificationMaterial? VerificationMaterial { get; set; } + public global::GitHub.Models.SigstoreBundle0_verificationMaterial? VerificationMaterial { get; set; } #nullable restore #else - public SigstoreBundle0_verificationMaterial VerificationMaterial { get; set; } + public global::GitHub.Models.SigstoreBundle0_verificationMaterial VerificationMaterial { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SigstoreBundle0() { @@ -46,12 +48,12 @@ public SigstoreBundle0() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SigstoreBundle0 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SigstoreBundle0 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SigstoreBundle0(); + return new global::GitHub.Models.SigstoreBundle0(); } /// /// The deserialization information for the current model @@ -61,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"dsseEnvelope", n => { DsseEnvelope = n.GetObjectValue(SigstoreBundle0_dsseEnvelope.CreateFromDiscriminatorValue); } }, - {"mediaType", n => { MediaType = n.GetStringValue(); } }, - {"verificationMaterial", n => { VerificationMaterial = n.GetObjectValue(SigstoreBundle0_verificationMaterial.CreateFromDiscriminatorValue); } }, + { "dsseEnvelope", n => { DsseEnvelope = n.GetObjectValue(global::GitHub.Models.SigstoreBundle0_dsseEnvelope.CreateFromDiscriminatorValue); } }, + { "mediaType", n => { MediaType = n.GetStringValue(); } }, + { "verificationMaterial", n => { VerificationMaterial = n.GetObjectValue(global::GitHub.Models.SigstoreBundle0_verificationMaterial.CreateFromDiscriminatorValue); } }, }; } /// @@ -73,9 +75,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("dsseEnvelope", DsseEnvelope); + writer.WriteObjectValue("dsseEnvelope", DsseEnvelope); writer.WriteStringValue("mediaType", MediaType); - writer.WriteObjectValue("verificationMaterial", VerificationMaterial); + writer.WriteObjectValue("verificationMaterial", VerificationMaterial); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/SigstoreBundle0_dsseEnvelope.cs b/src/GitHub/Models/SigstoreBundle0_dsseEnvelope.cs index d03a802d..a101321a 100644 --- a/src/GitHub/Models/SigstoreBundle0_dsseEnvelope.cs +++ b/src/GitHub/Models/SigstoreBundle0_dsseEnvelope.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SigstoreBundle0_dsseEnvelope : IAdditionalDataHolder, IParsable + public partial class SigstoreBundle0_dsseEnvelope : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,13 +32,13 @@ public class SigstoreBundle0_dsseEnvelope : IAdditionalDataHolder, IParsable /// The signatures property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Signatures { get; set; } + public List? Signatures { get; set; } #nullable restore #else - public List Signatures { get; set; } + public List Signatures { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SigstoreBundle0_dsseEnvelope() { @@ -45,12 +47,12 @@ public SigstoreBundle0_dsseEnvelope() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SigstoreBundle0_dsseEnvelope CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SigstoreBundle0_dsseEnvelope CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SigstoreBundle0_dsseEnvelope(); + return new global::GitHub.Models.SigstoreBundle0_dsseEnvelope(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"payload", n => { Payload = n.GetStringValue(); } }, - {"payloadType", n => { PayloadType = n.GetStringValue(); } }, - {"signatures", n => { Signatures = n.GetCollectionOfObjectValues(SigstoreBundle0_dsseEnvelope_signatures.CreateFromDiscriminatorValue)?.ToList(); } }, + { "payload", n => { Payload = n.GetStringValue(); } }, + { "payloadType", n => { PayloadType = n.GetStringValue(); } }, + { "signatures", n => { Signatures = n.GetCollectionOfObjectValues(global::GitHub.Models.SigstoreBundle0_dsseEnvelope_signatures.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -74,7 +76,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("payload", Payload); writer.WriteStringValue("payloadType", PayloadType); - writer.WriteCollectionOfObjectValues("signatures", Signatures); + writer.WriteCollectionOfObjectValues("signatures", Signatures); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/SigstoreBundle0_dsseEnvelope_signatures.cs b/src/GitHub/Models/SigstoreBundle0_dsseEnvelope_signatures.cs index 7fc5e869..69cee609 100644 --- a/src/GitHub/Models/SigstoreBundle0_dsseEnvelope_signatures.cs +++ b/src/GitHub/Models/SigstoreBundle0_dsseEnvelope_signatures.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SigstoreBundle0_dsseEnvelope_signatures : IAdditionalDataHolder, IParsable + public partial class SigstoreBundle0_dsseEnvelope_signatures : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class SigstoreBundle0_dsseEnvelope_signatures : IAdditionalDataHolder, IP public string Sig { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SigstoreBundle0_dsseEnvelope_signatures() { @@ -37,12 +39,12 @@ public SigstoreBundle0_dsseEnvelope_signatures() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SigstoreBundle0_dsseEnvelope_signatures CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SigstoreBundle0_dsseEnvelope_signatures CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SigstoreBundle0_dsseEnvelope_signatures(); + return new global::GitHub.Models.SigstoreBundle0_dsseEnvelope_signatures(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"keyid", n => { Keyid = n.GetStringValue(); } }, - {"sig", n => { Sig = n.GetStringValue(); } }, + { "keyid", n => { Keyid = n.GetStringValue(); } }, + { "sig", n => { Sig = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SigstoreBundle0_verificationMaterial.cs b/src/GitHub/Models/SigstoreBundle0_verificationMaterial.cs index 5f693dc3..01463cf5 100644 --- a/src/GitHub/Models/SigstoreBundle0_verificationMaterial.cs +++ b/src/GitHub/Models/SigstoreBundle0_verificationMaterial.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SigstoreBundle0_verificationMaterial : IAdditionalDataHolder, IParsable + public partial class SigstoreBundle0_verificationMaterial : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,21 +24,21 @@ public class SigstoreBundle0_verificationMaterial : IAdditionalDataHolder, IPars /// The tlogEntries property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? TlogEntries { get; set; } + public List? TlogEntries { get; set; } #nullable restore #else - public List TlogEntries { get; set; } + public List TlogEntries { get; set; } #endif /// The x509CertificateChain property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SigstoreBundle0_verificationMaterial_x509CertificateChain? X509CertificateChain { get; set; } + public global::GitHub.Models.SigstoreBundle0_verificationMaterial_x509CertificateChain? X509CertificateChain { get; set; } #nullable restore #else - public SigstoreBundle0_verificationMaterial_x509CertificateChain X509CertificateChain { get; set; } + public global::GitHub.Models.SigstoreBundle0_verificationMaterial_x509CertificateChain X509CertificateChain { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SigstoreBundle0_verificationMaterial() { @@ -45,12 +47,12 @@ public SigstoreBundle0_verificationMaterial() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SigstoreBundle0_verificationMaterial CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SigstoreBundle0_verificationMaterial CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SigstoreBundle0_verificationMaterial(); + return new global::GitHub.Models.SigstoreBundle0_verificationMaterial(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"timestampVerificationData", n => { TimestampVerificationData = n.GetStringValue(); } }, - {"tlogEntries", n => { TlogEntries = n.GetCollectionOfObjectValues(SigstoreBundle0_verificationMaterial_tlogEntries.CreateFromDiscriminatorValue)?.ToList(); } }, - {"x509CertificateChain", n => { X509CertificateChain = n.GetObjectValue(SigstoreBundle0_verificationMaterial_x509CertificateChain.CreateFromDiscriminatorValue); } }, + { "timestampVerificationData", n => { TimestampVerificationData = n.GetStringValue(); } }, + { "tlogEntries", n => { TlogEntries = n.GetCollectionOfObjectValues(global::GitHub.Models.SigstoreBundle0_verificationMaterial_tlogEntries.CreateFromDiscriminatorValue)?.AsList(); } }, + { "x509CertificateChain", n => { X509CertificateChain = n.GetObjectValue(global::GitHub.Models.SigstoreBundle0_verificationMaterial_x509CertificateChain.CreateFromDiscriminatorValue); } }, }; } /// @@ -73,8 +75,8 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("timestampVerificationData", TimestampVerificationData); - writer.WriteCollectionOfObjectValues("tlogEntries", TlogEntries); - writer.WriteObjectValue("x509CertificateChain", X509CertificateChain); + writer.WriteCollectionOfObjectValues("tlogEntries", TlogEntries); + writer.WriteObjectValue("x509CertificateChain", X509CertificateChain); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/SigstoreBundle0_verificationMaterial_tlogEntries.cs b/src/GitHub/Models/SigstoreBundle0_verificationMaterial_tlogEntries.cs index f490b2d9..fc1b457e 100644 --- a/src/GitHub/Models/SigstoreBundle0_verificationMaterial_tlogEntries.cs +++ b/src/GitHub/Models/SigstoreBundle0_verificationMaterial_tlogEntries.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SigstoreBundle0_verificationMaterial_tlogEntries : IAdditionalDataHolder, IParsable + public partial class SigstoreBundle0_verificationMaterial_tlogEntries : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,10 +24,10 @@ public class SigstoreBundle0_verificationMaterial_tlogEntries : IAdditionalDataH /// The inclusionPromise property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SigstoreBundle0_verificationMaterial_tlogEntries_inclusionPromise? InclusionPromise { get; set; } + public global::GitHub.Models.SigstoreBundle0_verificationMaterial_tlogEntries_inclusionPromise? InclusionPromise { get; set; } #nullable restore #else - public SigstoreBundle0_verificationMaterial_tlogEntries_inclusionPromise InclusionPromise { get; set; } + public global::GitHub.Models.SigstoreBundle0_verificationMaterial_tlogEntries_inclusionPromise InclusionPromise { get; set; } #endif /// The inclusionProof property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -46,18 +48,18 @@ public class SigstoreBundle0_verificationMaterial_tlogEntries : IAdditionalDataH /// The kindVersion property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SigstoreBundle0_verificationMaterial_tlogEntries_kindVersion? KindVersion { get; set; } + public global::GitHub.Models.SigstoreBundle0_verificationMaterial_tlogEntries_kindVersion? KindVersion { get; set; } #nullable restore #else - public SigstoreBundle0_verificationMaterial_tlogEntries_kindVersion KindVersion { get; set; } + public global::GitHub.Models.SigstoreBundle0_verificationMaterial_tlogEntries_kindVersion KindVersion { get; set; } #endif /// The logId property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SigstoreBundle0_verificationMaterial_tlogEntries_logId? LogId { get; set; } + public global::GitHub.Models.SigstoreBundle0_verificationMaterial_tlogEntries_logId? LogId { get; set; } #nullable restore #else - public SigstoreBundle0_verificationMaterial_tlogEntries_logId LogId { get; set; } + public global::GitHub.Models.SigstoreBundle0_verificationMaterial_tlogEntries_logId LogId { get; set; } #endif /// The logIndex property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -68,7 +70,7 @@ public class SigstoreBundle0_verificationMaterial_tlogEntries : IAdditionalDataH public string LogIndex { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SigstoreBundle0_verificationMaterial_tlogEntries() { @@ -77,12 +79,12 @@ public SigstoreBundle0_verificationMaterial_tlogEntries() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SigstoreBundle0_verificationMaterial_tlogEntries CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SigstoreBundle0_verificationMaterial_tlogEntries CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SigstoreBundle0_verificationMaterial_tlogEntries(); + return new global::GitHub.Models.SigstoreBundle0_verificationMaterial_tlogEntries(); } /// /// The deserialization information for the current model @@ -92,13 +94,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"canonicalizedBody", n => { CanonicalizedBody = n.GetStringValue(); } }, - {"inclusionPromise", n => { InclusionPromise = n.GetObjectValue(SigstoreBundle0_verificationMaterial_tlogEntries_inclusionPromise.CreateFromDiscriminatorValue); } }, - {"inclusionProof", n => { InclusionProof = n.GetStringValue(); } }, - {"integratedTime", n => { IntegratedTime = n.GetStringValue(); } }, - {"kindVersion", n => { KindVersion = n.GetObjectValue(SigstoreBundle0_verificationMaterial_tlogEntries_kindVersion.CreateFromDiscriminatorValue); } }, - {"logId", n => { LogId = n.GetObjectValue(SigstoreBundle0_verificationMaterial_tlogEntries_logId.CreateFromDiscriminatorValue); } }, - {"logIndex", n => { LogIndex = n.GetStringValue(); } }, + { "canonicalizedBody", n => { CanonicalizedBody = n.GetStringValue(); } }, + { "inclusionPromise", n => { InclusionPromise = n.GetObjectValue(global::GitHub.Models.SigstoreBundle0_verificationMaterial_tlogEntries_inclusionPromise.CreateFromDiscriminatorValue); } }, + { "inclusionProof", n => { InclusionProof = n.GetStringValue(); } }, + { "integratedTime", n => { IntegratedTime = n.GetStringValue(); } }, + { "kindVersion", n => { KindVersion = n.GetObjectValue(global::GitHub.Models.SigstoreBundle0_verificationMaterial_tlogEntries_kindVersion.CreateFromDiscriminatorValue); } }, + { "logId", n => { LogId = n.GetObjectValue(global::GitHub.Models.SigstoreBundle0_verificationMaterial_tlogEntries_logId.CreateFromDiscriminatorValue); } }, + { "logIndex", n => { LogIndex = n.GetStringValue(); } }, }; } /// @@ -109,11 +111,11 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("canonicalizedBody", CanonicalizedBody); - writer.WriteObjectValue("inclusionPromise", InclusionPromise); + writer.WriteObjectValue("inclusionPromise", InclusionPromise); writer.WriteStringValue("inclusionProof", InclusionProof); writer.WriteStringValue("integratedTime", IntegratedTime); - writer.WriteObjectValue("kindVersion", KindVersion); - writer.WriteObjectValue("logId", LogId); + writer.WriteObjectValue("kindVersion", KindVersion); + writer.WriteObjectValue("logId", LogId); writer.WriteStringValue("logIndex", LogIndex); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/SigstoreBundle0_verificationMaterial_tlogEntries_inclusionPromise.cs b/src/GitHub/Models/SigstoreBundle0_verificationMaterial_tlogEntries_inclusionPromise.cs index f78f14a4..0ec9f061 100644 --- a/src/GitHub/Models/SigstoreBundle0_verificationMaterial_tlogEntries_inclusionPromise.cs +++ b/src/GitHub/Models/SigstoreBundle0_verificationMaterial_tlogEntries_inclusionPromise.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SigstoreBundle0_verificationMaterial_tlogEntries_inclusionPromise : IAdditionalDataHolder, IParsable + public partial class SigstoreBundle0_verificationMaterial_tlogEntries_inclusionPromise : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class SigstoreBundle0_verificationMaterial_tlogEntries_inclusionPromise : public string SignedEntryTimestamp { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SigstoreBundle0_verificationMaterial_tlogEntries_inclusionPromise() { @@ -29,12 +31,12 @@ public SigstoreBundle0_verificationMaterial_tlogEntries_inclusionPromise() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SigstoreBundle0_verificationMaterial_tlogEntries_inclusionPromise CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SigstoreBundle0_verificationMaterial_tlogEntries_inclusionPromise CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SigstoreBundle0_verificationMaterial_tlogEntries_inclusionPromise(); + return new global::GitHub.Models.SigstoreBundle0_verificationMaterial_tlogEntries_inclusionPromise(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"signedEntryTimestamp", n => { SignedEntryTimestamp = n.GetStringValue(); } }, + { "signedEntryTimestamp", n => { SignedEntryTimestamp = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SigstoreBundle0_verificationMaterial_tlogEntries_kindVersion.cs b/src/GitHub/Models/SigstoreBundle0_verificationMaterial_tlogEntries_kindVersion.cs index 38be743c..10737ff9 100644 --- a/src/GitHub/Models/SigstoreBundle0_verificationMaterial_tlogEntries_kindVersion.cs +++ b/src/GitHub/Models/SigstoreBundle0_verificationMaterial_tlogEntries_kindVersion.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SigstoreBundle0_verificationMaterial_tlogEntries_kindVersion : IAdditionalDataHolder, IParsable + public partial class SigstoreBundle0_verificationMaterial_tlogEntries_kindVersion : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class SigstoreBundle0_verificationMaterial_tlogEntries_kindVersion : IAdd public string Version { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SigstoreBundle0_verificationMaterial_tlogEntries_kindVersion() { @@ -37,12 +39,12 @@ public SigstoreBundle0_verificationMaterial_tlogEntries_kindVersion() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SigstoreBundle0_verificationMaterial_tlogEntries_kindVersion CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SigstoreBundle0_verificationMaterial_tlogEntries_kindVersion CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SigstoreBundle0_verificationMaterial_tlogEntries_kindVersion(); + return new global::GitHub.Models.SigstoreBundle0_verificationMaterial_tlogEntries_kindVersion(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"kind", n => { Kind = n.GetStringValue(); } }, - {"version", n => { Version = n.GetStringValue(); } }, + { "kind", n => { Kind = n.GetStringValue(); } }, + { "version", n => { Version = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SigstoreBundle0_verificationMaterial_tlogEntries_logId.cs b/src/GitHub/Models/SigstoreBundle0_verificationMaterial_tlogEntries_logId.cs index b0661a6a..573fe58b 100644 --- a/src/GitHub/Models/SigstoreBundle0_verificationMaterial_tlogEntries_logId.cs +++ b/src/GitHub/Models/SigstoreBundle0_verificationMaterial_tlogEntries_logId.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SigstoreBundle0_verificationMaterial_tlogEntries_logId : IAdditionalDataHolder, IParsable + public partial class SigstoreBundle0_verificationMaterial_tlogEntries_logId : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class SigstoreBundle0_verificationMaterial_tlogEntries_logId : IAdditiona public string KeyId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SigstoreBundle0_verificationMaterial_tlogEntries_logId() { @@ -29,12 +31,12 @@ public SigstoreBundle0_verificationMaterial_tlogEntries_logId() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SigstoreBundle0_verificationMaterial_tlogEntries_logId CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SigstoreBundle0_verificationMaterial_tlogEntries_logId CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SigstoreBundle0_verificationMaterial_tlogEntries_logId(); + return new global::GitHub.Models.SigstoreBundle0_verificationMaterial_tlogEntries_logId(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"keyId", n => { KeyId = n.GetStringValue(); } }, + { "keyId", n => { KeyId = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SigstoreBundle0_verificationMaterial_x509CertificateChain.cs b/src/GitHub/Models/SigstoreBundle0_verificationMaterial_x509CertificateChain.cs index e03a5e30..12dea68e 100644 --- a/src/GitHub/Models/SigstoreBundle0_verificationMaterial_x509CertificateChain.cs +++ b/src/GitHub/Models/SigstoreBundle0_verificationMaterial_x509CertificateChain.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SigstoreBundle0_verificationMaterial_x509CertificateChain : IAdditionalDataHolder, IParsable + public partial class SigstoreBundle0_verificationMaterial_x509CertificateChain : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,13 +16,13 @@ public class SigstoreBundle0_verificationMaterial_x509CertificateChain : IAdditi /// The certificates property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Certificates { get; set; } + public List? Certificates { get; set; } #nullable restore #else - public List Certificates { get; set; } + public List Certificates { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SigstoreBundle0_verificationMaterial_x509CertificateChain() { @@ -29,12 +31,12 @@ public SigstoreBundle0_verificationMaterial_x509CertificateChain() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SigstoreBundle0_verificationMaterial_x509CertificateChain CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SigstoreBundle0_verificationMaterial_x509CertificateChain CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SigstoreBundle0_verificationMaterial_x509CertificateChain(); + return new global::GitHub.Models.SigstoreBundle0_verificationMaterial_x509CertificateChain(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"certificates", n => { Certificates = n.GetCollectionOfObjectValues(SigstoreBundle0_verificationMaterial_x509CertificateChain_certificates.CreateFromDiscriminatorValue)?.ToList(); } }, + { "certificates", n => { Certificates = n.GetCollectionOfObjectValues(global::GitHub.Models.SigstoreBundle0_verificationMaterial_x509CertificateChain_certificates.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -54,7 +56,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("certificates", Certificates); + writer.WriteCollectionOfObjectValues("certificates", Certificates); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/SigstoreBundle0_verificationMaterial_x509CertificateChain_certificates.cs b/src/GitHub/Models/SigstoreBundle0_verificationMaterial_x509CertificateChain_certificates.cs index 67aff070..5241ff69 100644 --- a/src/GitHub/Models/SigstoreBundle0_verificationMaterial_x509CertificateChain_certificates.cs +++ b/src/GitHub/Models/SigstoreBundle0_verificationMaterial_x509CertificateChain_certificates.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SigstoreBundle0_verificationMaterial_x509CertificateChain_certificates : IAdditionalDataHolder, IParsable + public partial class SigstoreBundle0_verificationMaterial_x509CertificateChain_certificates : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class SigstoreBundle0_verificationMaterial_x509CertificateChain_certifica public string RawBytes { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SigstoreBundle0_verificationMaterial_x509CertificateChain_certificates() { @@ -29,12 +31,12 @@ public SigstoreBundle0_verificationMaterial_x509CertificateChain_certificates() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SigstoreBundle0_verificationMaterial_x509CertificateChain_certificates CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SigstoreBundle0_verificationMaterial_x509CertificateChain_certificates CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SigstoreBundle0_verificationMaterial_x509CertificateChain_certificates(); + return new global::GitHub.Models.SigstoreBundle0_verificationMaterial_x509CertificateChain_certificates(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"rawBytes", n => { RawBytes = n.GetStringValue(); } }, + { "rawBytes", n => { RawBytes = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SimpleClassroom.cs b/src/GitHub/Models/SimpleClassroom.cs index 3f8467fc..17dcd166 100644 --- a/src/GitHub/Models/SimpleClassroom.cs +++ b/src/GitHub/Models/SimpleClassroom.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A GitHub Classroom classroom /// - public class SimpleClassroom : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SimpleClassroom : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -33,7 +35,7 @@ public class SimpleClassroom : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SimpleClassroom() { @@ -42,12 +44,12 @@ public SimpleClassroom() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SimpleClassroom CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SimpleClassroom CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SimpleClassroom(); + return new global::GitHub.Models.SimpleClassroom(); } /// /// The deserialization information for the current model @@ -57,10 +59,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"archived", n => { Archived = n.GetBoolValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "archived", n => { Archived = n.GetBoolValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SimpleClassroomAssignment.cs b/src/GitHub/Models/SimpleClassroomAssignment.cs index fbcaceb2..47d56470 100644 --- a/src/GitHub/Models/SimpleClassroomAssignment.cs +++ b/src/GitHub/Models/SimpleClassroomAssignment.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A GitHub Classroom assignment /// - public class SimpleClassroomAssignment : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SimpleClassroomAssignment : IAdditionalDataHolder, IParsable { /// The number of students that have accepted the assignment. public int? Accepted { get; set; } @@ -17,10 +19,10 @@ public class SimpleClassroomAssignment : IAdditionalDataHolder, IParsable /// A GitHub Classroom classroom #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleClassroom? Classroom { get; set; } + public global::GitHub.Models.SimpleClassroom? Classroom { get; set; } #nullable restore #else - public SimpleClassroom Classroom { get; set; } + public global::GitHub.Models.SimpleClassroom Classroom { get; set; } #endif /// The time at which the assignment is due. public DateTimeOffset? Deadline { get; set; } @@ -83,9 +85,9 @@ public class SimpleClassroomAssignment : IAdditionalDataHolder, IParsable public string Title { get; set; } #endif /// Whether it's a Group Assignment or Individual Assignment. - public SimpleClassroomAssignment_type? Type { get; set; } + public global::GitHub.Models.SimpleClassroomAssignment_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SimpleClassroomAssignment() { @@ -94,12 +96,12 @@ public SimpleClassroomAssignment() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SimpleClassroomAssignment CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SimpleClassroomAssignment CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SimpleClassroomAssignment(); + return new global::GitHub.Models.SimpleClassroomAssignment(); } /// /// The deserialization information for the current model @@ -109,24 +111,24 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"accepted", n => { Accepted = n.GetIntValue(); } }, - {"classroom", n => { Classroom = n.GetObjectValue(SimpleClassroom.CreateFromDiscriminatorValue); } }, - {"deadline", n => { Deadline = n.GetDateTimeOffsetValue(); } }, - {"editor", n => { Editor = n.GetStringValue(); } }, - {"feedback_pull_requests_enabled", n => { FeedbackPullRequestsEnabled = n.GetBoolValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"invitations_enabled", n => { InvitationsEnabled = n.GetBoolValue(); } }, - {"invite_link", n => { InviteLink = n.GetStringValue(); } }, - {"language", n => { Language = n.GetStringValue(); } }, - {"max_members", n => { MaxMembers = n.GetIntValue(); } }, - {"max_teams", n => { MaxTeams = n.GetIntValue(); } }, - {"passing", n => { Passing = n.GetIntValue(); } }, - {"public_repo", n => { PublicRepo = n.GetBoolValue(); } }, - {"slug", n => { Slug = n.GetStringValue(); } }, - {"students_are_repo_admins", n => { StudentsAreRepoAdmins = n.GetBoolValue(); } }, - {"submitted", n => { Submitted = n.GetIntValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "accepted", n => { Accepted = n.GetIntValue(); } }, + { "classroom", n => { Classroom = n.GetObjectValue(global::GitHub.Models.SimpleClassroom.CreateFromDiscriminatorValue); } }, + { "deadline", n => { Deadline = n.GetDateTimeOffsetValue(); } }, + { "editor", n => { Editor = n.GetStringValue(); } }, + { "feedback_pull_requests_enabled", n => { FeedbackPullRequestsEnabled = n.GetBoolValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "invitations_enabled", n => { InvitationsEnabled = n.GetBoolValue(); } }, + { "invite_link", n => { InviteLink = n.GetStringValue(); } }, + { "language", n => { Language = n.GetStringValue(); } }, + { "max_members", n => { MaxMembers = n.GetIntValue(); } }, + { "max_teams", n => { MaxTeams = n.GetIntValue(); } }, + { "passing", n => { Passing = n.GetIntValue(); } }, + { "public_repo", n => { PublicRepo = n.GetBoolValue(); } }, + { "slug", n => { Slug = n.GetStringValue(); } }, + { "students_are_repo_admins", n => { StudentsAreRepoAdmins = n.GetBoolValue(); } }, + { "submitted", n => { Submitted = n.GetIntValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -137,7 +139,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("accepted", Accepted); - writer.WriteObjectValue("classroom", Classroom); + writer.WriteObjectValue("classroom", Classroom); writer.WriteDateTimeOffsetValue("deadline", Deadline); writer.WriteStringValue("editor", Editor); writer.WriteBoolValue("feedback_pull_requests_enabled", FeedbackPullRequestsEnabled); @@ -153,7 +155,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("students_are_repo_admins", StudentsAreRepoAdmins); writer.WriteIntValue("submitted", Submitted); writer.WriteStringValue("title", Title); - writer.WriteEnumValue("type", Type); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/SimpleClassroomAssignment_type.cs b/src/GitHub/Models/SimpleClassroomAssignment_type.cs index 8f7c0f67..ded8e5ec 100644 --- a/src/GitHub/Models/SimpleClassroomAssignment_type.cs +++ b/src/GitHub/Models/SimpleClassroomAssignment_type.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// Whether it's a Group Assignment or Individual Assignment. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum SimpleClassroomAssignment_type { [EnumMember(Value = "individual")] diff --git a/src/GitHub/Models/SimpleClassroomOrganization.cs b/src/GitHub/Models/SimpleClassroomOrganization.cs index 967e5cf6..35186400 100644 --- a/src/GitHub/Models/SimpleClassroomOrganization.cs +++ b/src/GitHub/Models/SimpleClassroomOrganization.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A GitHub organization. /// - public class SimpleClassroomOrganization : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SimpleClassroomOrganization : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -55,7 +57,7 @@ public class SimpleClassroomOrganization : IAdditionalDataHolder, IParsable public string NodeId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SimpleClassroomOrganization() { @@ -64,12 +66,12 @@ public SimpleClassroomOrganization() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SimpleClassroomOrganization CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SimpleClassroomOrganization CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SimpleClassroomOrganization(); + return new global::GitHub.Models.SimpleClassroomOrganization(); } /// /// The deserialization information for the current model @@ -79,12 +81,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SimpleClassroomRepository.cs b/src/GitHub/Models/SimpleClassroomRepository.cs index b6357809..cbd6fb04 100644 --- a/src/GitHub/Models/SimpleClassroomRepository.cs +++ b/src/GitHub/Models/SimpleClassroomRepository.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A GitHub repository view for Classroom /// - public class SimpleClassroomRepository : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SimpleClassroomRepository : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -49,7 +51,7 @@ public class SimpleClassroomRepository : IAdditionalDataHolder, IParsable /// Whether the repository is private. public bool? Private { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SimpleClassroomRepository() { @@ -58,12 +60,12 @@ public SimpleClassroomRepository() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SimpleClassroomRepository CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SimpleClassroomRepository CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SimpleClassroomRepository(); + return new global::GitHub.Models.SimpleClassroomRepository(); } /// /// The deserialization information for the current model @@ -73,12 +75,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"default_branch", n => { DefaultBranch = n.GetStringValue(); } }, - {"full_name", n => { FullName = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"private", n => { Private = n.GetBoolValue(); } }, + { "default_branch", n => { DefaultBranch = n.GetStringValue(); } }, + { "full_name", n => { FullName = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "private", n => { Private = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/SimpleClassroomUser.cs b/src/GitHub/Models/SimpleClassroomUser.cs index ced8b5dc..53f3651e 100644 --- a/src/GitHub/Models/SimpleClassroomUser.cs +++ b/src/GitHub/Models/SimpleClassroomUser.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A GitHub user simplified for Classroom. /// - public class SimpleClassroomUser : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SimpleClassroomUser : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -39,7 +41,7 @@ public class SimpleClassroomUser : IAdditionalDataHolder, IParsable public string Login { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SimpleClassroomUser() { @@ -48,12 +50,12 @@ public SimpleClassroomUser() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SimpleClassroomUser CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SimpleClassroomUser CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SimpleClassroomUser(); + return new global::GitHub.Models.SimpleClassroomUser(); } /// /// The deserialization information for the current model @@ -63,10 +65,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SimpleCommit.cs b/src/GitHub/Models/SimpleCommit.cs index 3e8cee07..c1c0b987 100644 --- a/src/GitHub/Models/SimpleCommit.cs +++ b/src/GitHub/Models/SimpleCommit.cs @@ -1,32 +1,34 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A commit. /// - public class SimpleCommit : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SimpleCommit : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// Information about the Git author #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleCommit_author? Author { get; set; } + public global::GitHub.Models.SimpleCommit_author? Author { get; set; } #nullable restore #else - public SimpleCommit_author Author { get; set; } + public global::GitHub.Models.SimpleCommit_author Author { get; set; } #endif /// Information about the Git committer #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleCommit_committer? Committer { get; set; } + public global::GitHub.Models.SimpleCommit_committer? Committer { get; set; } #nullable restore #else - public SimpleCommit_committer Committer { get; set; } + public global::GitHub.Models.SimpleCommit_committer Committer { get; set; } #endif /// SHA for the commit #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -55,7 +57,7 @@ public class SimpleCommit : IAdditionalDataHolder, IParsable public string TreeId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SimpleCommit() { @@ -64,12 +66,12 @@ public SimpleCommit() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SimpleCommit CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SimpleCommit CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SimpleCommit(); + return new global::GitHub.Models.SimpleCommit(); } /// /// The deserialization information for the current model @@ -79,12 +81,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author", n => { Author = n.GetObjectValue(SimpleCommit_author.CreateFromDiscriminatorValue); } }, - {"committer", n => { Committer = n.GetObjectValue(SimpleCommit_committer.CreateFromDiscriminatorValue); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"timestamp", n => { Timestamp = n.GetDateTimeOffsetValue(); } }, - {"tree_id", n => { TreeId = n.GetStringValue(); } }, + { "author", n => { Author = n.GetObjectValue(global::GitHub.Models.SimpleCommit_author.CreateFromDiscriminatorValue); } }, + { "committer", n => { Committer = n.GetObjectValue(global::GitHub.Models.SimpleCommit_committer.CreateFromDiscriminatorValue); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "timestamp", n => { Timestamp = n.GetDateTimeOffsetValue(); } }, + { "tree_id", n => { TreeId = n.GetStringValue(); } }, }; } /// @@ -94,8 +96,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("author", Author); - writer.WriteObjectValue("committer", Committer); + writer.WriteObjectValue("author", Author); + writer.WriteObjectValue("committer", Committer); writer.WriteStringValue("id", Id); writer.WriteStringValue("message", Message); writer.WriteDateTimeOffsetValue("timestamp", Timestamp); diff --git a/src/GitHub/Models/SimpleCommitStatus.cs b/src/GitHub/Models/SimpleCommitStatus.cs index 19945b1a..bb689b8f 100644 --- a/src/GitHub/Models/SimpleCommitStatus.cs +++ b/src/GitHub/Models/SimpleCommitStatus.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SimpleCommitStatus : IAdditionalDataHolder, IParsable + public partial class SimpleCommitStatus : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -76,7 +78,7 @@ public class SimpleCommitStatus : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SimpleCommitStatus() { @@ -85,12 +87,12 @@ public SimpleCommitStatus() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SimpleCommitStatus CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SimpleCommitStatus CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SimpleCommitStatus(); + return new global::GitHub.Models.SimpleCommitStatus(); } /// /// The deserialization information for the current model @@ -100,17 +102,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"context", n => { Context = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"required", n => { Required = n.GetBoolValue(); } }, - {"state", n => { State = n.GetStringValue(); } }, - {"target_url", n => { TargetUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "context", n => { Context = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "required", n => { Required = n.GetBoolValue(); } }, + { "state", n => { State = n.GetStringValue(); } }, + { "target_url", n => { TargetUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SimpleCommit_author.cs b/src/GitHub/Models/SimpleCommit_author.cs index 3f71fb19..c9909908 100644 --- a/src/GitHub/Models/SimpleCommit_author.cs +++ b/src/GitHub/Models/SimpleCommit_author.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Information about the Git author /// - public class SimpleCommit_author : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SimpleCommit_author : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class SimpleCommit_author : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SimpleCommit_author() { @@ -38,12 +40,12 @@ public SimpleCommit_author() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SimpleCommit_author CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SimpleCommit_author CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SimpleCommit_author(); + return new global::GitHub.Models.SimpleCommit_author(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"email", n => { Email = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SimpleCommit_committer.cs b/src/GitHub/Models/SimpleCommit_committer.cs index 56749bc5..fc949ac5 100644 --- a/src/GitHub/Models/SimpleCommit_committer.cs +++ b/src/GitHub/Models/SimpleCommit_committer.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Information about the Git committer /// - public class SimpleCommit_committer : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SimpleCommit_committer : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class SimpleCommit_committer : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SimpleCommit_committer() { @@ -38,12 +40,12 @@ public SimpleCommit_committer() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SimpleCommit_committer CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SimpleCommit_committer CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SimpleCommit_committer(); + return new global::GitHub.Models.SimpleCommit_committer(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"email", n => { Email = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SimpleRepository.cs b/src/GitHub/Models/SimpleRepository.cs index eb4d2a20..59e9138f 100644 --- a/src/GitHub/Models/SimpleRepository.cs +++ b/src/GitHub/Models/SimpleRepository.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A GitHub repository. /// - public class SimpleRepository : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SimpleRepository : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -275,10 +277,10 @@ public class SimpleRepository : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Owner { get; set; } + public global::GitHub.Models.SimpleUser? Owner { get; set; } #nullable restore #else - public SimpleUser Owner { get; set; } + public global::GitHub.Models.SimpleUser Owner { get; set; } #endif /// Whether the repository is private. public bool? Private { get; set; } @@ -363,7 +365,7 @@ public class SimpleRepository : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SimpleRepository() { @@ -372,12 +374,12 @@ public SimpleRepository() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SimpleRepository CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SimpleRepository CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SimpleRepository(); + return new global::GitHub.Models.SimpleRepository(); } /// /// The deserialization information for the current model @@ -387,52 +389,52 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, - {"assignees_url", n => { AssigneesUrl = n.GetStringValue(); } }, - {"blobs_url", n => { BlobsUrl = n.GetStringValue(); } }, - {"branches_url", n => { BranchesUrl = n.GetStringValue(); } }, - {"collaborators_url", n => { CollaboratorsUrl = n.GetStringValue(); } }, - {"comments_url", n => { CommentsUrl = n.GetStringValue(); } }, - {"commits_url", n => { CommitsUrl = n.GetStringValue(); } }, - {"compare_url", n => { CompareUrl = n.GetStringValue(); } }, - {"contents_url", n => { ContentsUrl = n.GetStringValue(); } }, - {"contributors_url", n => { ContributorsUrl = n.GetStringValue(); } }, - {"deployments_url", n => { DeploymentsUrl = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"downloads_url", n => { DownloadsUrl = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"fork", n => { Fork = n.GetBoolValue(); } }, - {"forks_url", n => { ForksUrl = n.GetStringValue(); } }, - {"full_name", n => { FullName = n.GetStringValue(); } }, - {"git_commits_url", n => { GitCommitsUrl = n.GetStringValue(); } }, - {"git_refs_url", n => { GitRefsUrl = n.GetStringValue(); } }, - {"git_tags_url", n => { GitTagsUrl = n.GetStringValue(); } }, - {"hooks_url", n => { HooksUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, - {"issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } }, - {"issues_url", n => { IssuesUrl = n.GetStringValue(); } }, - {"keys_url", n => { KeysUrl = n.GetStringValue(); } }, - {"labels_url", n => { LabelsUrl = n.GetStringValue(); } }, - {"languages_url", n => { LanguagesUrl = n.GetStringValue(); } }, - {"merges_url", n => { MergesUrl = n.GetStringValue(); } }, - {"milestones_url", n => { MilestonesUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"private", n => { Private = n.GetBoolValue(); } }, - {"pulls_url", n => { PullsUrl = n.GetStringValue(); } }, - {"releases_url", n => { ReleasesUrl = n.GetStringValue(); } }, - {"stargazers_url", n => { StargazersUrl = n.GetStringValue(); } }, - {"statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, - {"subscribers_url", n => { SubscribersUrl = n.GetStringValue(); } }, - {"subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, - {"tags_url", n => { TagsUrl = n.GetStringValue(); } }, - {"teams_url", n => { TeamsUrl = n.GetStringValue(); } }, - {"trees_url", n => { TreesUrl = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, + { "assignees_url", n => { AssigneesUrl = n.GetStringValue(); } }, + { "blobs_url", n => { BlobsUrl = n.GetStringValue(); } }, + { "branches_url", n => { BranchesUrl = n.GetStringValue(); } }, + { "collaborators_url", n => { CollaboratorsUrl = n.GetStringValue(); } }, + { "comments_url", n => { CommentsUrl = n.GetStringValue(); } }, + { "commits_url", n => { CommitsUrl = n.GetStringValue(); } }, + { "compare_url", n => { CompareUrl = n.GetStringValue(); } }, + { "contents_url", n => { ContentsUrl = n.GetStringValue(); } }, + { "contributors_url", n => { ContributorsUrl = n.GetStringValue(); } }, + { "deployments_url", n => { DeploymentsUrl = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "downloads_url", n => { DownloadsUrl = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "fork", n => { Fork = n.GetBoolValue(); } }, + { "forks_url", n => { ForksUrl = n.GetStringValue(); } }, + { "full_name", n => { FullName = n.GetStringValue(); } }, + { "git_commits_url", n => { GitCommitsUrl = n.GetStringValue(); } }, + { "git_refs_url", n => { GitRefsUrl = n.GetStringValue(); } }, + { "git_tags_url", n => { GitTagsUrl = n.GetStringValue(); } }, + { "hooks_url", n => { HooksUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, + { "issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } }, + { "issues_url", n => { IssuesUrl = n.GetStringValue(); } }, + { "keys_url", n => { KeysUrl = n.GetStringValue(); } }, + { "labels_url", n => { LabelsUrl = n.GetStringValue(); } }, + { "languages_url", n => { LanguagesUrl = n.GetStringValue(); } }, + { "merges_url", n => { MergesUrl = n.GetStringValue(); } }, + { "milestones_url", n => { MilestonesUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "private", n => { Private = n.GetBoolValue(); } }, + { "pulls_url", n => { PullsUrl = n.GetStringValue(); } }, + { "releases_url", n => { ReleasesUrl = n.GetStringValue(); } }, + { "stargazers_url", n => { StargazersUrl = n.GetStringValue(); } }, + { "statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, + { "subscribers_url", n => { SubscribersUrl = n.GetStringValue(); } }, + { "subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, + { "tags_url", n => { TagsUrl = n.GetStringValue(); } }, + { "teams_url", n => { TeamsUrl = n.GetStringValue(); } }, + { "trees_url", n => { TreesUrl = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -476,7 +478,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteStringValue("node_id", NodeId); writer.WriteStringValue("notifications_url", NotificationsUrl); - writer.WriteObjectValue("owner", Owner); + writer.WriteObjectValue("owner", Owner); writer.WriteBoolValue("private", Private); writer.WriteStringValue("pulls_url", PullsUrl); writer.WriteStringValue("releases_url", ReleasesUrl); diff --git a/src/GitHub/Models/SimpleUser.cs b/src/GitHub/Models/SimpleUser.cs index 6ede443c..be764e14 100644 --- a/src/GitHub/Models/SimpleUser.cs +++ b/src/GitHub/Models/SimpleUser.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A GitHub user. /// - public class SimpleUser : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SimpleUser : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -169,7 +171,7 @@ public class SimpleUser : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SimpleUser() { @@ -178,12 +180,12 @@ public SimpleUser() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SimpleUser CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SimpleUser CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SimpleUser(); + return new global::GitHub.Models.SimpleUser(); } /// /// The deserialization information for the current model @@ -193,27 +195,27 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"followers_url", n => { FollowersUrl = n.GetStringValue(); } }, - {"following_url", n => { FollowingUrl = n.GetStringValue(); } }, - {"gists_url", n => { GistsUrl = n.GetStringValue(); } }, - {"gravatar_id", n => { GravatarId = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, - {"received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, - {"repos_url", n => { ReposUrl = n.GetStringValue(); } }, - {"site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, - {"starred_at", n => { StarredAt = n.GetStringValue(); } }, - {"starred_url", n => { StarredUrl = n.GetStringValue(); } }, - {"subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "followers_url", n => { FollowersUrl = n.GetStringValue(); } }, + { "following_url", n => { FollowingUrl = n.GetStringValue(); } }, + { "gists_url", n => { GistsUrl = n.GetStringValue(); } }, + { "gravatar_id", n => { GravatarId = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, + { "received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, + { "repos_url", n => { ReposUrl = n.GetStringValue(); } }, + { "site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, + { "starred_at", n => { StarredAt = n.GetStringValue(); } }, + { "starred_url", n => { StarredUrl = n.GetStringValue(); } }, + { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Snapshot.cs b/src/GitHub/Models/Snapshot.cs index 433b2b99..723d8637 100644 --- a/src/GitHub/Models/Snapshot.cs +++ b/src/GitHub/Models/Snapshot.cs @@ -1,46 +1,48 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Create a new snapshot of a repository's dependencies. /// - public class Snapshot : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Snapshot : IParsable { /// A description of the detector used. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Snapshot_detector? Detector { get; set; } + public global::GitHub.Models.Snapshot_detector? Detector { get; set; } #nullable restore #else - public Snapshot_detector Detector { get; set; } + public global::GitHub.Models.Snapshot_detector Detector { get; set; } #endif /// The job property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Snapshot_job? Job { get; set; } + public global::GitHub.Models.Snapshot_job? Job { get; set; } #nullable restore #else - public Snapshot_job Job { get; set; } + public global::GitHub.Models.Snapshot_job Job { get; set; } #endif /// A collection of package manifests, which are a collection of related dependencies declared in a file or representing a logical group of dependencies. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Snapshot_manifests? Manifests { get; set; } + public global::GitHub.Models.Snapshot_manifests? Manifests { get; set; } #nullable restore #else - public Snapshot_manifests Manifests { get; set; } + public global::GitHub.Models.Snapshot_manifests Manifests { get; set; } #endif /// User-defined metadata to store domain-specific information limited to 8 keys with scalar values. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Metadata? Metadata { get; set; } + public global::GitHub.Models.Metadata? Metadata { get; set; } #nullable restore #else - public GitHub.Models.Metadata Metadata { get; set; } + public global::GitHub.Models.Metadata Metadata { get; set; } #endif /// The repository branch that triggered this snapshot. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -65,12 +67,12 @@ public class Snapshot : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Snapshot CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Snapshot CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Snapshot(); + return new global::GitHub.Models.Snapshot(); } /// /// The deserialization information for the current model @@ -80,14 +82,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"detector", n => { Detector = n.GetObjectValue(Snapshot_detector.CreateFromDiscriminatorValue); } }, - {"job", n => { Job = n.GetObjectValue(Snapshot_job.CreateFromDiscriminatorValue); } }, - {"manifests", n => { Manifests = n.GetObjectValue(Snapshot_manifests.CreateFromDiscriminatorValue); } }, - {"metadata", n => { Metadata = n.GetObjectValue(GitHub.Models.Metadata.CreateFromDiscriminatorValue); } }, - {"ref", n => { Ref = n.GetStringValue(); } }, - {"scanned", n => { Scanned = n.GetDateTimeOffsetValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"version", n => { Version = n.GetIntValue(); } }, + { "detector", n => { Detector = n.GetObjectValue(global::GitHub.Models.Snapshot_detector.CreateFromDiscriminatorValue); } }, + { "job", n => { Job = n.GetObjectValue(global::GitHub.Models.Snapshot_job.CreateFromDiscriminatorValue); } }, + { "manifests", n => { Manifests = n.GetObjectValue(global::GitHub.Models.Snapshot_manifests.CreateFromDiscriminatorValue); } }, + { "metadata", n => { Metadata = n.GetObjectValue(global::GitHub.Models.Metadata.CreateFromDiscriminatorValue); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, + { "scanned", n => { Scanned = n.GetDateTimeOffsetValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "version", n => { Version = n.GetIntValue(); } }, }; } /// @@ -97,10 +99,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("detector", Detector); - writer.WriteObjectValue("job", Job); - writer.WriteObjectValue("manifests", Manifests); - writer.WriteObjectValue("metadata", Metadata); + writer.WriteObjectValue("detector", Detector); + writer.WriteObjectValue("job", Job); + writer.WriteObjectValue("manifests", Manifests); + writer.WriteObjectValue("metadata", Metadata); writer.WriteStringValue("ref", Ref); writer.WriteDateTimeOffsetValue("scanned", Scanned); writer.WriteStringValue("sha", Sha); diff --git a/src/GitHub/Models/Snapshot_detector.cs b/src/GitHub/Models/Snapshot_detector.cs index a566f36d..0b7731aa 100644 --- a/src/GitHub/Models/Snapshot_detector.cs +++ b/src/GitHub/Models/Snapshot_detector.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A description of the detector used. /// - public class Snapshot_detector : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Snapshot_detector : IParsable { /// The name of the detector used. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -37,12 +39,12 @@ public class Snapshot_detector : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Snapshot_detector CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Snapshot_detector CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Snapshot_detector(); + return new global::GitHub.Models.Snapshot_detector(); } /// /// The deserialization information for the current model @@ -52,9 +54,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"version", n => { Version = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "version", n => { Version = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Snapshot_job.cs b/src/GitHub/Models/Snapshot_job.cs index b91410e8..5afc3a76 100644 --- a/src/GitHub/Models/Snapshot_job.cs +++ b/src/GitHub/Models/Snapshot_job.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Snapshot_job : IParsable + public partial class Snapshot_job : IParsable #pragma warning restore CS1591 { /// Correlator provides a key that is used to group snapshots submitted over time. Only the "latest" submitted snapshot for a given combination of `job.correlator` and `detector.name` will be considered when calculating a repository's current dependencies. Correlator should be as unique as it takes to distinguish all detection runs for a given "wave" of CI workflow you run. If you're using GitHub Actions, a good default value for this could be the environment variables GITHUB_WORKFLOW and GITHUB_JOB concatenated together. If you're using a build matrix, then you'll also need to add additional key(s) to distinguish between each submission inside a matrix variation. @@ -36,12 +38,12 @@ public class Snapshot_job : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Snapshot_job CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Snapshot_job CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Snapshot_job(); + return new global::GitHub.Models.Snapshot_job(); } /// /// The deserialization information for the current model @@ -51,9 +53,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"correlator", n => { Correlator = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, + { "correlator", n => { Correlator = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Snapshot_manifests.cs b/src/GitHub/Models/Snapshot_manifests.cs index ac468c19..4674ce1c 100644 --- a/src/GitHub/Models/Snapshot_manifests.cs +++ b/src/GitHub/Models/Snapshot_manifests.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A collection of package manifests, which are a collection of related dependencies declared in a file or representing a logical group of dependencies. /// - public class Snapshot_manifests : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Snapshot_manifests : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Snapshot_manifests() { @@ -22,12 +24,12 @@ public Snapshot_manifests() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Snapshot_manifests CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Snapshot_manifests CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Snapshot_manifests(); + return new global::GitHub.Models.Snapshot_manifests(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/SocialAccount.cs b/src/GitHub/Models/SocialAccount.cs index b79c6cb7..da6671ff 100644 --- a/src/GitHub/Models/SocialAccount.cs +++ b/src/GitHub/Models/SocialAccount.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Social media account /// - public class SocialAccount : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SocialAccount : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class SocialAccount : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SocialAccount() { @@ -38,12 +40,12 @@ public SocialAccount() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SocialAccount CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SocialAccount CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SocialAccount(); + return new global::GitHub.Models.SocialAccount(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"provider", n => { Provider = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "provider", n => { Provider = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/SshSigningKey.cs b/src/GitHub/Models/SshSigningKey.cs index 65bfd867..8658f718 100644 --- a/src/GitHub/Models/SshSigningKey.cs +++ b/src/GitHub/Models/SshSigningKey.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A public SSH key used to sign Git commits /// - public class SshSigningKey : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SshSigningKey : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -33,7 +35,7 @@ public class SshSigningKey : IAdditionalDataHolder, IParsable public string Title { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SshSigningKey() { @@ -42,12 +44,12 @@ public SshSigningKey() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SshSigningKey CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.SshSigningKey CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SshSigningKey(); + return new global::GitHub.Models.SshSigningKey(); } /// /// The deserialization information for the current model @@ -57,10 +59,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"key", n => { Key = n.GetStringValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "key", n => { Key = n.GetStringValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/StateChangeIssueEvent.cs b/src/GitHub/Models/StateChangeIssueEvent.cs index 04767986..828c8910 100644 --- a/src/GitHub/Models/StateChangeIssueEvent.cs +++ b/src/GitHub/Models/StateChangeIssueEvent.cs @@ -1,22 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// State Change Issue Event /// - public class StateChangeIssueEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class StateChangeIssueEvent : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -65,10 +67,10 @@ public class StateChangeIssueEvent : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// The state_reason property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +89,7 @@ public class StateChangeIssueEvent : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public StateChangeIssueEvent() { @@ -96,12 +98,12 @@ public StateChangeIssueEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static StateChangeIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.StateChangeIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new StateChangeIssueEvent(); + return new global::GitHub.Models.StateChangeIssueEvent(); } /// /// The deserialization information for the current model @@ -111,16 +113,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"state_reason", n => { StateReason = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "state_reason", n => { StateReason = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -130,14 +132,14 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("actor", Actor); writer.WriteStringValue("commit_id", CommitId); writer.WriteStringValue("commit_url", CommitUrl); writer.WriteStringValue("created_at", CreatedAt); writer.WriteStringValue("event", Event); writer.WriteIntValue("id", Id); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); writer.WriteStringValue("state_reason", StateReason); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/Status.cs b/src/GitHub/Models/Status.cs index 827995ce..658f999f 100644 --- a/src/GitHub/Models/Status.cs +++ b/src/GitHub/Models/Status.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The status of a commit. /// - public class Status : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Status : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -39,10 +41,10 @@ public class Status : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Creator { get; set; } + public global::GitHub.Models.NullableSimpleUser? Creator { get; set; } #nullable restore #else - public NullableSimpleUser Creator { get; set; } + public global::GitHub.Models.NullableSimpleUser Creator { get; set; } #endif /// The description property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +97,7 @@ public class Status : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Status() { @@ -104,12 +106,12 @@ public Status() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Status CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Status CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Status(); + return new global::GitHub.Models.Status(); } /// /// The deserialization information for the current model @@ -119,17 +121,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"context", n => { Context = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"creator", n => { Creator = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"state", n => { State = n.GetStringValue(); } }, - {"target_url", n => { TargetUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "context", n => { Context = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "creator", n => { Creator = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "state", n => { State = n.GetStringValue(); } }, + { "target_url", n => { TargetUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -142,7 +144,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("avatar_url", AvatarUrl); writer.WriteStringValue("context", Context); writer.WriteStringValue("created_at", CreatedAt); - writer.WriteObjectValue("creator", Creator); + writer.WriteObjectValue("creator", Creator); writer.WriteStringValue("description", Description); writer.WriteIntValue("id", Id); writer.WriteStringValue("node_id", NodeId); diff --git a/src/GitHub/Models/StatusCheckPolicy.cs b/src/GitHub/Models/StatusCheckPolicy.cs index 85b19a52..eb3f408f 100644 --- a/src/GitHub/Models/StatusCheckPolicy.cs +++ b/src/GitHub/Models/StatusCheckPolicy.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Status Check Policy /// - public class StatusCheckPolicy : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class StatusCheckPolicy : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The checks property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Checks { get; set; } + public List? Checks { get; set; } #nullable restore #else - public List Checks { get; set; } + public List Checks { get; set; } #endif /// The contexts property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -47,7 +49,7 @@ public class StatusCheckPolicy : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public StatusCheckPolicy() { @@ -56,12 +58,12 @@ public StatusCheckPolicy() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static StatusCheckPolicy CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.StatusCheckPolicy CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new StatusCheckPolicy(); + return new global::GitHub.Models.StatusCheckPolicy(); } /// /// The deserialization information for the current model @@ -71,11 +73,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"checks", n => { Checks = n.GetCollectionOfObjectValues(StatusCheckPolicy_checks.CreateFromDiscriminatorValue)?.ToList(); } }, - {"contexts", n => { Contexts = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"contexts_url", n => { ContextsUrl = n.GetStringValue(); } }, - {"strict", n => { Strict = n.GetBoolValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "checks", n => { Checks = n.GetCollectionOfObjectValues(global::GitHub.Models.StatusCheckPolicy_checks.CreateFromDiscriminatorValue)?.AsList(); } }, + { "contexts", n => { Contexts = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "contexts_url", n => { ContextsUrl = n.GetStringValue(); } }, + { "strict", n => { Strict = n.GetBoolValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -85,7 +87,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("checks", Checks); + writer.WriteCollectionOfObjectValues("checks", Checks); writer.WriteCollectionOfPrimitiveValues("contexts", Contexts); writer.WriteStringValue("contexts_url", ContextsUrl); writer.WriteBoolValue("strict", Strict); diff --git a/src/GitHub/Models/StatusCheckPolicy_checks.cs b/src/GitHub/Models/StatusCheckPolicy_checks.cs index 771f5d27..ced94cf6 100644 --- a/src/GitHub/Models/StatusCheckPolicy_checks.cs +++ b/src/GitHub/Models/StatusCheckPolicy_checks.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class StatusCheckPolicy_checks : IAdditionalDataHolder, IParsable + public partial class StatusCheckPolicy_checks : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class StatusCheckPolicy_checks : IAdditionalDataHolder, IParsable public string Context { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public StatusCheckPolicy_checks() { @@ -31,12 +33,12 @@ public StatusCheckPolicy_checks() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static StatusCheckPolicy_checks CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.StatusCheckPolicy_checks CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new StatusCheckPolicy_checks(); + return new global::GitHub.Models.StatusCheckPolicy_checks(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"app_id", n => { AppId = n.GetIntValue(); } }, - {"context", n => { Context = n.GetStringValue(); } }, + { "app_id", n => { AppId = n.GetIntValue(); } }, + { "context", n => { Context = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Tag.cs b/src/GitHub/Models/Tag.cs index df75f002..a1fd27b0 100644 --- a/src/GitHub/Models/Tag.cs +++ b/src/GitHub/Models/Tag.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Tag /// - public class Tag : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Tag : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The commit property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Tag_commit? Commit { get; set; } + public global::GitHub.Models.Tag_commit? Commit { get; set; } #nullable restore #else - public Tag_commit Commit { get; set; } + public global::GitHub.Models.Tag_commit Commit { get; set; } #endif /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -53,7 +55,7 @@ public class Tag : IAdditionalDataHolder, IParsable public string ZipballUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Tag() { @@ -62,12 +64,12 @@ public Tag() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Tag CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Tag CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Tag(); + return new global::GitHub.Models.Tag(); } /// /// The deserialization information for the current model @@ -77,11 +79,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"commit", n => { Commit = n.GetObjectValue(Tag_commit.CreateFromDiscriminatorValue); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"tarball_url", n => { TarballUrl = n.GetStringValue(); } }, - {"zipball_url", n => { ZipballUrl = n.GetStringValue(); } }, + { "commit", n => { Commit = n.GetObjectValue(global::GitHub.Models.Tag_commit.CreateFromDiscriminatorValue); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "tarball_url", n => { TarballUrl = n.GetStringValue(); } }, + { "zipball_url", n => { ZipballUrl = n.GetStringValue(); } }, }; } /// @@ -91,7 +93,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("commit", Commit); + writer.WriteObjectValue("commit", Commit); writer.WriteStringValue("name", Name); writer.WriteStringValue("node_id", NodeId); writer.WriteStringValue("tarball_url", TarballUrl); diff --git a/src/GitHub/Models/TagProtection.cs b/src/GitHub/Models/TagProtection.cs index b4aed3c8..fe705eb2 100644 --- a/src/GitHub/Models/TagProtection.cs +++ b/src/GitHub/Models/TagProtection.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Tag protection /// - public class TagProtection : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TagProtection : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -41,7 +43,7 @@ public class TagProtection : IAdditionalDataHolder, IParsable public string UpdatedAt { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TagProtection() { @@ -50,12 +52,12 @@ public TagProtection() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TagProtection CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TagProtection CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TagProtection(); + return new global::GitHub.Models.TagProtection(); } /// /// The deserialization information for the current model @@ -65,11 +67,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"enabled", n => { Enabled = n.GetBoolValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"pattern", n => { Pattern = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "pattern", n => { Pattern = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Tag_commit.cs b/src/GitHub/Models/Tag_commit.cs index 9a139f93..02d76422 100644 --- a/src/GitHub/Models/Tag_commit.cs +++ b/src/GitHub/Models/Tag_commit.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Tag_commit : IAdditionalDataHolder, IParsable + public partial class Tag_commit : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class Tag_commit : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Tag_commit() { @@ -37,12 +39,12 @@ public Tag_commit() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Tag_commit CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Tag_commit CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Tag_commit(); + return new global::GitHub.Models.Tag_commit(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"sha", n => { Sha = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Team.cs b/src/GitHub/Models/Team.cs index 99766bf5..6a0f9220 100644 --- a/src/GitHub/Models/Team.cs +++ b/src/GitHub/Models/Team.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Groups of organization members that gives permissions on specified repositories. /// - public class Team : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Team : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -65,10 +67,10 @@ public class Team : IAdditionalDataHolder, IParsable /// Groups of organization members that gives permissions on specified repositories. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableTeamSimple? Parent { get; set; } + public global::GitHub.Models.NullableTeamSimple? Parent { get; set; } #nullable restore #else - public NullableTeamSimple Parent { get; set; } + public global::GitHub.Models.NullableTeamSimple Parent { get; set; } #endif /// The permission property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,10 +83,10 @@ public class Team : IAdditionalDataHolder, IParsable /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Team_permissions? Permissions { get; set; } + public global::GitHub.Models.Team_permissions? Permissions { get; set; } #nullable restore #else - public Team_permissions Permissions { get; set; } + public global::GitHub.Models.Team_permissions Permissions { get; set; } #endif /// The privacy property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +121,7 @@ public class Team : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Team() { @@ -128,12 +130,12 @@ public Team() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Team CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Team CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Team(); + return new global::GitHub.Models.Team(); } /// /// The deserialization information for the current model @@ -143,20 +145,20 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"members_url", n => { MembersUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"notification_setting", n => { NotificationSetting = n.GetStringValue(); } }, - {"parent", n => { Parent = n.GetObjectValue(NullableTeamSimple.CreateFromDiscriminatorValue); } }, - {"permission", n => { Permission = n.GetStringValue(); } }, - {"permissions", n => { Permissions = n.GetObjectValue(Team_permissions.CreateFromDiscriminatorValue); } }, - {"privacy", n => { Privacy = n.GetStringValue(); } }, - {"repositories_url", n => { RepositoriesUrl = n.GetStringValue(); } }, - {"slug", n => { Slug = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "members_url", n => { MembersUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "notification_setting", n => { NotificationSetting = n.GetStringValue(); } }, + { "parent", n => { Parent = n.GetObjectValue(global::GitHub.Models.NullableTeamSimple.CreateFromDiscriminatorValue); } }, + { "permission", n => { Permission = n.GetStringValue(); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.Team_permissions.CreateFromDiscriminatorValue); } }, + { "privacy", n => { Privacy = n.GetStringValue(); } }, + { "repositories_url", n => { RepositoriesUrl = n.GetStringValue(); } }, + { "slug", n => { Slug = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -173,9 +175,9 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteStringValue("node_id", NodeId); writer.WriteStringValue("notification_setting", NotificationSetting); - writer.WriteObjectValue("parent", Parent); + writer.WriteObjectValue("parent", Parent); writer.WriteStringValue("permission", Permission); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("permissions", Permissions); writer.WriteStringValue("privacy", Privacy); writer.WriteStringValue("repositories_url", RepositoriesUrl); writer.WriteStringValue("slug", Slug); diff --git a/src/GitHub/Models/TeamDiscussion.cs b/src/GitHub/Models/TeamDiscussion.cs index c9c86472..eaa0864c 100644 --- a/src/GitHub/Models/TeamDiscussion.cs +++ b/src/GitHub/Models/TeamDiscussion.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A team discussion is a persistent record of a free-form conversation within a team. /// - public class TeamDiscussion : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamDiscussion : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Author { get; set; } + public global::GitHub.Models.NullableSimpleUser? Author { get; set; } #nullable restore #else - public NullableSimpleUser Author { get; set; } + public global::GitHub.Models.NullableSimpleUser Author { get; set; } #endif /// The main text of the discussion. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -83,10 +85,10 @@ public class TeamDiscussion : IAdditionalDataHolder, IParsable /// The reactions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ReactionRollup? Reactions { get; set; } + public global::GitHub.Models.ReactionRollup? Reactions { get; set; } #nullable restore #else - public ReactionRollup Reactions { get; set; } + public global::GitHub.Models.ReactionRollup Reactions { get; set; } #endif /// The team_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +117,7 @@ public class TeamDiscussion : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TeamDiscussion() { @@ -124,12 +126,12 @@ public TeamDiscussion() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TeamDiscussion CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TeamDiscussion CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TeamDiscussion(); + return new global::GitHub.Models.TeamDiscussion(); } /// /// The deserialization information for the current model @@ -139,24 +141,24 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author", n => { Author = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"body", n => { Body = n.GetStringValue(); } }, - {"body_html", n => { BodyHtml = n.GetStringValue(); } }, - {"body_version", n => { BodyVersion = n.GetStringValue(); } }, - {"comments_count", n => { CommentsCount = n.GetIntValue(); } }, - {"comments_url", n => { CommentsUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"last_edited_at", n => { LastEditedAt = n.GetDateTimeOffsetValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"number", n => { Number = n.GetIntValue(); } }, - {"pinned", n => { Pinned = n.GetBoolValue(); } }, - {"private", n => { Private = n.GetBoolValue(); } }, - {"reactions", n => { Reactions = n.GetObjectValue(ReactionRollup.CreateFromDiscriminatorValue); } }, - {"team_url", n => { TeamUrl = n.GetStringValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "author", n => { Author = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "body_html", n => { BodyHtml = n.GetStringValue(); } }, + { "body_version", n => { BodyVersion = n.GetStringValue(); } }, + { "comments_count", n => { CommentsCount = n.GetIntValue(); } }, + { "comments_url", n => { CommentsUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "last_edited_at", n => { LastEditedAt = n.GetDateTimeOffsetValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "number", n => { Number = n.GetIntValue(); } }, + { "pinned", n => { Pinned = n.GetBoolValue(); } }, + { "private", n => { Private = n.GetBoolValue(); } }, + { "reactions", n => { Reactions = n.GetObjectValue(global::GitHub.Models.ReactionRollup.CreateFromDiscriminatorValue); } }, + { "team_url", n => { TeamUrl = n.GetStringValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -166,7 +168,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("author", Author); + writer.WriteObjectValue("author", Author); writer.WriteStringValue("body", Body); writer.WriteStringValue("body_html", BodyHtml); writer.WriteStringValue("body_version", BodyVersion); @@ -179,7 +181,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("number", Number); writer.WriteBoolValue("pinned", Pinned); writer.WriteBoolValue("private", Private); - writer.WriteObjectValue("reactions", Reactions); + writer.WriteObjectValue("reactions", Reactions); writer.WriteStringValue("team_url", TeamUrl); writer.WriteStringValue("title", Title); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); diff --git a/src/GitHub/Models/TeamDiscussionComment.cs b/src/GitHub/Models/TeamDiscussionComment.cs index a2a9abf0..4521f05a 100644 --- a/src/GitHub/Models/TeamDiscussionComment.cs +++ b/src/GitHub/Models/TeamDiscussionComment.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A reply to a discussion within a team. /// - public class TeamDiscussionComment : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamDiscussionComment : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Author { get; set; } + public global::GitHub.Models.NullableSimpleUser? Author { get; set; } #nullable restore #else - public NullableSimpleUser Author { get; set; } + public global::GitHub.Models.NullableSimpleUser Author { get; set; } #endif /// The main text of the comment. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -77,10 +79,10 @@ public class TeamDiscussionComment : IAdditionalDataHolder, IParsable /// The reactions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ReactionRollup? Reactions { get; set; } + public global::GitHub.Models.ReactionRollup? Reactions { get; set; } #nullable restore #else - public ReactionRollup Reactions { get; set; } + public global::GitHub.Models.ReactionRollup Reactions { get; set; } #endif /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } @@ -93,7 +95,7 @@ public class TeamDiscussionComment : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TeamDiscussionComment() { @@ -102,12 +104,12 @@ public TeamDiscussionComment() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TeamDiscussionComment CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TeamDiscussionComment CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TeamDiscussionComment(); + return new global::GitHub.Models.TeamDiscussionComment(); } /// /// The deserialization information for the current model @@ -117,19 +119,19 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author", n => { Author = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"body", n => { Body = n.GetStringValue(); } }, - {"body_html", n => { BodyHtml = n.GetStringValue(); } }, - {"body_version", n => { BodyVersion = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"discussion_url", n => { DiscussionUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"last_edited_at", n => { LastEditedAt = n.GetDateTimeOffsetValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"number", n => { Number = n.GetIntValue(); } }, - {"reactions", n => { Reactions = n.GetObjectValue(ReactionRollup.CreateFromDiscriminatorValue); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "author", n => { Author = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "body_html", n => { BodyHtml = n.GetStringValue(); } }, + { "body_version", n => { BodyVersion = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "discussion_url", n => { DiscussionUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "last_edited_at", n => { LastEditedAt = n.GetDateTimeOffsetValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "number", n => { Number = n.GetIntValue(); } }, + { "reactions", n => { Reactions = n.GetObjectValue(global::GitHub.Models.ReactionRollup.CreateFromDiscriminatorValue); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -139,7 +141,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("author", Author); + writer.WriteObjectValue("author", Author); writer.WriteStringValue("body", Body); writer.WriteStringValue("body_html", BodyHtml); writer.WriteStringValue("body_version", BodyVersion); @@ -149,7 +151,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("last_edited_at", LastEditedAt); writer.WriteStringValue("node_id", NodeId); writer.WriteIntValue("number", Number); - writer.WriteObjectValue("reactions", Reactions); + writer.WriteObjectValue("reactions", Reactions); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/TeamFull.cs b/src/GitHub/Models/TeamFull.cs index d3d28394..010db7a1 100644 --- a/src/GitHub/Models/TeamFull.cs +++ b/src/GitHub/Models/TeamFull.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Groups of organization members that gives permissions on specified repositories. /// - public class TeamFull : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamFull : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -67,22 +69,22 @@ public class TeamFull : IAdditionalDataHolder, IParsable public string NodeId { get; set; } #endif /// The notification setting the team has set - public TeamFull_notification_setting? NotificationSetting { get; set; } + public global::GitHub.Models.TeamFull_notification_setting? NotificationSetting { get; set; } /// Team Organization #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TeamOrganization? Organization { get; set; } + public global::GitHub.Models.TeamOrganization? Organization { get; set; } #nullable restore #else - public TeamOrganization Organization { get; set; } + public global::GitHub.Models.TeamOrganization Organization { get; set; } #endif /// Groups of organization members that gives permissions on specified repositories. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableTeamSimple? Parent { get; set; } + public global::GitHub.Models.NullableTeamSimple? Parent { get; set; } #nullable restore #else - public NullableTeamSimple Parent { get; set; } + public global::GitHub.Models.NullableTeamSimple Parent { get; set; } #endif /// Permission that the team will have for its repositories #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -93,7 +95,7 @@ public class TeamFull : IAdditionalDataHolder, IParsable public string Permission { get; set; } #endif /// The level of privacy this team should have - public TeamFull_privacy? Privacy { get; set; } + public global::GitHub.Models.TeamFull_privacy? Privacy { get; set; } /// The repos_count property public int? ReposCount { get; set; } /// The repositories_url property @@ -123,7 +125,7 @@ public class TeamFull : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TeamFull() { @@ -132,12 +134,12 @@ public TeamFull() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TeamFull CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TeamFull CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TeamFull(); + return new global::GitHub.Models.TeamFull(); } /// /// The deserialization information for the current model @@ -147,25 +149,25 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"ldap_dn", n => { LdapDn = n.GetStringValue(); } }, - {"members_count", n => { MembersCount = n.GetIntValue(); } }, - {"members_url", n => { MembersUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"notification_setting", n => { NotificationSetting = n.GetEnumValue(); } }, - {"organization", n => { Organization = n.GetObjectValue(TeamOrganization.CreateFromDiscriminatorValue); } }, - {"parent", n => { Parent = n.GetObjectValue(NullableTeamSimple.CreateFromDiscriminatorValue); } }, - {"permission", n => { Permission = n.GetStringValue(); } }, - {"privacy", n => { Privacy = n.GetEnumValue(); } }, - {"repos_count", n => { ReposCount = n.GetIntValue(); } }, - {"repositories_url", n => { RepositoriesUrl = n.GetStringValue(); } }, - {"slug", n => { Slug = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "ldap_dn", n => { LdapDn = n.GetStringValue(); } }, + { "members_count", n => { MembersCount = n.GetIntValue(); } }, + { "members_url", n => { MembersUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "notification_setting", n => { NotificationSetting = n.GetEnumValue(); } }, + { "organization", n => { Organization = n.GetObjectValue(global::GitHub.Models.TeamOrganization.CreateFromDiscriminatorValue); } }, + { "parent", n => { Parent = n.GetObjectValue(global::GitHub.Models.NullableTeamSimple.CreateFromDiscriminatorValue); } }, + { "permission", n => { Permission = n.GetStringValue(); } }, + { "privacy", n => { Privacy = n.GetEnumValue(); } }, + { "repos_count", n => { ReposCount = n.GetIntValue(); } }, + { "repositories_url", n => { RepositoriesUrl = n.GetStringValue(); } }, + { "slug", n => { Slug = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -184,11 +186,11 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("members_url", MembersUrl); writer.WriteStringValue("name", Name); writer.WriteStringValue("node_id", NodeId); - writer.WriteEnumValue("notification_setting", NotificationSetting); - writer.WriteObjectValue("organization", Organization); - writer.WriteObjectValue("parent", Parent); + writer.WriteEnumValue("notification_setting", NotificationSetting); + writer.WriteObjectValue("organization", Organization); + writer.WriteObjectValue("parent", Parent); writer.WriteStringValue("permission", Permission); - writer.WriteEnumValue("privacy", Privacy); + writer.WriteEnumValue("privacy", Privacy); writer.WriteIntValue("repos_count", ReposCount); writer.WriteStringValue("repositories_url", RepositoriesUrl); writer.WriteStringValue("slug", Slug); diff --git a/src/GitHub/Models/TeamFull_notification_setting.cs b/src/GitHub/Models/TeamFull_notification_setting.cs index 2194fb8b..1008d21f 100644 --- a/src/GitHub/Models/TeamFull_notification_setting.cs +++ b/src/GitHub/Models/TeamFull_notification_setting.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The notification setting the team has set + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum TeamFull_notification_setting { [EnumMember(Value = "notifications_enabled")] diff --git a/src/GitHub/Models/TeamFull_privacy.cs b/src/GitHub/Models/TeamFull_privacy.cs index 7dc05552..2a1cfc70 100644 --- a/src/GitHub/Models/TeamFull_privacy.cs +++ b/src/GitHub/Models/TeamFull_privacy.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The level of privacy this team should have + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum TeamFull_privacy { [EnumMember(Value = "closed")] diff --git a/src/GitHub/Models/TeamMembership.cs b/src/GitHub/Models/TeamMembership.cs index 998cf4de..bbe5baf1 100644 --- a/src/GitHub/Models/TeamMembership.cs +++ b/src/GitHub/Models/TeamMembership.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Team Membership /// - public class TeamMembership : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamMembership : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The role of the user in the team. - public TeamMembership_role? Role { get; set; } + public global::GitHub.Models.TeamMembership_role? Role { get; set; } /// The state of the user's membership in the team. - public TeamMembership_state? State { get; set; } + public global::GitHub.Models.TeamMembership_state? State { get; set; } /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -25,22 +27,22 @@ public class TeamMembership : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TeamMembership() { AdditionalData = new Dictionary(); - Role = TeamMembership_role.Member; + Role = global::GitHub.Models.TeamMembership_role.Member; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TeamMembership CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TeamMembership CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TeamMembership(); + return new global::GitHub.Models.TeamMembership(); } /// /// The deserialization information for the current model @@ -50,9 +52,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"role", n => { Role = n.GetEnumValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "role", n => { Role = n.GetEnumValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -62,8 +64,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("role", Role); - writer.WriteEnumValue("state", State); + writer.WriteEnumValue("role", Role); + writer.WriteEnumValue("state", State); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/TeamMembership_role.cs b/src/GitHub/Models/TeamMembership_role.cs index a719cee3..68904c1a 100644 --- a/src/GitHub/Models/TeamMembership_role.cs +++ b/src/GitHub/Models/TeamMembership_role.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The role of the user in the team. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum TeamMembership_role { [EnumMember(Value = "member")] diff --git a/src/GitHub/Models/TeamMembership_state.cs b/src/GitHub/Models/TeamMembership_state.cs index 18ec1e0d..72378ccd 100644 --- a/src/GitHub/Models/TeamMembership_state.cs +++ b/src/GitHub/Models/TeamMembership_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// The state of the user's membership in the team. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum TeamMembership_state { [EnumMember(Value = "active")] diff --git a/src/GitHub/Models/TeamOrganization.cs b/src/GitHub/Models/TeamOrganization.cs index ad115973..a82caa1d 100644 --- a/src/GitHub/Models/TeamOrganization.cs +++ b/src/GitHub/Models/TeamOrganization.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Team Organization /// - public class TeamOrganization : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamOrganization : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -189,10 +191,10 @@ public class TeamOrganization : IAdditionalDataHolder, IParsable /// The plan property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TeamOrganization_plan? Plan { get; set; } + public global::GitHub.Models.TeamOrganization_plan? Plan { get; set; } #nullable restore #else - public TeamOrganization_plan Plan { get; set; } + public global::GitHub.Models.TeamOrganization_plan Plan { get; set; } #endif /// The private_gists property public int? PrivateGists { get; set; } @@ -249,7 +251,7 @@ public class TeamOrganization : IAdditionalDataHolder, IParsable /// The web_commit_signoff_required property public bool? WebCommitSignoffRequired { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TeamOrganization() { @@ -258,12 +260,12 @@ public TeamOrganization() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TeamOrganization CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TeamOrganization CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TeamOrganization(); + return new global::GitHub.Models.TeamOrganization(); } /// /// The deserialization information for the current model @@ -273,55 +275,55 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"archived_at", n => { ArchivedAt = n.GetDateTimeOffsetValue(); } }, - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"billing_email", n => { BillingEmail = n.GetStringValue(); } }, - {"blog", n => { Blog = n.GetStringValue(); } }, - {"collaborators", n => { Collaborators = n.GetIntValue(); } }, - {"company", n => { Company = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"default_repository_permission", n => { DefaultRepositoryPermission = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"disk_usage", n => { DiskUsage = n.GetIntValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"followers", n => { Followers = n.GetIntValue(); } }, - {"following", n => { Following = n.GetIntValue(); } }, - {"has_organization_projects", n => { HasOrganizationProjects = n.GetBoolValue(); } }, - {"has_repository_projects", n => { HasRepositoryProjects = n.GetBoolValue(); } }, - {"hooks_url", n => { HooksUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"is_verified", n => { IsVerified = n.GetBoolValue(); } }, - {"issues_url", n => { IssuesUrl = n.GetStringValue(); } }, - {"location", n => { Location = n.GetStringValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"members_allowed_repository_creation_type", n => { MembersAllowedRepositoryCreationType = n.GetStringValue(); } }, - {"members_can_create_internal_repositories", n => { MembersCanCreateInternalRepositories = n.GetBoolValue(); } }, - {"members_can_create_pages", n => { MembersCanCreatePages = n.GetBoolValue(); } }, - {"members_can_create_private_pages", n => { MembersCanCreatePrivatePages = n.GetBoolValue(); } }, - {"members_can_create_private_repositories", n => { MembersCanCreatePrivateRepositories = n.GetBoolValue(); } }, - {"members_can_create_public_pages", n => { MembersCanCreatePublicPages = n.GetBoolValue(); } }, - {"members_can_create_public_repositories", n => { MembersCanCreatePublicRepositories = n.GetBoolValue(); } }, - {"members_can_create_repositories", n => { MembersCanCreateRepositories = n.GetBoolValue(); } }, - {"members_can_fork_private_repositories", n => { MembersCanForkPrivateRepositories = n.GetBoolValue(); } }, - {"members_url", n => { MembersUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"owned_private_repos", n => { OwnedPrivateRepos = n.GetIntValue(); } }, - {"plan", n => { Plan = n.GetObjectValue(TeamOrganization_plan.CreateFromDiscriminatorValue); } }, - {"private_gists", n => { PrivateGists = n.GetIntValue(); } }, - {"public_gists", n => { PublicGists = n.GetIntValue(); } }, - {"public_members_url", n => { PublicMembersUrl = n.GetStringValue(); } }, - {"public_repos", n => { PublicRepos = n.GetIntValue(); } }, - {"repos_url", n => { ReposUrl = n.GetStringValue(); } }, - {"total_private_repos", n => { TotalPrivateRepos = n.GetIntValue(); } }, - {"twitter_username", n => { TwitterUsername = n.GetStringValue(); } }, - {"two_factor_requirement_enabled", n => { TwoFactorRequirementEnabled = n.GetBoolValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, + { "archived_at", n => { ArchivedAt = n.GetDateTimeOffsetValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "billing_email", n => { BillingEmail = n.GetStringValue(); } }, + { "blog", n => { Blog = n.GetStringValue(); } }, + { "collaborators", n => { Collaborators = n.GetIntValue(); } }, + { "company", n => { Company = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "default_repository_permission", n => { DefaultRepositoryPermission = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "disk_usage", n => { DiskUsage = n.GetIntValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "followers", n => { Followers = n.GetIntValue(); } }, + { "following", n => { Following = n.GetIntValue(); } }, + { "has_organization_projects", n => { HasOrganizationProjects = n.GetBoolValue(); } }, + { "has_repository_projects", n => { HasRepositoryProjects = n.GetBoolValue(); } }, + { "hooks_url", n => { HooksUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "is_verified", n => { IsVerified = n.GetBoolValue(); } }, + { "issues_url", n => { IssuesUrl = n.GetStringValue(); } }, + { "location", n => { Location = n.GetStringValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "members_allowed_repository_creation_type", n => { MembersAllowedRepositoryCreationType = n.GetStringValue(); } }, + { "members_can_create_internal_repositories", n => { MembersCanCreateInternalRepositories = n.GetBoolValue(); } }, + { "members_can_create_pages", n => { MembersCanCreatePages = n.GetBoolValue(); } }, + { "members_can_create_private_pages", n => { MembersCanCreatePrivatePages = n.GetBoolValue(); } }, + { "members_can_create_private_repositories", n => { MembersCanCreatePrivateRepositories = n.GetBoolValue(); } }, + { "members_can_create_public_pages", n => { MembersCanCreatePublicPages = n.GetBoolValue(); } }, + { "members_can_create_public_repositories", n => { MembersCanCreatePublicRepositories = n.GetBoolValue(); } }, + { "members_can_create_repositories", n => { MembersCanCreateRepositories = n.GetBoolValue(); } }, + { "members_can_fork_private_repositories", n => { MembersCanForkPrivateRepositories = n.GetBoolValue(); } }, + { "members_url", n => { MembersUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "owned_private_repos", n => { OwnedPrivateRepos = n.GetIntValue(); } }, + { "plan", n => { Plan = n.GetObjectValue(global::GitHub.Models.TeamOrganization_plan.CreateFromDiscriminatorValue); } }, + { "private_gists", n => { PrivateGists = n.GetIntValue(); } }, + { "public_gists", n => { PublicGists = n.GetIntValue(); } }, + { "public_members_url", n => { PublicMembersUrl = n.GetStringValue(); } }, + { "public_repos", n => { PublicRepos = n.GetIntValue(); } }, + { "repos_url", n => { ReposUrl = n.GetStringValue(); } }, + { "total_private_repos", n => { TotalPrivateRepos = n.GetIntValue(); } }, + { "twitter_username", n => { TwitterUsername = n.GetStringValue(); } }, + { "two_factor_requirement_enabled", n => { TwoFactorRequirementEnabled = n.GetBoolValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, }; } /// @@ -367,7 +369,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteStringValue("node_id", NodeId); writer.WriteIntValue("owned_private_repos", OwnedPrivateRepos); - writer.WriteObjectValue("plan", Plan); + writer.WriteObjectValue("plan", Plan); writer.WriteIntValue("private_gists", PrivateGists); writer.WriteIntValue("public_gists", PublicGists); writer.WriteStringValue("public_members_url", PublicMembersUrl); diff --git a/src/GitHub/Models/TeamOrganization_plan.cs b/src/GitHub/Models/TeamOrganization_plan.cs index 6e4f6e1a..369246d0 100644 --- a/src/GitHub/Models/TeamOrganization_plan.cs +++ b/src/GitHub/Models/TeamOrganization_plan.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TeamOrganization_plan : IAdditionalDataHolder, IParsable + public partial class TeamOrganization_plan : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class TeamOrganization_plan : IAdditionalDataHolder, IParsable /// The space property public int? Space { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TeamOrganization_plan() { @@ -37,12 +39,12 @@ public TeamOrganization_plan() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TeamOrganization_plan CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TeamOrganization_plan CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TeamOrganization_plan(); + return new global::GitHub.Models.TeamOrganization_plan(); } /// /// The deserialization information for the current model @@ -52,11 +54,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"filled_seats", n => { FilledSeats = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"private_repos", n => { PrivateRepos = n.GetIntValue(); } }, - {"seats", n => { Seats = n.GetIntValue(); } }, - {"space", n => { Space = n.GetIntValue(); } }, + { "filled_seats", n => { FilledSeats = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "private_repos", n => { PrivateRepos = n.GetIntValue(); } }, + { "seats", n => { Seats = n.GetIntValue(); } }, + { "space", n => { Space = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/TeamProject.cs b/src/GitHub/Models/TeamProject.cs index f70d84c4..01507e23 100644 --- a/src/GitHub/Models/TeamProject.cs +++ b/src/GitHub/Models/TeamProject.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A team's access to a project. /// - public class TeamProject : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamProject : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -39,10 +41,10 @@ public class TeamProject : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Creator { get; set; } + public global::GitHub.Models.SimpleUser? Creator { get; set; } #nullable restore #else - public SimpleUser Creator { get; set; } + public global::GitHub.Models.SimpleUser Creator { get; set; } #endif /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -91,10 +93,10 @@ public class TeamProject : IAdditionalDataHolder, IParsable /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TeamProject_permissions? Permissions { get; set; } + public global::GitHub.Models.TeamProject_permissions? Permissions { get; set; } #nullable restore #else - public TeamProject_permissions Permissions { get; set; } + public global::GitHub.Models.TeamProject_permissions Permissions { get; set; } #endif /// Whether the project is private or not. Only present when owner is an organization. public bool? Private { get; set; } @@ -123,7 +125,7 @@ public class TeamProject : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TeamProject() { @@ -132,12 +134,12 @@ public TeamProject() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TeamProject CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TeamProject CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TeamProject(); + return new global::GitHub.Models.TeamProject(); } /// /// The deserialization information for the current model @@ -147,22 +149,22 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"body", n => { Body = n.GetStringValue(); } }, - {"columns_url", n => { ColumnsUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"creator", n => { Creator = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"number", n => { Number = n.GetIntValue(); } }, - {"organization_permission", n => { OrganizationPermission = n.GetStringValue(); } }, - {"owner_url", n => { OwnerUrl = n.GetStringValue(); } }, - {"permissions", n => { Permissions = n.GetObjectValue(TeamProject_permissions.CreateFromDiscriminatorValue); } }, - {"private", n => { Private = n.GetBoolValue(); } }, - {"state", n => { State = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "columns_url", n => { ColumnsUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "creator", n => { Creator = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "number", n => { Number = n.GetIntValue(); } }, + { "organization_permission", n => { OrganizationPermission = n.GetStringValue(); } }, + { "owner_url", n => { OwnerUrl = n.GetStringValue(); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.TeamProject_permissions.CreateFromDiscriminatorValue); } }, + { "private", n => { Private = n.GetBoolValue(); } }, + { "state", n => { State = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -175,7 +177,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("body", Body); writer.WriteStringValue("columns_url", ColumnsUrl); writer.WriteStringValue("created_at", CreatedAt); - writer.WriteObjectValue("creator", Creator); + writer.WriteObjectValue("creator", Creator); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteIntValue("id", Id); writer.WriteStringValue("name", Name); @@ -183,7 +185,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("number", Number); writer.WriteStringValue("organization_permission", OrganizationPermission); writer.WriteStringValue("owner_url", OwnerUrl); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("permissions", Permissions); writer.WriteBoolValue("private", Private); writer.WriteStringValue("state", State); writer.WriteStringValue("updated_at", UpdatedAt); diff --git a/src/GitHub/Models/TeamProject_permissions.cs b/src/GitHub/Models/TeamProject_permissions.cs index 767d7253..1583ab3f 100644 --- a/src/GitHub/Models/TeamProject_permissions.cs +++ b/src/GitHub/Models/TeamProject_permissions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TeamProject_permissions : IAdditionalDataHolder, IParsable + public partial class TeamProject_permissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -18,7 +20,7 @@ public class TeamProject_permissions : IAdditionalDataHolder, IParsable /// The write property public bool? Write { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TeamProject_permissions() { @@ -27,12 +29,12 @@ public TeamProject_permissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TeamProject_permissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TeamProject_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TeamProject_permissions(); + return new global::GitHub.Models.TeamProject_permissions(); } /// /// The deserialization information for the current model @@ -42,9 +44,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"admin", n => { Admin = n.GetBoolValue(); } }, - {"read", n => { Read = n.GetBoolValue(); } }, - {"write", n => { Write = n.GetBoolValue(); } }, + { "admin", n => { Admin = n.GetBoolValue(); } }, + { "read", n => { Read = n.GetBoolValue(); } }, + { "write", n => { Write = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/TeamRepository.cs b/src/GitHub/Models/TeamRepository.cs index 1dc1c052..d3d22e2e 100644 --- a/src/GitHub/Models/TeamRepository.cs +++ b/src/GitHub/Models/TeamRepository.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A team's access to a repository. /// - public class TeamRepository : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamRepository : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -309,10 +311,10 @@ public class TeamRepository : IAdditionalDataHolder, IParsable /// License Simple #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableLicenseSimple? License { get; set; } + public global::GitHub.Models.NullableLicenseSimple? License { get; set; } #nullable restore #else - public NullableLicenseSimple License { get; set; } + public global::GitHub.Models.NullableLicenseSimple License { get; set; } #endif /// The master_branch property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -379,18 +381,18 @@ public class TeamRepository : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Owner { get; set; } + public global::GitHub.Models.NullableSimpleUser? Owner { get; set; } #nullable restore #else - public NullableSimpleUser Owner { get; set; } + public global::GitHub.Models.NullableSimpleUser Owner { get; set; } #endif /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TeamRepository_permissions? Permissions { get; set; } + public global::GitHub.Models.TeamRepository_permissions? Permissions { get; set; } #nullable restore #else - public TeamRepository_permissions Permissions { get; set; } + public global::GitHub.Models.TeamRepository_permissions Permissions { get; set; } #endif /// Whether the repository is private or public. public bool? Private { get; set; } @@ -539,7 +541,7 @@ public class TeamRepository : IAdditionalDataHolder, IParsable /// Whether to require contributors to sign off on web-based commits public bool? WebCommitSignoffRequired { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TeamRepository() { @@ -549,12 +551,12 @@ public TeamRepository() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TeamRepository CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TeamRepository CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TeamRepository(); + return new global::GitHub.Models.TeamRepository(); } /// /// The deserialization information for the current model @@ -564,95 +566,95 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allow_auto_merge", n => { AllowAutoMerge = n.GetBoolValue(); } }, - {"allow_forking", n => { AllowForking = n.GetBoolValue(); } }, - {"allow_merge_commit", n => { AllowMergeCommit = n.GetBoolValue(); } }, - {"allow_rebase_merge", n => { AllowRebaseMerge = n.GetBoolValue(); } }, - {"allow_squash_merge", n => { AllowSquashMerge = n.GetBoolValue(); } }, - {"archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, - {"archived", n => { Archived = n.GetBoolValue(); } }, - {"assignees_url", n => { AssigneesUrl = n.GetStringValue(); } }, - {"blobs_url", n => { BlobsUrl = n.GetStringValue(); } }, - {"branches_url", n => { BranchesUrl = n.GetStringValue(); } }, - {"clone_url", n => { CloneUrl = n.GetStringValue(); } }, - {"collaborators_url", n => { CollaboratorsUrl = n.GetStringValue(); } }, - {"comments_url", n => { CommentsUrl = n.GetStringValue(); } }, - {"commits_url", n => { CommitsUrl = n.GetStringValue(); } }, - {"compare_url", n => { CompareUrl = n.GetStringValue(); } }, - {"contents_url", n => { ContentsUrl = n.GetStringValue(); } }, - {"contributors_url", n => { ContributorsUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"default_branch", n => { DefaultBranch = n.GetStringValue(); } }, - {"delete_branch_on_merge", n => { DeleteBranchOnMerge = n.GetBoolValue(); } }, - {"deployments_url", n => { DeploymentsUrl = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"disabled", n => { Disabled = n.GetBoolValue(); } }, - {"downloads_url", n => { DownloadsUrl = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"fork", n => { Fork = n.GetBoolValue(); } }, - {"forks", n => { Forks = n.GetIntValue(); } }, - {"forks_count", n => { ForksCount = n.GetIntValue(); } }, - {"forks_url", n => { ForksUrl = n.GetStringValue(); } }, - {"full_name", n => { FullName = n.GetStringValue(); } }, - {"git_commits_url", n => { GitCommitsUrl = n.GetStringValue(); } }, - {"git_refs_url", n => { GitRefsUrl = n.GetStringValue(); } }, - {"git_tags_url", n => { GitTagsUrl = n.GetStringValue(); } }, - {"git_url", n => { GitUrl = n.GetStringValue(); } }, - {"has_downloads", n => { HasDownloads = n.GetBoolValue(); } }, - {"has_issues", n => { HasIssues = n.GetBoolValue(); } }, - {"has_pages", n => { HasPages = n.GetBoolValue(); } }, - {"has_projects", n => { HasProjects = n.GetBoolValue(); } }, - {"has_wiki", n => { HasWiki = n.GetBoolValue(); } }, - {"homepage", n => { Homepage = n.GetStringValue(); } }, - {"hooks_url", n => { HooksUrl = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"is_template", n => { IsTemplate = n.GetBoolValue(); } }, - {"issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, - {"issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } }, - {"issues_url", n => { IssuesUrl = n.GetStringValue(); } }, - {"keys_url", n => { KeysUrl = n.GetStringValue(); } }, - {"labels_url", n => { LabelsUrl = n.GetStringValue(); } }, - {"language", n => { Language = n.GetStringValue(); } }, - {"languages_url", n => { LanguagesUrl = n.GetStringValue(); } }, - {"license", n => { License = n.GetObjectValue(NullableLicenseSimple.CreateFromDiscriminatorValue); } }, - {"master_branch", n => { MasterBranch = n.GetStringValue(); } }, - {"merges_url", n => { MergesUrl = n.GetStringValue(); } }, - {"milestones_url", n => { MilestonesUrl = n.GetStringValue(); } }, - {"mirror_url", n => { MirrorUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"network_count", n => { NetworkCount = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, - {"open_issues", n => { OpenIssues = n.GetIntValue(); } }, - {"open_issues_count", n => { OpenIssuesCount = n.GetIntValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(NullableSimpleUser.CreateFromDiscriminatorValue); } }, - {"permissions", n => { Permissions = n.GetObjectValue(TeamRepository_permissions.CreateFromDiscriminatorValue); } }, - {"private", n => { Private = n.GetBoolValue(); } }, - {"pulls_url", n => { PullsUrl = n.GetStringValue(); } }, - {"pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, - {"releases_url", n => { ReleasesUrl = n.GetStringValue(); } }, - {"role_name", n => { RoleName = n.GetStringValue(); } }, - {"size", n => { Size = n.GetIntValue(); } }, - {"ssh_url", n => { SshUrl = n.GetStringValue(); } }, - {"stargazers_count", n => { StargazersCount = n.GetIntValue(); } }, - {"stargazers_url", n => { StargazersUrl = n.GetStringValue(); } }, - {"statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, - {"subscribers_count", n => { SubscribersCount = n.GetIntValue(); } }, - {"subscribers_url", n => { SubscribersUrl = n.GetStringValue(); } }, - {"subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, - {"svn_url", n => { SvnUrl = n.GetStringValue(); } }, - {"tags_url", n => { TagsUrl = n.GetStringValue(); } }, - {"teams_url", n => { TeamsUrl = n.GetStringValue(); } }, - {"temp_clone_token", n => { TempCloneToken = n.GetStringValue(); } }, - {"topics", n => { Topics = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"trees_url", n => { TreesUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"visibility", n => { Visibility = n.GetStringValue(); } }, - {"watchers", n => { Watchers = n.GetIntValue(); } }, - {"watchers_count", n => { WatchersCount = n.GetIntValue(); } }, - {"web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, + { "allow_auto_merge", n => { AllowAutoMerge = n.GetBoolValue(); } }, + { "allow_forking", n => { AllowForking = n.GetBoolValue(); } }, + { "allow_merge_commit", n => { AllowMergeCommit = n.GetBoolValue(); } }, + { "allow_rebase_merge", n => { AllowRebaseMerge = n.GetBoolValue(); } }, + { "allow_squash_merge", n => { AllowSquashMerge = n.GetBoolValue(); } }, + { "archive_url", n => { ArchiveUrl = n.GetStringValue(); } }, + { "archived", n => { Archived = n.GetBoolValue(); } }, + { "assignees_url", n => { AssigneesUrl = n.GetStringValue(); } }, + { "blobs_url", n => { BlobsUrl = n.GetStringValue(); } }, + { "branches_url", n => { BranchesUrl = n.GetStringValue(); } }, + { "clone_url", n => { CloneUrl = n.GetStringValue(); } }, + { "collaborators_url", n => { CollaboratorsUrl = n.GetStringValue(); } }, + { "comments_url", n => { CommentsUrl = n.GetStringValue(); } }, + { "commits_url", n => { CommitsUrl = n.GetStringValue(); } }, + { "compare_url", n => { CompareUrl = n.GetStringValue(); } }, + { "contents_url", n => { ContentsUrl = n.GetStringValue(); } }, + { "contributors_url", n => { ContributorsUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "default_branch", n => { DefaultBranch = n.GetStringValue(); } }, + { "delete_branch_on_merge", n => { DeleteBranchOnMerge = n.GetBoolValue(); } }, + { "deployments_url", n => { DeploymentsUrl = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "disabled", n => { Disabled = n.GetBoolValue(); } }, + { "downloads_url", n => { DownloadsUrl = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "fork", n => { Fork = n.GetBoolValue(); } }, + { "forks", n => { Forks = n.GetIntValue(); } }, + { "forks_count", n => { ForksCount = n.GetIntValue(); } }, + { "forks_url", n => { ForksUrl = n.GetStringValue(); } }, + { "full_name", n => { FullName = n.GetStringValue(); } }, + { "git_commits_url", n => { GitCommitsUrl = n.GetStringValue(); } }, + { "git_refs_url", n => { GitRefsUrl = n.GetStringValue(); } }, + { "git_tags_url", n => { GitTagsUrl = n.GetStringValue(); } }, + { "git_url", n => { GitUrl = n.GetStringValue(); } }, + { "has_downloads", n => { HasDownloads = n.GetBoolValue(); } }, + { "has_issues", n => { HasIssues = n.GetBoolValue(); } }, + { "has_pages", n => { HasPages = n.GetBoolValue(); } }, + { "has_projects", n => { HasProjects = n.GetBoolValue(); } }, + { "has_wiki", n => { HasWiki = n.GetBoolValue(); } }, + { "homepage", n => { Homepage = n.GetStringValue(); } }, + { "hooks_url", n => { HooksUrl = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "is_template", n => { IsTemplate = n.GetBoolValue(); } }, + { "issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } }, + { "issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } }, + { "issues_url", n => { IssuesUrl = n.GetStringValue(); } }, + { "keys_url", n => { KeysUrl = n.GetStringValue(); } }, + { "labels_url", n => { LabelsUrl = n.GetStringValue(); } }, + { "language", n => { Language = n.GetStringValue(); } }, + { "languages_url", n => { LanguagesUrl = n.GetStringValue(); } }, + { "license", n => { License = n.GetObjectValue(global::GitHub.Models.NullableLicenseSimple.CreateFromDiscriminatorValue); } }, + { "master_branch", n => { MasterBranch = n.GetStringValue(); } }, + { "merges_url", n => { MergesUrl = n.GetStringValue(); } }, + { "milestones_url", n => { MilestonesUrl = n.GetStringValue(); } }, + { "mirror_url", n => { MirrorUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "network_count", n => { NetworkCount = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "notifications_url", n => { NotificationsUrl = n.GetStringValue(); } }, + { "open_issues", n => { OpenIssues = n.GetIntValue(); } }, + { "open_issues_count", n => { OpenIssuesCount = n.GetIntValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.TeamRepository_permissions.CreateFromDiscriminatorValue); } }, + { "private", n => { Private = n.GetBoolValue(); } }, + { "pulls_url", n => { PullsUrl = n.GetStringValue(); } }, + { "pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, + { "releases_url", n => { ReleasesUrl = n.GetStringValue(); } }, + { "role_name", n => { RoleName = n.GetStringValue(); } }, + { "size", n => { Size = n.GetIntValue(); } }, + { "ssh_url", n => { SshUrl = n.GetStringValue(); } }, + { "stargazers_count", n => { StargazersCount = n.GetIntValue(); } }, + { "stargazers_url", n => { StargazersUrl = n.GetStringValue(); } }, + { "statuses_url", n => { StatusesUrl = n.GetStringValue(); } }, + { "subscribers_count", n => { SubscribersCount = n.GetIntValue(); } }, + { "subscribers_url", n => { SubscribersUrl = n.GetStringValue(); } }, + { "subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, + { "svn_url", n => { SvnUrl = n.GetStringValue(); } }, + { "tags_url", n => { TagsUrl = n.GetStringValue(); } }, + { "teams_url", n => { TeamsUrl = n.GetStringValue(); } }, + { "temp_clone_token", n => { TempCloneToken = n.GetStringValue(); } }, + { "topics", n => { Topics = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "trees_url", n => { TreesUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "visibility", n => { Visibility = n.GetStringValue(); } }, + { "watchers", n => { Watchers = n.GetIntValue(); } }, + { "watchers_count", n => { WatchersCount = n.GetIntValue(); } }, + { "web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, }; } /// @@ -713,7 +715,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("labels_url", LabelsUrl); writer.WriteStringValue("language", Language); writer.WriteStringValue("languages_url", LanguagesUrl); - writer.WriteObjectValue("license", License); + writer.WriteObjectValue("license", License); writer.WriteStringValue("master_branch", MasterBranch); writer.WriteStringValue("merges_url", MergesUrl); writer.WriteStringValue("milestones_url", MilestonesUrl); @@ -724,8 +726,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("notifications_url", NotificationsUrl); writer.WriteIntValue("open_issues", OpenIssues); writer.WriteIntValue("open_issues_count", OpenIssuesCount); - writer.WriteObjectValue("owner", Owner); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("owner", Owner); + writer.WriteObjectValue("permissions", Permissions); writer.WriteBoolValue("private", Private); writer.WriteStringValue("pulls_url", PullsUrl); writer.WriteDateTimeOffsetValue("pushed_at", PushedAt); diff --git a/src/GitHub/Models/TeamRepository_permissions.cs b/src/GitHub/Models/TeamRepository_permissions.cs index f73cf277..d6a260aa 100644 --- a/src/GitHub/Models/TeamRepository_permissions.cs +++ b/src/GitHub/Models/TeamRepository_permissions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TeamRepository_permissions : IAdditionalDataHolder, IParsable + public partial class TeamRepository_permissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class TeamRepository_permissions : IAdditionalDataHolder, IParsable /// The triage property public bool? Triage { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TeamRepository_permissions() { @@ -31,12 +33,12 @@ public TeamRepository_permissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TeamRepository_permissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TeamRepository_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TeamRepository_permissions(); + return new global::GitHub.Models.TeamRepository_permissions(); } /// /// The deserialization information for the current model @@ -46,11 +48,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"admin", n => { Admin = n.GetBoolValue(); } }, - {"maintain", n => { Maintain = n.GetBoolValue(); } }, - {"pull", n => { Pull = n.GetBoolValue(); } }, - {"push", n => { Push = n.GetBoolValue(); } }, - {"triage", n => { Triage = n.GetBoolValue(); } }, + { "admin", n => { Admin = n.GetBoolValue(); } }, + { "maintain", n => { Maintain = n.GetBoolValue(); } }, + { "pull", n => { Pull = n.GetBoolValue(); } }, + { "push", n => { Push = n.GetBoolValue(); } }, + { "triage", n => { Triage = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/TeamRoleAssignment.cs b/src/GitHub/Models/TeamRoleAssignment.cs index e79d706d..fdc5a25a 100644 --- a/src/GitHub/Models/TeamRoleAssignment.cs +++ b/src/GitHub/Models/TeamRoleAssignment.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The Relationship a Team has with a role. /// - public class TeamRoleAssignment : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamRoleAssignment : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -65,10 +67,10 @@ public class TeamRoleAssignment : IAdditionalDataHolder, IParsable /// Groups of organization members that gives permissions on specified repositories. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableTeamSimple? Parent { get; set; } + public global::GitHub.Models.NullableTeamSimple? Parent { get; set; } #nullable restore #else - public NullableTeamSimple Parent { get; set; } + public global::GitHub.Models.NullableTeamSimple Parent { get; set; } #endif /// The permission property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,10 +83,10 @@ public class TeamRoleAssignment : IAdditionalDataHolder, IParsable /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TeamRoleAssignment_permissions? Permissions { get; set; } + public global::GitHub.Models.TeamRoleAssignment_permissions? Permissions { get; set; } #nullable restore #else - public TeamRoleAssignment_permissions Permissions { get; set; } + public global::GitHub.Models.TeamRoleAssignment_permissions Permissions { get; set; } #endif /// The privacy property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +121,7 @@ public class TeamRoleAssignment : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TeamRoleAssignment() { @@ -128,12 +130,12 @@ public TeamRoleAssignment() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TeamRoleAssignment CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TeamRoleAssignment CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TeamRoleAssignment(); + return new global::GitHub.Models.TeamRoleAssignment(); } /// /// The deserialization information for the current model @@ -143,20 +145,20 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"members_url", n => { MembersUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"notification_setting", n => { NotificationSetting = n.GetStringValue(); } }, - {"parent", n => { Parent = n.GetObjectValue(NullableTeamSimple.CreateFromDiscriminatorValue); } }, - {"permission", n => { Permission = n.GetStringValue(); } }, - {"permissions", n => { Permissions = n.GetObjectValue(TeamRoleAssignment_permissions.CreateFromDiscriminatorValue); } }, - {"privacy", n => { Privacy = n.GetStringValue(); } }, - {"repositories_url", n => { RepositoriesUrl = n.GetStringValue(); } }, - {"slug", n => { Slug = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "members_url", n => { MembersUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "notification_setting", n => { NotificationSetting = n.GetStringValue(); } }, + { "parent", n => { Parent = n.GetObjectValue(global::GitHub.Models.NullableTeamSimple.CreateFromDiscriminatorValue); } }, + { "permission", n => { Permission = n.GetStringValue(); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.TeamRoleAssignment_permissions.CreateFromDiscriminatorValue); } }, + { "privacy", n => { Privacy = n.GetStringValue(); } }, + { "repositories_url", n => { RepositoriesUrl = n.GetStringValue(); } }, + { "slug", n => { Slug = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -173,9 +175,9 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteStringValue("node_id", NodeId); writer.WriteStringValue("notification_setting", NotificationSetting); - writer.WriteObjectValue("parent", Parent); + writer.WriteObjectValue("parent", Parent); writer.WriteStringValue("permission", Permission); - writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("permissions", Permissions); writer.WriteStringValue("privacy", Privacy); writer.WriteStringValue("repositories_url", RepositoriesUrl); writer.WriteStringValue("slug", Slug); diff --git a/src/GitHub/Models/TeamRoleAssignment_permissions.cs b/src/GitHub/Models/TeamRoleAssignment_permissions.cs index 0052a9b4..51019aa9 100644 --- a/src/GitHub/Models/TeamRoleAssignment_permissions.cs +++ b/src/GitHub/Models/TeamRoleAssignment_permissions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TeamRoleAssignment_permissions : IAdditionalDataHolder, IParsable + public partial class TeamRoleAssignment_permissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class TeamRoleAssignment_permissions : IAdditionalDataHolder, IParsable /// The triage property public bool? Triage { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TeamRoleAssignment_permissions() { @@ -31,12 +33,12 @@ public TeamRoleAssignment_permissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TeamRoleAssignment_permissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TeamRoleAssignment_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TeamRoleAssignment_permissions(); + return new global::GitHub.Models.TeamRoleAssignment_permissions(); } /// /// The deserialization information for the current model @@ -46,11 +48,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"admin", n => { Admin = n.GetBoolValue(); } }, - {"maintain", n => { Maintain = n.GetBoolValue(); } }, - {"pull", n => { Pull = n.GetBoolValue(); } }, - {"push", n => { Push = n.GetBoolValue(); } }, - {"triage", n => { Triage = n.GetBoolValue(); } }, + { "admin", n => { Admin = n.GetBoolValue(); } }, + { "maintain", n => { Maintain = n.GetBoolValue(); } }, + { "pull", n => { Pull = n.GetBoolValue(); } }, + { "push", n => { Push = n.GetBoolValue(); } }, + { "triage", n => { Triage = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/TeamSimple.cs b/src/GitHub/Models/TeamSimple.cs index 72bca728..676d199a 100644 --- a/src/GitHub/Models/TeamSimple.cs +++ b/src/GitHub/Models/TeamSimple.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Groups of organization members that gives permissions on specified repositories. /// - public class TeamSimple : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamSimple : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -111,7 +113,7 @@ public class TeamSimple : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TeamSimple() { @@ -120,12 +122,12 @@ public TeamSimple() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TeamSimple CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TeamSimple CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TeamSimple(); + return new global::GitHub.Models.TeamSimple(); } /// /// The deserialization information for the current model @@ -135,19 +137,19 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"ldap_dn", n => { LdapDn = n.GetStringValue(); } }, - {"members_url", n => { MembersUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"notification_setting", n => { NotificationSetting = n.GetStringValue(); } }, - {"permission", n => { Permission = n.GetStringValue(); } }, - {"privacy", n => { Privacy = n.GetStringValue(); } }, - {"repositories_url", n => { RepositoriesUrl = n.GetStringValue(); } }, - {"slug", n => { Slug = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "ldap_dn", n => { LdapDn = n.GetStringValue(); } }, + { "members_url", n => { MembersUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "notification_setting", n => { NotificationSetting = n.GetStringValue(); } }, + { "permission", n => { Permission = n.GetStringValue(); } }, + { "privacy", n => { Privacy = n.GetStringValue(); } }, + { "repositories_url", n => { RepositoriesUrl = n.GetStringValue(); } }, + { "slug", n => { Slug = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Team_permissions.cs b/src/GitHub/Models/Team_permissions.cs index 7e41ee30..bc37225a 100644 --- a/src/GitHub/Models/Team_permissions.cs +++ b/src/GitHub/Models/Team_permissions.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Team_permissions : IAdditionalDataHolder, IParsable + public partial class Team_permissions : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class Team_permissions : IAdditionalDataHolder, IParsable /// The triage property public bool? Triage { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Team_permissions() { @@ -31,12 +33,12 @@ public Team_permissions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Team_permissions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Team_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Team_permissions(); + return new global::GitHub.Models.Team_permissions(); } /// /// The deserialization information for the current model @@ -46,11 +48,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"admin", n => { Admin = n.GetBoolValue(); } }, - {"maintain", n => { Maintain = n.GetBoolValue(); } }, - {"pull", n => { Pull = n.GetBoolValue(); } }, - {"push", n => { Push = n.GetBoolValue(); } }, - {"triage", n => { Triage = n.GetBoolValue(); } }, + { "admin", n => { Admin = n.GetBoolValue(); } }, + { "maintain", n => { Maintain = n.GetBoolValue(); } }, + { "pull", n => { Pull = n.GetBoolValue(); } }, + { "push", n => { Push = n.GetBoolValue(); } }, + { "triage", n => { Triage = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/ThreadObject.cs b/src/GitHub/Models/ThreadObject.cs index 96f5306a..7c89ec47 100644 --- a/src/GitHub/Models/ThreadObject.cs +++ b/src/GitHub/Models/ThreadObject.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Thread /// - public class ThreadObject : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ThreadObject : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -39,18 +41,18 @@ public class ThreadObject : IAdditionalDataHolder, IParsable /// Minimal Repository #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MinimalRepository? Repository { get; set; } + public global::GitHub.Models.MinimalRepository? Repository { get; set; } #nullable restore #else - public MinimalRepository Repository { get; set; } + public global::GitHub.Models.MinimalRepository Repository { get; set; } #endif /// The subject property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Thread_subject? Subject { get; set; } + public global::GitHub.Models.Thread_subject? Subject { get; set; } #nullable restore #else - public Thread_subject Subject { get; set; } + public global::GitHub.Models.Thread_subject Subject { get; set; } #endif /// The subscription_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -79,7 +81,7 @@ public class ThreadObject : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ThreadObject() { @@ -88,12 +90,12 @@ public ThreadObject() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ThreadObject CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ThreadObject CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ThreadObject(); + return new global::GitHub.Models.ThreadObject(); } /// /// The deserialization information for the current model @@ -103,15 +105,15 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetStringValue(); } }, - {"last_read_at", n => { LastReadAt = n.GetStringValue(); } }, - {"reason", n => { Reason = n.GetStringValue(); } }, - {"repository", n => { Repository = n.GetObjectValue(MinimalRepository.CreateFromDiscriminatorValue); } }, - {"subject", n => { Subject = n.GetObjectValue(Thread_subject.CreateFromDiscriminatorValue); } }, - {"subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, - {"unread", n => { Unread = n.GetBoolValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "last_read_at", n => { LastReadAt = n.GetStringValue(); } }, + { "reason", n => { Reason = n.GetStringValue(); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.MinimalRepository.CreateFromDiscriminatorValue); } }, + { "subject", n => { Subject = n.GetObjectValue(global::GitHub.Models.Thread_subject.CreateFromDiscriminatorValue); } }, + { "subscription_url", n => { SubscriptionUrl = n.GetStringValue(); } }, + { "unread", n => { Unread = n.GetBoolValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -124,8 +126,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("id", Id); writer.WriteStringValue("last_read_at", LastReadAt); writer.WriteStringValue("reason", Reason); - writer.WriteObjectValue("repository", Repository); - writer.WriteObjectValue("subject", Subject); + writer.WriteObjectValue("repository", Repository); + writer.WriteObjectValue("subject", Subject); writer.WriteStringValue("subscription_url", SubscriptionUrl); writer.WriteBoolValue("unread", Unread); writer.WriteStringValue("updated_at", UpdatedAt); diff --git a/src/GitHub/Models/ThreadSubscription.cs b/src/GitHub/Models/ThreadSubscription.cs index 04b1a5f3..24c859ca 100644 --- a/src/GitHub/Models/ThreadSubscription.cs +++ b/src/GitHub/Models/ThreadSubscription.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Thread Subscription /// - public class ThreadSubscription : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ThreadSubscription : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -51,7 +53,7 @@ public class ThreadSubscription : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ThreadSubscription() { @@ -60,12 +62,12 @@ public ThreadSubscription() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ThreadSubscription CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ThreadSubscription CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ThreadSubscription(); + return new global::GitHub.Models.ThreadSubscription(); } /// /// The deserialization information for the current model @@ -75,13 +77,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"ignored", n => { Ignored = n.GetBoolValue(); } }, - {"reason", n => { Reason = n.GetStringValue(); } }, - {"repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, - {"subscribed", n => { Subscribed = n.GetBoolValue(); } }, - {"thread_url", n => { ThreadUrl = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "ignored", n => { Ignored = n.GetBoolValue(); } }, + { "reason", n => { Reason = n.GetStringValue(); } }, + { "repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, + { "subscribed", n => { Subscribed = n.GetBoolValue(); } }, + { "thread_url", n => { ThreadUrl = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Thread_subject.cs b/src/GitHub/Models/Thread_subject.cs index befa35cf..2aa3fee2 100644 --- a/src/GitHub/Models/Thread_subject.cs +++ b/src/GitHub/Models/Thread_subject.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Thread_subject : IAdditionalDataHolder, IParsable + public partial class Thread_subject : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -44,7 +46,7 @@ public class Thread_subject : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Thread_subject() { @@ -53,12 +55,12 @@ public Thread_subject() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Thread_subject CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Thread_subject CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Thread_subject(); + return new global::GitHub.Models.Thread_subject(); } /// /// The deserialization information for the current model @@ -68,10 +70,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"latest_comment_url", n => { LatestCommentUrl = n.GetStringValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "latest_comment_url", n => { LatestCommentUrl = n.GetStringValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/TimelineAssignedIssueEvent.cs b/src/GitHub/Models/TimelineAssignedIssueEvent.cs index 6b820d5f..ea8376a5 100644 --- a/src/GitHub/Models/TimelineAssignedIssueEvent.cs +++ b/src/GitHub/Models/TimelineAssignedIssueEvent.cs @@ -1,32 +1,34 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Timeline Assigned Issue Event /// - public class TimelineAssignedIssueEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TimelineAssignedIssueEvent : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Assignee { get; set; } + public global::GitHub.Models.SimpleUser? Assignee { get; set; } #nullable restore #else - public SimpleUser Assignee { get; set; } + public global::GitHub.Models.SimpleUser Assignee { get; set; } #endif /// The commit_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,10 +75,10 @@ public class TimelineAssignedIssueEvent : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +89,7 @@ public class TimelineAssignedIssueEvent : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TimelineAssignedIssueEvent() { @@ -96,12 +98,12 @@ public TimelineAssignedIssueEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TimelineAssignedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TimelineAssignedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TimelineAssignedIssueEvent(); + return new global::GitHub.Models.TimelineAssignedIssueEvent(); } /// /// The deserialization information for the current model @@ -111,16 +113,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"assignee", n => { Assignee = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "assignee", n => { Assignee = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -130,15 +132,15 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); - writer.WriteObjectValue("assignee", Assignee); + writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("assignee", Assignee); writer.WriteStringValue("commit_id", CommitId); writer.WriteStringValue("commit_url", CommitUrl); writer.WriteStringValue("created_at", CreatedAt); writer.WriteStringValue("event", Event); writer.WriteIntValue("id", Id); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/TimelineCommentEvent.cs b/src/GitHub/Models/TimelineCommentEvent.cs index 90413c4a..8d655bb4 100644 --- a/src/GitHub/Models/TimelineCommentEvent.cs +++ b/src/GitHub/Models/TimelineCommentEvent.cs @@ -1,27 +1,29 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Timeline Comment Event /// - public class TimelineCommentEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TimelineCommentEvent : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// How the author is associated with the repository. - public GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } + public global::GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } /// Contents of the issue comment #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -85,18 +87,18 @@ public class TimelineCommentEvent : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// The reactions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ReactionRollup? Reactions { get; set; } + public global::GitHub.Models.ReactionRollup? Reactions { get; set; } #nullable restore #else - public ReactionRollup Reactions { get; set; } + public global::GitHub.Models.ReactionRollup Reactions { get; set; } #endif /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } @@ -111,13 +113,13 @@ public class TimelineCommentEvent : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? User { get; set; } + public global::GitHub.Models.SimpleUser? User { get; set; } #nullable restore #else - public SimpleUser User { get; set; } + public global::GitHub.Models.SimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TimelineCommentEvent() { @@ -126,12 +128,12 @@ public TimelineCommentEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TimelineCommentEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TimelineCommentEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TimelineCommentEvent(); + return new global::GitHub.Models.TimelineCommentEvent(); } /// /// The deserialization information for the current model @@ -141,22 +143,22 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, - {"body", n => { Body = n.GetStringValue(); } }, - {"body_html", n => { BodyHtml = n.GetStringValue(); } }, - {"body_text", n => { BodyText = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"issue_url", n => { IssueUrl = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"reactions", n => { Reactions = n.GetObjectValue(ReactionRollup.CreateFromDiscriminatorValue); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "body_html", n => { BodyHtml = n.GetStringValue(); } }, + { "body_text", n => { BodyText = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "issue_url", n => { IssueUrl = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "reactions", n => { Reactions = n.GetObjectValue(global::GitHub.Models.ReactionRollup.CreateFromDiscriminatorValue); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -166,8 +168,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); - writer.WriteEnumValue("author_association", AuthorAssociation); + writer.WriteObjectValue("actor", Actor); + writer.WriteEnumValue("author_association", AuthorAssociation); writer.WriteStringValue("body", Body); writer.WriteStringValue("body_html", BodyHtml); writer.WriteStringValue("body_text", BodyText); @@ -177,11 +179,11 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("id", Id); writer.WriteStringValue("issue_url", IssueUrl); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); - writer.WriteObjectValue("reactions", Reactions); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("reactions", Reactions); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/TimelineCommitCommentedEvent.cs b/src/GitHub/Models/TimelineCommitCommentedEvent.cs index 2e7e36fe..ff890253 100644 --- a/src/GitHub/Models/TimelineCommitCommentedEvent.cs +++ b/src/GitHub/Models/TimelineCommitCommentedEvent.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Timeline Commit Commented Event /// - public class TimelineCommitCommentedEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TimelineCommitCommentedEvent : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The comments property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Comments { get; set; } + public List? Comments { get; set; } #nullable restore #else - public List Comments { get; set; } + public List Comments { get; set; } #endif /// The commit_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -45,7 +47,7 @@ public class TimelineCommitCommentedEvent : IAdditionalDataHolder, IParsable public string NodeId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TimelineCommitCommentedEvent() { @@ -54,12 +56,12 @@ public TimelineCommitCommentedEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TimelineCommitCommentedEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TimelineCommitCommentedEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TimelineCommitCommentedEvent(); + return new global::GitHub.Models.TimelineCommitCommentedEvent(); } /// /// The deserialization information for the current model @@ -69,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"comments", n => { Comments = n.GetCollectionOfObjectValues(CommitComment.CreateFromDiscriminatorValue)?.ToList(); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, + { "comments", n => { Comments = n.GetCollectionOfObjectValues(global::GitHub.Models.CommitComment.CreateFromDiscriminatorValue)?.AsList(); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, }; } /// @@ -82,7 +84,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("comments", Comments); + writer.WriteCollectionOfObjectValues("comments", Comments); writer.WriteStringValue("commit_id", CommitId); writer.WriteStringValue("event", Event); writer.WriteStringValue("node_id", NodeId); diff --git a/src/GitHub/Models/TimelineCommittedEvent.cs b/src/GitHub/Models/TimelineCommittedEvent.cs index 627faa15..787f29e8 100644 --- a/src/GitHub/Models/TimelineCommittedEvent.cs +++ b/src/GitHub/Models/TimelineCommittedEvent.cs @@ -1,32 +1,34 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Timeline Committed Event /// - public class TimelineCommittedEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TimelineCommittedEvent : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// Identifying information for the git-user #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimelineCommittedEvent_author? Author { get; set; } + public global::GitHub.Models.TimelineCommittedEvent_author? Author { get; set; } #nullable restore #else - public TimelineCommittedEvent_author Author { get; set; } + public global::GitHub.Models.TimelineCommittedEvent_author Author { get; set; } #endif /// Identifying information for the git-user #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimelineCommittedEvent_committer? Committer { get; set; } + public global::GitHub.Models.TimelineCommittedEvent_committer? Committer { get; set; } #nullable restore #else - public TimelineCommittedEvent_committer Committer { get; set; } + public global::GitHub.Models.TimelineCommittedEvent_committer Committer { get; set; } #endif /// The event property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -63,10 +65,10 @@ public class TimelineCommittedEvent : IAdditionalDataHolder, IParsable /// The parents property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Parents { get; set; } + public List? Parents { get; set; } #nullable restore #else - public List Parents { get; set; } + public List Parents { get; set; } #endif /// SHA for the commit #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -79,10 +81,10 @@ public class TimelineCommittedEvent : IAdditionalDataHolder, IParsable /// The tree property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimelineCommittedEvent_tree? Tree { get; set; } + public global::GitHub.Models.TimelineCommittedEvent_tree? Tree { get; set; } #nullable restore #else - public TimelineCommittedEvent_tree Tree { get; set; } + public global::GitHub.Models.TimelineCommittedEvent_tree Tree { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,13 +97,13 @@ public class TimelineCommittedEvent : IAdditionalDataHolder, IParsable /// The verification property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimelineCommittedEvent_verification? Verification { get; set; } + public global::GitHub.Models.TimelineCommittedEvent_verification? Verification { get; set; } #nullable restore #else - public TimelineCommittedEvent_verification Verification { get; set; } + public global::GitHub.Models.TimelineCommittedEvent_verification Verification { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TimelineCommittedEvent() { @@ -110,12 +112,12 @@ public TimelineCommittedEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TimelineCommittedEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TimelineCommittedEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TimelineCommittedEvent(); + return new global::GitHub.Models.TimelineCommittedEvent(); } /// /// The deserialization information for the current model @@ -125,17 +127,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author", n => { Author = n.GetObjectValue(TimelineCommittedEvent_author.CreateFromDiscriminatorValue); } }, - {"committer", n => { Committer = n.GetObjectValue(TimelineCommittedEvent_committer.CreateFromDiscriminatorValue); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"parents", n => { Parents = n.GetCollectionOfObjectValues(TimelineCommittedEvent_parents.CreateFromDiscriminatorValue)?.ToList(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"tree", n => { Tree = n.GetObjectValue(TimelineCommittedEvent_tree.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"verification", n => { Verification = n.GetObjectValue(TimelineCommittedEvent_verification.CreateFromDiscriminatorValue); } }, + { "author", n => { Author = n.GetObjectValue(global::GitHub.Models.TimelineCommittedEvent_author.CreateFromDiscriminatorValue); } }, + { "committer", n => { Committer = n.GetObjectValue(global::GitHub.Models.TimelineCommittedEvent_committer.CreateFromDiscriminatorValue); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "parents", n => { Parents = n.GetCollectionOfObjectValues(global::GitHub.Models.TimelineCommittedEvent_parents.CreateFromDiscriminatorValue)?.AsList(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "tree", n => { Tree = n.GetObjectValue(global::GitHub.Models.TimelineCommittedEvent_tree.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "verification", n => { Verification = n.GetObjectValue(global::GitHub.Models.TimelineCommittedEvent_verification.CreateFromDiscriminatorValue); } }, }; } /// @@ -145,17 +147,17 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("author", Author); - writer.WriteObjectValue("committer", Committer); + writer.WriteObjectValue("author", Author); + writer.WriteObjectValue("committer", Committer); writer.WriteStringValue("event", Event); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteStringValue("message", Message); writer.WriteStringValue("node_id", NodeId); - writer.WriteCollectionOfObjectValues("parents", Parents); + writer.WriteCollectionOfObjectValues("parents", Parents); writer.WriteStringValue("sha", Sha); - writer.WriteObjectValue("tree", Tree); + writer.WriteObjectValue("tree", Tree); writer.WriteStringValue("url", Url); - writer.WriteObjectValue("verification", Verification); + writer.WriteObjectValue("verification", Verification); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/TimelineCommittedEvent_author.cs b/src/GitHub/Models/TimelineCommittedEvent_author.cs index ef420bbe..21fd8e95 100644 --- a/src/GitHub/Models/TimelineCommittedEvent_author.cs +++ b/src/GitHub/Models/TimelineCommittedEvent_author.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Identifying information for the git-user /// - public class TimelineCommittedEvent_author : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TimelineCommittedEvent_author : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -31,7 +33,7 @@ public class TimelineCommittedEvent_author : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TimelineCommittedEvent_author() { @@ -40,12 +42,12 @@ public TimelineCommittedEvent_author() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TimelineCommittedEvent_author CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TimelineCommittedEvent_author CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TimelineCommittedEvent_author(); + return new global::GitHub.Models.TimelineCommittedEvent_author(); } /// /// The deserialization information for the current model @@ -55,9 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"date", n => { Date = n.GetDateTimeOffsetValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "date", n => { Date = n.GetDateTimeOffsetValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/TimelineCommittedEvent_committer.cs b/src/GitHub/Models/TimelineCommittedEvent_committer.cs index 7f08400f..8ec01c1d 100644 --- a/src/GitHub/Models/TimelineCommittedEvent_committer.cs +++ b/src/GitHub/Models/TimelineCommittedEvent_committer.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Identifying information for the git-user /// - public class TimelineCommittedEvent_committer : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TimelineCommittedEvent_committer : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -31,7 +33,7 @@ public class TimelineCommittedEvent_committer : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TimelineCommittedEvent_committer() { @@ -40,12 +42,12 @@ public TimelineCommittedEvent_committer() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TimelineCommittedEvent_committer CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TimelineCommittedEvent_committer CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TimelineCommittedEvent_committer(); + return new global::GitHub.Models.TimelineCommittedEvent_committer(); } /// /// The deserialization information for the current model @@ -55,9 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"date", n => { Date = n.GetDateTimeOffsetValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "date", n => { Date = n.GetDateTimeOffsetValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/TimelineCommittedEvent_parents.cs b/src/GitHub/Models/TimelineCommittedEvent_parents.cs index fe1d7c0c..81e6d2a8 100644 --- a/src/GitHub/Models/TimelineCommittedEvent_parents.cs +++ b/src/GitHub/Models/TimelineCommittedEvent_parents.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TimelineCommittedEvent_parents : IAdditionalDataHolder, IParsable + public partial class TimelineCommittedEvent_parents : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class TimelineCommittedEvent_parents : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TimelineCommittedEvent_parents() { @@ -45,12 +47,12 @@ public TimelineCommittedEvent_parents() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TimelineCommittedEvent_parents CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TimelineCommittedEvent_parents CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TimelineCommittedEvent_parents(); + return new global::GitHub.Models.TimelineCommittedEvent_parents(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/TimelineCommittedEvent_tree.cs b/src/GitHub/Models/TimelineCommittedEvent_tree.cs index 21244192..b3c9b9ea 100644 --- a/src/GitHub/Models/TimelineCommittedEvent_tree.cs +++ b/src/GitHub/Models/TimelineCommittedEvent_tree.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TimelineCommittedEvent_tree : IAdditionalDataHolder, IParsable + public partial class TimelineCommittedEvent_tree : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class TimelineCommittedEvent_tree : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TimelineCommittedEvent_tree() { @@ -37,12 +39,12 @@ public TimelineCommittedEvent_tree() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TimelineCommittedEvent_tree CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TimelineCommittedEvent_tree CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TimelineCommittedEvent_tree(); + return new global::GitHub.Models.TimelineCommittedEvent_tree(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"sha", n => { Sha = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/TimelineCommittedEvent_verification.cs b/src/GitHub/Models/TimelineCommittedEvent_verification.cs index dd7fcc22..d7a36d6a 100644 --- a/src/GitHub/Models/TimelineCommittedEvent_verification.cs +++ b/src/GitHub/Models/TimelineCommittedEvent_verification.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TimelineCommittedEvent_verification : IAdditionalDataHolder, IParsable + public partial class TimelineCommittedEvent_verification : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -38,7 +40,7 @@ public class TimelineCommittedEvent_verification : IAdditionalDataHolder, IParsa /// The verified property public bool? Verified { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TimelineCommittedEvent_verification() { @@ -47,12 +49,12 @@ public TimelineCommittedEvent_verification() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TimelineCommittedEvent_verification CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TimelineCommittedEvent_verification CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TimelineCommittedEvent_verification(); + return new global::GitHub.Models.TimelineCommittedEvent_verification(); } /// /// The deserialization information for the current model @@ -62,10 +64,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"payload", n => { Payload = n.GetStringValue(); } }, - {"reason", n => { Reason = n.GetStringValue(); } }, - {"signature", n => { Signature = n.GetStringValue(); } }, - {"verified", n => { Verified = n.GetBoolValue(); } }, + { "payload", n => { Payload = n.GetStringValue(); } }, + { "reason", n => { Reason = n.GetStringValue(); } }, + { "signature", n => { Signature = n.GetStringValue(); } }, + { "verified", n => { Verified = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/TimelineCrossReferencedEvent.cs b/src/GitHub/Models/TimelineCrossReferencedEvent.cs index 1f2488f7..96acbf6d 100644 --- a/src/GitHub/Models/TimelineCrossReferencedEvent.cs +++ b/src/GitHub/Models/TimelineCrossReferencedEvent.cs @@ -1,22 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Timeline Cross Referenced Event /// - public class TimelineCrossReferencedEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TimelineCrossReferencedEvent : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -33,15 +35,15 @@ public class TimelineCrossReferencedEvent : IAdditionalDataHolder, IParsable /// The source property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimelineCrossReferencedEvent_source? Source { get; set; } + public global::GitHub.Models.TimelineCrossReferencedEvent_source? Source { get; set; } #nullable restore #else - public TimelineCrossReferencedEvent_source Source { get; set; } + public global::GitHub.Models.TimelineCrossReferencedEvent_source Source { get; set; } #endif /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TimelineCrossReferencedEvent() { @@ -50,12 +52,12 @@ public TimelineCrossReferencedEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TimelineCrossReferencedEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TimelineCrossReferencedEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TimelineCrossReferencedEvent(); + return new global::GitHub.Models.TimelineCrossReferencedEvent(); } /// /// The deserialization information for the current model @@ -65,11 +67,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"source", n => { Source = n.GetObjectValue(TimelineCrossReferencedEvent_source.CreateFromDiscriminatorValue); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "source", n => { Source = n.GetObjectValue(global::GitHub.Models.TimelineCrossReferencedEvent_source.CreateFromDiscriminatorValue); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, }; } /// @@ -79,10 +81,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("actor", Actor); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteStringValue("event", Event); - writer.WriteObjectValue("source", Source); + writer.WriteObjectValue("source", Source); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/TimelineCrossReferencedEvent_source.cs b/src/GitHub/Models/TimelineCrossReferencedEvent_source.cs index 6bf9a047..9f724387 100644 --- a/src/GitHub/Models/TimelineCrossReferencedEvent_source.cs +++ b/src/GitHub/Models/TimelineCrossReferencedEvent_source.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TimelineCrossReferencedEvent_source : IAdditionalDataHolder, IParsable + public partial class TimelineCrossReferencedEvent_source : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,10 +16,10 @@ public class TimelineCrossReferencedEvent_source : IAdditionalDataHolder, IParsa /// Issues are a great way to keep track of tasks, enhancements, and bugs for your projects. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Issue? Issue { get; set; } + public global::GitHub.Models.Issue? Issue { get; set; } #nullable restore #else - public GitHub.Models.Issue Issue { get; set; } + public global::GitHub.Models.Issue Issue { get; set; } #endif /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -28,7 +30,7 @@ public class TimelineCrossReferencedEvent_source : IAdditionalDataHolder, IParsa public string Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TimelineCrossReferencedEvent_source() { @@ -37,12 +39,12 @@ public TimelineCrossReferencedEvent_source() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TimelineCrossReferencedEvent_source CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TimelineCrossReferencedEvent_source CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TimelineCrossReferencedEvent_source(); + return new global::GitHub.Models.TimelineCrossReferencedEvent_source(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"issue", n => { Issue = n.GetObjectValue(GitHub.Models.Issue.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetStringValue(); } }, + { "issue", n => { Issue = n.GetObjectValue(global::GitHub.Models.Issue.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetStringValue(); } }, }; } /// @@ -63,7 +65,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("issue", Issue); + writer.WriteObjectValue("issue", Issue); writer.WriteStringValue("type", Type); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/TimelineIssueEvents.cs b/src/GitHub/Models/TimelineIssueEvents.cs index 1351bc32..1aee651f 100644 --- a/src/GitHub/Models/TimelineIssueEvents.cs +++ b/src/GitHub/Models/TimelineIssueEvents.cs @@ -1,223 +1,225 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// - /// Composed type wrapper for classes , , , , , , , , , , , , , , , , , , , , , + /// Composed type wrapper for classes , , , , , , , , , , , , , , , , , , , , , /// - public class TimelineIssueEvents : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TimelineIssueEvents : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.AddedToProjectIssueEvent? AddedToProjectIssueEvent { get; set; } + public global::GitHub.Models.AddedToProjectIssueEvent? AddedToProjectIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.AddedToProjectIssueEvent AddedToProjectIssueEvent { get; set; } + public global::GitHub.Models.AddedToProjectIssueEvent AddedToProjectIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.ConvertedNoteToIssueIssueEvent? ConvertedNoteToIssueIssueEvent { get; set; } + public global::GitHub.Models.ConvertedNoteToIssueIssueEvent? ConvertedNoteToIssueIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.ConvertedNoteToIssueIssueEvent ConvertedNoteToIssueIssueEvent { get; set; } + public global::GitHub.Models.ConvertedNoteToIssueIssueEvent ConvertedNoteToIssueIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.DemilestonedIssueEvent? DemilestonedIssueEvent { get; set; } + public global::GitHub.Models.DemilestonedIssueEvent? DemilestonedIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.DemilestonedIssueEvent DemilestonedIssueEvent { get; set; } + public global::GitHub.Models.DemilestonedIssueEvent DemilestonedIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.LabeledIssueEvent? LabeledIssueEvent { get; set; } + public global::GitHub.Models.LabeledIssueEvent? LabeledIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.LabeledIssueEvent LabeledIssueEvent { get; set; } + public global::GitHub.Models.LabeledIssueEvent LabeledIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.LockedIssueEvent? LockedIssueEvent { get; set; } + public global::GitHub.Models.LockedIssueEvent? LockedIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.LockedIssueEvent LockedIssueEvent { get; set; } + public global::GitHub.Models.LockedIssueEvent LockedIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.MilestonedIssueEvent? MilestonedIssueEvent { get; set; } + public global::GitHub.Models.MilestonedIssueEvent? MilestonedIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.MilestonedIssueEvent MilestonedIssueEvent { get; set; } + public global::GitHub.Models.MilestonedIssueEvent MilestonedIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.MovedColumnInProjectIssueEvent? MovedColumnInProjectIssueEvent { get; set; } + public global::GitHub.Models.MovedColumnInProjectIssueEvent? MovedColumnInProjectIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.MovedColumnInProjectIssueEvent MovedColumnInProjectIssueEvent { get; set; } + public global::GitHub.Models.MovedColumnInProjectIssueEvent MovedColumnInProjectIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RemovedFromProjectIssueEvent? RemovedFromProjectIssueEvent { get; set; } + public global::GitHub.Models.RemovedFromProjectIssueEvent? RemovedFromProjectIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.RemovedFromProjectIssueEvent RemovedFromProjectIssueEvent { get; set; } + public global::GitHub.Models.RemovedFromProjectIssueEvent RemovedFromProjectIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.RenamedIssueEvent? RenamedIssueEvent { get; set; } + public global::GitHub.Models.RenamedIssueEvent? RenamedIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.RenamedIssueEvent RenamedIssueEvent { get; set; } + public global::GitHub.Models.RenamedIssueEvent RenamedIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.ReviewDismissedIssueEvent? ReviewDismissedIssueEvent { get; set; } + public global::GitHub.Models.ReviewDismissedIssueEvent? ReviewDismissedIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.ReviewDismissedIssueEvent ReviewDismissedIssueEvent { get; set; } + public global::GitHub.Models.ReviewDismissedIssueEvent ReviewDismissedIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.ReviewRequestedIssueEvent? ReviewRequestedIssueEvent { get; set; } + public global::GitHub.Models.ReviewRequestedIssueEvent? ReviewRequestedIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.ReviewRequestedIssueEvent ReviewRequestedIssueEvent { get; set; } + public global::GitHub.Models.ReviewRequestedIssueEvent ReviewRequestedIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.ReviewRequestRemovedIssueEvent? ReviewRequestRemovedIssueEvent { get; set; } + public global::GitHub.Models.ReviewRequestRemovedIssueEvent? ReviewRequestRemovedIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.ReviewRequestRemovedIssueEvent ReviewRequestRemovedIssueEvent { get; set; } + public global::GitHub.Models.ReviewRequestRemovedIssueEvent ReviewRequestRemovedIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.StateChangeIssueEvent? StateChangeIssueEvent { get; set; } + public global::GitHub.Models.StateChangeIssueEvent? StateChangeIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.StateChangeIssueEvent StateChangeIssueEvent { get; set; } + public global::GitHub.Models.StateChangeIssueEvent StateChangeIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.TimelineAssignedIssueEvent? TimelineAssignedIssueEvent { get; set; } + public global::GitHub.Models.TimelineAssignedIssueEvent? TimelineAssignedIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.TimelineAssignedIssueEvent TimelineAssignedIssueEvent { get; set; } + public global::GitHub.Models.TimelineAssignedIssueEvent TimelineAssignedIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.TimelineCommentEvent? TimelineCommentEvent { get; set; } + public global::GitHub.Models.TimelineCommentEvent? TimelineCommentEvent { get; set; } #nullable restore #else - public GitHub.Models.TimelineCommentEvent TimelineCommentEvent { get; set; } + public global::GitHub.Models.TimelineCommentEvent TimelineCommentEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.TimelineCommitCommentedEvent? TimelineCommitCommentedEvent { get; set; } + public global::GitHub.Models.TimelineCommitCommentedEvent? TimelineCommitCommentedEvent { get; set; } #nullable restore #else - public GitHub.Models.TimelineCommitCommentedEvent TimelineCommitCommentedEvent { get; set; } + public global::GitHub.Models.TimelineCommitCommentedEvent TimelineCommitCommentedEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.TimelineCommittedEvent? TimelineCommittedEvent { get; set; } + public global::GitHub.Models.TimelineCommittedEvent? TimelineCommittedEvent { get; set; } #nullable restore #else - public GitHub.Models.TimelineCommittedEvent TimelineCommittedEvent { get; set; } + public global::GitHub.Models.TimelineCommittedEvent TimelineCommittedEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.TimelineCrossReferencedEvent? TimelineCrossReferencedEvent { get; set; } + public global::GitHub.Models.TimelineCrossReferencedEvent? TimelineCrossReferencedEvent { get; set; } #nullable restore #else - public GitHub.Models.TimelineCrossReferencedEvent TimelineCrossReferencedEvent { get; set; } + public global::GitHub.Models.TimelineCrossReferencedEvent TimelineCrossReferencedEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.TimelineLineCommentedEvent? TimelineLineCommentedEvent { get; set; } + public global::GitHub.Models.TimelineLineCommentedEvent? TimelineLineCommentedEvent { get; set; } #nullable restore #else - public GitHub.Models.TimelineLineCommentedEvent TimelineLineCommentedEvent { get; set; } + public global::GitHub.Models.TimelineLineCommentedEvent TimelineLineCommentedEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.TimelineReviewedEvent? TimelineReviewedEvent { get; set; } + public global::GitHub.Models.TimelineReviewedEvent? TimelineReviewedEvent { get; set; } #nullable restore #else - public GitHub.Models.TimelineReviewedEvent TimelineReviewedEvent { get; set; } + public global::GitHub.Models.TimelineReviewedEvent TimelineReviewedEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.TimelineUnassignedIssueEvent? TimelineUnassignedIssueEvent { get; set; } + public global::GitHub.Models.TimelineUnassignedIssueEvent? TimelineUnassignedIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.TimelineUnassignedIssueEvent TimelineUnassignedIssueEvent { get; set; } + public global::GitHub.Models.TimelineUnassignedIssueEvent TimelineUnassignedIssueEvent { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.UnlabeledIssueEvent? UnlabeledIssueEvent { get; set; } + public global::GitHub.Models.UnlabeledIssueEvent? UnlabeledIssueEvent { get; set; } #nullable restore #else - public GitHub.Models.UnlabeledIssueEvent UnlabeledIssueEvent { get; set; } + public global::GitHub.Models.UnlabeledIssueEvent UnlabeledIssueEvent { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TimelineIssueEvents CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TimelineIssueEvents CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - var result = new TimelineIssueEvents(); - result.AddedToProjectIssueEvent = new GitHub.Models.AddedToProjectIssueEvent(); - result.ConvertedNoteToIssueIssueEvent = new GitHub.Models.ConvertedNoteToIssueIssueEvent(); - result.DemilestonedIssueEvent = new GitHub.Models.DemilestonedIssueEvent(); - result.LabeledIssueEvent = new GitHub.Models.LabeledIssueEvent(); - result.LockedIssueEvent = new GitHub.Models.LockedIssueEvent(); - result.MilestonedIssueEvent = new GitHub.Models.MilestonedIssueEvent(); - result.MovedColumnInProjectIssueEvent = new GitHub.Models.MovedColumnInProjectIssueEvent(); - result.RemovedFromProjectIssueEvent = new GitHub.Models.RemovedFromProjectIssueEvent(); - result.RenamedIssueEvent = new GitHub.Models.RenamedIssueEvent(); - result.ReviewDismissedIssueEvent = new GitHub.Models.ReviewDismissedIssueEvent(); - result.ReviewRequestedIssueEvent = new GitHub.Models.ReviewRequestedIssueEvent(); - result.ReviewRequestRemovedIssueEvent = new GitHub.Models.ReviewRequestRemovedIssueEvent(); - result.StateChangeIssueEvent = new GitHub.Models.StateChangeIssueEvent(); - result.TimelineAssignedIssueEvent = new GitHub.Models.TimelineAssignedIssueEvent(); - result.TimelineCommentEvent = new GitHub.Models.TimelineCommentEvent(); - result.TimelineCommitCommentedEvent = new GitHub.Models.TimelineCommitCommentedEvent(); - result.TimelineCommittedEvent = new GitHub.Models.TimelineCommittedEvent(); - result.TimelineCrossReferencedEvent = new GitHub.Models.TimelineCrossReferencedEvent(); - result.TimelineLineCommentedEvent = new GitHub.Models.TimelineLineCommentedEvent(); - result.TimelineReviewedEvent = new GitHub.Models.TimelineReviewedEvent(); - result.TimelineUnassignedIssueEvent = new GitHub.Models.TimelineUnassignedIssueEvent(); - result.UnlabeledIssueEvent = new GitHub.Models.UnlabeledIssueEvent(); + var result = new global::GitHub.Models.TimelineIssueEvents(); + result.AddedToProjectIssueEvent = new global::GitHub.Models.AddedToProjectIssueEvent(); + result.ConvertedNoteToIssueIssueEvent = new global::GitHub.Models.ConvertedNoteToIssueIssueEvent(); + result.DemilestonedIssueEvent = new global::GitHub.Models.DemilestonedIssueEvent(); + result.LabeledIssueEvent = new global::GitHub.Models.LabeledIssueEvent(); + result.LockedIssueEvent = new global::GitHub.Models.LockedIssueEvent(); + result.MilestonedIssueEvent = new global::GitHub.Models.MilestonedIssueEvent(); + result.MovedColumnInProjectIssueEvent = new global::GitHub.Models.MovedColumnInProjectIssueEvent(); + result.RemovedFromProjectIssueEvent = new global::GitHub.Models.RemovedFromProjectIssueEvent(); + result.RenamedIssueEvent = new global::GitHub.Models.RenamedIssueEvent(); + result.ReviewDismissedIssueEvent = new global::GitHub.Models.ReviewDismissedIssueEvent(); + result.ReviewRequestedIssueEvent = new global::GitHub.Models.ReviewRequestedIssueEvent(); + result.ReviewRequestRemovedIssueEvent = new global::GitHub.Models.ReviewRequestRemovedIssueEvent(); + result.StateChangeIssueEvent = new global::GitHub.Models.StateChangeIssueEvent(); + result.TimelineAssignedIssueEvent = new global::GitHub.Models.TimelineAssignedIssueEvent(); + result.TimelineCommentEvent = new global::GitHub.Models.TimelineCommentEvent(); + result.TimelineCommitCommentedEvent = new global::GitHub.Models.TimelineCommitCommentedEvent(); + result.TimelineCommittedEvent = new global::GitHub.Models.TimelineCommittedEvent(); + result.TimelineCrossReferencedEvent = new global::GitHub.Models.TimelineCrossReferencedEvent(); + result.TimelineLineCommentedEvent = new global::GitHub.Models.TimelineLineCommentedEvent(); + result.TimelineReviewedEvent = new global::GitHub.Models.TimelineReviewedEvent(); + result.TimelineUnassignedIssueEvent = new global::GitHub.Models.TimelineUnassignedIssueEvent(); + result.UnlabeledIssueEvent = new global::GitHub.Models.UnlabeledIssueEvent(); return result; } /// @@ -239,7 +241,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue(null, AddedToProjectIssueEvent, ConvertedNoteToIssueIssueEvent, DemilestonedIssueEvent, LabeledIssueEvent, LockedIssueEvent, MilestonedIssueEvent, MovedColumnInProjectIssueEvent, RemovedFromProjectIssueEvent, RenamedIssueEvent, ReviewDismissedIssueEvent, ReviewRequestedIssueEvent, ReviewRequestRemovedIssueEvent, StateChangeIssueEvent, TimelineAssignedIssueEvent, TimelineCommentEvent, TimelineCommitCommentedEvent, TimelineCommittedEvent, TimelineCrossReferencedEvent, TimelineLineCommentedEvent, TimelineReviewedEvent, TimelineUnassignedIssueEvent, UnlabeledIssueEvent); + writer.WriteObjectValue(null, AddedToProjectIssueEvent, ConvertedNoteToIssueIssueEvent, DemilestonedIssueEvent, LabeledIssueEvent, LockedIssueEvent, MilestonedIssueEvent, MovedColumnInProjectIssueEvent, RemovedFromProjectIssueEvent, RenamedIssueEvent, ReviewDismissedIssueEvent, ReviewRequestedIssueEvent, ReviewRequestRemovedIssueEvent, StateChangeIssueEvent, TimelineAssignedIssueEvent, TimelineCommentEvent, TimelineCommitCommentedEvent, TimelineCommittedEvent, TimelineCrossReferencedEvent, TimelineLineCommentedEvent, TimelineReviewedEvent, TimelineUnassignedIssueEvent, UnlabeledIssueEvent); } } } diff --git a/src/GitHub/Models/TimelineLineCommentedEvent.cs b/src/GitHub/Models/TimelineLineCommentedEvent.cs index 4ac8e50a..3a962130 100644 --- a/src/GitHub/Models/TimelineLineCommentedEvent.cs +++ b/src/GitHub/Models/TimelineLineCommentedEvent.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Timeline Line Commented Event /// - public class TimelineLineCommentedEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TimelineLineCommentedEvent : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The comments property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Comments { get; set; } + public List? Comments { get; set; } #nullable restore #else - public List Comments { get; set; } + public List Comments { get; set; } #endif /// The event property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -37,7 +39,7 @@ public class TimelineLineCommentedEvent : IAdditionalDataHolder, IParsable public string NodeId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TimelineLineCommentedEvent() { @@ -46,12 +48,12 @@ public TimelineLineCommentedEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TimelineLineCommentedEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TimelineLineCommentedEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TimelineLineCommentedEvent(); + return new global::GitHub.Models.TimelineLineCommentedEvent(); } /// /// The deserialization information for the current model @@ -61,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"comments", n => { Comments = n.GetCollectionOfObjectValues(PullRequestReviewComment.CreateFromDiscriminatorValue)?.ToList(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, + { "comments", n => { Comments = n.GetCollectionOfObjectValues(global::GitHub.Models.PullRequestReviewComment.CreateFromDiscriminatorValue)?.AsList(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, }; } /// @@ -73,7 +75,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("comments", Comments); + writer.WriteCollectionOfObjectValues("comments", Comments); writer.WriteStringValue("event", Event); writer.WriteStringValue("node_id", NodeId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/TimelineReviewedEvent.cs b/src/GitHub/Models/TimelineReviewedEvent.cs index 34fe47c5..7bc687ac 100644 --- a/src/GitHub/Models/TimelineReviewedEvent.cs +++ b/src/GitHub/Models/TimelineReviewedEvent.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Timeline Reviewed Event /// - public class TimelineReviewedEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TimelineReviewedEvent : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// How the author is associated with the repository. - public GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } + public global::GitHub.Models.AuthorAssociation? AuthorAssociation { get; set; } /// The text of the review. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -67,10 +69,10 @@ public class TimelineReviewedEvent : IAdditionalDataHolder, IParsable /// The _links property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimelineReviewedEvent__links? Links { get; set; } + public global::GitHub.Models.TimelineReviewedEvent__links? Links { get; set; } #nullable restore #else - public TimelineReviewedEvent__links Links { get; set; } + public global::GitHub.Models.TimelineReviewedEvent__links Links { get; set; } #endif /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -101,13 +103,13 @@ public class TimelineReviewedEvent : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? User { get; set; } + public global::GitHub.Models.SimpleUser? User { get; set; } #nullable restore #else - public SimpleUser User { get; set; } + public global::GitHub.Models.SimpleUser User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TimelineReviewedEvent() { @@ -116,12 +118,12 @@ public TimelineReviewedEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TimelineReviewedEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TimelineReviewedEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TimelineReviewedEvent(); + return new global::GitHub.Models.TimelineReviewedEvent(); } /// /// The deserialization information for the current model @@ -131,20 +133,20 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, - {"body", n => { Body = n.GetStringValue(); } }, - {"body_html", n => { BodyHtml = n.GetStringValue(); } }, - {"body_text", n => { BodyText = n.GetStringValue(); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"_links", n => { Links = n.GetObjectValue(TimelineReviewedEvent__links.CreateFromDiscriminatorValue); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"pull_request_url", n => { PullRequestUrl = n.GetStringValue(); } }, - {"state", n => { State = n.GetStringValue(); } }, - {"submitted_at", n => { SubmittedAt = n.GetDateTimeOffsetValue(); } }, - {"user", n => { User = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, + { "author_association", n => { AuthorAssociation = n.GetEnumValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "body_html", n => { BodyHtml = n.GetStringValue(); } }, + { "body_text", n => { BodyText = n.GetStringValue(); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "_links", n => { Links = n.GetObjectValue(global::GitHub.Models.TimelineReviewedEvent__links.CreateFromDiscriminatorValue); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "pull_request_url", n => { PullRequestUrl = n.GetStringValue(); } }, + { "state", n => { State = n.GetStringValue(); } }, + { "submitted_at", n => { SubmittedAt = n.GetDateTimeOffsetValue(); } }, + { "user", n => { User = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, }; } /// @@ -154,7 +156,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("author_association", AuthorAssociation); + writer.WriteEnumValue("author_association", AuthorAssociation); writer.WriteStringValue("body", Body); writer.WriteStringValue("body_html", BodyHtml); writer.WriteStringValue("body_text", BodyText); @@ -162,12 +164,12 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("event", Event); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteIntValue("id", Id); - writer.WriteObjectValue("_links", Links); + writer.WriteObjectValue("_links", Links); writer.WriteStringValue("node_id", NodeId); writer.WriteStringValue("pull_request_url", PullRequestUrl); writer.WriteStringValue("state", State); writer.WriteDateTimeOffsetValue("submitted_at", SubmittedAt); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/TimelineReviewedEvent__links.cs b/src/GitHub/Models/TimelineReviewedEvent__links.cs index ce758f33..087f4356 100644 --- a/src/GitHub/Models/TimelineReviewedEvent__links.cs +++ b/src/GitHub/Models/TimelineReviewedEvent__links.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TimelineReviewedEvent__links : IAdditionalDataHolder, IParsable + public partial class TimelineReviewedEvent__links : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,21 +16,21 @@ public class TimelineReviewedEvent__links : IAdditionalDataHolder, IParsable /// The html property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimelineReviewedEvent__links_html? Html { get; set; } + public global::GitHub.Models.TimelineReviewedEvent__links_html? Html { get; set; } #nullable restore #else - public TimelineReviewedEvent__links_html Html { get; set; } + public global::GitHub.Models.TimelineReviewedEvent__links_html Html { get; set; } #endif /// The pull_request property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimelineReviewedEvent__links_pull_request? PullRequest { get; set; } + public global::GitHub.Models.TimelineReviewedEvent__links_pull_request? PullRequest { get; set; } #nullable restore #else - public TimelineReviewedEvent__links_pull_request PullRequest { get; set; } + public global::GitHub.Models.TimelineReviewedEvent__links_pull_request PullRequest { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TimelineReviewedEvent__links() { @@ -37,12 +39,12 @@ public TimelineReviewedEvent__links() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TimelineReviewedEvent__links CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TimelineReviewedEvent__links CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TimelineReviewedEvent__links(); + return new global::GitHub.Models.TimelineReviewedEvent__links(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"html", n => { Html = n.GetObjectValue(TimelineReviewedEvent__links_html.CreateFromDiscriminatorValue); } }, - {"pull_request", n => { PullRequest = n.GetObjectValue(TimelineReviewedEvent__links_pull_request.CreateFromDiscriminatorValue); } }, + { "html", n => { Html = n.GetObjectValue(global::GitHub.Models.TimelineReviewedEvent__links_html.CreateFromDiscriminatorValue); } }, + { "pull_request", n => { PullRequest = n.GetObjectValue(global::GitHub.Models.TimelineReviewedEvent__links_pull_request.CreateFromDiscriminatorValue); } }, }; } /// @@ -63,8 +65,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("html", Html); - writer.WriteObjectValue("pull_request", PullRequest); + writer.WriteObjectValue("html", Html); + writer.WriteObjectValue("pull_request", PullRequest); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/TimelineReviewedEvent__links_html.cs b/src/GitHub/Models/TimelineReviewedEvent__links_html.cs index c360730c..faadcfa5 100644 --- a/src/GitHub/Models/TimelineReviewedEvent__links_html.cs +++ b/src/GitHub/Models/TimelineReviewedEvent__links_html.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TimelineReviewedEvent__links_html : IAdditionalDataHolder, IParsable + public partial class TimelineReviewedEvent__links_html : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class TimelineReviewedEvent__links_html : IAdditionalDataHolder, IParsabl public string Href { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TimelineReviewedEvent__links_html() { @@ -29,12 +31,12 @@ public TimelineReviewedEvent__links_html() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TimelineReviewedEvent__links_html CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TimelineReviewedEvent__links_html CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TimelineReviewedEvent__links_html(); + return new global::GitHub.Models.TimelineReviewedEvent__links_html(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"href", n => { Href = n.GetStringValue(); } }, + { "href", n => { Href = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/TimelineReviewedEvent__links_pull_request.cs b/src/GitHub/Models/TimelineReviewedEvent__links_pull_request.cs index 89ce51c4..af75675a 100644 --- a/src/GitHub/Models/TimelineReviewedEvent__links_pull_request.cs +++ b/src/GitHub/Models/TimelineReviewedEvent__links_pull_request.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TimelineReviewedEvent__links_pull_request : IAdditionalDataHolder, IParsable + public partial class TimelineReviewedEvent__links_pull_request : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class TimelineReviewedEvent__links_pull_request : IAdditionalDataHolder, public string Href { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TimelineReviewedEvent__links_pull_request() { @@ -29,12 +31,12 @@ public TimelineReviewedEvent__links_pull_request() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TimelineReviewedEvent__links_pull_request CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TimelineReviewedEvent__links_pull_request CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TimelineReviewedEvent__links_pull_request(); + return new global::GitHub.Models.TimelineReviewedEvent__links_pull_request(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"href", n => { Href = n.GetStringValue(); } }, + { "href", n => { Href = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/TimelineUnassignedIssueEvent.cs b/src/GitHub/Models/TimelineUnassignedIssueEvent.cs index 08ba78a9..81f647fd 100644 --- a/src/GitHub/Models/TimelineUnassignedIssueEvent.cs +++ b/src/GitHub/Models/TimelineUnassignedIssueEvent.cs @@ -1,32 +1,34 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Timeline Unassigned Issue Event /// - public class TimelineUnassignedIssueEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TimelineUnassignedIssueEvent : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Assignee { get; set; } + public global::GitHub.Models.SimpleUser? Assignee { get; set; } #nullable restore #else - public SimpleUser Assignee { get; set; } + public global::GitHub.Models.SimpleUser Assignee { get; set; } #endif /// The commit_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,10 +75,10 @@ public class TimelineUnassignedIssueEvent : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +89,7 @@ public class TimelineUnassignedIssueEvent : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TimelineUnassignedIssueEvent() { @@ -96,12 +98,12 @@ public TimelineUnassignedIssueEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TimelineUnassignedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TimelineUnassignedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TimelineUnassignedIssueEvent(); + return new global::GitHub.Models.TimelineUnassignedIssueEvent(); } /// /// The deserialization information for the current model @@ -111,16 +113,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"assignee", n => { Assignee = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "assignee", n => { Assignee = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -130,15 +132,15 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); - writer.WriteObjectValue("assignee", Assignee); + writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("assignee", Assignee); writer.WriteStringValue("commit_id", CommitId); writer.WriteStringValue("commit_url", CommitUrl); writer.WriteStringValue("created_at", CreatedAt); writer.WriteStringValue("event", Event); writer.WriteIntValue("id", Id); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/Topic.cs b/src/GitHub/Models/Topic.cs index 63a47b73..75166a56 100644 --- a/src/GitHub/Models/Topic.cs +++ b/src/GitHub/Models/Topic.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A topic aggregates entities that are related to a subject. /// - public class Topic : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Topic : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -21,7 +23,7 @@ public class Topic : IAdditionalDataHolder, IParsable public List Names { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Topic() { @@ -30,12 +32,12 @@ public Topic() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Topic CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Topic CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Topic(); + return new global::GitHub.Models.Topic(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"names", n => { Names = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "names", n => { Names = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Models/TopicSearchResultItem.cs b/src/GitHub/Models/TopicSearchResultItem.cs index d44f7490..5bb1817d 100644 --- a/src/GitHub/Models/TopicSearchResultItem.cs +++ b/src/GitHub/Models/TopicSearchResultItem.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Topic Search Result Item /// - public class TopicSearchResultItem : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TopicSearchResultItem : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The aliases property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Aliases { get; set; } + public List? Aliases { get; set; } #nullable restore #else - public List Aliases { get; set; } + public List Aliases { get; set; } #endif /// The created_at property public DateTimeOffset? CreatedAt { get; set; } @@ -69,10 +71,10 @@ public class TopicSearchResultItem : IAdditionalDataHolder, IParsable /// The related property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Related { get; set; } + public List? Related { get; set; } #nullable restore #else - public List Related { get; set; } + public List Related { get; set; } #endif /// The released property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,15 +99,15 @@ public class TopicSearchResultItem : IAdditionalDataHolder, IParsable /// The text_matches property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? TextMatches { get; set; } + public List? TextMatches { get; set; } #nullable restore #else - public List TextMatches { get; set; } + public List TextMatches { get; set; } #endif /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TopicSearchResultItem() { @@ -114,12 +116,12 @@ public TopicSearchResultItem() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TopicSearchResultItem CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TopicSearchResultItem CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TopicSearchResultItem(); + return new global::GitHub.Models.TopicSearchResultItem(); } /// /// The deserialization information for the current model @@ -129,22 +131,22 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"aliases", n => { Aliases = n.GetCollectionOfObjectValues(TopicSearchResultItem_aliases.CreateFromDiscriminatorValue)?.ToList(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"created_by", n => { CreatedBy = n.GetStringValue(); } }, - {"curated", n => { Curated = n.GetBoolValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"display_name", n => { DisplayName = n.GetStringValue(); } }, - {"featured", n => { Featured = n.GetBoolValue(); } }, - {"logo_url", n => { LogoUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"related", n => { Related = n.GetCollectionOfObjectValues(TopicSearchResultItem_related.CreateFromDiscriminatorValue)?.ToList(); } }, - {"released", n => { Released = n.GetStringValue(); } }, - {"repository_count", n => { RepositoryCount = n.GetIntValue(); } }, - {"score", n => { Score = n.GetDoubleValue(); } }, - {"short_description", n => { ShortDescription = n.GetStringValue(); } }, - {"text_matches", n => { TextMatches = n.GetCollectionOfObjectValues(Topics.CreateFromDiscriminatorValue)?.ToList(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "aliases", n => { Aliases = n.GetCollectionOfObjectValues(global::GitHub.Models.TopicSearchResultItem_aliases.CreateFromDiscriminatorValue)?.AsList(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "created_by", n => { CreatedBy = n.GetStringValue(); } }, + { "curated", n => { Curated = n.GetBoolValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "display_name", n => { DisplayName = n.GetStringValue(); } }, + { "featured", n => { Featured = n.GetBoolValue(); } }, + { "logo_url", n => { LogoUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "related", n => { Related = n.GetCollectionOfObjectValues(global::GitHub.Models.TopicSearchResultItem_related.CreateFromDiscriminatorValue)?.AsList(); } }, + { "released", n => { Released = n.GetStringValue(); } }, + { "repository_count", n => { RepositoryCount = n.GetIntValue(); } }, + { "score", n => { Score = n.GetDoubleValue(); } }, + { "short_description", n => { ShortDescription = n.GetStringValue(); } }, + { "text_matches", n => { TextMatches = n.GetCollectionOfObjectValues(global::GitHub.Models.Topics.CreateFromDiscriminatorValue)?.AsList(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, }; } /// @@ -154,7 +156,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("aliases", Aliases); + writer.WriteCollectionOfObjectValues("aliases", Aliases); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteStringValue("created_by", CreatedBy); writer.WriteBoolValue("curated", Curated); @@ -163,12 +165,12 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("featured", Featured); writer.WriteStringValue("logo_url", LogoUrl); writer.WriteStringValue("name", Name); - writer.WriteCollectionOfObjectValues("related", Related); + writer.WriteCollectionOfObjectValues("related", Related); writer.WriteStringValue("released", Released); writer.WriteIntValue("repository_count", RepositoryCount); writer.WriteDoubleValue("score", Score); writer.WriteStringValue("short_description", ShortDescription); - writer.WriteCollectionOfObjectValues("text_matches", TextMatches); + writer.WriteCollectionOfObjectValues("text_matches", TextMatches); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/TopicSearchResultItem_aliases.cs b/src/GitHub/Models/TopicSearchResultItem_aliases.cs index 142fb441..d04f4a0d 100644 --- a/src/GitHub/Models/TopicSearchResultItem_aliases.cs +++ b/src/GitHub/Models/TopicSearchResultItem_aliases.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TopicSearchResultItem_aliases : IAdditionalDataHolder, IParsable + public partial class TopicSearchResultItem_aliases : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,13 +16,13 @@ public class TopicSearchResultItem_aliases : IAdditionalDataHolder, IParsable /// The topic_relation property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TopicSearchResultItem_aliases_topic_relation? TopicRelation { get; set; } + public global::GitHub.Models.TopicSearchResultItem_aliases_topic_relation? TopicRelation { get; set; } #nullable restore #else - public TopicSearchResultItem_aliases_topic_relation TopicRelation { get; set; } + public global::GitHub.Models.TopicSearchResultItem_aliases_topic_relation TopicRelation { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TopicSearchResultItem_aliases() { @@ -29,12 +31,12 @@ public TopicSearchResultItem_aliases() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TopicSearchResultItem_aliases CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TopicSearchResultItem_aliases CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TopicSearchResultItem_aliases(); + return new global::GitHub.Models.TopicSearchResultItem_aliases(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"topic_relation", n => { TopicRelation = n.GetObjectValue(TopicSearchResultItem_aliases_topic_relation.CreateFromDiscriminatorValue); } }, + { "topic_relation", n => { TopicRelation = n.GetObjectValue(global::GitHub.Models.TopicSearchResultItem_aliases_topic_relation.CreateFromDiscriminatorValue); } }, }; } /// @@ -54,7 +56,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("topic_relation", TopicRelation); + writer.WriteObjectValue("topic_relation", TopicRelation); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/TopicSearchResultItem_aliases_topic_relation.cs b/src/GitHub/Models/TopicSearchResultItem_aliases_topic_relation.cs index 828013e6..ca080857 100644 --- a/src/GitHub/Models/TopicSearchResultItem_aliases_topic_relation.cs +++ b/src/GitHub/Models/TopicSearchResultItem_aliases_topic_relation.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TopicSearchResultItem_aliases_topic_relation : IAdditionalDataHolder, IParsable + public partial class TopicSearchResultItem_aliases_topic_relation : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -32,7 +34,7 @@ public class TopicSearchResultItem_aliases_topic_relation : IAdditionalDataHolde /// The topic_id property public int? TopicId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TopicSearchResultItem_aliases_topic_relation() { @@ -41,12 +43,12 @@ public TopicSearchResultItem_aliases_topic_relation() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TopicSearchResultItem_aliases_topic_relation CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TopicSearchResultItem_aliases_topic_relation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TopicSearchResultItem_aliases_topic_relation(); + return new global::GitHub.Models.TopicSearchResultItem_aliases_topic_relation(); } /// /// The deserialization information for the current model @@ -56,10 +58,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"relation_type", n => { RelationType = n.GetStringValue(); } }, - {"topic_id", n => { TopicId = n.GetIntValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "relation_type", n => { RelationType = n.GetStringValue(); } }, + { "topic_id", n => { TopicId = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/TopicSearchResultItem_related.cs b/src/GitHub/Models/TopicSearchResultItem_related.cs index 08edc911..38afeb32 100644 --- a/src/GitHub/Models/TopicSearchResultItem_related.cs +++ b/src/GitHub/Models/TopicSearchResultItem_related.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TopicSearchResultItem_related : IAdditionalDataHolder, IParsable + public partial class TopicSearchResultItem_related : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,13 +16,13 @@ public class TopicSearchResultItem_related : IAdditionalDataHolder, IParsable /// The topic_relation property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TopicSearchResultItem_related_topic_relation? TopicRelation { get; set; } + public global::GitHub.Models.TopicSearchResultItem_related_topic_relation? TopicRelation { get; set; } #nullable restore #else - public TopicSearchResultItem_related_topic_relation TopicRelation { get; set; } + public global::GitHub.Models.TopicSearchResultItem_related_topic_relation TopicRelation { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TopicSearchResultItem_related() { @@ -29,12 +31,12 @@ public TopicSearchResultItem_related() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TopicSearchResultItem_related CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TopicSearchResultItem_related CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TopicSearchResultItem_related(); + return new global::GitHub.Models.TopicSearchResultItem_related(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"topic_relation", n => { TopicRelation = n.GetObjectValue(TopicSearchResultItem_related_topic_relation.CreateFromDiscriminatorValue); } }, + { "topic_relation", n => { TopicRelation = n.GetObjectValue(global::GitHub.Models.TopicSearchResultItem_related_topic_relation.CreateFromDiscriminatorValue); } }, }; } /// @@ -54,7 +56,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("topic_relation", TopicRelation); + writer.WriteObjectValue("topic_relation", TopicRelation); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/TopicSearchResultItem_related_topic_relation.cs b/src/GitHub/Models/TopicSearchResultItem_related_topic_relation.cs index d1024c45..9b439aa3 100644 --- a/src/GitHub/Models/TopicSearchResultItem_related_topic_relation.cs +++ b/src/GitHub/Models/TopicSearchResultItem_related_topic_relation.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TopicSearchResultItem_related_topic_relation : IAdditionalDataHolder, IParsable + public partial class TopicSearchResultItem_related_topic_relation : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -32,7 +34,7 @@ public class TopicSearchResultItem_related_topic_relation : IAdditionalDataHolde /// The topic_id property public int? TopicId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TopicSearchResultItem_related_topic_relation() { @@ -41,12 +43,12 @@ public TopicSearchResultItem_related_topic_relation() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TopicSearchResultItem_related_topic_relation CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.TopicSearchResultItem_related_topic_relation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TopicSearchResultItem_related_topic_relation(); + return new global::GitHub.Models.TopicSearchResultItem_related_topic_relation(); } /// /// The deserialization information for the current model @@ -56,10 +58,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"relation_type", n => { RelationType = n.GetStringValue(); } }, - {"topic_id", n => { TopicId = n.GetIntValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "relation_type", n => { RelationType = n.GetStringValue(); } }, + { "topic_id", n => { TopicId = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/Topics.cs b/src/GitHub/Models/Topics.cs index dd34d713..bc500cf8 100644 --- a/src/GitHub/Models/Topics.cs +++ b/src/GitHub/Models/Topics.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Topics : IAdditionalDataHolder, IParsable + public partial class Topics : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,10 +24,10 @@ public class Topics : IAdditionalDataHolder, IParsable /// The matches property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Matches { get; set; } + public List? Matches { get; set; } #nullable restore #else - public List Matches { get; set; } + public List Matches { get; set; } #endif /// The object_type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -52,7 +54,7 @@ public class Topics : IAdditionalDataHolder, IParsable public string Property { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Topics() { @@ -61,12 +63,12 @@ public Topics() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Topics CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Topics CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Topics(); + return new global::GitHub.Models.Topics(); } /// /// The deserialization information for the current model @@ -76,11 +78,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"fragment", n => { Fragment = n.GetStringValue(); } }, - {"matches", n => { Matches = n.GetCollectionOfObjectValues(Topics_matches.CreateFromDiscriminatorValue)?.ToList(); } }, - {"object_type", n => { ObjectType = n.GetStringValue(); } }, - {"object_url", n => { ObjectUrl = n.GetStringValue(); } }, - {"property", n => { Property = n.GetStringValue(); } }, + { "fragment", n => { Fragment = n.GetStringValue(); } }, + { "matches", n => { Matches = n.GetCollectionOfObjectValues(global::GitHub.Models.Topics_matches.CreateFromDiscriminatorValue)?.AsList(); } }, + { "object_type", n => { ObjectType = n.GetStringValue(); } }, + { "object_url", n => { ObjectUrl = n.GetStringValue(); } }, + { "property", n => { Property = n.GetStringValue(); } }, }; } /// @@ -91,7 +93,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("fragment", Fragment); - writer.WriteCollectionOfObjectValues("matches", Matches); + writer.WriteCollectionOfObjectValues("matches", Matches); writer.WriteStringValue("object_type", ObjectType); writer.WriteStringValue("object_url", ObjectUrl); writer.WriteStringValue("property", Property); diff --git a/src/GitHub/Models/Topics_matches.cs b/src/GitHub/Models/Topics_matches.cs index 64868bd7..a8bbbe23 100644 --- a/src/GitHub/Models/Topics_matches.cs +++ b/src/GitHub/Models/Topics_matches.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Topics_matches : IAdditionalDataHolder, IParsable + public partial class Topics_matches : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class Topics_matches : IAdditionalDataHolder, IParsable public string Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Topics_matches() { @@ -37,12 +39,12 @@ public Topics_matches() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Topics_matches CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Topics_matches CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Topics_matches(); + return new global::GitHub.Models.Topics_matches(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"indices", n => { Indices = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"text", n => { Text = n.GetStringValue(); } }, + { "indices", n => { Indices = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "text", n => { Text = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Traffic.cs b/src/GitHub/Models/Traffic.cs index 2396ad08..14b02116 100644 --- a/src/GitHub/Models/Traffic.cs +++ b/src/GitHub/Models/Traffic.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Traffic : IAdditionalDataHolder, IParsable + public partial class Traffic : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -18,7 +20,7 @@ public class Traffic : IAdditionalDataHolder, IParsable /// The uniques property public int? Uniques { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Traffic() { @@ -27,12 +29,12 @@ public Traffic() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Traffic CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Traffic CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Traffic(); + return new global::GitHub.Models.Traffic(); } /// /// The deserialization information for the current model @@ -42,9 +44,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"count", n => { Count = n.GetIntValue(); } }, - {"timestamp", n => { Timestamp = n.GetDateTimeOffsetValue(); } }, - {"uniques", n => { Uniques = n.GetIntValue(); } }, + { "count", n => { Count = n.GetIntValue(); } }, + { "timestamp", n => { Timestamp = n.GetDateTimeOffsetValue(); } }, + { "uniques", n => { Uniques = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/UnassignedIssueEvent.cs b/src/GitHub/Models/UnassignedIssueEvent.cs index efb311c5..3424d9b0 100644 --- a/src/GitHub/Models/UnassignedIssueEvent.cs +++ b/src/GitHub/Models/UnassignedIssueEvent.cs @@ -1,40 +1,42 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Unassigned Issue Event /// - public class UnassignedIssueEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UnassignedIssueEvent : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Assignee { get; set; } + public global::GitHub.Models.SimpleUser? Assignee { get; set; } #nullable restore #else - public SimpleUser Assignee { get; set; } + public global::GitHub.Models.SimpleUser Assignee { get; set; } #endif /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Assigner { get; set; } + public global::GitHub.Models.SimpleUser? Assigner { get; set; } #nullable restore #else - public SimpleUser Assigner { get; set; } + public global::GitHub.Models.SimpleUser Assigner { get; set; } #endif /// The commit_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,10 +83,10 @@ public class UnassignedIssueEvent : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +97,7 @@ public class UnassignedIssueEvent : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UnassignedIssueEvent() { @@ -104,12 +106,12 @@ public UnassignedIssueEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UnassignedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.UnassignedIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UnassignedIssueEvent(); + return new global::GitHub.Models.UnassignedIssueEvent(); } /// /// The deserialization information for the current model @@ -119,17 +121,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"assignee", n => { Assignee = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"assigner", n => { Assigner = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "assignee", n => { Assignee = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "assigner", n => { Assigner = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -139,16 +141,16 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); - writer.WriteObjectValue("assignee", Assignee); - writer.WriteObjectValue("assigner", Assigner); + writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("assignee", Assignee); + writer.WriteObjectValue("assigner", Assigner); writer.WriteStringValue("commit_id", CommitId); writer.WriteStringValue("commit_url", CommitUrl); writer.WriteStringValue("created_at", CreatedAt); writer.WriteStringValue("event", Event); writer.WriteIntValue("id", Id); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/UnlabeledIssueEvent.cs b/src/GitHub/Models/UnlabeledIssueEvent.cs index 3452fe0e..23c9450c 100644 --- a/src/GitHub/Models/UnlabeledIssueEvent.cs +++ b/src/GitHub/Models/UnlabeledIssueEvent.cs @@ -1,22 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Unlabeled Issue Event /// - public class UnlabeledIssueEvent : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UnlabeledIssueEvent : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -57,10 +59,10 @@ public class UnlabeledIssueEvent : IAdditionalDataHolder, IParsable /// The label property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public UnlabeledIssueEvent_label? Label { get; set; } + public global::GitHub.Models.UnlabeledIssueEvent_label? Label { get; set; } #nullable restore #else - public UnlabeledIssueEvent_label Label { get; set; } + public global::GitHub.Models.UnlabeledIssueEvent_label Label { get; set; } #endif /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,10 +75,10 @@ public class UnlabeledIssueEvent : IAdditionalDataHolder, IParsable /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableIntegration? PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration? PerformedViaGithubApp { get; set; } #nullable restore #else - public NullableIntegration PerformedViaGithubApp { get; set; } + public global::GitHub.Models.NullableIntegration PerformedViaGithubApp { get; set; } #endif /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +89,7 @@ public class UnlabeledIssueEvent : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UnlabeledIssueEvent() { @@ -96,12 +98,12 @@ public UnlabeledIssueEvent() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UnlabeledIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.UnlabeledIssueEvent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UnlabeledIssueEvent(); + return new global::GitHub.Models.UnlabeledIssueEvent(); } /// /// The deserialization information for the current model @@ -111,16 +113,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"commit_id", n => { CommitId = n.GetStringValue(); } }, - {"commit_url", n => { CommitUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"label", n => { Label = n.GetObjectValue(UnlabeledIssueEvent_label.CreateFromDiscriminatorValue); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(NullableIntegration.CreateFromDiscriminatorValue); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "commit_id", n => { CommitId = n.GetStringValue(); } }, + { "commit_url", n => { CommitUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "label", n => { Label = n.GetObjectValue(global::GitHub.Models.UnlabeledIssueEvent_label.CreateFromDiscriminatorValue); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "performed_via_github_app", n => { PerformedViaGithubApp = n.GetObjectValue(global::GitHub.Models.NullableIntegration.CreateFromDiscriminatorValue); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -130,15 +132,15 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("actor", Actor); writer.WriteStringValue("commit_id", CommitId); writer.WriteStringValue("commit_url", CommitUrl); writer.WriteStringValue("created_at", CreatedAt); writer.WriteStringValue("event", Event); writer.WriteIntValue("id", Id); - writer.WriteObjectValue("label", Label); + writer.WriteObjectValue("label", Label); writer.WriteStringValue("node_id", NodeId); - writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); + writer.WriteObjectValue("performed_via_github_app", PerformedViaGithubApp); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/UnlabeledIssueEvent_label.cs b/src/GitHub/Models/UnlabeledIssueEvent_label.cs index dec2d3af..a74075e6 100644 --- a/src/GitHub/Models/UnlabeledIssueEvent_label.cs +++ b/src/GitHub/Models/UnlabeledIssueEvent_label.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class UnlabeledIssueEvent_label : IAdditionalDataHolder, IParsable + public partial class UnlabeledIssueEvent_label : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class UnlabeledIssueEvent_label : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UnlabeledIssueEvent_label() { @@ -37,12 +39,12 @@ public UnlabeledIssueEvent_label() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UnlabeledIssueEvent_label CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.UnlabeledIssueEvent_label CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UnlabeledIssueEvent_label(); + return new global::GitHub.Models.UnlabeledIssueEvent_label(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"color", n => { Color = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "color", n => { Color = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/User.cs b/src/GitHub/Models/User.cs index 5637c90c..fb836ebb 100644 --- a/src/GitHub/Models/User.cs +++ b/src/GitHub/Models/User.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class User : IAdditionalDataHolder, IParsable + public partial class User : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Whether the user active in the IdP. @@ -24,10 +26,10 @@ public class User : IAdditionalDataHolder, IParsable /// The emails for the user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Emails { get; set; } + public List? Emails { get; set; } #nullable restore #else - public List Emails { get; set; } + public List Emails { get; set; } #endif /// A unique identifier for the resource as defined by the provisioning client. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -40,26 +42,26 @@ public class User : IAdditionalDataHolder, IParsable /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.UserName? Name { get; set; } + public global::GitHub.Models.UserName? Name { get; set; } #nullable restore #else - public GitHub.Models.UserName Name { get; set; } + public global::GitHub.Models.UserName Name { get; set; } #endif /// The roles assigned to the user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Roles { get; set; } + public List? Roles { get; set; } #nullable restore #else - public List Roles { get; set; } + public List Roles { get; set; } #endif /// The URIs that are used to indicate the namespaces of the SCIM schemas. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Schemas { get; set; } + public List? Schemas { get; set; } #nullable restore #else - public List Schemas { get; set; } + public List Schemas { get; set; } #endif /// The username for the user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -70,7 +72,7 @@ public class User : IAdditionalDataHolder, IParsable public string UserName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public User() { @@ -79,12 +81,12 @@ public User() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static User CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.User CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new User(); + return new global::GitHub.Models.User(); } /// /// The deserialization information for the current model @@ -94,14 +96,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"active", n => { Active = n.GetBoolValue(); } }, - {"displayName", n => { DisplayName = n.GetStringValue(); } }, - {"emails", n => { Emails = n.GetCollectionOfObjectValues(Users.CreateFromDiscriminatorValue)?.ToList(); } }, - {"externalId", n => { ExternalId = n.GetStringValue(); } }, - {"name", n => { Name = n.GetObjectValue(GitHub.Models.UserName.CreateFromDiscriminatorValue); } }, - {"roles", n => { Roles = n.GetCollectionOfObjectValues(Users.CreateFromDiscriminatorValue)?.ToList(); } }, - {"schemas", n => { Schemas = n.GetCollectionOfEnumValues()?.ToList(); } }, - {"userName", n => { UserName = n.GetStringValue(); } }, + { "active", n => { Active = n.GetBoolValue(); } }, + { "displayName", n => { DisplayName = n.GetStringValue(); } }, + { "emails", n => { Emails = n.GetCollectionOfObjectValues(global::GitHub.Models.Users.CreateFromDiscriminatorValue)?.AsList(); } }, + { "externalId", n => { ExternalId = n.GetStringValue(); } }, + { "name", n => { Name = n.GetObjectValue(global::GitHub.Models.UserName.CreateFromDiscriminatorValue); } }, + { "roles", n => { Roles = n.GetCollectionOfObjectValues(global::GitHub.Models.Users.CreateFromDiscriminatorValue)?.AsList(); } }, + { "schemas", n => { Schemas = n.GetCollectionOfEnumValues()?.AsList(); } }, + { "userName", n => { UserName = n.GetStringValue(); } }, }; } /// @@ -113,11 +115,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("active", Active); writer.WriteStringValue("displayName", DisplayName); - writer.WriteCollectionOfObjectValues("emails", Emails); + writer.WriteCollectionOfObjectValues("emails", Emails); writer.WriteStringValue("externalId", ExternalId); - writer.WriteObjectValue("name", Name); - writer.WriteCollectionOfObjectValues("roles", Roles); - writer.WriteCollectionOfEnumValues("schemas", Schemas); + writer.WriteObjectValue("name", Name); + writer.WriteCollectionOfObjectValues("roles", Roles); + writer.WriteCollectionOfEnumValues("schemas", Schemas); writer.WriteStringValue("userName", UserName); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/UserMarketplacePurchase.cs b/src/GitHub/Models/UserMarketplacePurchase.cs index 8795fca6..a9659fda 100644 --- a/src/GitHub/Models/UserMarketplacePurchase.cs +++ b/src/GitHub/Models/UserMarketplacePurchase.cs @@ -1,22 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// User Marketplace Purchase /// - public class UserMarketplacePurchase : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UserMarketplacePurchase : IAdditionalDataHolder, IParsable { /// The account property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MarketplaceAccount? Account { get; set; } + public global::GitHub.Models.MarketplaceAccount? Account { get; set; } #nullable restore #else - public MarketplaceAccount Account { get; set; } + public global::GitHub.Models.MarketplaceAccount Account { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -37,17 +39,17 @@ public class UserMarketplacePurchase : IAdditionalDataHolder, IParsable /// Marketplace Listing Plan #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MarketplaceListingPlan? Plan { get; set; } + public global::GitHub.Models.MarketplaceListingPlan? Plan { get; set; } #nullable restore #else - public MarketplaceListingPlan Plan { get; set; } + public global::GitHub.Models.MarketplaceListingPlan Plan { get; set; } #endif /// The unit_count property public int? UnitCount { get; set; } /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UserMarketplacePurchase() { @@ -56,12 +58,12 @@ public UserMarketplacePurchase() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserMarketplacePurchase CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.UserMarketplacePurchase CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserMarketplacePurchase(); + return new global::GitHub.Models.UserMarketplacePurchase(); } /// /// The deserialization information for the current model @@ -71,14 +73,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"account", n => { Account = n.GetObjectValue(MarketplaceAccount.CreateFromDiscriminatorValue); } }, - {"billing_cycle", n => { BillingCycle = n.GetStringValue(); } }, - {"free_trial_ends_on", n => { FreeTrialEndsOn = n.GetDateTimeOffsetValue(); } }, - {"next_billing_date", n => { NextBillingDate = n.GetDateTimeOffsetValue(); } }, - {"on_free_trial", n => { OnFreeTrial = n.GetBoolValue(); } }, - {"plan", n => { Plan = n.GetObjectValue(MarketplaceListingPlan.CreateFromDiscriminatorValue); } }, - {"unit_count", n => { UnitCount = n.GetIntValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "account", n => { Account = n.GetObjectValue(global::GitHub.Models.MarketplaceAccount.CreateFromDiscriminatorValue); } }, + { "billing_cycle", n => { BillingCycle = n.GetStringValue(); } }, + { "free_trial_ends_on", n => { FreeTrialEndsOn = n.GetDateTimeOffsetValue(); } }, + { "next_billing_date", n => { NextBillingDate = n.GetDateTimeOffsetValue(); } }, + { "on_free_trial", n => { OnFreeTrial = n.GetBoolValue(); } }, + { "plan", n => { Plan = n.GetObjectValue(global::GitHub.Models.MarketplaceListingPlan.CreateFromDiscriminatorValue); } }, + { "unit_count", n => { UnitCount = n.GetIntValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, }; } /// @@ -88,12 +90,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("account", Account); + writer.WriteObjectValue("account", Account); writer.WriteStringValue("billing_cycle", BillingCycle); writer.WriteDateTimeOffsetValue("free_trial_ends_on", FreeTrialEndsOn); writer.WriteDateTimeOffsetValue("next_billing_date", NextBillingDate); writer.WriteBoolValue("on_free_trial", OnFreeTrial); - writer.WriteObjectValue("plan", Plan); + writer.WriteObjectValue("plan", Plan); writer.WriteIntValue("unit_count", UnitCount); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/UserName.cs b/src/GitHub/Models/UserName.cs index ed67f90c..1cdee634 100644 --- a/src/GitHub/Models/UserName.cs +++ b/src/GitHub/Models/UserName.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class UserName : IAdditionalDataHolder, IParsable + public partial class UserName : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -44,7 +46,7 @@ public class UserName : IAdditionalDataHolder, IParsable public string MiddleName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UserName() { @@ -53,12 +55,12 @@ public UserName() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserName CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.UserName CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserName(); + return new global::GitHub.Models.UserName(); } /// /// The deserialization information for the current model @@ -68,10 +70,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"familyName", n => { FamilyName = n.GetStringValue(); } }, - {"formatted", n => { Formatted = n.GetStringValue(); } }, - {"givenName", n => { GivenName = n.GetStringValue(); } }, - {"middleName", n => { MiddleName = n.GetStringValue(); } }, + { "familyName", n => { FamilyName = n.GetStringValue(); } }, + { "formatted", n => { Formatted = n.GetStringValue(); } }, + { "givenName", n => { GivenName = n.GetStringValue(); } }, + { "middleName", n => { MiddleName = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/UserNameResponse.cs b/src/GitHub/Models/UserNameResponse.cs index 6274821d..444b7d19 100644 --- a/src/GitHub/Models/UserNameResponse.cs +++ b/src/GitHub/Models/UserNameResponse.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class UserNameResponse : IAdditionalDataHolder, IParsable + public partial class UserNameResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -44,7 +46,7 @@ public class UserNameResponse : IAdditionalDataHolder, IParsable public string MiddleName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UserNameResponse() { @@ -53,12 +55,12 @@ public UserNameResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.UserNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserNameResponse(); + return new global::GitHub.Models.UserNameResponse(); } /// /// The deserialization information for the current model @@ -68,10 +70,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"familyName", n => { FamilyName = n.GetStringValue(); } }, - {"formatted", n => { Formatted = n.GetStringValue(); } }, - {"givenName", n => { GivenName = n.GetStringValue(); } }, - {"middleName", n => { MiddleName = n.GetStringValue(); } }, + { "familyName", n => { FamilyName = n.GetStringValue(); } }, + { "formatted", n => { Formatted = n.GetStringValue(); } }, + { "givenName", n => { GivenName = n.GetStringValue(); } }, + { "middleName", n => { MiddleName = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/UserResponse.cs b/src/GitHub/Models/UserResponse.cs index 70493190..7dfd74c5 100644 --- a/src/GitHub/Models/UserResponse.cs +++ b/src/GitHub/Models/UserResponse.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class UserResponse : IAdditionalDataHolder, IParsable + public partial class UserResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Whether the user active in the IdP. @@ -24,10 +26,10 @@ public class UserResponse : IAdditionalDataHolder, IParsable /// The emails for the user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Emails { get; set; } + public List? Emails { get; set; } #nullable restore #else - public List Emails { get; set; } + public List Emails { get; set; } #endif /// A unique identifier for the resource as defined by the provisioning client. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -40,26 +42,26 @@ public class UserResponse : IAdditionalDataHolder, IParsable /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public UserNameResponse? Name { get; set; } + public global::GitHub.Models.UserNameResponse? Name { get; set; } #nullable restore #else - public UserNameResponse Name { get; set; } + public global::GitHub.Models.UserNameResponse Name { get; set; } #endif /// The roles assigned to the user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Roles { get; set; } + public List? Roles { get; set; } #nullable restore #else - public List Roles { get; set; } + public List Roles { get; set; } #endif /// The URIs that are used to indicate the namespaces of the SCIM schemas. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Schemas { get; set; } + public List? Schemas { get; set; } #nullable restore #else - public List Schemas { get; set; } + public List Schemas { get; set; } #endif /// The username for the user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -70,7 +72,7 @@ public class UserResponse : IAdditionalDataHolder, IParsable public string UserName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UserResponse() { @@ -79,12 +81,12 @@ public UserResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.UserResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserResponse(); + return new global::GitHub.Models.UserResponse(); } /// /// The deserialization information for the current model @@ -94,14 +96,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"active", n => { Active = n.GetBoolValue(); } }, - {"displayName", n => { DisplayName = n.GetStringValue(); } }, - {"emails", n => { Emails = n.GetCollectionOfObjectValues(Users.CreateFromDiscriminatorValue)?.ToList(); } }, - {"externalId", n => { ExternalId = n.GetStringValue(); } }, - {"name", n => { Name = n.GetObjectValue(UserNameResponse.CreateFromDiscriminatorValue); } }, - {"roles", n => { Roles = n.GetCollectionOfObjectValues(Users.CreateFromDiscriminatorValue)?.ToList(); } }, - {"schemas", n => { Schemas = n.GetCollectionOfEnumValues()?.ToList(); } }, - {"userName", n => { UserName = n.GetStringValue(); } }, + { "active", n => { Active = n.GetBoolValue(); } }, + { "displayName", n => { DisplayName = n.GetStringValue(); } }, + { "emails", n => { Emails = n.GetCollectionOfObjectValues(global::GitHub.Models.Users.CreateFromDiscriminatorValue)?.AsList(); } }, + { "externalId", n => { ExternalId = n.GetStringValue(); } }, + { "name", n => { Name = n.GetObjectValue(global::GitHub.Models.UserNameResponse.CreateFromDiscriminatorValue); } }, + { "roles", n => { Roles = n.GetCollectionOfObjectValues(global::GitHub.Models.Users.CreateFromDiscriminatorValue)?.AsList(); } }, + { "schemas", n => { Schemas = n.GetCollectionOfEnumValues()?.AsList(); } }, + { "userName", n => { UserName = n.GetStringValue(); } }, }; } /// @@ -113,11 +115,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("active", Active); writer.WriteStringValue("displayName", DisplayName); - writer.WriteCollectionOfObjectValues("emails", Emails); + writer.WriteCollectionOfObjectValues("emails", Emails); writer.WriteStringValue("externalId", ExternalId); - writer.WriteObjectValue("name", Name); - writer.WriteCollectionOfObjectValues("roles", Roles); - writer.WriteCollectionOfEnumValues("schemas", Schemas); + writer.WriteObjectValue("name", Name); + writer.WriteCollectionOfObjectValues("roles", Roles); + writer.WriteCollectionOfEnumValues("schemas", Schemas); writer.WriteStringValue("userName", UserName); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/UserResponse_schemas.cs b/src/GitHub/Models/UserResponse_schemas.cs index c9e3e9f4..93c00593 100644 --- a/src/GitHub/Models/UserResponse_schemas.cs +++ b/src/GitHub/Models/UserResponse_schemas.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum UserResponse_schemas #pragma warning restore CS1591 diff --git a/src/GitHub/Models/UserRoleAssignment.cs b/src/GitHub/Models/UserRoleAssignment.cs index 06c8b801..d28419b2 100644 --- a/src/GitHub/Models/UserRoleAssignment.cs +++ b/src/GitHub/Models/UserRoleAssignment.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The Relationship a User has with a role. /// - public class UserRoleAssignment : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UserRoleAssignment : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -169,7 +171,7 @@ public class UserRoleAssignment : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UserRoleAssignment() { @@ -178,12 +180,12 @@ public UserRoleAssignment() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserRoleAssignment CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.UserRoleAssignment CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserRoleAssignment(); + return new global::GitHub.Models.UserRoleAssignment(); } /// /// The deserialization information for the current model @@ -193,27 +195,27 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"followers_url", n => { FollowersUrl = n.GetStringValue(); } }, - {"following_url", n => { FollowingUrl = n.GetStringValue(); } }, - {"gists_url", n => { GistsUrl = n.GetStringValue(); } }, - {"gravatar_id", n => { GravatarId = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, - {"received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, - {"repos_url", n => { ReposUrl = n.GetStringValue(); } }, - {"site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, - {"starred_at", n => { StarredAt = n.GetStringValue(); } }, - {"starred_url", n => { StarredUrl = n.GetStringValue(); } }, - {"subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "followers_url", n => { FollowersUrl = n.GetStringValue(); } }, + { "following_url", n => { FollowingUrl = n.GetStringValue(); } }, + { "gists_url", n => { GistsUrl = n.GetStringValue(); } }, + { "gravatar_id", n => { GravatarId = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, + { "received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, + { "repos_url", n => { ReposUrl = n.GetStringValue(); } }, + { "site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, + { "starred_at", n => { StarredAt = n.GetStringValue(); } }, + { "starred_url", n => { StarredUrl = n.GetStringValue(); } }, + { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/UserSearchResultItem.cs b/src/GitHub/Models/UserSearchResultItem.cs index d81bdc12..725bacf1 100644 --- a/src/GitHub/Models/UserSearchResultItem.cs +++ b/src/GitHub/Models/UserSearchResultItem.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// User Search Result Item /// - public class UserSearchResultItem : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UserSearchResultItem : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -195,10 +197,10 @@ public class UserSearchResultItem : IAdditionalDataHolder, IParsable /// The text_matches property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? TextMatches { get; set; } + public List? TextMatches { get; set; } #nullable restore #else - public List TextMatches { get; set; } + public List TextMatches { get; set; } #endif /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -219,7 +221,7 @@ public class UserSearchResultItem : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UserSearchResultItem() { @@ -228,12 +230,12 @@ public UserSearchResultItem() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserSearchResultItem CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.UserSearchResultItem CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserSearchResultItem(); + return new global::GitHub.Models.UserSearchResultItem(); } /// /// The deserialization information for the current model @@ -243,40 +245,40 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, - {"bio", n => { Bio = n.GetStringValue(); } }, - {"blog", n => { Blog = n.GetStringValue(); } }, - {"company", n => { Company = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"events_url", n => { EventsUrl = n.GetStringValue(); } }, - {"followers", n => { Followers = n.GetIntValue(); } }, - {"followers_url", n => { FollowersUrl = n.GetStringValue(); } }, - {"following", n => { Following = n.GetIntValue(); } }, - {"following_url", n => { FollowingUrl = n.GetStringValue(); } }, - {"gists_url", n => { GistsUrl = n.GetStringValue(); } }, - {"gravatar_id", n => { GravatarId = n.GetStringValue(); } }, - {"hireable", n => { Hireable = n.GetBoolValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetLongValue(); } }, - {"location", n => { Location = n.GetStringValue(); } }, - {"login", n => { Login = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, - {"public_gists", n => { PublicGists = n.GetIntValue(); } }, - {"public_repos", n => { PublicRepos = n.GetIntValue(); } }, - {"received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, - {"repos_url", n => { ReposUrl = n.GetStringValue(); } }, - {"score", n => { Score = n.GetDoubleValue(); } }, - {"site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, - {"starred_url", n => { StarredUrl = n.GetStringValue(); } }, - {"subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, - {"suspended_at", n => { SuspendedAt = n.GetDateTimeOffsetValue(); } }, - {"text_matches", n => { TextMatches = n.GetCollectionOfObjectValues(Users.CreateFromDiscriminatorValue)?.ToList(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, + { "bio", n => { Bio = n.GetStringValue(); } }, + { "blog", n => { Blog = n.GetStringValue(); } }, + { "company", n => { Company = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "events_url", n => { EventsUrl = n.GetStringValue(); } }, + { "followers", n => { Followers = n.GetIntValue(); } }, + { "followers_url", n => { FollowersUrl = n.GetStringValue(); } }, + { "following", n => { Following = n.GetIntValue(); } }, + { "following_url", n => { FollowingUrl = n.GetStringValue(); } }, + { "gists_url", n => { GistsUrl = n.GetStringValue(); } }, + { "gravatar_id", n => { GravatarId = n.GetStringValue(); } }, + { "hireable", n => { Hireable = n.GetBoolValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetLongValue(); } }, + { "location", n => { Location = n.GetStringValue(); } }, + { "login", n => { Login = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "organizations_url", n => { OrganizationsUrl = n.GetStringValue(); } }, + { "public_gists", n => { PublicGists = n.GetIntValue(); } }, + { "public_repos", n => { PublicRepos = n.GetIntValue(); } }, + { "received_events_url", n => { ReceivedEventsUrl = n.GetStringValue(); } }, + { "repos_url", n => { ReposUrl = n.GetStringValue(); } }, + { "score", n => { Score = n.GetDoubleValue(); } }, + { "site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, + { "starred_url", n => { StarredUrl = n.GetStringValue(); } }, + { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, + { "suspended_at", n => { SuspendedAt = n.GetDateTimeOffsetValue(); } }, + { "text_matches", n => { TextMatches = n.GetCollectionOfObjectValues(global::GitHub.Models.Users.CreateFromDiscriminatorValue)?.AsList(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -316,7 +318,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("starred_url", StarredUrl); writer.WriteStringValue("subscriptions_url", SubscriptionsUrl); writer.WriteDateTimeOffsetValue("suspended_at", SuspendedAt); - writer.WriteCollectionOfObjectValues("text_matches", TextMatches); + writer.WriteCollectionOfObjectValues("text_matches", TextMatches); writer.WriteStringValue("type", Type); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); diff --git a/src/GitHub/Models/User_schemas.cs b/src/GitHub/Models/User_schemas.cs index bc9e7db9..27d02bb4 100644 --- a/src/GitHub/Models/User_schemas.cs +++ b/src/GitHub/Models/User_schemas.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum User_schemas #pragma warning restore CS1591 diff --git a/src/GitHub/Models/Users.cs b/src/GitHub/Models/Users.cs index 837adc14..8ecfed50 100644 --- a/src/GitHub/Models/Users.cs +++ b/src/GitHub/Models/Users.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Users : IAdditionalDataHolder, IParsable + public partial class Users : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,7 +32,7 @@ public class Users : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Users() { @@ -39,12 +41,12 @@ public Users() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Users CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Users CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Users(); + return new global::GitHub.Models.Users(); } /// /// The deserialization information for the current model @@ -54,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"primary", n => { Primary = n.GetBoolValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, + { "primary", n => { Primary = n.GetBoolValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Models/Users503Error.cs b/src/GitHub/Models/Users503Error.cs index 4ce3b507..7d80e89a 100644 --- a/src/GitHub/Models/Users503Error.cs +++ b/src/GitHub/Models/Users503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Users503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class Users503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class Users503Error : ApiException, IAdditionalDataHolder, IParsable #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Users503Error() { @@ -46,12 +42,12 @@ public Users503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Users503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Users503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Users503Error(); + return new global::GitHub.Models.Users503Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/ValidationError.cs b/src/GitHub/Models/ValidationError.cs index 02ed0ad4..11df6593 100644 --- a/src/GitHub/Models/ValidationError.cs +++ b/src/GitHub/Models/ValidationError.cs @@ -1,15 +1,17 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Validation Error /// - public class ValidationError : ApiException, IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ValidationError : ApiException, IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -24,21 +26,15 @@ public class ValidationError : ApiException, IAdditionalDataHolder, IParsable /// The errors property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Errors { get; set; } + public List? Errors { get; set; } #nullable restore #else - public List Errors { get; set; } -#endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } + public List Errors { get; set; } #endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ValidationError() { @@ -47,12 +43,12 @@ public ValidationError() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ValidationError CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ValidationError CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ValidationError(); + return new global::GitHub.Models.ValidationError(); } /// /// The deserialization information for the current model @@ -62,9 +58,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"errors", n => { Errors = n.GetCollectionOfObjectValues(ValidationError_errors.CreateFromDiscriminatorValue)?.ToList(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, + { "errors", n => { Errors = n.GetCollectionOfObjectValues(global::GitHub.Models.ValidationError_errors.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -75,8 +70,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteCollectionOfObjectValues("errors", Errors); - writer.WriteStringValue("message", MessageEscaped); + writer.WriteCollectionOfObjectValues("errors", Errors); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/ValidationErrorSimple.cs b/src/GitHub/Models/ValidationErrorSimple.cs index b573e850..cd1ea647 100644 --- a/src/GitHub/Models/ValidationErrorSimple.cs +++ b/src/GitHub/Models/ValidationErrorSimple.cs @@ -1,15 +1,17 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Validation Error Simple /// - public class ValidationErrorSimple : ApiException, IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ValidationErrorSimple : ApiException, IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,16 +31,10 @@ public class ValidationErrorSimple : ApiException, IAdditionalDataHolder, IParsa #else public List Errors { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ValidationErrorSimple() { @@ -47,12 +43,12 @@ public ValidationErrorSimple() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ValidationErrorSimple CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ValidationErrorSimple CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ValidationErrorSimple(); + return new global::GitHub.Models.ValidationErrorSimple(); } /// /// The deserialization information for the current model @@ -62,9 +58,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"errors", n => { Errors = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, + { "errors", n => { Errors = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -76,7 +71,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("documentation_url", DocumentationUrl); writer.WriteCollectionOfPrimitiveValues("errors", Errors); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/ValidationError_errors.cs b/src/GitHub/Models/ValidationError_errors.cs index 7f6fd4c7..ab90c6d7 100644 --- a/src/GitHub/Models/ValidationError_errors.cs +++ b/src/GitHub/Models/ValidationError_errors.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ValidationError_errors : IAdditionalDataHolder, IParsable + public partial class ValidationError_errors : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -48,13 +50,13 @@ public class ValidationError_errors : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ValidationError_errors_value? Value { get; set; } + public global::GitHub.Models.ValidationError_errors.ValidationError_errors_value? Value { get; set; } #nullable restore #else - public ValidationError_errors_value Value { get; set; } + public global::GitHub.Models.ValidationError_errors.ValidationError_errors_value Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ValidationError_errors() { @@ -63,12 +65,12 @@ public ValidationError_errors() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ValidationError_errors CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ValidationError_errors CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ValidationError_errors(); + return new global::GitHub.Models.ValidationError_errors(); } /// /// The deserialization information for the current model @@ -78,12 +80,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"field", n => { Field = n.GetStringValue(); } }, - {"index", n => { Index = n.GetIntValue(); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"resource", n => { Resource = n.GetStringValue(); } }, - {"value", n => { Value = n.GetObjectValue(ValidationError_errors_value.CreateFromDiscriminatorValue); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "field", n => { Field = n.GetStringValue(); } }, + { "index", n => { Index = n.GetIntValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "resource", n => { Resource = n.GetStringValue(); } }, + { "value", n => { Value = n.GetObjectValue(global::GitHub.Models.ValidationError_errors.ValidationError_errors_value.CreateFromDiscriminatorValue); } }, }; } /// @@ -98,13 +100,14 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("index", Index); writer.WriteStringValue("message", Message); writer.WriteStringValue("resource", Resource); - writer.WriteObjectValue("value", Value); + writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); } /// /// Composed type wrapper for classes , /// - public class ValidationError_errors_value : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ValidationError_errors_value : IComposedTypeWrapper, IParsable { /// Composed type representation for type public int? Integer { get; set; } @@ -119,13 +122,13 @@ public class ValidationError_errors_value : IComposedTypeWrapper, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ValidationError_errors_value CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ValidationError_errors.ValidationError_errors_value CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new ValidationError_errors_value(); + var result = new global::GitHub.Models.ValidationError_errors.ValidationError_errors_value(); if(parseNode.GetIntValue() is int integerValue) { result.Integer = integerValue; diff --git a/src/GitHub/Models/Verification.cs b/src/GitHub/Models/Verification.cs index f93d92b7..0da60792 100644 --- a/src/GitHub/Models/Verification.cs +++ b/src/GitHub/Models/Verification.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Verification : IAdditionalDataHolder, IParsable + public partial class Verification : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -38,7 +40,7 @@ public class Verification : IAdditionalDataHolder, IParsable /// The verified property public bool? Verified { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Verification() { @@ -47,12 +49,12 @@ public Verification() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Verification CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Verification CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Verification(); + return new global::GitHub.Models.Verification(); } /// /// The deserialization information for the current model @@ -62,10 +64,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"payload", n => { Payload = n.GetStringValue(); } }, - {"reason", n => { Reason = n.GetStringValue(); } }, - {"signature", n => { Signature = n.GetStringValue(); } }, - {"verified", n => { Verified = n.GetBoolValue(); } }, + { "payload", n => { Payload = n.GetStringValue(); } }, + { "reason", n => { Reason = n.GetStringValue(); } }, + { "signature", n => { Signature = n.GetStringValue(); } }, + { "verified", n => { Verified = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Models/ViewTraffic.cs b/src/GitHub/Models/ViewTraffic.cs index ce2a78c1..214a007f 100644 --- a/src/GitHub/Models/ViewTraffic.cs +++ b/src/GitHub/Models/ViewTraffic.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// View Traffic /// - public class ViewTraffic : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ViewTraffic : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -19,13 +21,13 @@ public class ViewTraffic : IAdditionalDataHolder, IParsable /// The views property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Views { get; set; } + public List? Views { get; set; } #nullable restore #else - public List Views { get; set; } + public List Views { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ViewTraffic() { @@ -34,12 +36,12 @@ public ViewTraffic() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ViewTraffic CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.ViewTraffic CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ViewTraffic(); + return new global::GitHub.Models.ViewTraffic(); } /// /// The deserialization information for the current model @@ -49,9 +51,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"count", n => { Count = n.GetIntValue(); } }, - {"uniques", n => { Uniques = n.GetIntValue(); } }, - {"views", n => { Views = n.GetCollectionOfObjectValues(Traffic.CreateFromDiscriminatorValue)?.ToList(); } }, + { "count", n => { Count = n.GetIntValue(); } }, + { "uniques", n => { Uniques = n.GetIntValue(); } }, + { "views", n => { Views = n.GetCollectionOfObjectValues(global::GitHub.Models.Traffic.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -63,7 +65,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("count", Count); writer.WriteIntValue("uniques", Uniques); - writer.WriteCollectionOfObjectValues("views", Views); + writer.WriteCollectionOfObjectValues("views", Views); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/Vulnerability.cs b/src/GitHub/Models/Vulnerability.cs index bfa1fade..bd5664a7 100644 --- a/src/GitHub/Models/Vulnerability.cs +++ b/src/GitHub/Models/Vulnerability.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A vulnerability describing the product and its affected versions within a GitHub Security Advisory. /// - public class Vulnerability : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Vulnerability : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,10 +25,10 @@ public class Vulnerability : IAdditionalDataHolder, IParsable /// The name of the package affected by the vulnerability. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Vulnerability_package? Package { get; set; } + public global::GitHub.Models.Vulnerability_package? Package { get; set; } #nullable restore #else - public Vulnerability_package Package { get; set; } + public global::GitHub.Models.Vulnerability_package Package { get; set; } #endif /// The functions in the package that are affected by the vulnerability. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -45,7 +47,7 @@ public class Vulnerability : IAdditionalDataHolder, IParsable public string VulnerableVersionRange { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Vulnerability() { @@ -54,12 +56,12 @@ public Vulnerability() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Vulnerability CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Vulnerability CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Vulnerability(); + return new global::GitHub.Models.Vulnerability(); } /// /// The deserialization information for the current model @@ -69,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"first_patched_version", n => { FirstPatchedVersion = n.GetStringValue(); } }, - {"package", n => { Package = n.GetObjectValue(Vulnerability_package.CreateFromDiscriminatorValue); } }, - {"vulnerable_functions", n => { VulnerableFunctions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"vulnerable_version_range", n => { VulnerableVersionRange = n.GetStringValue(); } }, + { "first_patched_version", n => { FirstPatchedVersion = n.GetStringValue(); } }, + { "package", n => { Package = n.GetObjectValue(global::GitHub.Models.Vulnerability_package.CreateFromDiscriminatorValue); } }, + { "vulnerable_functions", n => { VulnerableFunctions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "vulnerable_version_range", n => { VulnerableVersionRange = n.GetStringValue(); } }, }; } /// @@ -83,7 +85,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("first_patched_version", FirstPatchedVersion); - writer.WriteObjectValue("package", Package); + writer.WriteObjectValue("package", Package); writer.WriteStringValue("vulnerable_version_range", VulnerableVersionRange); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/Vulnerability_package.cs b/src/GitHub/Models/Vulnerability_package.cs index debc0e6a..1f162179 100644 --- a/src/GitHub/Models/Vulnerability_package.cs +++ b/src/GitHub/Models/Vulnerability_package.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// The name of the package affected by the vulnerability. /// - public class Vulnerability_package : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Vulnerability_package : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The package's language or package management ecosystem. - public SecurityAdvisoryEcosystems? Ecosystem { get; set; } + public global::GitHub.Models.SecurityAdvisoryEcosystems? Ecosystem { get; set; } /// The unique package name within its ecosystem. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -23,7 +25,7 @@ public class Vulnerability_package : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Vulnerability_package() { @@ -32,12 +34,12 @@ public Vulnerability_package() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Vulnerability_package CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Vulnerability_package CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Vulnerability_package(); + return new global::GitHub.Models.Vulnerability_package(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"ecosystem", n => { Ecosystem = n.GetEnumValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "ecosystem", n => { Ecosystem = n.GetEnumValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("ecosystem", Ecosystem); + writer.WriteEnumValue("ecosystem", Ecosystem); writer.WriteStringValue("name", Name); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/WebhookConfig.cs b/src/GitHub/Models/WebhookConfig.cs index 754e4b12..571e78db 100644 --- a/src/GitHub/Models/WebhookConfig.cs +++ b/src/GitHub/Models/WebhookConfig.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Configuration object of the webhook /// - public class WebhookConfig : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WebhookConfig : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,10 +25,10 @@ public class WebhookConfig : IAdditionalDataHolder, IParsable /// The insecure_ssl property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WebhookConfigInsecureSsl? InsecureSsl { get; set; } + public global::GitHub.Models.WebhookConfigInsecureSsl? InsecureSsl { get; set; } #nullable restore #else - public WebhookConfigInsecureSsl InsecureSsl { get; set; } + public global::GitHub.Models.WebhookConfigInsecureSsl InsecureSsl { get; set; } #endif /// 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/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -45,7 +47,7 @@ public class WebhookConfig : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WebhookConfig() { @@ -54,12 +56,12 @@ public WebhookConfig() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WebhookConfig CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.WebhookConfig CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WebhookConfig(); + return new global::GitHub.Models.WebhookConfig(); } /// /// The deserialization information for the current model @@ -69,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content_type", n => { ContentType = n.GetStringValue(); } }, - {"insecure_ssl", n => { InsecureSsl = n.GetObjectValue(WebhookConfigInsecureSsl.CreateFromDiscriminatorValue); } }, - {"secret", n => { Secret = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "content_type", n => { ContentType = n.GetStringValue(); } }, + { "insecure_ssl", n => { InsecureSsl = n.GetObjectValue(global::GitHub.Models.WebhookConfigInsecureSsl.CreateFromDiscriminatorValue); } }, + { "secret", n => { Secret = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -83,7 +85,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("content_type", ContentType); - writer.WriteObjectValue("insecure_ssl", InsecureSsl); + writer.WriteObjectValue("insecure_ssl", InsecureSsl); writer.WriteStringValue("secret", Secret); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/WebhookConfigInsecureSsl.cs b/src/GitHub/Models/WebhookConfigInsecureSsl.cs index 9bcd78df..3f7bd616 100644 --- a/src/GitHub/Models/WebhookConfigInsecureSsl.cs +++ b/src/GitHub/Models/WebhookConfigInsecureSsl.cs @@ -1,10 +1,12 @@ // using Microsoft.Kiota.Abstractions.Serialization; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Composed type wrapper for classes , /// - public class WebhookConfigInsecureSsl : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WebhookConfigInsecureSsl : IComposedTypeWrapper, IParsable { /// Composed type representation for type public double? Double { get; set; } @@ -79,13 +81,13 @@ public class WebhookConfigInsecureSsl : IComposedTypeWrapper, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WebhookConfigInsecureSsl CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.WebhookConfigInsecureSsl CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new WebhookConfigInsecureSsl(); + var result = new global::GitHub.Models.WebhookConfigInsecureSsl(); if(parseNode.GetDoubleValue() is double doubleValue) { result.Double = doubleValue; diff --git a/src/GitHub/Models/WithPathGetResponseMember1.cs b/src/GitHub/Models/WithPathGetResponseMember1.cs index ef7099ce..86448c7e 100644 --- a/src/GitHub/Models/WithPathGetResponseMember1.cs +++ b/src/GitHub/Models/WithPathGetResponseMember1.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A list of directory items /// - public class WithPathGetResponseMember1 : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithPathGetResponseMember1 : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithPathGetResponseMember1() { @@ -22,12 +24,12 @@ public WithPathGetResponseMember1() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithPathGetResponseMember1 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.WithPathGetResponseMember1 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithPathGetResponseMember1(); + return new global::GitHub.Models.WithPathGetResponseMember1(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Models/Workflow.cs b/src/GitHub/Models/Workflow.cs index d7b7effd..b4b4ca66 100644 --- a/src/GitHub/Models/Workflow.cs +++ b/src/GitHub/Models/Workflow.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// A GitHub Actions workflow /// - public class Workflow : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Workflow : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -59,7 +61,7 @@ public class Workflow : IAdditionalDataHolder, IParsable public string Path { get; set; } #endif /// The state property - public Workflow_state? State { get; set; } + public global::GitHub.Models.Workflow_state? State { get; set; } /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } /// The url property @@ -71,7 +73,7 @@ public class Workflow : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Workflow() { @@ -80,12 +82,12 @@ public Workflow() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Workflow CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.Workflow CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Workflow(); + return new global::GitHub.Models.Workflow(); } /// /// The deserialization information for the current model @@ -95,17 +97,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"badge_url", n => { BadgeUrl = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"deleted_at", n => { DeletedAt = n.GetDateTimeOffsetValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "badge_url", n => { BadgeUrl = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "deleted_at", n => { DeletedAt = n.GetDateTimeOffsetValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -123,7 +125,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteStringValue("node_id", NodeId); writer.WriteStringValue("path", Path); - writer.WriteEnumValue("state", State); + writer.WriteEnumValue("state", State); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/WorkflowRun.cs b/src/GitHub/Models/WorkflowRun.cs index 3d9f65f8..16342aee 100644 --- a/src/GitHub/Models/WorkflowRun.cs +++ b/src/GitHub/Models/WorkflowRun.cs @@ -1,22 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// An invocation of a workflow /// - public class WorkflowRun : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WorkflowRun : IAdditionalDataHolder, IParsable { /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Actor { get; set; } + public global::GitHub.Models.SimpleUser? Actor { get; set; } #nullable restore #else - public SimpleUser Actor { get; set; } + public global::GitHub.Models.SimpleUser Actor { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -91,18 +93,18 @@ public class WorkflowRun : IAdditionalDataHolder, IParsable /// A commit. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleCommit? HeadCommit { get; set; } + public global::GitHub.Models.NullableSimpleCommit? HeadCommit { get; set; } #nullable restore #else - public NullableSimpleCommit HeadCommit { get; set; } + public global::GitHub.Models.NullableSimpleCommit HeadCommit { get; set; } #endif /// Minimal Repository #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MinimalRepository? HeadRepository { get; set; } + public global::GitHub.Models.MinimalRepository? HeadRepository { get; set; } #nullable restore #else - public MinimalRepository HeadRepository { get; set; } + public global::GitHub.Models.MinimalRepository HeadRepository { get; set; } #endif /// The head_repository_id property public int? HeadRepositoryId { get; set; } @@ -175,26 +177,26 @@ public class WorkflowRun : IAdditionalDataHolder, IParsable /// Pull requests that are open with a `head_sha` or `head_branch` that matches the workflow run. The returned pull requests do not necessarily indicate pull requests that triggered the run. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? PullRequests { get; set; } + public List? PullRequests { get; set; } #nullable restore #else - public List PullRequests { get; set; } + public List PullRequests { get; set; } #endif /// The referenced_workflows property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ReferencedWorkflows { get; set; } + public List? ReferencedWorkflows { get; set; } #nullable restore #else - public List ReferencedWorkflows { get; set; } + public List ReferencedWorkflows { get; set; } #endif /// Minimal Repository #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MinimalRepository? Repository { get; set; } + public global::GitHub.Models.MinimalRepository? Repository { get; set; } #nullable restore #else - public MinimalRepository Repository { get; set; } + public global::GitHub.Models.MinimalRepository Repository { get; set; } #endif /// The URL to rerun the workflow run. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -221,10 +223,10 @@ public class WorkflowRun : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? TriggeringActor { get; set; } + public global::GitHub.Models.SimpleUser? TriggeringActor { get; set; } #nullable restore #else - public SimpleUser TriggeringActor { get; set; } + public global::GitHub.Models.SimpleUser TriggeringActor { get; set; } #endif /// The updated_at property public DateTimeOffset? UpdatedAt { get; set; } @@ -247,7 +249,7 @@ public class WorkflowRun : IAdditionalDataHolder, IParsable public string WorkflowUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WorkflowRun() { @@ -256,12 +258,12 @@ public WorkflowRun() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WorkflowRun CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.WorkflowRun CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WorkflowRun(); + return new global::GitHub.Models.WorkflowRun(); } /// /// The deserialization information for the current model @@ -271,42 +273,42 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"artifacts_url", n => { ArtifactsUrl = n.GetStringValue(); } }, - {"cancel_url", n => { CancelUrl = n.GetStringValue(); } }, - {"check_suite_id", n => { CheckSuiteId = n.GetIntValue(); } }, - {"check_suite_node_id", n => { CheckSuiteNodeId = n.GetStringValue(); } }, - {"check_suite_url", n => { CheckSuiteUrl = n.GetStringValue(); } }, - {"conclusion", n => { Conclusion = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - {"display_title", n => { DisplayTitle = n.GetStringValue(); } }, - {"event", n => { Event = n.GetStringValue(); } }, - {"head_branch", n => { HeadBranch = n.GetStringValue(); } }, - {"head_commit", n => { HeadCommit = n.GetObjectValue(NullableSimpleCommit.CreateFromDiscriminatorValue); } }, - {"head_repository", n => { HeadRepository = n.GetObjectValue(MinimalRepository.CreateFromDiscriminatorValue); } }, - {"head_repository_id", n => { HeadRepositoryId = n.GetIntValue(); } }, - {"head_sha", n => { HeadSha = n.GetStringValue(); } }, - {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"jobs_url", n => { JobsUrl = n.GetStringValue(); } }, - {"logs_url", n => { LogsUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"node_id", n => { NodeId = n.GetStringValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"previous_attempt_url", n => { PreviousAttemptUrl = n.GetStringValue(); } }, - {"pull_requests", n => { PullRequests = n.GetCollectionOfObjectValues(PullRequestMinimal.CreateFromDiscriminatorValue)?.ToList(); } }, - {"referenced_workflows", n => { ReferencedWorkflows = n.GetCollectionOfObjectValues(ReferencedWorkflow.CreateFromDiscriminatorValue)?.ToList(); } }, - {"repository", n => { Repository = n.GetObjectValue(MinimalRepository.CreateFromDiscriminatorValue); } }, - {"rerun_url", n => { RerunUrl = n.GetStringValue(); } }, - {"run_attempt", n => { RunAttempt = n.GetIntValue(); } }, - {"run_number", n => { RunNumber = n.GetIntValue(); } }, - {"run_started_at", n => { RunStartedAt = n.GetDateTimeOffsetValue(); } }, - {"status", n => { Status = n.GetStringValue(); } }, - {"triggering_actor", n => { TriggeringActor = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"workflow_id", n => { WorkflowId = n.GetIntValue(); } }, - {"workflow_url", n => { WorkflowUrl = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "artifacts_url", n => { ArtifactsUrl = n.GetStringValue(); } }, + { "cancel_url", n => { CancelUrl = n.GetStringValue(); } }, + { "check_suite_id", n => { CheckSuiteId = n.GetIntValue(); } }, + { "check_suite_node_id", n => { CheckSuiteNodeId = n.GetStringValue(); } }, + { "check_suite_url", n => { CheckSuiteUrl = n.GetStringValue(); } }, + { "conclusion", n => { Conclusion = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, + { "display_title", n => { DisplayTitle = n.GetStringValue(); } }, + { "event", n => { Event = n.GetStringValue(); } }, + { "head_branch", n => { HeadBranch = n.GetStringValue(); } }, + { "head_commit", n => { HeadCommit = n.GetObjectValue(global::GitHub.Models.NullableSimpleCommit.CreateFromDiscriminatorValue); } }, + { "head_repository", n => { HeadRepository = n.GetObjectValue(global::GitHub.Models.MinimalRepository.CreateFromDiscriminatorValue); } }, + { "head_repository_id", n => { HeadRepositoryId = n.GetIntValue(); } }, + { "head_sha", n => { HeadSha = n.GetStringValue(); } }, + { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "jobs_url", n => { JobsUrl = n.GetStringValue(); } }, + { "logs_url", n => { LogsUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "node_id", n => { NodeId = n.GetStringValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "previous_attempt_url", n => { PreviousAttemptUrl = n.GetStringValue(); } }, + { "pull_requests", n => { PullRequests = n.GetCollectionOfObjectValues(global::GitHub.Models.PullRequestMinimal.CreateFromDiscriminatorValue)?.AsList(); } }, + { "referenced_workflows", n => { ReferencedWorkflows = n.GetCollectionOfObjectValues(global::GitHub.Models.ReferencedWorkflow.CreateFromDiscriminatorValue)?.AsList(); } }, + { "repository", n => { Repository = n.GetObjectValue(global::GitHub.Models.MinimalRepository.CreateFromDiscriminatorValue); } }, + { "rerun_url", n => { RerunUrl = n.GetStringValue(); } }, + { "run_attempt", n => { RunAttempt = n.GetIntValue(); } }, + { "run_number", n => { RunNumber = n.GetIntValue(); } }, + { "run_started_at", n => { RunStartedAt = n.GetDateTimeOffsetValue(); } }, + { "status", n => { Status = n.GetStringValue(); } }, + { "triggering_actor", n => { TriggeringActor = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "workflow_id", n => { WorkflowId = n.GetIntValue(); } }, + { "workflow_url", n => { WorkflowUrl = n.GetStringValue(); } }, }; } /// @@ -316,7 +318,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("actor", Actor); writer.WriteStringValue("artifacts_url", ArtifactsUrl); writer.WriteStringValue("cancel_url", CancelUrl); writer.WriteIntValue("check_suite_id", CheckSuiteId); @@ -327,8 +329,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("display_title", DisplayTitle); writer.WriteStringValue("event", Event); writer.WriteStringValue("head_branch", HeadBranch); - writer.WriteObjectValue("head_commit", HeadCommit); - writer.WriteObjectValue("head_repository", HeadRepository); + writer.WriteObjectValue("head_commit", HeadCommit); + writer.WriteObjectValue("head_repository", HeadRepository); writer.WriteIntValue("head_repository_id", HeadRepositoryId); writer.WriteStringValue("head_sha", HeadSha); writer.WriteStringValue("html_url", HtmlUrl); @@ -339,15 +341,15 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("node_id", NodeId); writer.WriteStringValue("path", Path); writer.WriteStringValue("previous_attempt_url", PreviousAttemptUrl); - writer.WriteCollectionOfObjectValues("pull_requests", PullRequests); - writer.WriteCollectionOfObjectValues("referenced_workflows", ReferencedWorkflows); - writer.WriteObjectValue("repository", Repository); + writer.WriteCollectionOfObjectValues("pull_requests", PullRequests); + writer.WriteCollectionOfObjectValues("referenced_workflows", ReferencedWorkflows); + writer.WriteObjectValue("repository", Repository); writer.WriteStringValue("rerun_url", RerunUrl); writer.WriteIntValue("run_attempt", RunAttempt); writer.WriteIntValue("run_number", RunNumber); writer.WriteDateTimeOffsetValue("run_started_at", RunStartedAt); writer.WriteStringValue("status", Status); - writer.WriteObjectValue("triggering_actor", TriggeringActor); + writer.WriteObjectValue("triggering_actor", TriggeringActor); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); writer.WriteIntValue("workflow_id", WorkflowId); diff --git a/src/GitHub/Models/WorkflowRunUsage.cs b/src/GitHub/Models/WorkflowRunUsage.cs index ad64e247..35c945c6 100644 --- a/src/GitHub/Models/WorkflowRunUsage.cs +++ b/src/GitHub/Models/WorkflowRunUsage.cs @@ -1,29 +1,31 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Workflow Run Usage /// - public class WorkflowRunUsage : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WorkflowRunUsage : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The billable property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WorkflowRunUsage_billable? Billable { get; set; } + public global::GitHub.Models.WorkflowRunUsage_billable? Billable { get; set; } #nullable restore #else - public WorkflowRunUsage_billable Billable { get; set; } + public global::GitHub.Models.WorkflowRunUsage_billable Billable { get; set; } #endif /// The run_duration_ms property public int? RunDurationMs { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WorkflowRunUsage() { @@ -32,12 +34,12 @@ public WorkflowRunUsage() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WorkflowRunUsage CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.WorkflowRunUsage CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WorkflowRunUsage(); + return new global::GitHub.Models.WorkflowRunUsage(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"billable", n => { Billable = n.GetObjectValue(WorkflowRunUsage_billable.CreateFromDiscriminatorValue); } }, - {"run_duration_ms", n => { RunDurationMs = n.GetIntValue(); } }, + { "billable", n => { Billable = n.GetObjectValue(global::GitHub.Models.WorkflowRunUsage_billable.CreateFromDiscriminatorValue); } }, + { "run_duration_ms", n => { RunDurationMs = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("billable", Billable); + writer.WriteObjectValue("billable", Billable); writer.WriteIntValue("run_duration_ms", RunDurationMs); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/WorkflowRunUsage_billable.cs b/src/GitHub/Models/WorkflowRunUsage_billable.cs index b5a46265..35dd4f2a 100644 --- a/src/GitHub/Models/WorkflowRunUsage_billable.cs +++ b/src/GitHub/Models/WorkflowRunUsage_billable.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WorkflowRunUsage_billable : IAdditionalDataHolder, IParsable + public partial class WorkflowRunUsage_billable : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,29 +16,29 @@ public class WorkflowRunUsage_billable : IAdditionalDataHolder, IParsable /// The MACOS property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WorkflowRunUsage_billable_MACOS? MACOS { get; set; } + public global::GitHub.Models.WorkflowRunUsage_billable_MACOS? MACOS { get; set; } #nullable restore #else - public WorkflowRunUsage_billable_MACOS MACOS { get; set; } + public global::GitHub.Models.WorkflowRunUsage_billable_MACOS MACOS { get; set; } #endif /// The UBUNTU property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WorkflowRunUsage_billable_UBUNTU? UBUNTU { get; set; } + public global::GitHub.Models.WorkflowRunUsage_billable_UBUNTU? UBUNTU { get; set; } #nullable restore #else - public WorkflowRunUsage_billable_UBUNTU UBUNTU { get; set; } + public global::GitHub.Models.WorkflowRunUsage_billable_UBUNTU UBUNTU { get; set; } #endif /// The WINDOWS property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WorkflowRunUsage_billable_WINDOWS? WINDOWS { get; set; } + public global::GitHub.Models.WorkflowRunUsage_billable_WINDOWS? WINDOWS { get; set; } #nullable restore #else - public WorkflowRunUsage_billable_WINDOWS WINDOWS { get; set; } + public global::GitHub.Models.WorkflowRunUsage_billable_WINDOWS WINDOWS { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WorkflowRunUsage_billable() { @@ -45,12 +47,12 @@ public WorkflowRunUsage_billable() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WorkflowRunUsage_billable CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.WorkflowRunUsage_billable CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WorkflowRunUsage_billable(); + return new global::GitHub.Models.WorkflowRunUsage_billable(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"MACOS", n => { MACOS = n.GetObjectValue(WorkflowRunUsage_billable_MACOS.CreateFromDiscriminatorValue); } }, - {"UBUNTU", n => { UBUNTU = n.GetObjectValue(WorkflowRunUsage_billable_UBUNTU.CreateFromDiscriminatorValue); } }, - {"WINDOWS", n => { WINDOWS = n.GetObjectValue(WorkflowRunUsage_billable_WINDOWS.CreateFromDiscriminatorValue); } }, + { "MACOS", n => { MACOS = n.GetObjectValue(global::GitHub.Models.WorkflowRunUsage_billable_MACOS.CreateFromDiscriminatorValue); } }, + { "UBUNTU", n => { UBUNTU = n.GetObjectValue(global::GitHub.Models.WorkflowRunUsage_billable_UBUNTU.CreateFromDiscriminatorValue); } }, + { "WINDOWS", n => { WINDOWS = n.GetObjectValue(global::GitHub.Models.WorkflowRunUsage_billable_WINDOWS.CreateFromDiscriminatorValue); } }, }; } /// @@ -72,9 +74,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("MACOS", MACOS); - writer.WriteObjectValue("UBUNTU", UBUNTU); - writer.WriteObjectValue("WINDOWS", WINDOWS); + writer.WriteObjectValue("MACOS", MACOS); + writer.WriteObjectValue("UBUNTU", UBUNTU); + writer.WriteObjectValue("WINDOWS", WINDOWS); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/WorkflowRunUsage_billable_MACOS.cs b/src/GitHub/Models/WorkflowRunUsage_billable_MACOS.cs index 6d537e7b..e34a5f35 100644 --- a/src/GitHub/Models/WorkflowRunUsage_billable_MACOS.cs +++ b/src/GitHub/Models/WorkflowRunUsage_billable_MACOS.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WorkflowRunUsage_billable_MACOS : IAdditionalDataHolder, IParsable + public partial class WorkflowRunUsage_billable_MACOS : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,17 +16,17 @@ public class WorkflowRunUsage_billable_MACOS : IAdditionalDataHolder, IParsable /// The job_runs property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? JobRuns { get; set; } + public List? JobRuns { get; set; } #nullable restore #else - public List JobRuns { get; set; } + public List JobRuns { get; set; } #endif /// The jobs property public int? Jobs { get; set; } /// The total_ms property public int? TotalMs { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WorkflowRunUsage_billable_MACOS() { @@ -33,12 +35,12 @@ public WorkflowRunUsage_billable_MACOS() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WorkflowRunUsage_billable_MACOS CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.WorkflowRunUsage_billable_MACOS CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WorkflowRunUsage_billable_MACOS(); + return new global::GitHub.Models.WorkflowRunUsage_billable_MACOS(); } /// /// The deserialization information for the current model @@ -48,9 +50,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"job_runs", n => { JobRuns = n.GetCollectionOfObjectValues(WorkflowRunUsage_billable_MACOS_job_runs.CreateFromDiscriminatorValue)?.ToList(); } }, - {"jobs", n => { Jobs = n.GetIntValue(); } }, - {"total_ms", n => { TotalMs = n.GetIntValue(); } }, + { "job_runs", n => { JobRuns = n.GetCollectionOfObjectValues(global::GitHub.Models.WorkflowRunUsage_billable_MACOS_job_runs.CreateFromDiscriminatorValue)?.AsList(); } }, + { "jobs", n => { Jobs = n.GetIntValue(); } }, + { "total_ms", n => { TotalMs = n.GetIntValue(); } }, }; } /// @@ -60,7 +62,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("job_runs", JobRuns); + writer.WriteCollectionOfObjectValues("job_runs", JobRuns); writer.WriteIntValue("jobs", Jobs); writer.WriteIntValue("total_ms", TotalMs); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/WorkflowRunUsage_billable_MACOS_job_runs.cs b/src/GitHub/Models/WorkflowRunUsage_billable_MACOS_job_runs.cs index 8488dd4b..78e9d6d6 100644 --- a/src/GitHub/Models/WorkflowRunUsage_billable_MACOS_job_runs.cs +++ b/src/GitHub/Models/WorkflowRunUsage_billable_MACOS_job_runs.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WorkflowRunUsage_billable_MACOS_job_runs : IAdditionalDataHolder, IParsable + public partial class WorkflowRunUsage_billable_MACOS_job_runs : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -16,7 +18,7 @@ public class WorkflowRunUsage_billable_MACOS_job_runs : IAdditionalDataHolder, I /// The job_id property public int? JobId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WorkflowRunUsage_billable_MACOS_job_runs() { @@ -25,12 +27,12 @@ public WorkflowRunUsage_billable_MACOS_job_runs() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WorkflowRunUsage_billable_MACOS_job_runs CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.WorkflowRunUsage_billable_MACOS_job_runs CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WorkflowRunUsage_billable_MACOS_job_runs(); + return new global::GitHub.Models.WorkflowRunUsage_billable_MACOS_job_runs(); } /// /// The deserialization information for the current model @@ -40,8 +42,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"duration_ms", n => { DurationMs = n.GetIntValue(); } }, - {"job_id", n => { JobId = n.GetIntValue(); } }, + { "duration_ms", n => { DurationMs = n.GetIntValue(); } }, + { "job_id", n => { JobId = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/WorkflowRunUsage_billable_UBUNTU.cs b/src/GitHub/Models/WorkflowRunUsage_billable_UBUNTU.cs index 9cc5cc61..011b22bc 100644 --- a/src/GitHub/Models/WorkflowRunUsage_billable_UBUNTU.cs +++ b/src/GitHub/Models/WorkflowRunUsage_billable_UBUNTU.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WorkflowRunUsage_billable_UBUNTU : IAdditionalDataHolder, IParsable + public partial class WorkflowRunUsage_billable_UBUNTU : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,17 +16,17 @@ public class WorkflowRunUsage_billable_UBUNTU : IAdditionalDataHolder, IParsable /// The job_runs property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? JobRuns { get; set; } + public List? JobRuns { get; set; } #nullable restore #else - public List JobRuns { get; set; } + public List JobRuns { get; set; } #endif /// The jobs property public int? Jobs { get; set; } /// The total_ms property public int? TotalMs { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WorkflowRunUsage_billable_UBUNTU() { @@ -33,12 +35,12 @@ public WorkflowRunUsage_billable_UBUNTU() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WorkflowRunUsage_billable_UBUNTU CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.WorkflowRunUsage_billable_UBUNTU CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WorkflowRunUsage_billable_UBUNTU(); + return new global::GitHub.Models.WorkflowRunUsage_billable_UBUNTU(); } /// /// The deserialization information for the current model @@ -48,9 +50,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"job_runs", n => { JobRuns = n.GetCollectionOfObjectValues(WorkflowRunUsage_billable_UBUNTU_job_runs.CreateFromDiscriminatorValue)?.ToList(); } }, - {"jobs", n => { Jobs = n.GetIntValue(); } }, - {"total_ms", n => { TotalMs = n.GetIntValue(); } }, + { "job_runs", n => { JobRuns = n.GetCollectionOfObjectValues(global::GitHub.Models.WorkflowRunUsage_billable_UBUNTU_job_runs.CreateFromDiscriminatorValue)?.AsList(); } }, + { "jobs", n => { Jobs = n.GetIntValue(); } }, + { "total_ms", n => { TotalMs = n.GetIntValue(); } }, }; } /// @@ -60,7 +62,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("job_runs", JobRuns); + writer.WriteCollectionOfObjectValues("job_runs", JobRuns); writer.WriteIntValue("jobs", Jobs); writer.WriteIntValue("total_ms", TotalMs); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/WorkflowRunUsage_billable_UBUNTU_job_runs.cs b/src/GitHub/Models/WorkflowRunUsage_billable_UBUNTU_job_runs.cs index aabbab67..2543cff0 100644 --- a/src/GitHub/Models/WorkflowRunUsage_billable_UBUNTU_job_runs.cs +++ b/src/GitHub/Models/WorkflowRunUsage_billable_UBUNTU_job_runs.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WorkflowRunUsage_billable_UBUNTU_job_runs : IAdditionalDataHolder, IParsable + public partial class WorkflowRunUsage_billable_UBUNTU_job_runs : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -16,7 +18,7 @@ public class WorkflowRunUsage_billable_UBUNTU_job_runs : IAdditionalDataHolder, /// The job_id property public int? JobId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WorkflowRunUsage_billable_UBUNTU_job_runs() { @@ -25,12 +27,12 @@ public WorkflowRunUsage_billable_UBUNTU_job_runs() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WorkflowRunUsage_billable_UBUNTU_job_runs CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.WorkflowRunUsage_billable_UBUNTU_job_runs CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WorkflowRunUsage_billable_UBUNTU_job_runs(); + return new global::GitHub.Models.WorkflowRunUsage_billable_UBUNTU_job_runs(); } /// /// The deserialization information for the current model @@ -40,8 +42,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"duration_ms", n => { DurationMs = n.GetIntValue(); } }, - {"job_id", n => { JobId = n.GetIntValue(); } }, + { "duration_ms", n => { DurationMs = n.GetIntValue(); } }, + { "job_id", n => { JobId = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/WorkflowRunUsage_billable_WINDOWS.cs b/src/GitHub/Models/WorkflowRunUsage_billable_WINDOWS.cs index 98d3f048..fd41aeab 100644 --- a/src/GitHub/Models/WorkflowRunUsage_billable_WINDOWS.cs +++ b/src/GitHub/Models/WorkflowRunUsage_billable_WINDOWS.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WorkflowRunUsage_billable_WINDOWS : IAdditionalDataHolder, IParsable + public partial class WorkflowRunUsage_billable_WINDOWS : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,17 +16,17 @@ public class WorkflowRunUsage_billable_WINDOWS : IAdditionalDataHolder, IParsabl /// The job_runs property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? JobRuns { get; set; } + public List? JobRuns { get; set; } #nullable restore #else - public List JobRuns { get; set; } + public List JobRuns { get; set; } #endif /// The jobs property public int? Jobs { get; set; } /// The total_ms property public int? TotalMs { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WorkflowRunUsage_billable_WINDOWS() { @@ -33,12 +35,12 @@ public WorkflowRunUsage_billable_WINDOWS() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WorkflowRunUsage_billable_WINDOWS CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.WorkflowRunUsage_billable_WINDOWS CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WorkflowRunUsage_billable_WINDOWS(); + return new global::GitHub.Models.WorkflowRunUsage_billable_WINDOWS(); } /// /// The deserialization information for the current model @@ -48,9 +50,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"job_runs", n => { JobRuns = n.GetCollectionOfObjectValues(WorkflowRunUsage_billable_WINDOWS_job_runs.CreateFromDiscriminatorValue)?.ToList(); } }, - {"jobs", n => { Jobs = n.GetIntValue(); } }, - {"total_ms", n => { TotalMs = n.GetIntValue(); } }, + { "job_runs", n => { JobRuns = n.GetCollectionOfObjectValues(global::GitHub.Models.WorkflowRunUsage_billable_WINDOWS_job_runs.CreateFromDiscriminatorValue)?.AsList(); } }, + { "jobs", n => { Jobs = n.GetIntValue(); } }, + { "total_ms", n => { TotalMs = n.GetIntValue(); } }, }; } /// @@ -60,7 +62,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("job_runs", JobRuns); + writer.WriteCollectionOfObjectValues("job_runs", JobRuns); writer.WriteIntValue("jobs", Jobs); writer.WriteIntValue("total_ms", TotalMs); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/WorkflowRunUsage_billable_WINDOWS_job_runs.cs b/src/GitHub/Models/WorkflowRunUsage_billable_WINDOWS_job_runs.cs index df94a106..49d1967b 100644 --- a/src/GitHub/Models/WorkflowRunUsage_billable_WINDOWS_job_runs.cs +++ b/src/GitHub/Models/WorkflowRunUsage_billable_WINDOWS_job_runs.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WorkflowRunUsage_billable_WINDOWS_job_runs : IAdditionalDataHolder, IParsable + public partial class WorkflowRunUsage_billable_WINDOWS_job_runs : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -16,7 +18,7 @@ public class WorkflowRunUsage_billable_WINDOWS_job_runs : IAdditionalDataHolder, /// The job_id property public int? JobId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WorkflowRunUsage_billable_WINDOWS_job_runs() { @@ -25,12 +27,12 @@ public WorkflowRunUsage_billable_WINDOWS_job_runs() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WorkflowRunUsage_billable_WINDOWS_job_runs CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.WorkflowRunUsage_billable_WINDOWS_job_runs CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WorkflowRunUsage_billable_WINDOWS_job_runs(); + return new global::GitHub.Models.WorkflowRunUsage_billable_WINDOWS_job_runs(); } /// /// The deserialization information for the current model @@ -40,8 +42,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"duration_ms", n => { DurationMs = n.GetIntValue(); } }, - {"job_id", n => { JobId = n.GetIntValue(); } }, + { "duration_ms", n => { DurationMs = n.GetIntValue(); } }, + { "job_id", n => { JobId = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/WorkflowUsage.cs b/src/GitHub/Models/WorkflowUsage.cs index 357ced0d..4101ff6a 100644 --- a/src/GitHub/Models/WorkflowUsage.cs +++ b/src/GitHub/Models/WorkflowUsage.cs @@ -1,27 +1,29 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ /// /// Workflow Usage /// - public class WorkflowUsage : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WorkflowUsage : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The billable property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WorkflowUsage_billable? Billable { get; set; } + public global::GitHub.Models.WorkflowUsage_billable? Billable { get; set; } #nullable restore #else - public WorkflowUsage_billable Billable { get; set; } + public global::GitHub.Models.WorkflowUsage_billable Billable { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WorkflowUsage() { @@ -30,12 +32,12 @@ public WorkflowUsage() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WorkflowUsage CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.WorkflowUsage CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WorkflowUsage(); + return new global::GitHub.Models.WorkflowUsage(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"billable", n => { Billable = n.GetObjectValue(WorkflowUsage_billable.CreateFromDiscriminatorValue); } }, + { "billable", n => { Billable = n.GetObjectValue(global::GitHub.Models.WorkflowUsage_billable.CreateFromDiscriminatorValue); } }, }; } /// @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("billable", Billable); + writer.WriteObjectValue("billable", Billable); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/WorkflowUsage_billable.cs b/src/GitHub/Models/WorkflowUsage_billable.cs index 10672950..e809909b 100644 --- a/src/GitHub/Models/WorkflowUsage_billable.cs +++ b/src/GitHub/Models/WorkflowUsage_billable.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WorkflowUsage_billable : IAdditionalDataHolder, IParsable + public partial class WorkflowUsage_billable : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,29 +16,29 @@ public class WorkflowUsage_billable : IAdditionalDataHolder, IParsable /// The MACOS property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WorkflowUsage_billable_MACOS? MACOS { get; set; } + public global::GitHub.Models.WorkflowUsage_billable_MACOS? MACOS { get; set; } #nullable restore #else - public WorkflowUsage_billable_MACOS MACOS { get; set; } + public global::GitHub.Models.WorkflowUsage_billable_MACOS MACOS { get; set; } #endif /// The UBUNTU property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WorkflowUsage_billable_UBUNTU? UBUNTU { get; set; } + public global::GitHub.Models.WorkflowUsage_billable_UBUNTU? UBUNTU { get; set; } #nullable restore #else - public WorkflowUsage_billable_UBUNTU UBUNTU { get; set; } + public global::GitHub.Models.WorkflowUsage_billable_UBUNTU UBUNTU { get; set; } #endif /// The WINDOWS property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WorkflowUsage_billable_WINDOWS? WINDOWS { get; set; } + public global::GitHub.Models.WorkflowUsage_billable_WINDOWS? WINDOWS { get; set; } #nullable restore #else - public WorkflowUsage_billable_WINDOWS WINDOWS { get; set; } + public global::GitHub.Models.WorkflowUsage_billable_WINDOWS WINDOWS { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WorkflowUsage_billable() { @@ -45,12 +47,12 @@ public WorkflowUsage_billable() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WorkflowUsage_billable CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.WorkflowUsage_billable CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WorkflowUsage_billable(); + return new global::GitHub.Models.WorkflowUsage_billable(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"MACOS", n => { MACOS = n.GetObjectValue(WorkflowUsage_billable_MACOS.CreateFromDiscriminatorValue); } }, - {"UBUNTU", n => { UBUNTU = n.GetObjectValue(WorkflowUsage_billable_UBUNTU.CreateFromDiscriminatorValue); } }, - {"WINDOWS", n => { WINDOWS = n.GetObjectValue(WorkflowUsage_billable_WINDOWS.CreateFromDiscriminatorValue); } }, + { "MACOS", n => { MACOS = n.GetObjectValue(global::GitHub.Models.WorkflowUsage_billable_MACOS.CreateFromDiscriminatorValue); } }, + { "UBUNTU", n => { UBUNTU = n.GetObjectValue(global::GitHub.Models.WorkflowUsage_billable_UBUNTU.CreateFromDiscriminatorValue); } }, + { "WINDOWS", n => { WINDOWS = n.GetObjectValue(global::GitHub.Models.WorkflowUsage_billable_WINDOWS.CreateFromDiscriminatorValue); } }, }; } /// @@ -72,9 +74,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("MACOS", MACOS); - writer.WriteObjectValue("UBUNTU", UBUNTU); - writer.WriteObjectValue("WINDOWS", WINDOWS); + writer.WriteObjectValue("MACOS", MACOS); + writer.WriteObjectValue("UBUNTU", UBUNTU); + writer.WriteObjectValue("WINDOWS", WINDOWS); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/WorkflowUsage_billable_MACOS.cs b/src/GitHub/Models/WorkflowUsage_billable_MACOS.cs index 6ac2d655..8559b8f3 100644 --- a/src/GitHub/Models/WorkflowUsage_billable_MACOS.cs +++ b/src/GitHub/Models/WorkflowUsage_billable_MACOS.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WorkflowUsage_billable_MACOS : IAdditionalDataHolder, IParsable + public partial class WorkflowUsage_billable_MACOS : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class WorkflowUsage_billable_MACOS : IAdditionalDataHolder, IParsable /// The total_ms property public int? TotalMs { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WorkflowUsage_billable_MACOS() { @@ -23,12 +25,12 @@ public WorkflowUsage_billable_MACOS() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WorkflowUsage_billable_MACOS CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.WorkflowUsage_billable_MACOS CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WorkflowUsage_billable_MACOS(); + return new global::GitHub.Models.WorkflowUsage_billable_MACOS(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"total_ms", n => { TotalMs = n.GetIntValue(); } }, + { "total_ms", n => { TotalMs = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/WorkflowUsage_billable_UBUNTU.cs b/src/GitHub/Models/WorkflowUsage_billable_UBUNTU.cs index 46cb3866..e74e1ade 100644 --- a/src/GitHub/Models/WorkflowUsage_billable_UBUNTU.cs +++ b/src/GitHub/Models/WorkflowUsage_billable_UBUNTU.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WorkflowUsage_billable_UBUNTU : IAdditionalDataHolder, IParsable + public partial class WorkflowUsage_billable_UBUNTU : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class WorkflowUsage_billable_UBUNTU : IAdditionalDataHolder, IParsable /// The total_ms property public int? TotalMs { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WorkflowUsage_billable_UBUNTU() { @@ -23,12 +25,12 @@ public WorkflowUsage_billable_UBUNTU() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WorkflowUsage_billable_UBUNTU CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.WorkflowUsage_billable_UBUNTU CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WorkflowUsage_billable_UBUNTU(); + return new global::GitHub.Models.WorkflowUsage_billable_UBUNTU(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"total_ms", n => { TotalMs = n.GetIntValue(); } }, + { "total_ms", n => { TotalMs = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/WorkflowUsage_billable_WINDOWS.cs b/src/GitHub/Models/WorkflowUsage_billable_WINDOWS.cs index 7a6a59bf..bd638372 100644 --- a/src/GitHub/Models/WorkflowUsage_billable_WINDOWS.cs +++ b/src/GitHub/Models/WorkflowUsage_billable_WINDOWS.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WorkflowUsage_billable_WINDOWS : IAdditionalDataHolder, IParsable + public partial class WorkflowUsage_billable_WINDOWS : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class WorkflowUsage_billable_WINDOWS : IAdditionalDataHolder, IParsable /// The total_ms property public int? TotalMs { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WorkflowUsage_billable_WINDOWS() { @@ -23,12 +25,12 @@ public WorkflowUsage_billable_WINDOWS() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WorkflowUsage_billable_WINDOWS CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Models.WorkflowUsage_billable_WINDOWS CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WorkflowUsage_billable_WINDOWS(); + return new global::GitHub.Models.WorkflowUsage_billable_WINDOWS(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"total_ms", n => { TotalMs = n.GetIntValue(); } }, + { "total_ms", n => { TotalMs = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Models/Workflow_state.cs b/src/GitHub/Models/Workflow_state.cs index 945d6f57..5e404a4e 100644 --- a/src/GitHub/Models/Workflow_state.cs +++ b/src/GitHub/Models/Workflow_state.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Models { +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum Workflow_state #pragma warning restore CS1591 diff --git a/src/GitHub/Networks/Item/Item/Events/EventsRequestBuilder.cs b/src/GitHub/Networks/Item/Item/Events/EventsRequestBuilder.cs index bc339991..8c08d76b 100644 --- a/src/GitHub/Networks/Item/Item/Events/EventsRequestBuilder.cs +++ b/src/GitHub/Networks/Item/Item/Events/EventsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Networks.Item.Item.Events { +namespace GitHub.Networks.Item.Item.Events +{ /// /// Builds and executes requests for operations under \networks\{owner}\{repo}\events /// - public class EventsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EventsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public EventsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,28 +36,28 @@ public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. /// API method documentation /// - /// A List<Event> + /// A List<global::GitHub.Models.Event> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. @@ -64,11 +66,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -79,16 +81,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public EventsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Networks.Item.Item.Events.EventsRequestBuilder WithUrl(string rawUrl) { - return new EventsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Networks.Item.Item.Events.EventsRequestBuilder(rawUrl, RequestAdapter); } /// /// > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. /// - public class EventsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EventsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Networks/Item/Item/WithRepoItemRequestBuilder.cs b/src/GitHub/Networks/Item/Item/WithRepoItemRequestBuilder.cs index 6b010e46..b12e53cd 100644 --- a/src/GitHub/Networks/Item/Item/WithRepoItemRequestBuilder.cs +++ b/src/GitHub/Networks/Item/Item/WithRepoItemRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Networks.Item.Item.Events; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Networks.Item.Item { +namespace GitHub.Networks.Item.Item +{ /// /// Builds and executes requests for operations under \networks\{owner}\{repo} /// - public class WithRepoItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRepoItemRequestBuilder : BaseRequestBuilder { /// The events property - public EventsRequestBuilder Events + public global::GitHub.Networks.Item.Item.Events.EventsRequestBuilder Events { - get => new EventsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Networks.Item.Item.Events.EventsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public WithRepoItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Networks/Item/WithOwnerItemRequestBuilder.cs b/src/GitHub/Networks/Item/WithOwnerItemRequestBuilder.cs index 0c4aa66b..fd8ade58 100644 --- a/src/GitHub/Networks/Item/WithOwnerItemRequestBuilder.cs +++ b/src/GitHub/Networks/Item/WithOwnerItemRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Networks.Item.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Networks.Item { +namespace GitHub.Networks.Item +{ /// /// Builds and executes requests for operations under \networks\{owner} /// - public class WithOwnerItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithOwnerItemRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.networks.item.item collection /// Unique identifier of the item - /// A - public WithRepoItemRequestBuilder this[string position] + /// A + public global::GitHub.Networks.Item.Item.WithRepoItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("repo", position); - return new WithRepoItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Networks.Item.Item.WithRepoItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public WithOwnerItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Networks/NetworksRequestBuilder.cs b/src/GitHub/Networks/NetworksRequestBuilder.cs index e49fdd30..a9c29a8d 100644 --- a/src/GitHub/Networks/NetworksRequestBuilder.cs +++ b/src/GitHub/Networks/NetworksRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Networks.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Networks { +namespace GitHub.Networks +{ /// /// Builds and executes requests for operations under \networks /// - public class NetworksRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class NetworksRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.networks.item collection /// Unique identifier of the item - /// A - public WithOwnerItemRequestBuilder this[string position] + /// A + public global::GitHub.Networks.Item.WithOwnerItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("owner", position); - return new WithOwnerItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Networks.Item.WithOwnerItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public NetworksRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Notifications/NotificationsPutRequestBody.cs b/src/GitHub/Notifications/NotificationsPutRequestBody.cs index 2ddf18f1..ecc87112 100644 --- a/src/GitHub/Notifications/NotificationsPutRequestBody.cs +++ b/src/GitHub/Notifications/NotificationsPutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Notifications { +namespace GitHub.Notifications +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class NotificationsPutRequestBody : IAdditionalDataHolder, IParsable + public partial class NotificationsPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -16,7 +18,7 @@ public class NotificationsPutRequestBody : IAdditionalDataHolder, IParsable /// Whether the notification has been read. public bool? Read { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NotificationsPutRequestBody() { @@ -25,12 +27,12 @@ public NotificationsPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NotificationsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Notifications.NotificationsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NotificationsPutRequestBody(); + return new global::GitHub.Notifications.NotificationsPutRequestBody(); } /// /// The deserialization information for the current model @@ -40,8 +42,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"last_read_at", n => { LastReadAt = n.GetDateTimeOffsetValue(); } }, - {"read", n => { Read = n.GetBoolValue(); } }, + { "last_read_at", n => { LastReadAt = n.GetDateTimeOffsetValue(); } }, + { "read", n => { Read = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Notifications/NotificationsPutResponse.cs b/src/GitHub/Notifications/NotificationsPutResponse.cs index 323b3db9..5b65d71a 100644 --- a/src/GitHub/Notifications/NotificationsPutResponse.cs +++ b/src/GitHub/Notifications/NotificationsPutResponse.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Notifications { +namespace GitHub.Notifications +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class NotificationsPutResponse : IAdditionalDataHolder, IParsable + public partial class NotificationsPutResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class NotificationsPutResponse : IAdditionalDataHolder, IParsable public string Message { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NotificationsPutResponse() { @@ -29,12 +31,12 @@ public NotificationsPutResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NotificationsPutResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Notifications.NotificationsPutResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NotificationsPutResponse(); + return new global::GitHub.Notifications.NotificationsPutResponse(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"message", n => { Message = n.GetStringValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Notifications/NotificationsRequestBuilder.cs b/src/GitHub/Notifications/NotificationsRequestBuilder.cs index d18cbbef..0e8bad9d 100644 --- a/src/GitHub/Notifications/NotificationsRequestBuilder.cs +++ b/src/GitHub/Notifications/NotificationsRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Notifications.Threads; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Notifications { +namespace GitHub.Notifications +{ /// /// Builds and executes requests for operations under \notifications /// - public class NotificationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class NotificationsRequestBuilder : BaseRequestBuilder { /// The threads property - public ThreadsRequestBuilder Threads + public global::GitHub.Notifications.Threads.ThreadsRequestBuilder Threads { - get => new ThreadsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Notifications.Threads.ThreadsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public NotificationsRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -40,58 +42,58 @@ public NotificationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// List all notifications for the current user, sorted by most recently updated. /// API method documentation /// - /// A List<ThreadObject> + /// A List<global::GitHub.Models.ThreadObject> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 422 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ThreadObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.ThreadObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Marks all notifications as "read" for the current user. If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub Enterprise Cloud will run an asynchronous process to mark notifications as "read." To check whether any "unread" notifications remain, you can use the [List notifications for the authenticated user](https://docs.github.com/enterprise-cloud@latest//rest/activity/notifications#list-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code + /// When receiving a 401 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(NotificationsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Notifications.NotificationsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(NotificationsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Notifications.NotificationsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, NotificationsPutResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Notifications.NotificationsPutResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// List all notifications for the current user, sorted by most recently updated. @@ -100,11 +102,11 @@ public async Task PutAsync(NotificationsPutRequestBody /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -120,11 +122,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(NotificationsPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Notifications.NotificationsPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(NotificationsPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Notifications.NotificationsPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -137,16 +139,17 @@ public RequestInformation ToPutRequestInformation(NotificationsPutRequestBody bo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public NotificationsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Notifications.NotificationsRequestBuilder WithUrl(string rawUrl) { - return new NotificationsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Notifications.NotificationsRequestBuilder(rawUrl, RequestAdapter); } /// /// List all notifications for the current user, sorted by most recently updated. /// - public class NotificationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class NotificationsRequestBuilderGetQueryParameters { /// If `true`, show notifications marked as read. [QueryParameter("all")] diff --git a/src/GitHub/Notifications/Threads/Item/Subscription/SubscriptionPutRequestBody.cs b/src/GitHub/Notifications/Threads/Item/Subscription/SubscriptionPutRequestBody.cs index 010d2df4..5d41ddda 100644 --- a/src/GitHub/Notifications/Threads/Item/Subscription/SubscriptionPutRequestBody.cs +++ b/src/GitHub/Notifications/Threads/Item/Subscription/SubscriptionPutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Notifications.Threads.Item.Subscription { +namespace GitHub.Notifications.Threads.Item.Subscription +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SubscriptionPutRequestBody : IAdditionalDataHolder, IParsable + public partial class SubscriptionPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class SubscriptionPutRequestBody : IAdditionalDataHolder, IParsable /// Whether to block all notifications from a thread. public bool? Ignored { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SubscriptionPutRequestBody() { @@ -23,12 +25,12 @@ public SubscriptionPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SubscriptionPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Notifications.Threads.Item.Subscription.SubscriptionPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SubscriptionPutRequestBody(); + return new global::GitHub.Notifications.Threads.Item.Subscription.SubscriptionPutRequestBody(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"ignored", n => { Ignored = n.GetBoolValue(); } }, + { "ignored", n => { Ignored = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Notifications/Threads/Item/Subscription/SubscriptionRequestBuilder.cs b/src/GitHub/Notifications/Threads/Item/Subscription/SubscriptionRequestBuilder.cs index 71cf3bbc..049b3ffb 100644 --- a/src/GitHub/Notifications/Threads/Item/Subscription/SubscriptionRequestBuilder.cs +++ b/src/GitHub/Notifications/Threads/Item/Subscription/SubscriptionRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Notifications.Threads.Item.Subscription { +namespace GitHub.Notifications.Threads.Item.Subscription +{ /// /// Builds and executes requests for operations under \notifications\threads\{thread_id}\subscription /// - public class SubscriptionRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SubscriptionRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public SubscriptionRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,8 +38,8 @@ public SubscriptionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code + /// When receiving a 401 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -50,8 +52,8 @@ public async Task DeleteAsync(Action> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -59,55 +61,55 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code + /// When receiving a 401 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ThreadSubscription.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ThreadSubscription.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// If you are watching a repository, you receive notifications for all threads by default. Use this endpoint to ignore future notifications for threads until you comment on the thread or get an **@mention**.You can also use this endpoint to subscribe to threads that you are currently not receiving notifications for or to subscribed to threads that you have previously ignored.Unsubscribing from a conversation in a repository that you are not watching is functionally equivalent to the [Delete a thread subscription](https://docs.github.com/enterprise-cloud@latest//rest/activity/notifications#delete-a-thread-subscription) endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code + /// When receiving a 401 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(SubscriptionPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Notifications.Threads.Item.Subscription.SubscriptionPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(SubscriptionPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Notifications.Threads.Item.Subscription.SubscriptionPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ThreadSubscription.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ThreadSubscription.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Mutes all future notifications for a conversation until you comment on the thread or get an **@mention**. If you are watching the repository of the thread, you will still receive notifications. To ignore future notifications for a repository you are watching, use the [Set a thread subscription](https://docs.github.com/enterprise-cloud@latest//rest/activity/notifications#set-a-thread-subscription) endpoint and set `ignore` to `true`. @@ -155,11 +157,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(SubscriptionPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Notifications.Threads.Item.Subscription.SubscriptionPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(SubscriptionPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Notifications.Threads.Item.Subscription.SubscriptionPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -172,11 +174,11 @@ public RequestInformation ToPutRequestInformation(SubscriptionPutRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SubscriptionRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Notifications.Threads.Item.Subscription.SubscriptionRequestBuilder WithUrl(string rawUrl) { - return new SubscriptionRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Notifications.Threads.Item.Subscription.SubscriptionRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Notifications/Threads/Item/WithThread_ItemRequestBuilder.cs b/src/GitHub/Notifications/Threads/Item/WithThread_ItemRequestBuilder.cs index e5aee2ef..61434ec3 100644 --- a/src/GitHub/Notifications/Threads/Item/WithThread_ItemRequestBuilder.cs +++ b/src/GitHub/Notifications/Threads/Item/WithThread_ItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Notifications.Threads.Item.Subscription; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Notifications.Threads.Item { +namespace GitHub.Notifications.Threads.Item +{ /// /// Builds and executes requests for operations under \notifications\threads\{thread_id} /// - public class WithThread_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithThread_ItemRequestBuilder : BaseRequestBuilder { /// The subscription property - public SubscriptionRequestBuilder Subscription + public global::GitHub.Notifications.Threads.Item.Subscription.SubscriptionRequestBuilder Subscription { - get => new SubscriptionRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Notifications.Threads.Item.Subscription.SubscriptionRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithThread_ItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -58,27 +60,27 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code + /// When receiving a 401 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ThreadObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ThreadObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Marks a thread as "read." Marking a thread as "read" is equivalent to clicking a notification in your notification inbox on GitHub Enterprise Cloud: https://github.com/notifications. @@ -86,7 +88,7 @@ public async Task GetAsync(Action /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PatchAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -99,7 +101,7 @@ public async Task PatchAsync(Action var requestInfo = ToPatchRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -162,11 +164,11 @@ public RequestInformation ToPatchRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithThread_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Notifications.Threads.Item.WithThread_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithThread_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Notifications.Threads.Item.WithThread_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Notifications/Threads/ThreadsRequestBuilder.cs b/src/GitHub/Notifications/Threads/ThreadsRequestBuilder.cs index 27f5bc42..2dbb0bd8 100644 --- a/src/GitHub/Notifications/Threads/ThreadsRequestBuilder.cs +++ b/src/GitHub/Notifications/Threads/ThreadsRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Notifications.Threads.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Notifications.Threads { +namespace GitHub.Notifications.Threads +{ /// /// Builds and executes requests for operations under \notifications\threads /// - public class ThreadsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ThreadsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.notifications.threads.item collection /// The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/enterprise-cloud@latest//rest/activity/notifications#list-notifications-for-the-authenticated-user)). - /// A - public WithThread_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Notifications.Threads.Item.WithThread_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("thread_id", position); - return new WithThread_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Notifications.Threads.Item.WithThread_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public ThreadsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Octocat/OctocatRequestBuilder.cs b/src/GitHub/Octocat/OctocatRequestBuilder.cs index 97a2a3ab..3aa931b4 100644 --- a/src/GitHub/Octocat/OctocatRequestBuilder.cs +++ b/src/GitHub/Octocat/OctocatRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Octocat { +namespace GitHub.Octocat +{ /// /// Builds and executes requests for operations under \octocat /// - public class OctocatRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OctocatRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public OctocatRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -38,11 +40,11 @@ public OctocatRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); @@ -55,11 +57,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -70,16 +72,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public OctocatRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Octocat.OctocatRequestBuilder WithUrl(string rawUrl) { - return new OctocatRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Octocat.OctocatRequestBuilder(rawUrl, RequestAdapter); } /// /// Get the octocat as ASCII art /// - public class OctocatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OctocatRequestBuilderGetQueryParameters { /// The words to show in Octocat's speech bubble #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Organizations/Item/Custom_roles/Custom_rolesGetResponse.cs b/src/GitHub/Organizations/Item/Custom_roles/Custom_rolesGetResponse.cs index a0fb18a8..38ba15a0 100644 --- a/src/GitHub/Organizations/Item/Custom_roles/Custom_rolesGetResponse.cs +++ b/src/GitHub/Organizations/Item/Custom_roles/Custom_rolesGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Organizations.Item.Custom_roles { +namespace GitHub.Organizations.Item.Custom_roles +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Custom_rolesGetResponse : IAdditionalDataHolder, IParsable + public partial class Custom_rolesGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class Custom_rolesGetResponse : IAdditionalDataHolder, IParsable /// The custom_roles property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? CustomRoles { get; set; } + public List? CustomRoles { get; set; } #nullable restore #else - public List CustomRoles { get; set; } + public List CustomRoles { get; set; } #endif /// The number of custom roles in this organization public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Custom_rolesGetResponse() { @@ -32,12 +34,12 @@ public Custom_rolesGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Custom_rolesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Organizations.Item.Custom_roles.Custom_rolesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Custom_rolesGetResponse(); + return new global::GitHub.Organizations.Item.Custom_roles.Custom_rolesGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"custom_roles", n => { CustomRoles = n.GetCollectionOfObjectValues(OrganizationCustomRepositoryRole.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "custom_roles", n => { CustomRoles = n.GetCollectionOfObjectValues(global::GitHub.Models.OrganizationCustomRepositoryRole.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("custom_roles", CustomRoles); + writer.WriteCollectionOfObjectValues("custom_roles", CustomRoles); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Organizations/Item/Custom_roles/Custom_rolesRequestBuilder.cs b/src/GitHub/Organizations/Item/Custom_roles/Custom_rolesRequestBuilder.cs index 62ba2e90..7954a314 100644 --- a/src/GitHub/Organizations/Item/Custom_roles/Custom_rolesRequestBuilder.cs +++ b/src/GitHub/Organizations/Item/Custom_roles/Custom_rolesRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Organizations.Item.Custom_roles { +namespace GitHub.Organizations.Item.Custom_roles +{ /// /// Builds and executes requests for operations under \organizations\{organization_id}\custom_roles /// - public class Custom_rolesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Custom_rolesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public Custom_rolesRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,21 +35,21 @@ public Custom_rolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed in the future. Use the "[List custom repository roles](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#list-custom-repository-roles-in-an-organization)" endpoint instead.List the custom repository roles available in this organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be administrator of the organization or of a repository of the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, Custom_rolesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Organizations.Item.Custom_roles.Custom_rolesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed in the future. Use the "[List custom repository roles](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#list-custom-repository-roles-in-an-organization)" endpoint instead.List the custom repository roles available in this organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be administrator of the organization or of a repository of the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. @@ -72,12 +74,12 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public Custom_rolesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Organizations.Item.Custom_roles.Custom_rolesRequestBuilder WithUrl(string rawUrl) { - return new Custom_rolesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Organizations.Item.Custom_roles.Custom_rolesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Organizations/Item/WithOrganization_ItemRequestBuilder.cs b/src/GitHub/Organizations/Item/WithOrganization_ItemRequestBuilder.cs index 56d841e7..8121a316 100644 --- a/src/GitHub/Organizations/Item/WithOrganization_ItemRequestBuilder.cs +++ b/src/GitHub/Organizations/Item/WithOrganization_ItemRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Organizations.Item.Custom_roles; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Organizations.Item { +namespace GitHub.Organizations.Item +{ /// /// Builds and executes requests for operations under \organizations\{organization_id} /// - public class WithOrganization_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithOrganization_ItemRequestBuilder : BaseRequestBuilder { /// The custom_roles property - public Custom_rolesRequestBuilder Custom_roles + public global::GitHub.Organizations.Item.Custom_roles.Custom_rolesRequestBuilder Custom_roles { - get => new Custom_rolesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Organizations.Item.Custom_roles.Custom_rolesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public WithOrganization_ItemRequestBuilder(Dictionary pathParame { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Organizations/OrganizationsRequestBuilder.cs b/src/GitHub/Organizations/OrganizationsRequestBuilder.cs index a6d7162a..2199dd4e 100644 --- a/src/GitHub/Organizations/OrganizationsRequestBuilder.cs +++ b/src/GitHub/Organizations/OrganizationsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Organizations.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Organizations { +namespace GitHub.Organizations +{ /// /// Builds and executes requests for operations under \organizations /// - public class OrganizationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.organizations.item collection /// The unique identifier of the organization. - /// A - public WithOrganization_ItemRequestBuilder this[string position] + /// A + public global::GitHub.Organizations.Item.WithOrganization_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("organization_id", position); - return new WithOrganization_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Organizations.Item.WithOrganization_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public OrganizationsRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public OrganizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Lists all organizations, in the order that they were created.> [!NOTE]> Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers) to get the URL for the next page of organizations. /// API method documentation /// - /// A List<OrganizationSimple> + /// A List<global::GitHub.Models.OrganizationSimple> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, OrganizationSimple.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.OrganizationSimple.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists all organizations, in the order that they were created.> [!NOTE]> Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers) to get the URL for the next page of organizations. @@ -70,11 +72,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -85,16 +87,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public OrganizationsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Organizations.OrganizationsRequestBuilder WithUrl(string rawUrl) { - return new OrganizationsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Organizations.OrganizationsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all organizations, in the order that they were created.> [!NOTE]> Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers) to get the URL for the next page of organizations. /// - public class OrganizationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationsRequestBuilderGetQueryParameters { /// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("per_page")] diff --git a/src/GitHub/Orgs/Item/Actions/ActionsRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/ActionsRequestBuilder.cs index 2613e38f..62db7375 100644 --- a/src/GitHub/Orgs/Item/Actions/ActionsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/ActionsRequestBuilder.cs @@ -6,55 +6,57 @@ using GitHub.Orgs.Item.Actions.Runners; using GitHub.Orgs.Item.Actions.Secrets; using GitHub.Orgs.Item.Actions.Variables; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Actions { +namespace GitHub.Orgs.Item.Actions +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions /// - public class ActionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ActionsRequestBuilder : BaseRequestBuilder { /// The cache property - public CacheRequestBuilder Cache + public global::GitHub.Orgs.Item.Actions.Cache.CacheRequestBuilder Cache { - get => new CacheRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.Cache.CacheRequestBuilder(PathParameters, RequestAdapter); } /// The oidc property - public OidcRequestBuilder Oidc + public global::GitHub.Orgs.Item.Actions.Oidc.OidcRequestBuilder Oidc { - get => new OidcRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.Oidc.OidcRequestBuilder(PathParameters, RequestAdapter); } /// The permissions property - public PermissionsRequestBuilder Permissions + public global::GitHub.Orgs.Item.Actions.Permissions.PermissionsRequestBuilder Permissions { - get => new PermissionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.Permissions.PermissionsRequestBuilder(PathParameters, RequestAdapter); } /// The runnerGroups property - public RunnerGroupsRequestBuilder RunnerGroups + public global::GitHub.Orgs.Item.Actions.RunnerGroups.RunnerGroupsRequestBuilder RunnerGroups { - get => new RunnerGroupsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.RunnerGroups.RunnerGroupsRequestBuilder(PathParameters, RequestAdapter); } /// The runners property - public RunnersRequestBuilder Runners + public global::GitHub.Orgs.Item.Actions.Runners.RunnersRequestBuilder Runners { - get => new RunnersRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.Runners.RunnersRequestBuilder(PathParameters, RequestAdapter); } /// The secrets property - public SecretsRequestBuilder Secrets + public global::GitHub.Orgs.Item.Actions.Secrets.SecretsRequestBuilder Secrets { - get => new SecretsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.Secrets.SecretsRequestBuilder(PathParameters, RequestAdapter); } /// The variables property - public VariablesRequestBuilder Variables + public global::GitHub.Orgs.Item.Actions.Variables.VariablesRequestBuilder Variables { - get => new VariablesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.Variables.VariablesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -62,7 +64,7 @@ public ActionsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Actions/Cache/CacheRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Cache/CacheRequestBuilder.cs index 1712d220..08a20e80 100644 --- a/src/GitHub/Orgs/Item/Actions/Cache/CacheRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Cache/CacheRequestBuilder.cs @@ -1,30 +1,32 @@ // using GitHub.Orgs.Item.Actions.Cache.Usage; using GitHub.Orgs.Item.Actions.Cache.UsageByRepository; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Actions.Cache { +namespace GitHub.Orgs.Item.Actions.Cache +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\cache /// - public class CacheRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CacheRequestBuilder : BaseRequestBuilder { /// The usage property - public UsageRequestBuilder Usage + public global::GitHub.Orgs.Item.Actions.Cache.Usage.UsageRequestBuilder Usage { - get => new UsageRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.Cache.Usage.UsageRequestBuilder(PathParameters, RequestAdapter); } /// The usageByRepository property - public UsageByRepositoryRequestBuilder UsageByRepository + public global::GitHub.Orgs.Item.Actions.Cache.UsageByRepository.UsageByRepositoryRequestBuilder UsageByRepository { - get => new UsageByRepositoryRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.Cache.UsageByRepository.UsageByRepositoryRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -32,7 +34,7 @@ public CacheRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Actions/Cache/Usage/UsageRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Cache/Usage/UsageRequestBuilder.cs index f4a44278..0ee2afa9 100644 --- a/src/GitHub/Orgs/Item/Actions/Cache/Usage/UsageRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Cache/Usage/UsageRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Cache.Usage { +namespace GitHub.Orgs.Item.Actions.Cache.Usage +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\cache\usage /// - public class UsageRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsageRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public UsageRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public UsageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Gets the total GitHub Actions cache usage for an organization.The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated.OAuth tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ActionsCacheUsageOrgEnterprise.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsCacheUsageOrgEnterprise.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets the total GitHub Actions cache usage for an organization.The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated.OAuth tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UsageRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Cache.Usage.UsageRequestBuilder WithUrl(string rawUrl) { - return new UsageRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Cache.Usage.UsageRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Actions/Cache/UsageByRepository/UsageByRepositoryGetResponse.cs b/src/GitHub/Orgs/Item/Actions/Cache/UsageByRepository/UsageByRepositoryGetResponse.cs index 70403c2f..26431e66 100644 --- a/src/GitHub/Orgs/Item/Actions/Cache/UsageByRepository/UsageByRepositoryGetResponse.cs +++ b/src/GitHub/Orgs/Item/Actions/Cache/UsageByRepository/UsageByRepositoryGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Cache.UsageByRepository { +namespace GitHub.Orgs.Item.Actions.Cache.UsageByRepository +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class UsageByRepositoryGetResponse : IAdditionalDataHolder, IParsable + public partial class UsageByRepositoryGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class UsageByRepositoryGetResponse : IAdditionalDataHolder, IParsable /// The repository_cache_usages property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? RepositoryCacheUsages { get; set; } + public List? RepositoryCacheUsages { get; set; } #nullable restore #else - public List RepositoryCacheUsages { get; set; } + public List RepositoryCacheUsages { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UsageByRepositoryGetResponse() { @@ -32,12 +34,12 @@ public UsageByRepositoryGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UsageByRepositoryGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Cache.UsageByRepository.UsageByRepositoryGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UsageByRepositoryGetResponse(); + return new global::GitHub.Orgs.Item.Actions.Cache.UsageByRepository.UsageByRepositoryGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"repository_cache_usages", n => { RepositoryCacheUsages = n.GetCollectionOfObjectValues(ActionsCacheUsageByRepository.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "repository_cache_usages", n => { RepositoryCacheUsages = n.GetCollectionOfObjectValues(global::GitHub.Models.ActionsCacheUsageByRepository.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("repository_cache_usages", RepositoryCacheUsages); + writer.WriteCollectionOfObjectValues("repository_cache_usages", RepositoryCacheUsages); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Actions/Cache/UsageByRepository/UsageByRepositoryRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Cache/UsageByRepository/UsageByRepositoryRequestBuilder.cs index a7ec861b..8de36058 100644 --- a/src/GitHub/Orgs/Item/Actions/Cache/UsageByRepository/UsageByRepositoryRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Cache/UsageByRepository/UsageByRepositoryRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Cache.UsageByRepository { +namespace GitHub.Orgs.Item.Actions.Cache.UsageByRepository +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\cache\usage-by-repository /// - public class UsageByRepositoryRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsageByRepositoryRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public UsageByRepositoryRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,20 +35,20 @@ public UsageByRepositoryRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Lists repositories and their GitHub Actions cache usage for an organization.The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated.OAuth tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, UsageByRepositoryGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Actions.Cache.UsageByRepository.UsageByRepositoryGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists repositories and their GitHub Actions cache usage for an organization.The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated.OAuth tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. @@ -55,11 +57,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -70,16 +72,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UsageByRepositoryRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Cache.UsageByRepository.UsageByRepositoryRequestBuilder WithUrl(string rawUrl) { - return new UsageByRepositoryRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Cache.UsageByRepository.UsageByRepositoryRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists repositories and their GitHub Actions cache usage for an organization.The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated.OAuth tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. /// - public class UsageByRepositoryRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsageByRepositoryRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Actions/Oidc/Customization/CustomizationRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Oidc/Customization/CustomizationRequestBuilder.cs index 6f93a196..1263dc43 100644 --- a/src/GitHub/Orgs/Item/Actions/Oidc/Customization/CustomizationRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Oidc/Customization/CustomizationRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Orgs.Item.Actions.Oidc.Customization.Sub; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Actions.Oidc.Customization { +namespace GitHub.Orgs.Item.Actions.Oidc.Customization +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\oidc\customization /// - public class CustomizationRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CustomizationRequestBuilder : BaseRequestBuilder { /// The sub property - public SubRequestBuilder Sub + public global::GitHub.Orgs.Item.Actions.Oidc.Customization.Sub.SubRequestBuilder Sub { - get => new SubRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.Oidc.Customization.Sub.SubRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public CustomizationRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Actions/Oidc/Customization/Sub/SubRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Oidc/Customization/Sub/SubRequestBuilder.cs index 18f41a5c..e1f4de12 100644 --- a/src/GitHub/Orgs/Item/Actions/Oidc/Customization/Sub/SubRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Oidc/Customization/Sub/SubRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Oidc.Customization.Sub { +namespace GitHub.Orgs.Item.Actions.Oidc.Customization.Sub +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\oidc\customization\sub /// - public class SubRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SubRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public SubRequestBuilder(Dictionary pathParameters, IRequestAdap { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,48 +36,48 @@ public SubRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Gets the customization template for an OpenID Connect (OIDC) subject claim.OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, OidcCustomSub.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OidcCustomSub.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Creates or updates the customization template for an OpenID Connect (OIDC) subject claim.OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Actions OIDC Subject customization /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(OidcCustomSub body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.OidcCustomSub body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(OidcCustomSub body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.OidcCustomSub body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, EmptyObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EmptyObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets the customization template for an OpenID Connect (OIDC) subject claim.OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. @@ -104,11 +106,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(OidcCustomSub body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.OidcCustomSub body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(OidcCustomSub body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.OidcCustomSub body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -121,11 +123,11 @@ public RequestInformation ToPutRequestInformation(OidcCustomSub body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SubRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Oidc.Customization.Sub.SubRequestBuilder WithUrl(string rawUrl) { - return new SubRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Oidc.Customization.Sub.SubRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Actions/Oidc/OidcRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Oidc/OidcRequestBuilder.cs index aa14c408..9d2dc5a0 100644 --- a/src/GitHub/Orgs/Item/Actions/Oidc/OidcRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Oidc/OidcRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Orgs.Item.Actions.Oidc.Customization; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Actions.Oidc { +namespace GitHub.Orgs.Item.Actions.Oidc +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\oidc /// - public class OidcRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OidcRequestBuilder : BaseRequestBuilder { /// The customization property - public CustomizationRequestBuilder Customization + public global::GitHub.Orgs.Item.Actions.Oidc.Customization.CustomizationRequestBuilder Customization { - get => new CustomizationRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.Oidc.Customization.CustomizationRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public OidcRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Actions/Permissions/PermissionsPutRequestBody.cs b/src/GitHub/Orgs/Item/Actions/Permissions/PermissionsPutRequestBody.cs index 30ae4e4c..d281f6bd 100644 --- a/src/GitHub/Orgs/Item/Actions/Permissions/PermissionsPutRequestBody.cs +++ b/src/GitHub/Orgs/Item/Actions/Permissions/PermissionsPutRequestBody.cs @@ -1,23 +1,25 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Permissions { +namespace GitHub.Orgs.Item.Actions.Permissions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PermissionsPutRequestBody : IAdditionalDataHolder, IParsable + public partial class PermissionsPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The permissions policy that controls the actions and reusable workflows that are allowed to run. - public GitHub.Models.AllowedActions? AllowedActions { get; set; } + public global::GitHub.Models.AllowedActions? AllowedActions { get; set; } /// The policy that controls the repositories in the organization that are allowed to run GitHub Actions. - public GitHub.Models.EnabledRepositories? EnabledRepositories { get; set; } + public global::GitHub.Models.EnabledRepositories? EnabledRepositories { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PermissionsPutRequestBody() { @@ -26,12 +28,12 @@ public PermissionsPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PermissionsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Permissions.PermissionsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PermissionsPutRequestBody(); + return new global::GitHub.Orgs.Item.Actions.Permissions.PermissionsPutRequestBody(); } /// /// The deserialization information for the current model @@ -41,8 +43,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allowed_actions", n => { AllowedActions = n.GetEnumValue(); } }, - {"enabled_repositories", n => { EnabledRepositories = n.GetEnumValue(); } }, + { "allowed_actions", n => { AllowedActions = n.GetEnumValue(); } }, + { "enabled_repositories", n => { EnabledRepositories = n.GetEnumValue(); } }, }; } /// @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("allowed_actions", AllowedActions); - writer.WriteEnumValue("enabled_repositories", EnabledRepositories); + writer.WriteEnumValue("allowed_actions", AllowedActions); + writer.WriteEnumValue("enabled_repositories", EnabledRepositories); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Actions/Permissions/PermissionsRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Permissions/PermissionsRequestBuilder.cs index 151ba2c0..6c7fa6e0 100644 --- a/src/GitHub/Orgs/Item/Actions/Permissions/PermissionsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Permissions/PermissionsRequestBuilder.cs @@ -3,37 +3,39 @@ using GitHub.Orgs.Item.Actions.Permissions.Repositories; using GitHub.Orgs.Item.Actions.Permissions.SelectedActions; using GitHub.Orgs.Item.Actions.Permissions.Workflow; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Permissions { +namespace GitHub.Orgs.Item.Actions.Permissions +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\permissions /// - public class PermissionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PermissionsRequestBuilder : BaseRequestBuilder { /// The repositories property - public RepositoriesRequestBuilder Repositories + public global::GitHub.Orgs.Item.Actions.Permissions.Repositories.RepositoriesRequestBuilder Repositories { - get => new RepositoriesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.Permissions.Repositories.RepositoriesRequestBuilder(PathParameters, RequestAdapter); } /// The selectedActions property - public SelectedActionsRequestBuilder SelectedActions + public global::GitHub.Orgs.Item.Actions.Permissions.SelectedActions.SelectedActionsRequestBuilder SelectedActions { - get => new SelectedActionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.Permissions.SelectedActions.SelectedActionsRequestBuilder(PathParameters, RequestAdapter); } /// The workflow property - public WorkflowRequestBuilder Workflow + public global::GitHub.Orgs.Item.Actions.Permissions.Workflow.WorkflowRequestBuilder Workflow { - get => new WorkflowRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.Permissions.Workflow.WorkflowRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -41,7 +43,7 @@ public PermissionsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,20 +54,20 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Gets the GitHub Actions permissions policy for repositories and allowed actions and reusable workflows in an organization.OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ActionsOrganizationPermissions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsOrganizationPermissions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Sets the GitHub Actions permissions policy for repositories and allowed actions in an organization.If the organization belongs to an enterprise that has set restrictive permissions at the enterprise level, such as `allowed_actions` to `selected` actions, then you cannot override them for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. @@ -76,11 +78,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(PermissionsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Actions.Permissions.PermissionsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(PermissionsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Actions.Permissions.PermissionsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -114,11 +116,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(PermissionsPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Actions.Permissions.PermissionsPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(PermissionsPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Actions.Permissions.PermissionsPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -130,11 +132,11 @@ public RequestInformation ToPutRequestInformation(PermissionsPutRequestBody body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PermissionsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) { - return new PermissionsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Actions/Permissions/Repositories/Item/WithRepository_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Permissions/Repositories/Item/WithRepository_ItemRequestBuilder.cs index ea4a3807..cc6009a6 100644 --- a/src/GitHub/Orgs/Item/Actions/Permissions/Repositories/Item/WithRepository_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Permissions/Repositories/Item/WithRepository_ItemRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Permissions.Repositories.Item { +namespace GitHub.Orgs.Item.Actions.Permissions.Repositories.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\permissions\repositories\{repository_id} /// - public class WithRepository_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRepository_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public WithRepository_ItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -104,11 +106,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRepository_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Permissions.Repositories.Item.WithRepository_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithRepository_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Permissions.Repositories.Item.WithRepository_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Actions/Permissions/Repositories/RepositoriesGetResponse.cs b/src/GitHub/Orgs/Item/Actions/Permissions/Repositories/RepositoriesGetResponse.cs index 3a2c4d29..11e7be82 100644 --- a/src/GitHub/Orgs/Item/Actions/Permissions/Repositories/RepositoriesGetResponse.cs +++ b/src/GitHub/Orgs/Item/Actions/Permissions/Repositories/RepositoriesGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Permissions.Repositories { +namespace GitHub.Orgs.Item.Actions.Permissions.Repositories +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoriesGetResponse : IAdditionalDataHolder, IParsable + public partial class RepositoriesGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class RepositoriesGetResponse : IAdditionalDataHolder, IParsable /// The repositories property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Repositories { get; set; } + public List? Repositories { get; set; } #nullable restore #else - public List Repositories { get; set; } + public List Repositories { get; set; } #endif /// The total_count property public double? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoriesGetResponse() { @@ -32,12 +34,12 @@ public RepositoriesGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoriesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Permissions.Repositories.RepositoriesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoriesGetResponse(); + return new global::GitHub.Orgs.Item.Actions.Permissions.Repositories.RepositoriesGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"repositories", n => { Repositories = n.GetCollectionOfObjectValues(Repository.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetDoubleValue(); } }, + { "repositories", n => { Repositories = n.GetCollectionOfObjectValues(global::GitHub.Models.Repository.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetDoubleValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("repositories", Repositories); + writer.WriteCollectionOfObjectValues("repositories", Repositories); writer.WriteDoubleValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Actions/Permissions/Repositories/RepositoriesPutRequestBody.cs b/src/GitHub/Orgs/Item/Actions/Permissions/Repositories/RepositoriesPutRequestBody.cs index 95fbfadc..a8f73937 100644 --- a/src/GitHub/Orgs/Item/Actions/Permissions/Repositories/RepositoriesPutRequestBody.cs +++ b/src/GitHub/Orgs/Item/Actions/Permissions/Repositories/RepositoriesPutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Permissions.Repositories { +namespace GitHub.Orgs.Item.Actions.Permissions.Repositories +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoriesPutRequestBody : IAdditionalDataHolder, IParsable + public partial class RepositoriesPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class RepositoriesPutRequestBody : IAdditionalDataHolder, IParsable public List SelectedRepositoryIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoriesPutRequestBody() { @@ -29,12 +31,12 @@ public RepositoriesPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoriesPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Permissions.Repositories.RepositoriesPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoriesPutRequestBody(); + return new global::GitHub.Orgs.Item.Actions.Permissions.Repositories.RepositoriesPutRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Actions/Permissions/Repositories/RepositoriesRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Permissions/Repositories/RepositoriesRequestBuilder.cs index 6caf5963..26e03821 100644 --- a/src/GitHub/Orgs/Item/Actions/Permissions/Repositories/RepositoriesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Permissions/Repositories/RepositoriesRequestBuilder.cs @@ -1,33 +1,35 @@ // using GitHub.Orgs.Item.Actions.Permissions.Repositories.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Permissions.Repositories { +namespace GitHub.Orgs.Item.Actions.Permissions.Repositories +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\permissions\repositories /// - public class RepositoriesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.actions.permissions.repositories.item collection /// The unique identifier of the repository. - /// A - public WithRepository_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.Actions.Permissions.Repositories.Item.WithRepository_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("repository_id", position); - return new WithRepository_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Permissions.Repositories.Item.WithRepository_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public RepositoriesRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,20 +48,20 @@ public RepositoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Lists the selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)."OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RepositoriesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Actions.Permissions.Repositories.RepositoriesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Replaces the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)."OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. @@ -70,11 +72,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(RepositoriesPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Actions.Permissions.Repositories.RepositoriesPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(RepositoriesPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Actions.Permissions.Repositories.RepositoriesPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -88,11 +90,11 @@ public async Task PutAsync(RepositoriesPutRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -108,11 +110,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(RepositoriesPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Actions.Permissions.Repositories.RepositoriesPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(RepositoriesPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Actions.Permissions.Repositories.RepositoriesPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -124,16 +126,17 @@ public RequestInformation ToPutRequestInformation(RepositoriesPutRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RepositoriesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Permissions.Repositories.RepositoriesRequestBuilder WithUrl(string rawUrl) { - return new RepositoriesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Permissions.Repositories.RepositoriesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)."OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// - public class RepositoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Actions/Permissions/SelectedActions/SelectedActionsRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Permissions/SelectedActions/SelectedActionsRequestBuilder.cs index 9255a1ca..805cb0ba 100644 --- a/src/GitHub/Orgs/Item/Actions/Permissions/SelectedActions/SelectedActionsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Permissions/SelectedActions/SelectedActionsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Permissions.SelectedActions { +namespace GitHub.Orgs.Item.Actions.Permissions.SelectedActions +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\permissions\selected-actions /// - public class SelectedActionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SelectedActionsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public SelectedActionsRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public SelectedActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Gets the selected actions and reusable workflows that are allowed in an organization. To use this endpoint, the organization permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)."OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.SelectedActions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.SelectedActions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Sets the actions that are allowed in an organization. To use this endpoint, the organization permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)."If the organization belongs to an enterprise that has `selected` actions set at the enterprise level, then you cannot override any of the enterprise's allowed actions settings.To use the `patterns_allowed` setting for private repositories, the organization must belong to an enterprise. If the organization does not belong to an enterprise, then the `patterns_allowed` setting only applies to public repositories in the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. @@ -58,11 +60,11 @@ public SelectedActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(GitHub.Models.SelectedActions body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.SelectedActions body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(GitHub.Models.SelectedActions body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.SelectedActions body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -96,11 +98,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(GitHub.Models.SelectedActions body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.SelectedActions body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(GitHub.Models.SelectedActions body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.SelectedActions body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -112,11 +114,11 @@ public RequestInformation ToPutRequestInformation(GitHub.Models.SelectedActions /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SelectedActionsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Permissions.SelectedActions.SelectedActionsRequestBuilder WithUrl(string rawUrl) { - return new SelectedActionsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Permissions.SelectedActions.SelectedActionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Actions/Permissions/Workflow/WorkflowRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Permissions/Workflow/WorkflowRequestBuilder.cs index f4027f43..d8c27580 100644 --- a/src/GitHub/Orgs/Item/Actions/Permissions/Workflow/WorkflowRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Permissions/Workflow/WorkflowRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Permissions.Workflow { +namespace GitHub.Orgs.Item.Actions.Permissions.Workflow +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\permissions\workflow /// - public class WorkflowRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WorkflowRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WorkflowRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public WorkflowRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Gets the default workflow permissions granted to the `GITHUB_TOKEN` when running workflows in an organization,as well as whether GitHub Actions can submit approving pull request reviews. For more information, see"[Setting the permissions of the GITHUB_TOKEN for your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-organization-settings/disabling-or-limiting-github-actions-for-your-organization#setting-the-permissions-of-the-github_token-for-your-organization)."OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ActionsGetDefaultWorkflowPermissions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsGetDefaultWorkflowPermissions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Sets the default workflow permissions granted to the `GITHUB_TOKEN` when running workflows in an organization, and sets if GitHub Actionscan submit approving pull request reviews. For more information, see"[Setting the permissions of the GITHUB_TOKEN for your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-organization-settings/disabling-or-limiting-github-actions-for-your-organization#setting-the-permissions-of-the-github_token-for-your-organization)."OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. @@ -58,11 +60,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ActionsSetDefaultWorkflowPermissions body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.ActionsSetDefaultWorkflowPermissions body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(ActionsSetDefaultWorkflowPermissions body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.ActionsSetDefaultWorkflowPermissions body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -96,11 +98,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ActionsSetDefaultWorkflowPermissions body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.ActionsSetDefaultWorkflowPermissions body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(ActionsSetDefaultWorkflowPermissions body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.ActionsSetDefaultWorkflowPermissions body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -112,11 +114,11 @@ public RequestInformation ToPutRequestInformation(ActionsSetDefaultWorkflowPermi /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WorkflowRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Permissions.Workflow.WorkflowRequestBuilder WithUrl(string rawUrl) { - return new WorkflowRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Permissions.Workflow.WorkflowRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Repositories/Item/WithRepository_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Repositories/Item/WithRepository_ItemRequestBuilder.cs index a4ba1a82..b478ce4e 100644 --- a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Repositories/Item/WithRepository_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Repositories/Item/WithRepository_ItemRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories.Item { +namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\runner-groups\{runner_group_id}\repositories\{repository_id} /// - public class WithRepository_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRepository_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public WithRepository_ItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -104,11 +106,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRepository_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories.Item.WithRepository_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithRepository_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories.Item.WithRepository_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Repositories/RepositoriesGetResponse.cs b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Repositories/RepositoriesGetResponse.cs index e3942dfa..d6aac99e 100644 --- a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Repositories/RepositoriesGetResponse.cs +++ b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Repositories/RepositoriesGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories { +namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoriesGetResponse : IAdditionalDataHolder, IParsable + public partial class RepositoriesGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class RepositoriesGetResponse : IAdditionalDataHolder, IParsable /// The repositories property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Repositories { get; set; } + public List? Repositories { get; set; } #nullable restore #else - public List Repositories { get; set; } + public List Repositories { get; set; } #endif /// The total_count property public double? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoriesGetResponse() { @@ -32,12 +34,12 @@ public RepositoriesGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoriesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories.RepositoriesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoriesGetResponse(); + return new global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories.RepositoriesGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"repositories", n => { Repositories = n.GetCollectionOfObjectValues(MinimalRepository.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetDoubleValue(); } }, + { "repositories", n => { Repositories = n.GetCollectionOfObjectValues(global::GitHub.Models.MinimalRepository.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetDoubleValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("repositories", Repositories); + writer.WriteCollectionOfObjectValues("repositories", Repositories); writer.WriteDoubleValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Repositories/RepositoriesPutRequestBody.cs b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Repositories/RepositoriesPutRequestBody.cs index ec981a25..d3d9866f 100644 --- a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Repositories/RepositoriesPutRequestBody.cs +++ b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Repositories/RepositoriesPutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories { +namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoriesPutRequestBody : IAdditionalDataHolder, IParsable + public partial class RepositoriesPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class RepositoriesPutRequestBody : IAdditionalDataHolder, IParsable public List SelectedRepositoryIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoriesPutRequestBody() { @@ -29,12 +31,12 @@ public RepositoriesPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoriesPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories.RepositoriesPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoriesPutRequestBody(); + return new global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories.RepositoriesPutRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Repositories/RepositoriesRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Repositories/RepositoriesRequestBuilder.cs index 53030ffc..191ca77b 100644 --- a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Repositories/RepositoriesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Repositories/RepositoriesRequestBuilder.cs @@ -1,33 +1,35 @@ // using GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories { +namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\runner-groups\{runner_group_id}\repositories /// - public class RepositoriesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.actions.runnerGroups.item.repositories.item collection /// The unique identifier of the repository. - /// A - public WithRepository_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories.Item.WithRepository_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("repository_id", position); - return new WithRepository_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories.Item.WithRepository_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public RepositoriesRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,20 +48,20 @@ public RepositoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Lists the repositories with access to a self-hosted runner group configured in an organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RepositoriesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories.RepositoriesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Replaces the list of repositories that have access to a self-hosted runner group configured in an organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. @@ -70,11 +72,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(RepositoriesPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories.RepositoriesPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(RepositoriesPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories.RepositoriesPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -88,11 +90,11 @@ public async Task PutAsync(RepositoriesPutRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -108,11 +110,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(RepositoriesPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories.RepositoriesPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(RepositoriesPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories.RepositoriesPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -124,16 +126,17 @@ public RequestInformation ToPutRequestInformation(RepositoriesPutRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RepositoriesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories.RepositoriesRequestBuilder WithUrl(string rawUrl) { - return new RepositoriesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories.RepositoriesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the repositories with access to a self-hosted runner group configured in an organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// - public class RepositoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Runners/Item/WithRunner_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Runners/Item/WithRunner_ItemRequestBuilder.cs index 63ed48ab..cf48a8e3 100644 --- a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Runners/Item/WithRunner_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Runners/Item/WithRunner_ItemRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners.Item { +namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\runner-groups\{runner_group_id}\runners\{runner_id} /// - public class WithRunner_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRunner_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public WithRunner_ItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -104,11 +106,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRunner_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners.Item.WithRunner_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithRunner_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners.Item.WithRunner_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Runners/RunnersGetResponse.cs b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Runners/RunnersGetResponse.cs index 5d90e299..a37912fd 100644 --- a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Runners/RunnersGetResponse.cs +++ b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Runners/RunnersGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners { +namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RunnersGetResponse : IAdditionalDataHolder, IParsable + public partial class RunnersGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class RunnersGetResponse : IAdditionalDataHolder, IParsable /// The runners property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Runners { get; set; } + public List? Runners { get; set; } #nullable restore #else - public List Runners { get; set; } + public List Runners { get; set; } #endif /// The total_count property public double? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RunnersGetResponse() { @@ -32,12 +34,12 @@ public RunnersGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RunnersGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners.RunnersGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RunnersGetResponse(); + return new global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners.RunnersGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"runners", n => { Runners = n.GetCollectionOfObjectValues(Runner.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetDoubleValue(); } }, + { "runners", n => { Runners = n.GetCollectionOfObjectValues(global::GitHub.Models.Runner.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetDoubleValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("runners", Runners); + writer.WriteCollectionOfObjectValues("runners", Runners); writer.WriteDoubleValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Runners/RunnersPutRequestBody.cs b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Runners/RunnersPutRequestBody.cs index 745cd419..2d85257f 100644 --- a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Runners/RunnersPutRequestBody.cs +++ b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Runners/RunnersPutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners { +namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RunnersPutRequestBody : IAdditionalDataHolder, IParsable + public partial class RunnersPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class RunnersPutRequestBody : IAdditionalDataHolder, IParsable public List Runners { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RunnersPutRequestBody() { @@ -29,12 +31,12 @@ public RunnersPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RunnersPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners.RunnersPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RunnersPutRequestBody(); + return new global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners.RunnersPutRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"runners", n => { Runners = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "runners", n => { Runners = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Runners/RunnersRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Runners/RunnersRequestBuilder.cs index a58fa654..d8f36872 100644 --- a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Runners/RunnersRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/Runners/RunnersRequestBuilder.cs @@ -1,33 +1,35 @@ // using GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners { +namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\runner-groups\{runner_group_id}\runners /// - public class RunnersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RunnersRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.actions.runnerGroups.item.runners.item collection /// Unique identifier of the self-hosted runner. - /// A - public WithRunner_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners.Item.WithRunner_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("runner_id", position); - return new WithRunner_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners.Item.WithRunner_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public RunnersRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,20 +48,20 @@ public RunnersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Lists self-hosted runners that are in a specific organization group.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RunnersGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners.RunnersGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Replaces the list of self-hosted runners that are part of an organization runner group.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. @@ -70,11 +72,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(RunnersPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners.RunnersPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(RunnersPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners.RunnersPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -88,11 +90,11 @@ public async Task PutAsync(RunnersPutRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -108,11 +110,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(RunnersPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners.RunnersPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(RunnersPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners.RunnersPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -124,16 +126,17 @@ public RequestInformation ToPutRequestInformation(RunnersPutRequestBody body, Ac /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RunnersRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners.RunnersRequestBuilder WithUrl(string rawUrl) { - return new RunnersRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners.RunnersRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists self-hosted runners that are in a specific organization group.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// - public class RunnersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RunnersRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/WithRunner_group_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/WithRunner_group_ItemRequestBuilder.cs index 7cc43fdc..ee43567f 100644 --- a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/WithRunner_group_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/WithRunner_group_ItemRequestBuilder.cs @@ -2,32 +2,34 @@ using GitHub.Models; using GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories; using GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item { +namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\runner-groups\{runner_group_id} /// - public class WithRunner_group_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRunner_group_ItemRequestBuilder : BaseRequestBuilder { /// The repositories property - public RepositoriesRequestBuilder Repositories + public global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories.RepositoriesRequestBuilder Repositories { - get => new RepositoriesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Repositories.RepositoriesRequestBuilder(PathParameters, RequestAdapter); } /// The runners property - public RunnersRequestBuilder Runners + public global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners.RunnersRequestBuilder Runners { - get => new RunnersRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.Runners.RunnersRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public WithRunner_group_ItemRequestBuilder(Dictionary pathParame { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -64,41 +66,41 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RunnerGroupsOrg.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.RunnerGroupsOrg.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Updates the `name` and `visibility` of a self-hosted runner group in an organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithRunner_group_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.WithRunner_group_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithRunner_group_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.WithRunner_group_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RunnerGroupsOrg.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.RunnerGroupsOrg.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Deletes a self-hosted runner group for an organization.OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. @@ -145,11 +147,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithRunner_group_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.WithRunner_group_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithRunner_group_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.WithRunner_group_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -162,11 +164,11 @@ public RequestInformation ToPatchRequestInformation(WithRunner_group_PatchReques /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRunner_group_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.WithRunner_group_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithRunner_group_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.WithRunner_group_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/WithRunner_group_PatchRequestBody.cs b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/WithRunner_group_PatchRequestBody.cs index 0800ef85..a40f997c 100644 --- a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/WithRunner_group_PatchRequestBody.cs +++ b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/WithRunner_group_PatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item { +namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithRunner_group_PatchRequestBody : IAdditionalDataHolder, IParsable + public partial class WithRunner_group_PatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -32,9 +34,9 @@ public class WithRunner_group_PatchRequestBody : IAdditionalDataHolder, IParsabl public List SelectedWorkflows { get; set; } #endif /// Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories. - public WithRunner_group_PatchRequestBody_visibility? Visibility { get; set; } + public global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.WithRunner_group_PatchRequestBody_visibility? Visibility { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithRunner_group_PatchRequestBody() { @@ -43,12 +45,12 @@ public WithRunner_group_PatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithRunner_group_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.WithRunner_group_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithRunner_group_PatchRequestBody(); + return new global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.WithRunner_group_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -58,11 +60,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allows_public_repositories", n => { AllowsPublicRepositories = n.GetBoolValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"restricted_to_workflows", n => { RestrictedToWorkflows = n.GetBoolValue(); } }, - {"selected_workflows", n => { SelectedWorkflows = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, + { "allows_public_repositories", n => { AllowsPublicRepositories = n.GetBoolValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "restricted_to_workflows", n => { RestrictedToWorkflows = n.GetBoolValue(); } }, + { "selected_workflows", n => { SelectedWorkflows = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "visibility", n => { Visibility = n.GetEnumValue(); } }, }; } /// @@ -76,7 +78,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteBoolValue("restricted_to_workflows", RestrictedToWorkflows); writer.WriteCollectionOfPrimitiveValues("selected_workflows", SelectedWorkflows); - writer.WriteEnumValue("visibility", Visibility); + writer.WriteEnumValue("visibility", Visibility); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/WithRunner_group_PatchRequestBody_visibility.cs b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/WithRunner_group_PatchRequestBody_visibility.cs index 5c1991fe..6178d77d 100644 --- a/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/WithRunner_group_PatchRequestBody_visibility.cs +++ b/src/GitHub/Orgs/Item/Actions/RunnerGroups/Item/WithRunner_group_PatchRequestBody_visibility.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item { +namespace GitHub.Orgs.Item.Actions.RunnerGroups.Item +{ /// Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithRunner_group_PatchRequestBody_visibility { [EnumMember(Value = "selected")] diff --git a/src/GitHub/Orgs/Item/Actions/RunnerGroups/RunnerGroupsGetResponse.cs b/src/GitHub/Orgs/Item/Actions/RunnerGroups/RunnerGroupsGetResponse.cs index 7ee920cd..ceeab720 100644 --- a/src/GitHub/Orgs/Item/Actions/RunnerGroups/RunnerGroupsGetResponse.cs +++ b/src/GitHub/Orgs/Item/Actions/RunnerGroups/RunnerGroupsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.RunnerGroups { +namespace GitHub.Orgs.Item.Actions.RunnerGroups +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RunnerGroupsGetResponse : IAdditionalDataHolder, IParsable + public partial class RunnerGroupsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class RunnerGroupsGetResponse : IAdditionalDataHolder, IParsable /// The runner_groups property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? RunnerGroups { get; set; } + public List? RunnerGroups { get; set; } #nullable restore #else - public List RunnerGroups { get; set; } + public List RunnerGroups { get; set; } #endif /// The total_count property public double? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RunnerGroupsGetResponse() { @@ -32,12 +34,12 @@ public RunnerGroupsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RunnerGroupsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.RunnerGroups.RunnerGroupsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RunnerGroupsGetResponse(); + return new global::GitHub.Orgs.Item.Actions.RunnerGroups.RunnerGroupsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"runner_groups", n => { RunnerGroups = n.GetCollectionOfObjectValues(RunnerGroupsOrg.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetDoubleValue(); } }, + { "runner_groups", n => { RunnerGroups = n.GetCollectionOfObjectValues(global::GitHub.Models.RunnerGroupsOrg.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetDoubleValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("runner_groups", RunnerGroups); + writer.WriteCollectionOfObjectValues("runner_groups", RunnerGroups); writer.WriteDoubleValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Actions/RunnerGroups/RunnerGroupsPostRequestBody.cs b/src/GitHub/Orgs/Item/Actions/RunnerGroups/RunnerGroupsPostRequestBody.cs index c3bff794..25ef325c 100644 --- a/src/GitHub/Orgs/Item/Actions/RunnerGroups/RunnerGroupsPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/Actions/RunnerGroups/RunnerGroupsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.RunnerGroups { +namespace GitHub.Orgs.Item.Actions.RunnerGroups +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RunnerGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RunnerGroupsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -48,24 +50,24 @@ public class RunnerGroupsPostRequestBody : IAdditionalDataHolder, IParsable public List SelectedWorkflows { get; set; } #endif /// Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories. - public RunnerGroupsPostRequestBody_visibility? Visibility { get; set; } + public global::GitHub.Orgs.Item.Actions.RunnerGroups.RunnerGroupsPostRequestBody_visibility? Visibility { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RunnerGroupsPostRequestBody() { AdditionalData = new Dictionary(); - Visibility = RunnerGroupsPostRequestBody_visibility.All; + Visibility = global::GitHub.Orgs.Item.Actions.RunnerGroups.RunnerGroupsPostRequestBody_visibility.All; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RunnerGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.RunnerGroups.RunnerGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RunnerGroupsPostRequestBody(); + return new global::GitHub.Orgs.Item.Actions.RunnerGroups.RunnerGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -75,13 +77,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allows_public_repositories", n => { AllowsPublicRepositories = n.GetBoolValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"restricted_to_workflows", n => { RestrictedToWorkflows = n.GetBoolValue(); } }, - {"runners", n => { Runners = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"selected_workflows", n => { SelectedWorkflows = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, + { "allows_public_repositories", n => { AllowsPublicRepositories = n.GetBoolValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "restricted_to_workflows", n => { RestrictedToWorkflows = n.GetBoolValue(); } }, + { "runners", n => { Runners = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "selected_workflows", n => { SelectedWorkflows = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "visibility", n => { Visibility = n.GetEnumValue(); } }, }; } /// @@ -97,7 +99,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteCollectionOfPrimitiveValues("runners", Runners); writer.WriteCollectionOfPrimitiveValues("selected_repository_ids", SelectedRepositoryIds); writer.WriteCollectionOfPrimitiveValues("selected_workflows", SelectedWorkflows); - writer.WriteEnumValue("visibility", Visibility); + writer.WriteEnumValue("visibility", Visibility); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Actions/RunnerGroups/RunnerGroupsPostRequestBody_visibility.cs b/src/GitHub/Orgs/Item/Actions/RunnerGroups/RunnerGroupsPostRequestBody_visibility.cs index 1a4bb8d3..b485a2e8 100644 --- a/src/GitHub/Orgs/Item/Actions/RunnerGroups/RunnerGroupsPostRequestBody_visibility.cs +++ b/src/GitHub/Orgs/Item/Actions/RunnerGroups/RunnerGroupsPostRequestBody_visibility.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Actions.RunnerGroups { +namespace GitHub.Orgs.Item.Actions.RunnerGroups +{ /// Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RunnerGroupsPostRequestBody_visibility { [EnumMember(Value = "selected")] diff --git a/src/GitHub/Orgs/Item/Actions/RunnerGroups/RunnerGroupsRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/RunnerGroups/RunnerGroupsRequestBuilder.cs index 0a47b6c7..31068fd3 100644 --- a/src/GitHub/Orgs/Item/Actions/RunnerGroups/RunnerGroupsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/RunnerGroups/RunnerGroupsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Actions.RunnerGroups.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.RunnerGroups { +namespace GitHub.Orgs.Item.Actions.RunnerGroups +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\runner-groups /// - public class RunnerGroupsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RunnerGroupsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.actions.runnerGroups.item collection /// Unique identifier of the self-hosted runner group. - /// A - public WithRunner_group_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.WithRunner_group_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("runner_group_id", position); - return new WithRunner_group_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.RunnerGroups.Item.WithRunner_group_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public RunnerGroupsRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,41 +49,41 @@ public RunnerGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Lists all self-hosted runner groups configured in an organization and inherited from an enterprise.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RunnerGroupsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Actions.RunnerGroups.RunnerGroupsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Creates a new self-hosted runner group for an organization.OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(RunnerGroupsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Actions.RunnerGroups.RunnerGroupsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(RunnerGroupsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Actions.RunnerGroups.RunnerGroupsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RunnerGroupsOrg.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.RunnerGroupsOrg.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists all self-hosted runner groups configured in an organization and inherited from an enterprise.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. @@ -90,11 +92,11 @@ public async Task PostAsync(RunnerGroupsPostRequestBody body, A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -110,11 +112,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(RunnerGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Actions.RunnerGroups.RunnerGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RunnerGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Actions.RunnerGroups.RunnerGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -127,16 +129,17 @@ public RequestInformation ToPostRequestInformation(RunnerGroupsPostRequestBody b /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RunnerGroupsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.RunnerGroups.RunnerGroupsRequestBuilder WithUrl(string rawUrl) { - return new RunnerGroupsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.RunnerGroups.RunnerGroupsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all self-hosted runner groups configured in an organization and inherited from an enterprise.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// - public class RunnerGroupsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RunnerGroupsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Actions/Runners/Downloads/DownloadsRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Runners/Downloads/DownloadsRequestBuilder.cs index 9defa161..70dc91bd 100644 --- a/src/GitHub/Orgs/Item/Actions/Runners/Downloads/DownloadsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Runners/Downloads/DownloadsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Runners.Downloads { +namespace GitHub.Orgs.Item.Actions.Runners.Downloads +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\runners\downloads /// - public class DownloadsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DownloadsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public DownloadsRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public DownloadsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Lists binaries for the runner application that you can download and run.Authenticated users must have admin access to the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. /// API method documentation /// - /// A List<RunnerApplication> + /// A List<global::GitHub.Models.RunnerApplication> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RunnerApplication.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.RunnerApplication.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists binaries for the runner application that you can download and run.Authenticated users must have admin access to the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. @@ -72,11 +74,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DownloadsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Runners.Downloads.DownloadsRequestBuilder WithUrl(string rawUrl) { - return new DownloadsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Runners.Downloads.DownloadsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostRequestBody.cs b/src/GitHub/Orgs/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostRequestBody.cs index 8bd0afcf..892a876a 100644 --- a/src/GitHub/Orgs/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Runners.GenerateJitconfig { +namespace GitHub.Orgs.Item.Actions.Runners.GenerateJitconfig +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GenerateJitconfigPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GenerateJitconfigPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -38,7 +40,7 @@ public class GenerateJitconfigPostRequestBody : IAdditionalDataHolder, IParsable public string WorkFolder { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GenerateJitconfigPostRequestBody() { @@ -48,12 +50,12 @@ public GenerateJitconfigPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GenerateJitconfigPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GenerateJitconfigPostRequestBody(); + return new global::GitHub.Orgs.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostRequestBody(); } /// /// The deserialization information for the current model @@ -63,10 +65,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"runner_group_id", n => { RunnerGroupId = n.GetIntValue(); } }, - {"work_folder", n => { WorkFolder = n.GetStringValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "runner_group_id", n => { RunnerGroupId = n.GetIntValue(); } }, + { "work_folder", n => { WorkFolder = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostResponse.cs b/src/GitHub/Orgs/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostResponse.cs index b71ceeda..c32e2273 100644 --- a/src/GitHub/Orgs/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostResponse.cs +++ b/src/GitHub/Orgs/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Runners.GenerateJitconfig { +namespace GitHub.Orgs.Item.Actions.Runners.GenerateJitconfig +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GenerateJitconfigPostResponse : IAdditionalDataHolder, IParsable + public partial class GenerateJitconfigPostResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -23,13 +25,13 @@ public class GenerateJitconfigPostResponse : IAdditionalDataHolder, IParsable /// A self hosted runner #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Runner? Runner { get; set; } + public global::GitHub.Models.Runner? Runner { get; set; } #nullable restore #else - public GitHub.Models.Runner Runner { get; set; } + public global::GitHub.Models.Runner Runner { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GenerateJitconfigPostResponse() { @@ -38,12 +40,12 @@ public GenerateJitconfigPostResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GenerateJitconfigPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GenerateJitconfigPostResponse(); + return new global::GitHub.Orgs.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostResponse(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"encoded_jit_config", n => { EncodedJitConfig = n.GetStringValue(); } }, - {"runner", n => { Runner = n.GetObjectValue(GitHub.Models.Runner.CreateFromDiscriminatorValue); } }, + { "encoded_jit_config", n => { EncodedJitConfig = n.GetStringValue(); } }, + { "runner", n => { Runner = n.GetObjectValue(global::GitHub.Models.Runner.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,7 +67,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("encoded_jit_config", EncodedJitConfig); - writer.WriteObjectValue("runner", Runner); + writer.WriteObjectValue("runner", Runner); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigRequestBuilder.cs index f5388df5..9340f4d5 100644 --- a/src/GitHub/Orgs/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Runners.GenerateJitconfig { +namespace GitHub.Orgs.Item.Actions.Runners.GenerateJitconfig +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\runners\generate-jitconfig /// - public class GenerateJitconfigRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GenerateJitconfigRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public GenerateJitconfigRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,29 +36,29 @@ public GenerateJitconfigRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Generates a configuration that can be passed to the runner application at startup.The authenticated user must have admin access to the organization.OAuth tokens and personal access tokens (classic) need the`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(GenerateJitconfigPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(GenerateJitconfigPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GenerateJitconfigPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Generates a configuration that can be passed to the runner application at startup.The authenticated user must have admin access to the organization.OAuth tokens and personal access tokens (classic) need the`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -66,11 +68,11 @@ public async Task PostAsync(GenerateJitconfigPost /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(GenerateJitconfigPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GenerateJitconfigPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -83,11 +85,11 @@ public RequestInformation ToPostRequestInformation(GenerateJitconfigPostRequestB /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public GenerateJitconfigRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigRequestBuilder WithUrl(string rawUrl) { - return new GenerateJitconfigRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/Item/WithNameDeleteResponse.cs b/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/Item/WithNameDeleteResponse.cs index d2fd6e12..2de9347f 100644 --- a/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/Item/WithNameDeleteResponse.cs +++ b/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/Item/WithNameDeleteResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Runners.Item.Labels.Item { +namespace GitHub.Orgs.Item.Actions.Runners.Item.Labels.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithNameDeleteResponse : IAdditionalDataHolder, IParsable + public partial class WithNameDeleteResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class WithNameDeleteResponse : IAdditionalDataHolder, IParsable /// The labels property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Labels { get; set; } + public List? Labels { get; set; } #nullable restore #else - public List Labels { get; set; } + public List Labels { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithNameDeleteResponse() { @@ -32,12 +34,12 @@ public WithNameDeleteResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithNameDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.Item.WithNameDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithNameDeleteResponse(); + return new global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.Item.WithNameDeleteResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfObjectValues(RunnerLabel.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfObjectValues(global::GitHub.Models.RunnerLabel.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("labels", Labels); + writer.WriteCollectionOfObjectValues("labels", Labels); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/Item/WithNameItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/Item/WithNameItemRequestBuilder.cs index 30641c08..e0e06279 100644 --- a/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/Item/WithNameItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/Item/WithNameItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Runners.Item.Labels.Item { +namespace GitHub.Orgs.Item.Actions.Runners.Item.Labels.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\runners\{runner_id}\labels\{name} /// - public class WithNameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithNameItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithNameItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public WithNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Remove a custom label from a self-hosted runner configuredin an organization. Returns the remaining labels from the runner.This endpoint returns a `404 Not Found` status if the custom label is notpresent on the runner.Authenticated users must have admin access to the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, WithNameDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.Item.WithNameDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Remove a custom label from a self-hosted runner configuredin an organization. Returns the remaining labels from the runner.This endpoint returns a `404 Not Found` status if the custom label is notpresent on the runner.Authenticated users must have admin access to the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. @@ -78,11 +80,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithNameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.Item.WithNameItemRequestBuilder WithUrl(string rawUrl) { - return new WithNameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.Item.WithNameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsDeleteResponse.cs b/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsDeleteResponse.cs index 6265b903..49ba8195 100644 --- a/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsDeleteResponse.cs +++ b/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsDeleteResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Runners.Item.Labels { +namespace GitHub.Orgs.Item.Actions.Runners.Item.Labels +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class LabelsDeleteResponse : IAdditionalDataHolder, IParsable + public partial class LabelsDeleteResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class LabelsDeleteResponse : IAdditionalDataHolder, IParsable /// The labels property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Labels { get; set; } + public List? Labels { get; set; } #nullable restore #else - public List Labels { get; set; } + public List Labels { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LabelsDeleteResponse() { @@ -32,12 +34,12 @@ public LabelsDeleteResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LabelsDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LabelsDeleteResponse(); + return new global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsDeleteResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfObjectValues(RunnerLabel.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfObjectValues(global::GitHub.Models.RunnerLabel.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("labels", Labels); + writer.WriteCollectionOfObjectValues("labels", Labels); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsGetResponse.cs b/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsGetResponse.cs index fb3411a7..b8ec1b59 100644 --- a/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsGetResponse.cs +++ b/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Runners.Item.Labels { +namespace GitHub.Orgs.Item.Actions.Runners.Item.Labels +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class LabelsGetResponse : IAdditionalDataHolder, IParsable + public partial class LabelsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class LabelsGetResponse : IAdditionalDataHolder, IParsable /// The labels property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Labels { get; set; } + public List? Labels { get; set; } #nullable restore #else - public List Labels { get; set; } + public List Labels { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LabelsGetResponse() { @@ -32,12 +34,12 @@ public LabelsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LabelsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LabelsGetResponse(); + return new global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfObjectValues(RunnerLabel.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfObjectValues(global::GitHub.Models.RunnerLabel.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("labels", Labels); + writer.WriteCollectionOfObjectValues("labels", Labels); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsPostRequestBody.cs b/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsPostRequestBody.cs index e535fa89..f8a0d1b6 100644 --- a/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Runners.Item.Labels { +namespace GitHub.Orgs.Item.Actions.Runners.Item.Labels +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class LabelsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class LabelsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class LabelsPostRequestBody : IAdditionalDataHolder, IParsable public List Labels { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LabelsPostRequestBody() { @@ -29,12 +31,12 @@ public LabelsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LabelsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LabelsPostRequestBody(); + return new global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsPostRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsPostResponse.cs b/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsPostResponse.cs index 204d0c6d..d6dc1469 100644 --- a/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsPostResponse.cs +++ b/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsPostResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Runners.Item.Labels { +namespace GitHub.Orgs.Item.Actions.Runners.Item.Labels +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class LabelsPostResponse : IAdditionalDataHolder, IParsable + public partial class LabelsPostResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class LabelsPostResponse : IAdditionalDataHolder, IParsable /// The labels property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Labels { get; set; } + public List? Labels { get; set; } #nullable restore #else - public List Labels { get; set; } + public List Labels { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LabelsPostResponse() { @@ -32,12 +34,12 @@ public LabelsPostResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LabelsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LabelsPostResponse(); + return new global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsPostResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfObjectValues(RunnerLabel.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfObjectValues(global::GitHub.Models.RunnerLabel.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("labels", Labels); + writer.WriteCollectionOfObjectValues("labels", Labels); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsPutRequestBody.cs b/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsPutRequestBody.cs index 45e95fea..85a6c2f3 100644 --- a/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsPutRequestBody.cs +++ b/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsPutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Runners.Item.Labels { +namespace GitHub.Orgs.Item.Actions.Runners.Item.Labels +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class LabelsPutRequestBody : IAdditionalDataHolder, IParsable + public partial class LabelsPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class LabelsPutRequestBody : IAdditionalDataHolder, IParsable public List Labels { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LabelsPutRequestBody() { @@ -29,12 +31,12 @@ public LabelsPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LabelsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LabelsPutRequestBody(); + return new global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsPutRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsPutResponse.cs b/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsPutResponse.cs index baafaebe..165831cc 100644 --- a/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsPutResponse.cs +++ b/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsPutResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Runners.Item.Labels { +namespace GitHub.Orgs.Item.Actions.Runners.Item.Labels +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class LabelsPutResponse : IAdditionalDataHolder, IParsable + public partial class LabelsPutResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class LabelsPutResponse : IAdditionalDataHolder, IParsable /// The labels property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Labels { get; set; } + public List? Labels { get; set; } #nullable restore #else - public List Labels { get; set; } + public List Labels { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LabelsPutResponse() { @@ -32,12 +34,12 @@ public LabelsPutResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LabelsPutResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsPutResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LabelsPutResponse(); + return new global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsPutResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfObjectValues(RunnerLabel.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfObjectValues(global::GitHub.Models.RunnerLabel.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("labels", Labels); + writer.WriteCollectionOfObjectValues("labels", Labels); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsRequestBuilder.cs index e1bb1b4e..7f62ad53 100644 --- a/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Runners/Item/Labels/LabelsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Actions.Runners.Item.Labels.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Runners.Item.Labels { +namespace GitHub.Orgs.Item.Actions.Runners.Item.Labels +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\runners\{runner_id}\labels /// - public class LabelsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class LabelsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.actions.runners.item.labels.item collection /// The name of a self-hosted runner's custom label. - /// A - public WithNameItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.Item.WithNameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("name", position); - return new WithNameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.Item.WithNameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public LabelsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,105 +49,105 @@ public LabelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Remove all custom labels from a self-hosted runner configured in anorganization. Returns the remaining read-only labels from the runner.Authenticated users must have admin access to the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, LabelsDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists all labels for a self-hosted runner configured in an organization.Authenticated users must have admin access to the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, LabelsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Adds custom labels to a self-hosted runner configured in an organization.Authenticated users must have admin access to the organization to use this endpoint.OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(LabelsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(LabelsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, LabelsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Remove all previous custom labels and set the new custom labels for a specificself-hosted runner configured in an organization.Authenticated users must have admin access to the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(LabelsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(LabelsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, LabelsPutResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsPutResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Remove all custom labels from a self-hosted runner configured in anorganization. Returns the remaining read-only labels from the runner.Authenticated users must have admin access to the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. @@ -193,11 +195,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(LabelsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(LabelsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -215,11 +217,11 @@ public RequestInformation ToPostRequestInformation(LabelsPostRequestBody body, A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(LabelsPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(LabelsPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -232,11 +234,11 @@ public RequestInformation ToPutRequestInformation(LabelsPutRequestBody body, Act /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public LabelsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsRequestBuilder WithUrl(string rawUrl) { - return new LabelsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Actions/Runners/Item/WithRunner_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Runners/Item/WithRunner_ItemRequestBuilder.cs index d51a263a..7403e259 100644 --- a/src/GitHub/Orgs/Item/Actions/Runners/Item/WithRunner_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Runners/Item/WithRunner_ItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Orgs.Item.Actions.Runners.Item.Labels; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Runners.Item { +namespace GitHub.Orgs.Item.Actions.Runners.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\runners\{runner_id} /// - public class WithRunner_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRunner_ItemRequestBuilder : BaseRequestBuilder { /// The labels property - public LabelsRequestBuilder Labels + public global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsRequestBuilder Labels { - get => new LabelsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.Runners.Item.Labels.LabelsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithRunner_ItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -58,20 +60,20 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, Runner.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Runner.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Forces the removal of a self-hosted runner from an organization. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.Authenticated users must have admin access to the organization to use this endpoint.OAuth tokens and personal access tokens (classic) need the`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -113,11 +115,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRunner_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Runners.Item.WithRunner_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithRunner_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Runners.Item.WithRunner_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Actions/Runners/RegistrationToken/RegistrationTokenRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Runners/RegistrationToken/RegistrationTokenRequestBuilder.cs index 038dcae0..7eb856f3 100644 --- a/src/GitHub/Orgs/Item/Actions/Runners/RegistrationToken/RegistrationTokenRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Runners/RegistrationToken/RegistrationTokenRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Runners.RegistrationToken { +namespace GitHub.Orgs.Item.Actions.Runners.RegistrationToken +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\runners\registration-token /// - public class RegistrationTokenRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RegistrationTokenRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RegistrationTokenRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public RegistrationTokenRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Returns a token that you can pass to the `config` script. The token expires after one hour.For example, you can replace `TOKEN` in the following example with the registration token provided by this endpoint to configure your self-hosted runner:```./config.sh --url https://github.com/octo-org --token TOKEN```Authenticated users must have admin access to the organization to use this endpoint.OAuth tokens and personal access tokens (classic) need the`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, AuthenticationToken.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.AuthenticationToken.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Returns a token that you can pass to the `config` script. The token expires after one hour.For example, you can replace `TOKEN` in the following example with the registration token provided by this endpoint to configure your self-hosted runner:```./config.sh --url https://github.com/octo-org --token TOKEN```Authenticated users must have admin access to the organization to use this endpoint.OAuth tokens and personal access tokens (classic) need the`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -71,11 +73,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RegistrationTokenRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Runners.RegistrationToken.RegistrationTokenRequestBuilder WithUrl(string rawUrl) { - return new RegistrationTokenRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Runners.RegistrationToken.RegistrationTokenRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Actions/Runners/RemoveToken/RemoveTokenRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Runners/RemoveToken/RemoveTokenRequestBuilder.cs index a9c455ce..a9ba4221 100644 --- a/src/GitHub/Orgs/Item/Actions/Runners/RemoveToken/RemoveTokenRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Runners/RemoveToken/RemoveTokenRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Runners.RemoveToken { +namespace GitHub.Orgs.Item.Actions.Runners.RemoveToken +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\runners\remove-token /// - public class RemoveTokenRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RemoveTokenRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RemoveTokenRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public RemoveTokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Returns a token that you can pass to the `config` script to remove a self-hosted runner from an organization. The token expires after one hour.For example, you can replace `TOKEN` in the following example with the registration token provided by this endpoint to remove your self-hosted runner from an organization:```./config.sh remove --token TOKEN```Authenticated users must have admin access to the organization to use this endpoint.OAuth tokens and personal access tokens (classic) need the`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, AuthenticationToken.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.AuthenticationToken.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Returns a token that you can pass to the `config` script to remove a self-hosted runner from an organization. The token expires after one hour.For example, you can replace `TOKEN` in the following example with the registration token provided by this endpoint to remove your self-hosted runner from an organization:```./config.sh remove --token TOKEN```Authenticated users must have admin access to the organization to use this endpoint.OAuth tokens and personal access tokens (classic) need the`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -71,11 +73,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RemoveTokenRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Runners.RemoveToken.RemoveTokenRequestBuilder WithUrl(string rawUrl) { - return new RemoveTokenRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Runners.RemoveToken.RemoveTokenRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Actions/Runners/RunnersGetResponse.cs b/src/GitHub/Orgs/Item/Actions/Runners/RunnersGetResponse.cs index a0670d9a..3237e360 100644 --- a/src/GitHub/Orgs/Item/Actions/Runners/RunnersGetResponse.cs +++ b/src/GitHub/Orgs/Item/Actions/Runners/RunnersGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Runners { +namespace GitHub.Orgs.Item.Actions.Runners +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RunnersGetResponse : IAdditionalDataHolder, IParsable + public partial class RunnersGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class RunnersGetResponse : IAdditionalDataHolder, IParsable /// The runners property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Runners { get; set; } + public List? Runners { get; set; } #nullable restore #else - public List Runners { get; set; } + public List Runners { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RunnersGetResponse() { @@ -32,12 +34,12 @@ public RunnersGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RunnersGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Runners.RunnersGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RunnersGetResponse(); + return new global::GitHub.Orgs.Item.Actions.Runners.RunnersGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"runners", n => { Runners = n.GetCollectionOfObjectValues(Runner.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "runners", n => { Runners = n.GetCollectionOfObjectValues(global::GitHub.Models.Runner.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("runners", Runners); + writer.WriteCollectionOfObjectValues("runners", Runners); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Actions/Runners/RunnersRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Runners/RunnersRequestBuilder.cs index fc9a7902..17671a29 100644 --- a/src/GitHub/Orgs/Item/Actions/Runners/RunnersRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Runners/RunnersRequestBuilder.cs @@ -4,54 +4,56 @@ using GitHub.Orgs.Item.Actions.Runners.Item; using GitHub.Orgs.Item.Actions.Runners.RegistrationToken; using GitHub.Orgs.Item.Actions.Runners.RemoveToken; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Runners { +namespace GitHub.Orgs.Item.Actions.Runners +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\runners /// - public class RunnersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RunnersRequestBuilder : BaseRequestBuilder { /// The downloads property - public DownloadsRequestBuilder Downloads + public global::GitHub.Orgs.Item.Actions.Runners.Downloads.DownloadsRequestBuilder Downloads { - get => new DownloadsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.Runners.Downloads.DownloadsRequestBuilder(PathParameters, RequestAdapter); } /// The generateJitconfig property - public GenerateJitconfigRequestBuilder GenerateJitconfig + public global::GitHub.Orgs.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigRequestBuilder GenerateJitconfig { - get => new GenerateJitconfigRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigRequestBuilder(PathParameters, RequestAdapter); } /// The registrationToken property - public RegistrationTokenRequestBuilder RegistrationToken + public global::GitHub.Orgs.Item.Actions.Runners.RegistrationToken.RegistrationTokenRequestBuilder RegistrationToken { - get => new RegistrationTokenRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.Runners.RegistrationToken.RegistrationTokenRequestBuilder(PathParameters, RequestAdapter); } /// The removeToken property - public RemoveTokenRequestBuilder RemoveToken + public global::GitHub.Orgs.Item.Actions.Runners.RemoveToken.RemoveTokenRequestBuilder RemoveToken { - get => new RemoveTokenRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.Runners.RemoveToken.RemoveTokenRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.orgs.item.actions.runners.item collection /// Unique identifier of the self-hosted runner. - /// A - public WithRunner_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.Actions.Runners.Item.WithRunner_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("runner_id", position); - return new WithRunner_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Runners.Item.WithRunner_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -59,7 +61,7 @@ public RunnersRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -70,20 +72,20 @@ public RunnersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Lists all self-hosted runners configured in an organization.Authenticated users must have admin access to the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RunnersGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Actions.Runners.RunnersGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists all self-hosted runners configured in an organization.Authenticated users must have admin access to the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. @@ -92,11 +94,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -107,16 +109,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RunnersRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Runners.RunnersRequestBuilder WithUrl(string rawUrl) { - return new RunnersRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Runners.RunnersRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all self-hosted runners configured in an organization.Authenticated users must have admin access to the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. /// - public class RunnersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RunnersRequestBuilderGetQueryParameters { /// The name of a self-hosted runner. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Orgs/Item/Actions/Secrets/Item/Repositories/Item/WithRepository_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Secrets/Item/Repositories/Item/WithRepository_ItemRequestBuilder.cs index a545606b..5e2d59ba 100644 --- a/src/GitHub/Orgs/Item/Actions/Secrets/Item/Repositories/Item/WithRepository_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Secrets/Item/Repositories/Item/WithRepository_ItemRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Secrets.Item.Repositories.Item { +namespace GitHub.Orgs.Item.Actions.Secrets.Item.Repositories.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\secrets\{secret_name}\repositories\{repository_id} /// - public class WithRepository_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRepository_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public WithRepository_ItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -104,11 +106,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRepository_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Secrets.Item.Repositories.Item.WithRepository_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithRepository_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Secrets.Item.Repositories.Item.WithRepository_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Actions/Secrets/Item/Repositories/RepositoriesGetResponse.cs b/src/GitHub/Orgs/Item/Actions/Secrets/Item/Repositories/RepositoriesGetResponse.cs index ec7cc084..3e2181c6 100644 --- a/src/GitHub/Orgs/Item/Actions/Secrets/Item/Repositories/RepositoriesGetResponse.cs +++ b/src/GitHub/Orgs/Item/Actions/Secrets/Item/Repositories/RepositoriesGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Secrets.Item.Repositories { +namespace GitHub.Orgs.Item.Actions.Secrets.Item.Repositories +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoriesGetResponse : IAdditionalDataHolder, IParsable + public partial class RepositoriesGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class RepositoriesGetResponse : IAdditionalDataHolder, IParsable /// The repositories property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Repositories { get; set; } + public List? Repositories { get; set; } #nullable restore #else - public List Repositories { get; set; } + public List Repositories { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoriesGetResponse() { @@ -32,12 +34,12 @@ public RepositoriesGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoriesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Secrets.Item.Repositories.RepositoriesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoriesGetResponse(); + return new global::GitHub.Orgs.Item.Actions.Secrets.Item.Repositories.RepositoriesGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"repositories", n => { Repositories = n.GetCollectionOfObjectValues(MinimalRepository.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "repositories", n => { Repositories = n.GetCollectionOfObjectValues(global::GitHub.Models.MinimalRepository.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("repositories", Repositories); + writer.WriteCollectionOfObjectValues("repositories", Repositories); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Actions/Secrets/Item/Repositories/RepositoriesPutRequestBody.cs b/src/GitHub/Orgs/Item/Actions/Secrets/Item/Repositories/RepositoriesPutRequestBody.cs index 04e19f76..3e3cc318 100644 --- a/src/GitHub/Orgs/Item/Actions/Secrets/Item/Repositories/RepositoriesPutRequestBody.cs +++ b/src/GitHub/Orgs/Item/Actions/Secrets/Item/Repositories/RepositoriesPutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Secrets.Item.Repositories { +namespace GitHub.Orgs.Item.Actions.Secrets.Item.Repositories +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoriesPutRequestBody : IAdditionalDataHolder, IParsable + public partial class RepositoriesPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class RepositoriesPutRequestBody : IAdditionalDataHolder, IParsable public List SelectedRepositoryIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoriesPutRequestBody() { @@ -29,12 +31,12 @@ public RepositoriesPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoriesPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Secrets.Item.Repositories.RepositoriesPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoriesPutRequestBody(); + return new global::GitHub.Orgs.Item.Actions.Secrets.Item.Repositories.RepositoriesPutRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Actions/Secrets/Item/Repositories/RepositoriesRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Secrets/Item/Repositories/RepositoriesRequestBuilder.cs index ab909512..3a6d74b5 100644 --- a/src/GitHub/Orgs/Item/Actions/Secrets/Item/Repositories/RepositoriesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Secrets/Item/Repositories/RepositoriesRequestBuilder.cs @@ -1,33 +1,35 @@ // using GitHub.Orgs.Item.Actions.Secrets.Item.Repositories.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Secrets.Item.Repositories { +namespace GitHub.Orgs.Item.Actions.Secrets.Item.Repositories +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\secrets\{secret_name}\repositories /// - public class RepositoriesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.actions.secrets.item.repositories.item collection /// Unique identifier of the item - /// A - public WithRepository_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.Actions.Secrets.Item.Repositories.Item.WithRepository_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("repository_id", position); - return new WithRepository_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Secrets.Item.Repositories.Item.WithRepository_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public RepositoriesRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,20 +48,20 @@ public RepositoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Lists all repositories that have been selected when the `visibility`for repository access to a secret is set to `selected`.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 `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RepositoriesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Actions.Secrets.Item.Repositories.RepositoriesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Replaces all repositories for an organization secret when the `visibility`for repository access is set to `selected`. The visibility is set when you [Createor update an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#create-or-update-an-organization-secret).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 `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. @@ -70,11 +72,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(RepositoriesPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Actions.Secrets.Item.Repositories.RepositoriesPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(RepositoriesPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Actions.Secrets.Item.Repositories.RepositoriesPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -88,11 +90,11 @@ public async Task PutAsync(RepositoriesPutRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -108,11 +110,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(RepositoriesPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Actions.Secrets.Item.Repositories.RepositoriesPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(RepositoriesPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Actions.Secrets.Item.Repositories.RepositoriesPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -124,16 +126,17 @@ public RequestInformation ToPutRequestInformation(RepositoriesPutRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RepositoriesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Secrets.Item.Repositories.RepositoriesRequestBuilder WithUrl(string rawUrl) { - return new RepositoriesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Secrets.Item.Repositories.RepositoriesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all repositories that have been selected when the `visibility`for repository access to a secret is set to `selected`.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 `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. /// - public class RepositoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Actions/Secrets/Item/WithSecret_nameItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Secrets/Item/WithSecret_nameItemRequestBuilder.cs index 9b68f469..92febc98 100644 --- a/src/GitHub/Orgs/Item/Actions/Secrets/Item/WithSecret_nameItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Secrets/Item/WithSecret_nameItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Orgs.Item.Actions.Secrets.Item.Repositories; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Secrets.Item { +namespace GitHub.Orgs.Item.Actions.Secrets.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\secrets\{secret_name} /// - public class WithSecret_nameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithSecret_nameItemRequestBuilder : BaseRequestBuilder { /// The repositories property - public RepositoriesRequestBuilder Repositories + public global::GitHub.Orgs.Item.Actions.Secrets.Item.Repositories.RepositoriesRequestBuilder Repositories { - get => new RepositoriesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.Secrets.Item.Repositories.RepositoriesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithSecret_nameItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -58,41 +60,41 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, OrganizationActionsSecret.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrganizationActionsSecret.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Creates or updates an organization 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/enterprise-cloud@latest//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`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(WithSecret_namePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Actions.Secrets.Item.WithSecret_namePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(WithSecret_namePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Actions.Secrets.Item.WithSecret_namePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Deletes a secret in an organization 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`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -139,11 +141,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(WithSecret_namePutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Actions.Secrets.Item.WithSecret_namePutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(WithSecret_namePutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Actions.Secrets.Item.WithSecret_namePutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -156,11 +158,11 @@ public RequestInformation ToPutRequestInformation(WithSecret_namePutRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithSecret_nameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Secrets.Item.WithSecret_nameItemRequestBuilder WithUrl(string rawUrl) { - return new WithSecret_nameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Secrets.Item.WithSecret_nameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Actions/Secrets/Item/WithSecret_namePutRequestBody.cs b/src/GitHub/Orgs/Item/Actions/Secrets/Item/WithSecret_namePutRequestBody.cs index 7b93fa5a..0d469cb6 100644 --- a/src/GitHub/Orgs/Item/Actions/Secrets/Item/WithSecret_namePutRequestBody.cs +++ b/src/GitHub/Orgs/Item/Actions/Secrets/Item/WithSecret_namePutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Secrets.Item { +namespace GitHub.Orgs.Item.Actions.Secrets.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithSecret_namePutRequestBody : IAdditionalDataHolder, IParsable + public partial class WithSecret_namePutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,9 +38,9 @@ public class WithSecret_namePutRequestBody : IAdditionalDataHolder, IParsable public List SelectedRepositoryIds { get; set; } #endif /// Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. - public WithSecret_namePutRequestBody_visibility? Visibility { get; set; } + public global::GitHub.Orgs.Item.Actions.Secrets.Item.WithSecret_namePutRequestBody_visibility? Visibility { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithSecret_namePutRequestBody() { @@ -47,12 +49,12 @@ public WithSecret_namePutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithSecret_namePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Secrets.Item.WithSecret_namePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithSecret_namePutRequestBody(); + return new global::GitHub.Orgs.Item.Actions.Secrets.Item.WithSecret_namePutRequestBody(); } /// /// The deserialization information for the current model @@ -62,10 +64,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"encrypted_value", n => { EncryptedValue = n.GetStringValue(); } }, - {"key_id", n => { KeyId = n.GetStringValue(); } }, - {"selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, + { "encrypted_value", n => { EncryptedValue = n.GetStringValue(); } }, + { "key_id", n => { KeyId = n.GetStringValue(); } }, + { "selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "visibility", n => { Visibility = n.GetEnumValue(); } }, }; } /// @@ -78,7 +80,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("encrypted_value", EncryptedValue); writer.WriteStringValue("key_id", KeyId); writer.WriteCollectionOfPrimitiveValues("selected_repository_ids", SelectedRepositoryIds); - writer.WriteEnumValue("visibility", Visibility); + writer.WriteEnumValue("visibility", Visibility); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Actions/Secrets/Item/WithSecret_namePutRequestBody_visibility.cs b/src/GitHub/Orgs/Item/Actions/Secrets/Item/WithSecret_namePutRequestBody_visibility.cs index 47101bd5..2fdc9c22 100644 --- a/src/GitHub/Orgs/Item/Actions/Secrets/Item/WithSecret_namePutRequestBody_visibility.cs +++ b/src/GitHub/Orgs/Item/Actions/Secrets/Item/WithSecret_namePutRequestBody_visibility.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Actions.Secrets.Item { +namespace GitHub.Orgs.Item.Actions.Secrets.Item +{ /// Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithSecret_namePutRequestBody_visibility { [EnumMember(Value = "all")] diff --git a/src/GitHub/Orgs/Item/Actions/Secrets/PublicKey/PublicKeyRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Secrets/PublicKey/PublicKeyRequestBuilder.cs index b7564245..e23b97c8 100644 --- a/src/GitHub/Orgs/Item/Actions/Secrets/PublicKey/PublicKeyRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Secrets/PublicKey/PublicKeyRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Secrets.PublicKey { +namespace GitHub.Orgs.Item.Actions.Secrets.PublicKey +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\secrets\public-key /// - public class PublicKeyRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PublicKeyRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public PublicKeyRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public PublicKeyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Gets your public key, which you need to encrypt secrets. You need toencrypt a secret before you can create or update secrets.The authenticated user must have collaborator access to a repository to create, update, or read secrets.OAuth tokens and personal access tokens (classic) need the`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ActionsPublicKey.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsPublicKey.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets your public key, which you need to encrypt secrets. You need toencrypt a secret before you can create or update secrets.The authenticated user must have collaborator access to a repository to create, update, or read secrets.OAuth tokens and personal access tokens (classic) need the`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PublicKeyRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Secrets.PublicKey.PublicKeyRequestBuilder WithUrl(string rawUrl) { - return new PublicKeyRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Secrets.PublicKey.PublicKeyRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Actions/Secrets/SecretsGetResponse.cs b/src/GitHub/Orgs/Item/Actions/Secrets/SecretsGetResponse.cs index b31f9cd2..46e2bb02 100644 --- a/src/GitHub/Orgs/Item/Actions/Secrets/SecretsGetResponse.cs +++ b/src/GitHub/Orgs/Item/Actions/Secrets/SecretsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Secrets { +namespace GitHub.Orgs.Item.Actions.Secrets +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SecretsGetResponse : IAdditionalDataHolder, IParsable + public partial class SecretsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class SecretsGetResponse : IAdditionalDataHolder, IParsable /// The secrets property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Secrets { get; set; } + public List? Secrets { get; set; } #nullable restore #else - public List Secrets { get; set; } + public List Secrets { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretsGetResponse() { @@ -32,12 +34,12 @@ public SecretsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Secrets.SecretsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretsGetResponse(); + return new global::GitHub.Orgs.Item.Actions.Secrets.SecretsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"secrets", n => { Secrets = n.GetCollectionOfObjectValues(OrganizationActionsSecret.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "secrets", n => { Secrets = n.GetCollectionOfObjectValues(global::GitHub.Models.OrganizationActionsSecret.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("secrets", Secrets); + writer.WriteCollectionOfObjectValues("secrets", Secrets); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Actions/Secrets/SecretsRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Secrets/SecretsRequestBuilder.cs index 419874de..be8c4b51 100644 --- a/src/GitHub/Orgs/Item/Actions/Secrets/SecretsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Secrets/SecretsRequestBuilder.cs @@ -1,39 +1,41 @@ // using GitHub.Orgs.Item.Actions.Secrets.Item; using GitHub.Orgs.Item.Actions.Secrets.PublicKey; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Secrets { +namespace GitHub.Orgs.Item.Actions.Secrets +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\secrets /// - public class SecretsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretsRequestBuilder : BaseRequestBuilder { /// The publicKey property - public PublicKeyRequestBuilder PublicKey + public global::GitHub.Orgs.Item.Actions.Secrets.PublicKey.PublicKeyRequestBuilder PublicKey { - get => new PublicKeyRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.Secrets.PublicKey.PublicKeyRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.orgs.item.actions.secrets.item collection /// The name of the secret. - /// A - public WithSecret_nameItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Actions.Secrets.Item.WithSecret_nameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("secret_name", position); - return new WithSecret_nameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Secrets.Item.WithSecret_nameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -41,7 +43,7 @@ public SecretsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,20 +54,20 @@ public SecretsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Lists all secrets available in an organization 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 `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, SecretsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Actions.Secrets.SecretsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists all secrets available in an organization 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 `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. @@ -74,11 +76,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -89,16 +91,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SecretsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Secrets.SecretsRequestBuilder WithUrl(string rawUrl) { - return new SecretsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Secrets.SecretsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all secrets available in an organization 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 `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. /// - public class SecretsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Actions/Variables/Item/Repositories/Item/WithRepository_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Variables/Item/Repositories/Item/WithRepository_ItemRequestBuilder.cs index 4b4a53c9..5f40ae63 100644 --- a/src/GitHub/Orgs/Item/Actions/Variables/Item/Repositories/Item/WithRepository_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Variables/Item/Repositories/Item/WithRepository_ItemRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Variables.Item.Repositories.Item { +namespace GitHub.Orgs.Item.Actions.Variables.Item.Repositories.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\variables\{name}\repositories\{repository_id} /// - public class WithRepository_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRepository_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public WithRepository_ItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -104,11 +106,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRepository_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Variables.Item.Repositories.Item.WithRepository_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithRepository_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Variables.Item.Repositories.Item.WithRepository_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Actions/Variables/Item/Repositories/RepositoriesGetResponse.cs b/src/GitHub/Orgs/Item/Actions/Variables/Item/Repositories/RepositoriesGetResponse.cs index ec24e5a4..01c86601 100644 --- a/src/GitHub/Orgs/Item/Actions/Variables/Item/Repositories/RepositoriesGetResponse.cs +++ b/src/GitHub/Orgs/Item/Actions/Variables/Item/Repositories/RepositoriesGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Variables.Item.Repositories { +namespace GitHub.Orgs.Item.Actions.Variables.Item.Repositories +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoriesGetResponse : IAdditionalDataHolder, IParsable + public partial class RepositoriesGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class RepositoriesGetResponse : IAdditionalDataHolder, IParsable /// The repositories property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Repositories { get; set; } + public List? Repositories { get; set; } #nullable restore #else - public List Repositories { get; set; } + public List Repositories { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoriesGetResponse() { @@ -32,12 +34,12 @@ public RepositoriesGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoriesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Variables.Item.Repositories.RepositoriesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoriesGetResponse(); + return new global::GitHub.Orgs.Item.Actions.Variables.Item.Repositories.RepositoriesGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"repositories", n => { Repositories = n.GetCollectionOfObjectValues(MinimalRepository.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "repositories", n => { Repositories = n.GetCollectionOfObjectValues(global::GitHub.Models.MinimalRepository.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("repositories", Repositories); + writer.WriteCollectionOfObjectValues("repositories", Repositories); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Actions/Variables/Item/Repositories/RepositoriesPutRequestBody.cs b/src/GitHub/Orgs/Item/Actions/Variables/Item/Repositories/RepositoriesPutRequestBody.cs index 0dbd4f5c..0575c443 100644 --- a/src/GitHub/Orgs/Item/Actions/Variables/Item/Repositories/RepositoriesPutRequestBody.cs +++ b/src/GitHub/Orgs/Item/Actions/Variables/Item/Repositories/RepositoriesPutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Variables.Item.Repositories { +namespace GitHub.Orgs.Item.Actions.Variables.Item.Repositories +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoriesPutRequestBody : IAdditionalDataHolder, IParsable + public partial class RepositoriesPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class RepositoriesPutRequestBody : IAdditionalDataHolder, IParsable public List SelectedRepositoryIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoriesPutRequestBody() { @@ -29,12 +31,12 @@ public RepositoriesPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoriesPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Variables.Item.Repositories.RepositoriesPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoriesPutRequestBody(); + return new global::GitHub.Orgs.Item.Actions.Variables.Item.Repositories.RepositoriesPutRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Actions/Variables/Item/Repositories/RepositoriesRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Variables/Item/Repositories/RepositoriesRequestBuilder.cs index f50d3739..03747d32 100644 --- a/src/GitHub/Orgs/Item/Actions/Variables/Item/Repositories/RepositoriesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Variables/Item/Repositories/RepositoriesRequestBuilder.cs @@ -1,33 +1,35 @@ // using GitHub.Orgs.Item.Actions.Variables.Item.Repositories.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Variables.Item.Repositories { +namespace GitHub.Orgs.Item.Actions.Variables.Item.Repositories +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\variables\{name}\repositories /// - public class RepositoriesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.actions.variables.item.repositories.item collection /// Unique identifier of the item - /// A - public WithRepository_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.Actions.Variables.Item.Repositories.Item.WithRepository_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("repository_id", position); - return new WithRepository_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Variables.Item.Repositories.Item.WithRepository_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public RepositoriesRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,20 +48,20 @@ public RepositoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Lists all repositories that can access an organization variablethat is available to selected repositories.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 `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RepositoriesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Actions.Variables.Item.Repositories.RepositoriesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Replaces all repositories for an organization variable that is availableto selected repositories. Organization variables that are available to selectedrepositories have their `visibility` field set to `selected`.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 `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. @@ -70,11 +72,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(RepositoriesPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Actions.Variables.Item.Repositories.RepositoriesPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(RepositoriesPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Actions.Variables.Item.Repositories.RepositoriesPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -88,11 +90,11 @@ public async Task PutAsync(RepositoriesPutRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -108,11 +110,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(RepositoriesPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Actions.Variables.Item.Repositories.RepositoriesPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(RepositoriesPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Actions.Variables.Item.Repositories.RepositoriesPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -124,16 +126,17 @@ public RequestInformation ToPutRequestInformation(RepositoriesPutRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RepositoriesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Variables.Item.Repositories.RepositoriesRequestBuilder WithUrl(string rawUrl) { - return new RepositoriesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Variables.Item.Repositories.RepositoriesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all repositories that can access an organization variablethat is available to selected repositories.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 `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. /// - public class RepositoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Actions/Variables/Item/WithNameItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Variables/Item/WithNameItemRequestBuilder.cs index 5bd4af14..a73d869f 100644 --- a/src/GitHub/Orgs/Item/Actions/Variables/Item/WithNameItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Variables/Item/WithNameItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Orgs.Item.Actions.Variables.Item.Repositories; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Variables.Item { +namespace GitHub.Orgs.Item.Actions.Variables.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\variables\{name} /// - public class WithNameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithNameItemRequestBuilder : BaseRequestBuilder { /// The repositories property - public RepositoriesRequestBuilder Repositories + public global::GitHub.Orgs.Item.Actions.Variables.Item.Repositories.RepositoriesRequestBuilder Repositories { - get => new RepositoriesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.Variables.Item.Repositories.RepositoriesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithNameItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -58,20 +60,20 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, OrganizationActionsVariable.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrganizationActionsVariable.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Updates an organization 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 `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. @@ -82,11 +84,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithNamePatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.Actions.Variables.Item.WithNamePatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithNamePatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.Actions.Variables.Item.WithNamePatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -138,11 +140,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithNamePatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Actions.Variables.Item.WithNamePatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithNamePatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Actions.Variables.Item.WithNamePatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -154,11 +156,11 @@ public RequestInformation ToPatchRequestInformation(WithNamePatchRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithNameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Variables.Item.WithNameItemRequestBuilder WithUrl(string rawUrl) { - return new WithNameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Variables.Item.WithNameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Actions/Variables/Item/WithNamePatchRequestBody.cs b/src/GitHub/Orgs/Item/Actions/Variables/Item/WithNamePatchRequestBody.cs index c7c794b6..9f27b724 100644 --- a/src/GitHub/Orgs/Item/Actions/Variables/Item/WithNamePatchRequestBody.cs +++ b/src/GitHub/Orgs/Item/Actions/Variables/Item/WithNamePatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Variables.Item { +namespace GitHub.Orgs.Item.Actions.Variables.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithNamePatchRequestBody : IAdditionalDataHolder, IParsable + public partial class WithNamePatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,9 +38,9 @@ public class WithNamePatchRequestBody : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable. - public WithNamePatchRequestBody_visibility? Visibility { get; set; } + public global::GitHub.Orgs.Item.Actions.Variables.Item.WithNamePatchRequestBody_visibility? Visibility { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithNamePatchRequestBody() { @@ -47,12 +49,12 @@ public WithNamePatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithNamePatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Variables.Item.WithNamePatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithNamePatchRequestBody(); + return new global::GitHub.Orgs.Item.Actions.Variables.Item.WithNamePatchRequestBody(); } /// /// The deserialization information for the current model @@ -62,10 +64,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, - {"selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"value", n => { Value = n.GetStringValue(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "value", n => { Value = n.GetStringValue(); } }, + { "visibility", n => { Visibility = n.GetEnumValue(); } }, }; } /// @@ -78,7 +80,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteCollectionOfPrimitiveValues("selected_repository_ids", SelectedRepositoryIds); writer.WriteStringValue("value", Value); - writer.WriteEnumValue("visibility", Visibility); + writer.WriteEnumValue("visibility", Visibility); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Actions/Variables/Item/WithNamePatchRequestBody_visibility.cs b/src/GitHub/Orgs/Item/Actions/Variables/Item/WithNamePatchRequestBody_visibility.cs index 900b2a37..b9a9335d 100644 --- a/src/GitHub/Orgs/Item/Actions/Variables/Item/WithNamePatchRequestBody_visibility.cs +++ b/src/GitHub/Orgs/Item/Actions/Variables/Item/WithNamePatchRequestBody_visibility.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Actions.Variables.Item { +namespace GitHub.Orgs.Item.Actions.Variables.Item +{ /// The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithNamePatchRequestBody_visibility { [EnumMember(Value = "all")] diff --git a/src/GitHub/Orgs/Item/Actions/Variables/VariablesGetResponse.cs b/src/GitHub/Orgs/Item/Actions/Variables/VariablesGetResponse.cs index 8e5aa734..0fbdfd11 100644 --- a/src/GitHub/Orgs/Item/Actions/Variables/VariablesGetResponse.cs +++ b/src/GitHub/Orgs/Item/Actions/Variables/VariablesGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Variables { +namespace GitHub.Orgs.Item.Actions.Variables +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class VariablesGetResponse : IAdditionalDataHolder, IParsable + public partial class VariablesGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -17,13 +19,13 @@ public class VariablesGetResponse : IAdditionalDataHolder, IParsable /// The variables property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Variables { get; set; } + public List? Variables { get; set; } #nullable restore #else - public List Variables { get; set; } + public List Variables { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public VariablesGetResponse() { @@ -32,12 +34,12 @@ public VariablesGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static VariablesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Variables.VariablesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new VariablesGetResponse(); + return new global::GitHub.Orgs.Item.Actions.Variables.VariablesGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"total_count", n => { TotalCount = n.GetIntValue(); } }, - {"variables", n => { Variables = n.GetCollectionOfObjectValues(OrganizationActionsVariable.CreateFromDiscriminatorValue)?.ToList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, + { "variables", n => { Variables = n.GetCollectionOfObjectValues(global::GitHub.Models.OrganizationActionsVariable.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -59,7 +61,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("total_count", TotalCount); - writer.WriteCollectionOfObjectValues("variables", Variables); + writer.WriteCollectionOfObjectValues("variables", Variables); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Actions/Variables/VariablesPostRequestBody.cs b/src/GitHub/Orgs/Item/Actions/Variables/VariablesPostRequestBody.cs index 2f2f6a08..e0eb94e3 100644 --- a/src/GitHub/Orgs/Item/Actions/Variables/VariablesPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/Actions/Variables/VariablesPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Actions.Variables { +namespace GitHub.Orgs.Item.Actions.Variables +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class VariablesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class VariablesPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,9 +38,9 @@ public class VariablesPostRequestBody : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable. - public VariablesPostRequestBody_visibility? Visibility { get; set; } + public global::GitHub.Orgs.Item.Actions.Variables.VariablesPostRequestBody_visibility? Visibility { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public VariablesPostRequestBody() { @@ -47,12 +49,12 @@ public VariablesPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static VariablesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Actions.Variables.VariablesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new VariablesPostRequestBody(); + return new global::GitHub.Orgs.Item.Actions.Variables.VariablesPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,10 +64,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, - {"selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"value", n => { Value = n.GetStringValue(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "value", n => { Value = n.GetStringValue(); } }, + { "visibility", n => { Visibility = n.GetEnumValue(); } }, }; } /// @@ -78,7 +80,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteCollectionOfPrimitiveValues("selected_repository_ids", SelectedRepositoryIds); writer.WriteStringValue("value", Value); - writer.WriteEnumValue("visibility", Visibility); + writer.WriteEnumValue("visibility", Visibility); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Actions/Variables/VariablesPostRequestBody_visibility.cs b/src/GitHub/Orgs/Item/Actions/Variables/VariablesPostRequestBody_visibility.cs index dbefd68d..d42bfba0 100644 --- a/src/GitHub/Orgs/Item/Actions/Variables/VariablesPostRequestBody_visibility.cs +++ b/src/GitHub/Orgs/Item/Actions/Variables/VariablesPostRequestBody_visibility.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Actions.Variables { +namespace GitHub.Orgs.Item.Actions.Variables +{ /// The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum VariablesPostRequestBody_visibility { [EnumMember(Value = "all")] diff --git a/src/GitHub/Orgs/Item/Actions/Variables/VariablesRequestBuilder.cs b/src/GitHub/Orgs/Item/Actions/Variables/VariablesRequestBuilder.cs index 11590196..1d99130e 100644 --- a/src/GitHub/Orgs/Item/Actions/Variables/VariablesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Actions/Variables/VariablesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Actions.Variables.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Actions.Variables { +namespace GitHub.Orgs.Item.Actions.Variables +{ /// /// Builds and executes requests for operations under \orgs\{org}\actions\variables /// - public class VariablesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class VariablesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.actions.variables.item collection /// The name of the variable. - /// A - public WithNameItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Actions.Variables.Item.WithNameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("name", position); - return new WithNameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Variables.Item.WithNameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public VariablesRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,41 +49,41 @@ public VariablesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Lists all organization 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 `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, VariablesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Actions.Variables.VariablesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Creates an organization 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`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(VariablesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Actions.Variables.VariablesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(VariablesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Actions.Variables.VariablesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists all organization 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 `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. @@ -90,11 +92,11 @@ public async Task PostAsync(VariablesPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -110,11 +112,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(VariablesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Actions.Variables.VariablesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(VariablesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Actions.Variables.VariablesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -127,16 +129,17 @@ public RequestInformation ToPostRequestInformation(VariablesPostRequestBody body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public VariablesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Actions.Variables.VariablesRequestBuilder WithUrl(string rawUrl) { - return new VariablesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Actions.Variables.VariablesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all organization 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 `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. /// - public class VariablesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class VariablesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Announcement/AnnouncementRequestBuilder.cs b/src/GitHub/Orgs/Item/Announcement/AnnouncementRequestBuilder.cs index d7799694..43ce1784 100644 --- a/src/GitHub/Orgs/Item/Announcement/AnnouncementRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Announcement/AnnouncementRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Announcement { +namespace GitHub.Orgs.Item.Announcement +{ /// /// Builds and executes requests for operations under \orgs\{org}\announcement /// - public class AnnouncementRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AnnouncementRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AnnouncementRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,41 +54,41 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, AnnouncementBanner.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.AnnouncementBanner.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Sets the announcement banner to display for the organization. /// API method documentation /// - /// A + /// A /// Enterprise global announcement /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(GitHub.Models.Announcement body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Models.Announcement body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(GitHub.Models.Announcement body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Models.Announcement body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, AnnouncementBanner.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.AnnouncementBanner.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Removes the announcement banner currently set for the organization. @@ -133,11 +135,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(GitHub.Models.Announcement body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Models.Announcement body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(GitHub.Models.Announcement body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Models.Announcement body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -150,11 +152,11 @@ public RequestInformation ToPatchRequestInformation(GitHub.Models.Announcement b /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AnnouncementRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Announcement.AnnouncementRequestBuilder WithUrl(string rawUrl) { - return new AnnouncementRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Announcement.AnnouncementRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Attestations/AttestationsRequestBuilder.cs b/src/GitHub/Orgs/Item/Attestations/AttestationsRequestBuilder.cs index d1917fde..0a2e0bbf 100644 --- a/src/GitHub/Orgs/Item/Attestations/AttestationsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Attestations/AttestationsRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Orgs.Item.Attestations.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Attestations { +namespace GitHub.Orgs.Item.Attestations +{ /// /// Builds and executes requests for operations under \orgs\{org}\attestations /// - public class AttestationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AttestationsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.attestations.item collection /// The parameter should be set to the attestation's subject's SHA256 digest, in the form `sha256:HEX_DIGEST`. - /// A - public WithSubject_digestItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("subject_digest", position); - return new WithSubject_digestItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public AttestationsRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestGetResponse.cs b/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestGetResponse.cs index d1d9f30d..e361d680 100644 --- a/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestGetResponse.cs +++ b/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestGetResponse.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Attestations.Item { +namespace GitHub.Orgs.Item.Attestations.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithSubject_digestGetResponse : IAdditionalDataHolder, IParsable + public partial class WithSubject_digestGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,13 +16,13 @@ public class WithSubject_digestGetResponse : IAdditionalDataHolder, IParsable /// The attestations property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Attestations { get; set; } + public List? Attestations { get; set; } #nullable restore #else - public List Attestations { get; set; } + public List Attestations { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithSubject_digestGetResponse() { @@ -29,12 +31,12 @@ public WithSubject_digestGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithSubject_digestGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithSubject_digestGetResponse(); + return new global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestGetResponse(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"attestations", n => { Attestations = n.GetCollectionOfObjectValues(WithSubject_digestGetResponse_attestations.CreateFromDiscriminatorValue)?.ToList(); } }, + { "attestations", n => { Attestations = n.GetCollectionOfObjectValues(global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestGetResponse_attestations.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -54,7 +56,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("attestations", Attestations); + writer.WriteCollectionOfObjectValues("attestations", Attestations); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestGetResponse_attestations.cs b/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestGetResponse_attestations.cs index 4b8fd96b..24016910 100644 --- a/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestGetResponse_attestations.cs +++ b/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestGetResponse_attestations.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Attestations.Item { +namespace GitHub.Orgs.Item.Attestations.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithSubject_digestGetResponse_attestations : IAdditionalDataHolder, IParsable + public partial class WithSubject_digestGetResponse_attestations : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,15 +16,15 @@ public class WithSubject_digestGetResponse_attestations : IAdditionalDataHolder, /// The attestation's Sigstore Bundle.Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithSubject_digestGetResponse_attestations_bundle? Bundle { get; set; } + public global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle? Bundle { get; set; } #nullable restore #else - public WithSubject_digestGetResponse_attestations_bundle Bundle { get; set; } + public global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle Bundle { get; set; } #endif /// The repository_id property public int? RepositoryId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithSubject_digestGetResponse_attestations() { @@ -31,12 +33,12 @@ public WithSubject_digestGetResponse_attestations() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithSubject_digestGetResponse_attestations CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestGetResponse_attestations CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithSubject_digestGetResponse_attestations(); + return new global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestGetResponse_attestations(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"bundle", n => { Bundle = n.GetObjectValue(WithSubject_digestGetResponse_attestations_bundle.CreateFromDiscriminatorValue); } }, - {"repository_id", n => { RepositoryId = n.GetIntValue(); } }, + { "bundle", n => { Bundle = n.GetObjectValue(global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle.CreateFromDiscriminatorValue); } }, + { "repository_id", n => { RepositoryId = n.GetIntValue(); } }, }; } /// @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("bundle", Bundle); + writer.WriteObjectValue("bundle", Bundle); writer.WriteIntValue("repository_id", RepositoryId); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle.cs b/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle.cs index 61abfdbd..4ff9de76 100644 --- a/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle.cs +++ b/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Attestations.Item { +namespace GitHub.Orgs.Item.Attestations.Item +{ /// /// The attestation's Sigstore Bundle.Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. /// - public class WithSubject_digestGetResponse_attestations_bundle : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithSubject_digestGetResponse_attestations_bundle : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The dsseEnvelope property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope? DsseEnvelope { get; set; } + public global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope? DsseEnvelope { get; set; } #nullable restore #else - public WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope DsseEnvelope { get; set; } + public global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope DsseEnvelope { get; set; } #endif /// The mediaType property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -31,13 +33,13 @@ public class WithSubject_digestGetResponse_attestations_bundle : IAdditionalData /// The verificationMaterial property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithSubject_digestGetResponse_attestations_bundle_verificationMaterial? VerificationMaterial { get; set; } + public global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle_verificationMaterial? VerificationMaterial { get; set; } #nullable restore #else - public WithSubject_digestGetResponse_attestations_bundle_verificationMaterial VerificationMaterial { get; set; } + public global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle_verificationMaterial VerificationMaterial { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithSubject_digestGetResponse_attestations_bundle() { @@ -46,12 +48,12 @@ public WithSubject_digestGetResponse_attestations_bundle() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithSubject_digestGetResponse_attestations_bundle CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithSubject_digestGetResponse_attestations_bundle(); + return new global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle(); } /// /// The deserialization information for the current model @@ -61,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"dsseEnvelope", n => { DsseEnvelope = n.GetObjectValue(WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope.CreateFromDiscriminatorValue); } }, - {"mediaType", n => { MediaType = n.GetStringValue(); } }, - {"verificationMaterial", n => { VerificationMaterial = n.GetObjectValue(WithSubject_digestGetResponse_attestations_bundle_verificationMaterial.CreateFromDiscriminatorValue); } }, + { "dsseEnvelope", n => { DsseEnvelope = n.GetObjectValue(global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope.CreateFromDiscriminatorValue); } }, + { "mediaType", n => { MediaType = n.GetStringValue(); } }, + { "verificationMaterial", n => { VerificationMaterial = n.GetObjectValue(global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle_verificationMaterial.CreateFromDiscriminatorValue); } }, }; } /// @@ -73,9 +75,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("dsseEnvelope", DsseEnvelope); + writer.WriteObjectValue("dsseEnvelope", DsseEnvelope); writer.WriteStringValue("mediaType", MediaType); - writer.WriteObjectValue("verificationMaterial", VerificationMaterial); + writer.WriteObjectValue("verificationMaterial", VerificationMaterial); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope.cs b/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope.cs index db42736d..761ea21c 100644 --- a/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope.cs +++ b/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Attestations.Item { +namespace GitHub.Orgs.Item.Attestations.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope : IAdditionalDataHolder, IParsable + public partial class WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope() { @@ -21,12 +23,12 @@ public WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope(); + return new global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle_verificationMaterial.cs b/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle_verificationMaterial.cs index 570e68c5..768eaadc 100644 --- a/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle_verificationMaterial.cs +++ b/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle_verificationMaterial.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Attestations.Item { +namespace GitHub.Orgs.Item.Attestations.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithSubject_digestGetResponse_attestations_bundle_verificationMaterial : IAdditionalDataHolder, IParsable + public partial class WithSubject_digestGetResponse_attestations_bundle_verificationMaterial : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithSubject_digestGetResponse_attestations_bundle_verificationMaterial() { @@ -21,12 +23,12 @@ public WithSubject_digestGetResponse_attestations_bundle_verificationMaterial() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithSubject_digestGetResponse_attestations_bundle_verificationMaterial CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle_verificationMaterial CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithSubject_digestGetResponse_attestations_bundle_verificationMaterial(); + return new global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle_verificationMaterial(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestItemRequestBuilder.cs index 9f2fd1ab..72ca248c 100644 --- a/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Attestations/Item/WithSubject_digestItemRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Attestations.Item { +namespace GitHub.Orgs.Item.Attestations.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\attestations\{subject_digest} /// - public class WithSubject_digestItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithSubject_digestItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public WithSubject_digestItemRequestBuilder(Dictionary pathParam { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,20 +35,20 @@ public WithSubject_digestItemRequestBuilder(string rawUrl, IRequestAdapter reque /// List a collection of artifact attestations with a given subject digest that are associated with repositories owned by an organization.The collection of attestations returned by this endpoint is filtered according to the authenticated user's permissions; if the authenticated user cannot read a repository, the attestations associated with that repository will not be included in the response. In addition, when using a fine-grained access token the `attestations:read` permission is required.**Please note:** in order to offer meaningful security benefits, an attestation's signature and timestamps **must** be cryptographically verified, and the identity of the attestation signer **must** be validated. Attestations can be verified using the [GitHub CLI `attestation verify` command](https://cli.github.com/manual/gh_attestation_verify). For more information, see [our guide on how to use artifact attestations to establish a build's provenance](https://docs.github.com/enterprise-cloud@latest//actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, WithSubject_digestGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// List a collection of artifact attestations with a given subject digest that are associated with repositories owned by an organization.The collection of attestations returned by this endpoint is filtered according to the authenticated user's permissions; if the authenticated user cannot read a repository, the attestations associated with that repository will not be included in the response. In addition, when using a fine-grained access token the `attestations:read` permission is required.**Please note:** in order to offer meaningful security benefits, an attestation's signature and timestamps **must** be cryptographically verified, and the identity of the attestation signer **must** be validated. Attestations can be verified using the [GitHub CLI `attestation verify` command](https://cli.github.com/manual/gh_attestation_verify). For more information, see [our guide on how to use artifact attestations to establish a build's provenance](https://docs.github.com/enterprise-cloud@latest//actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). @@ -55,11 +57,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -70,16 +72,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithSubject_digestItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestItemRequestBuilder WithUrl(string rawUrl) { - return new WithSubject_digestItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Attestations.Item.WithSubject_digestItemRequestBuilder(rawUrl, RequestAdapter); } /// /// List a collection of artifact attestations with a given subject digest that are associated with repositories owned by an organization.The collection of attestations returned by this endpoint is filtered according to the authenticated user's permissions; if the authenticated user cannot read a repository, the attestations associated with that repository will not be included in the response. In addition, when using a fine-grained access token the `attestations:read` permission is required.**Please note:** in order to offer meaningful security benefits, an attestation's signature and timestamps **must** be cryptographically verified, and the identity of the attestation signer **must** be validated. Attestations can be verified using the [GitHub CLI `attestation verify` command](https://cli.github.com/manual/gh_attestation_verify). For more information, see [our guide on how to use artifact attestations to establish a build's provenance](https://docs.github.com/enterprise-cloud@latest//actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). /// - public class WithSubject_digestItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithSubject_digestItemRequestBuilderGetQueryParameters { /// A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Orgs/Item/AuditLog/AuditLogRequestBuilder.cs b/src/GitHub/Orgs/Item/AuditLog/AuditLogRequestBuilder.cs index c6487195..9790ec7b 100644 --- a/src/GitHub/Orgs/Item/AuditLog/AuditLogRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/AuditLog/AuditLogRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.AuditLog { +namespace GitHub.Orgs.Item.AuditLog +{ /// /// Builds and executes requests for operations under \orgs\{org}\audit-log /// - public class AuditLogRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AuditLogRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AuditLogRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public AuditLogRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Gets the audit log for an organization. For more information, see "[Reviewing the audit log for your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/reviewing-the-audit-log-for-your-organization)."By default, the response includes up to 30 events from the past three months. Use the `phrase` parameter to filter results and retrieve older events. For example, use the `phrase` parameter with the `created` qualifier to filter events based on when the events occurred. For more information, see "[Reviewing the audit log for your organization](https://docs.github.com/enterprise-cloud@latest//organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization#searching-the-audit-log)."Use pagination to retrieve fewer or more than 30 events. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api)."This endpoint has a rate limit of 1,750 queries per hour per user and IP address. If your integration receives a rate limit error (typically a 403 or 429 response), it should wait before making another request to the GitHub API. For more information, see "[Rate limits for the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api)" and "[Best practices for integrators](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-integrators)."The authenticated user must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:audit_log` scope to use this endpoint. /// API method documentation /// - /// A List<AuditLogEvent> + /// A List<global::GitHub.Models.AuditLogEvent> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, AuditLogEvent.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.AuditLogEvent.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Gets the audit log for an organization. For more information, see "[Reviewing the audit log for your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/reviewing-the-audit-log-for-your-organization)."By default, the response includes up to 30 events from the past three months. Use the `phrase` parameter to filter results and retrieve older events. For example, use the `phrase` parameter with the `created` qualifier to filter events based on when the events occurred. For more information, see "[Reviewing the audit log for your organization](https://docs.github.com/enterprise-cloud@latest//organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization#searching-the-audit-log)."Use pagination to retrieve fewer or more than 30 events. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api)."This endpoint has a rate limit of 1,750 queries per hour per user and IP address. If your integration receives a rate limit error (typically a 403 or 429 response), it should wait before making another request to the GitHub API. For more information, see "[Rate limits for the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api)" and "[Best practices for integrators](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-integrators)."The authenticated user must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:audit_log` scope to use this endpoint. @@ -57,11 +59,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -72,16 +74,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AuditLogRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.AuditLog.AuditLogRequestBuilder WithUrl(string rawUrl) { - return new AuditLogRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.AuditLog.AuditLogRequestBuilder(rawUrl, RequestAdapter); } /// /// Gets the audit log for an organization. For more information, see "[Reviewing the audit log for your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/reviewing-the-audit-log-for-your-organization)."By default, the response includes up to 30 events from the past three months. Use the `phrase` parameter to filter results and retrieve older events. For example, use the `phrase` parameter with the `created` qualifier to filter events based on when the events occurred. For more information, see "[Reviewing the audit log for your organization](https://docs.github.com/enterprise-cloud@latest//organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization#searching-the-audit-log)."Use pagination to retrieve fewer or more than 30 events. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api)."This endpoint has a rate limit of 1,750 queries per hour per user and IP address. If your integration receives a rate limit error (typically a 403 or 429 response), it should wait before making another request to the GitHub API. For more information, see "[Rate limits for the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api)" and "[Best practices for integrators](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-integrators)."The authenticated user must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:audit_log` scope to use this endpoint. /// - public class AuditLogRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AuditLogRequestBuilderGetQueryParameters { /// A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events after this cursor. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,10 +108,10 @@ public class AuditLogRequestBuilderGetQueryParameters #endif /// The event types to include:- `web` - returns web (non-Git) events.- `git` - returns Git events.- `all` - returns both web and Git events.The default is `web`. [QueryParameter("include")] - public GetIncludeQueryParameterType? Include { get; set; } + public global::GitHub.Orgs.Item.AuditLog.GetIncludeQueryParameterType? Include { get; set; } /// The order of audit log events. To list newest events first, specify `desc`. To list oldest events first, specify `asc`.The default is `desc`. [QueryParameter("order")] - public GetOrderQueryParameterType? Order { get; set; } + public global::GitHub.Orgs.Item.AuditLog.GetOrderQueryParameterType? Order { get; set; } /// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("per_page")] public int? PerPage { get; set; } diff --git a/src/GitHub/Orgs/Item/AuditLog/GetIncludeQueryParameterType.cs b/src/GitHub/Orgs/Item/AuditLog/GetIncludeQueryParameterType.cs index 63fdc783..40539dd1 100644 --- a/src/GitHub/Orgs/Item/AuditLog/GetIncludeQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/AuditLog/GetIncludeQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.AuditLog { +namespace GitHub.Orgs.Item.AuditLog +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetIncludeQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/AuditLog/GetOrderQueryParameterType.cs b/src/GitHub/Orgs/Item/AuditLog/GetOrderQueryParameterType.cs index 443e90bc..cc1f7054 100644 --- a/src/GitHub/Orgs/Item/AuditLog/GetOrderQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/AuditLog/GetOrderQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.AuditLog { +namespace GitHub.Orgs.Item.AuditLog +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetOrderQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Blocks/BlocksRequestBuilder.cs b/src/GitHub/Orgs/Item/Blocks/BlocksRequestBuilder.cs index 0c54bd88..92266319 100644 --- a/src/GitHub/Orgs/Item/Blocks/BlocksRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Blocks/BlocksRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Blocks.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Blocks { +namespace GitHub.Orgs.Item.Blocks +{ /// /// Builds and executes requests for operations under \orgs\{org}\blocks /// - public class BlocksRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class BlocksRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.blocks.item collection /// The handle for the GitHub user account. - /// A - public WithUsernameItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Blocks.Item.WithUsernameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("username", position); - return new WithUsernameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Blocks.Item.WithUsernameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public BlocksRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public BlocksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// List the users blocked by an organization. /// API method documentation /// - /// A List<SimpleUser> + /// A List<global::GitHub.Models.SimpleUser> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, SimpleUser.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// List the users blocked by an organization. @@ -70,11 +72,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -85,16 +87,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public BlocksRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Blocks.BlocksRequestBuilder WithUrl(string rawUrl) { - return new BlocksRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Blocks.BlocksRequestBuilder(rawUrl, RequestAdapter); } /// /// List the users blocked by an organization. /// - public class BlocksRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class BlocksRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Blocks/Item/WithUsernameItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Blocks/Item/WithUsernameItemRequestBuilder.cs index 85fbe723..75e0bca9 100644 --- a/src/GitHub/Orgs/Item/Blocks/Item/WithUsernameItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Blocks/Item/WithUsernameItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Blocks.Item { +namespace GitHub.Orgs.Item.Blocks.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\blocks\{username} /// - public class WithUsernameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithUsernameItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithUsernameItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -54,7 +56,7 @@ public async Task DeleteAsync(Action /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -67,7 +69,7 @@ public async Task GetAsync(Action> var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -77,7 +79,7 @@ public async Task GetAsync(Action> /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -90,7 +92,7 @@ public async Task PutAsync(Action> var requestInfo = ToPutRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -153,11 +155,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithUsernameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Blocks.Item.WithUsernameItemRequestBuilder WithUrl(string rawUrl) { - return new WithUsernameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Blocks.Item.WithUsernameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/CodeScanning/Alerts/AlertsRequestBuilder.cs b/src/GitHub/Orgs/Item/CodeScanning/Alerts/AlertsRequestBuilder.cs index a1cad87c..1e199455 100644 --- a/src/GitHub/Orgs/Item/CodeScanning/Alerts/AlertsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/CodeScanning/Alerts/AlertsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.CodeScanning.Alerts { +namespace GitHub.Orgs.Item.CodeScanning.Alerts +{ /// /// Builds and executes requests for operations under \orgs\{org}\code-scanning\alerts /// - public class AlertsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AlertsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AlertsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,28 +36,28 @@ public AlertsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Lists code scanning alerts for the default branch for all eligible repositories in an organization. Eligible repositories are repositories that are owned by organizations that you own or for which you are a security manager. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."The authenticated user must be an owner or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `security_events` or `repo`s cope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// API method documentation /// - /// A List<CodeScanningOrganizationAlertItems> + /// A List<global::GitHub.Models.CodeScanningOrganizationAlertItems> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 503 status code + /// When receiving a 404 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"503", Alerts503Error.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.Alerts503Error.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CodeScanningOrganizationAlertItems.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CodeScanningOrganizationAlertItems.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists code scanning alerts for the default branch for all eligible repositories in an organization. Eligible repositories are repositories that are owned by organizations that you own or for which you are a security manager. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."The authenticated user must be an owner or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `security_events` or `repo`s cope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. @@ -64,11 +66,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -79,16 +81,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AlertsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.CodeScanning.Alerts.AlertsRequestBuilder WithUrl(string rawUrl) { - return new AlertsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.CodeScanning.Alerts.AlertsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists code scanning alerts for the default branch for all eligible repositories in an organization. Eligible repositories are repositories that are owned by organizations that you own or for which you are a security manager. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."The authenticated user must be an owner or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `security_events` or `repo`s cope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// - public class AlertsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AlertsRequestBuilderGetQueryParameters { /// A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -112,7 +115,7 @@ public class AlertsRequestBuilderGetQueryParameters #endif /// The direction to sort the results by. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Orgs.Item.CodeScanning.Alerts.GetDirectionQueryParameterType? Direction { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } @@ -121,13 +124,13 @@ public class AlertsRequestBuilderGetQueryParameters public int? PerPage { get; set; } /// If specified, only code scanning alerts with this severity will be returned. [QueryParameter("severity")] - public CodeScanningAlertSeverity? Severity { get; set; } + public global::GitHub.Models.CodeScanningAlertSeverity? Severity { get; set; } /// The property by which to sort the results. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Orgs.Item.CodeScanning.Alerts.GetSortQueryParameterType? Sort { get; set; } /// If specified, only code scanning alerts with this state will be returned. [QueryParameter("state")] - public CodeScanningAlertStateQuery? State { get; set; } + public global::GitHub.Models.CodeScanningAlertStateQuery? State { get; set; } /// The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/GitHub/Orgs/Item/CodeScanning/Alerts/GetDirectionQueryParameterType.cs b/src/GitHub/Orgs/Item/CodeScanning/Alerts/GetDirectionQueryParameterType.cs index bf6bdb7e..62a4017b 100644 --- a/src/GitHub/Orgs/Item/CodeScanning/Alerts/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/CodeScanning/Alerts/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeScanning.Alerts { +namespace GitHub.Orgs.Item.CodeScanning.Alerts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/CodeScanning/Alerts/GetSortQueryParameterType.cs b/src/GitHub/Orgs/Item/CodeScanning/Alerts/GetSortQueryParameterType.cs index 741c4d5d..a4903368 100644 --- a/src/GitHub/Orgs/Item/CodeScanning/Alerts/GetSortQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/CodeScanning/Alerts/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeScanning.Alerts { +namespace GitHub.Orgs.Item.CodeScanning.Alerts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/CodeScanning/CodeScanningRequestBuilder.cs b/src/GitHub/Orgs/Item/CodeScanning/CodeScanningRequestBuilder.cs index a0c8bd16..36ec19ab 100644 --- a/src/GitHub/Orgs/Item/CodeScanning/CodeScanningRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/CodeScanning/CodeScanningRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Orgs.Item.CodeScanning.Alerts; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.CodeScanning { +namespace GitHub.Orgs.Item.CodeScanning +{ /// /// Builds and executes requests for operations under \orgs\{org}\code-scanning /// - public class CodeScanningRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeScanningRequestBuilder : BaseRequestBuilder { /// The alerts property - public AlertsRequestBuilder Alerts + public global::GitHub.Orgs.Item.CodeScanning.Alerts.AlertsRequestBuilder Alerts { - get => new AlertsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.CodeScanning.Alerts.AlertsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public CodeScanningRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/CodeSecurity/CodeSecurityRequestBuilder.cs b/src/GitHub/Orgs/Item/CodeSecurity/CodeSecurityRequestBuilder.cs index 0a346f1f..a1f5f28b 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/CodeSecurityRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/CodeSecurityRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Orgs.Item.CodeSecurity.Configurations; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.CodeSecurity { +namespace GitHub.Orgs.Item.CodeSecurity +{ /// /// Builds and executes requests for operations under \orgs\{org}\code-security /// - public class CodeSecurityRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeSecurityRequestBuilder : BaseRequestBuilder { /// The configurations property - public ConfigurationsRequestBuilder Configurations + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsRequestBuilder Configurations { - get => new ConfigurationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public CodeSecurityRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody.cs index 59e45ebb..0716cdd1 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody.cs @@ -1,33 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ConfigurationsPostRequestBody : IParsable + public partial class ConfigurationsPostRequestBody : IParsable #pragma warning restore CS1591 { /// The enablement status of GitHub Advanced Security - public ConfigurationsPostRequestBody_advanced_security? AdvancedSecurity { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_advanced_security? AdvancedSecurity { get; set; } /// The enablement status of code scanning default setup - public ConfigurationsPostRequestBody_code_scanning_default_setup? CodeScanningDefaultSetup { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_code_scanning_default_setup? CodeScanningDefaultSetup { get; set; } /// The enablement status of Dependabot alerts - public ConfigurationsPostRequestBody_dependabot_alerts? DependabotAlerts { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependabot_alerts? DependabotAlerts { get; set; } /// The enablement status of Dependabot security updates - public ConfigurationsPostRequestBody_dependabot_security_updates? DependabotSecurityUpdates { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependabot_security_updates? DependabotSecurityUpdates { get; set; } /// The enablement status of Dependency Graph - public ConfigurationsPostRequestBody_dependency_graph? DependencyGraph { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependency_graph? DependencyGraph { get; set; } /// The enablement status of Automatic dependency submission - public ConfigurationsPostRequestBody_dependency_graph_autosubmit_action? DependencyGraphAutosubmitAction { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependency_graph_autosubmit_action? DependencyGraphAutosubmitAction { get; set; } /// Feature options for Automatic dependency submission #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options? DependencyGraphAutosubmitActionOptions { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options? DependencyGraphAutosubmitActionOptions { get; set; } #nullable restore #else - public ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options DependencyGraphAutosubmitActionOptions { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options DependencyGraphAutosubmitActionOptions { get; set; } #endif /// A description of the code security configuration #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -38,7 +40,7 @@ public class ConfigurationsPostRequestBody : IParsable public string Description { get; set; } #endif /// The enforcement status for a security configuration - public ConfigurationsPostRequestBody_enforcement? Enforcement { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_enforcement? Enforcement { get; set; } /// The name of the code security configuration. Must be unique within the organization. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -48,39 +50,39 @@ public class ConfigurationsPostRequestBody : IParsable public string Name { get; set; } #endif /// The enablement status of private vulnerability reporting - public ConfigurationsPostRequestBody_private_vulnerability_reporting? PrivateVulnerabilityReporting { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_private_vulnerability_reporting? PrivateVulnerabilityReporting { get; set; } /// The enablement status of secret scanning - public ConfigurationsPostRequestBody_secret_scanning? SecretScanning { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning? SecretScanning { get; set; } /// The enablement status of secret scanning push protection - public ConfigurationsPostRequestBody_secret_scanning_push_protection? SecretScanningPushProtection { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_push_protection? SecretScanningPushProtection { get; set; } /// The enablement status of secret scanning validity checks - public ConfigurationsPostRequestBody_secret_scanning_validity_checks? SecretScanningValidityChecks { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_validity_checks? SecretScanningValidityChecks { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ConfigurationsPostRequestBody() { - AdvancedSecurity = ConfigurationsPostRequestBody_advanced_security.Disabled; - CodeScanningDefaultSetup = ConfigurationsPostRequestBody_code_scanning_default_setup.Disabled; - DependabotAlerts = ConfigurationsPostRequestBody_dependabot_alerts.Disabled; - DependabotSecurityUpdates = ConfigurationsPostRequestBody_dependabot_security_updates.Disabled; - DependencyGraph = ConfigurationsPostRequestBody_dependency_graph.Enabled; - DependencyGraphAutosubmitAction = ConfigurationsPostRequestBody_dependency_graph_autosubmit_action.Disabled; - Enforcement = ConfigurationsPostRequestBody_enforcement.Enforced; - PrivateVulnerabilityReporting = ConfigurationsPostRequestBody_private_vulnerability_reporting.Disabled; - SecretScanning = ConfigurationsPostRequestBody_secret_scanning.Disabled; - SecretScanningPushProtection = ConfigurationsPostRequestBody_secret_scanning_push_protection.Disabled; - SecretScanningValidityChecks = ConfigurationsPostRequestBody_secret_scanning_validity_checks.Disabled; + AdvancedSecurity = global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_advanced_security.Disabled; + CodeScanningDefaultSetup = global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_code_scanning_default_setup.Disabled; + DependabotAlerts = global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependabot_alerts.Disabled; + DependabotSecurityUpdates = global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependabot_security_updates.Disabled; + DependencyGraph = global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependency_graph.Enabled; + DependencyGraphAutosubmitAction = global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependency_graph_autosubmit_action.Disabled; + Enforcement = global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_enforcement.Enforced; + PrivateVulnerabilityReporting = global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_private_vulnerability_reporting.Disabled; + SecretScanning = global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning.Disabled; + SecretScanningPushProtection = global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_push_protection.Disabled; + SecretScanningValidityChecks = global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_validity_checks.Disabled; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ConfigurationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ConfigurationsPostRequestBody(); + return new global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody(); } /// /// The deserialization information for the current model @@ -90,20 +92,20 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"advanced_security", n => { AdvancedSecurity = n.GetEnumValue(); } }, - {"code_scanning_default_setup", n => { CodeScanningDefaultSetup = n.GetEnumValue(); } }, - {"dependabot_alerts", n => { DependabotAlerts = n.GetEnumValue(); } }, - {"dependabot_security_updates", n => { DependabotSecurityUpdates = n.GetEnumValue(); } }, - {"dependency_graph", n => { DependencyGraph = n.GetEnumValue(); } }, - {"dependency_graph_autosubmit_action", n => { DependencyGraphAutosubmitAction = n.GetEnumValue(); } }, - {"dependency_graph_autosubmit_action_options", n => { DependencyGraphAutosubmitActionOptions = n.GetObjectValue(ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options.CreateFromDiscriminatorValue); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"enforcement", n => { Enforcement = n.GetEnumValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"private_vulnerability_reporting", n => { PrivateVulnerabilityReporting = n.GetEnumValue(); } }, - {"secret_scanning", n => { SecretScanning = n.GetEnumValue(); } }, - {"secret_scanning_push_protection", n => { SecretScanningPushProtection = n.GetEnumValue(); } }, - {"secret_scanning_validity_checks", n => { SecretScanningValidityChecks = n.GetEnumValue(); } }, + { "advanced_security", n => { AdvancedSecurity = n.GetEnumValue(); } }, + { "code_scanning_default_setup", n => { CodeScanningDefaultSetup = n.GetEnumValue(); } }, + { "dependabot_alerts", n => { DependabotAlerts = n.GetEnumValue(); } }, + { "dependabot_security_updates", n => { DependabotSecurityUpdates = n.GetEnumValue(); } }, + { "dependency_graph", n => { DependencyGraph = n.GetEnumValue(); } }, + { "dependency_graph_autosubmit_action", n => { DependencyGraphAutosubmitAction = n.GetEnumValue(); } }, + { "dependency_graph_autosubmit_action_options", n => { DependencyGraphAutosubmitActionOptions = n.GetObjectValue(global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options.CreateFromDiscriminatorValue); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "enforcement", n => { Enforcement = n.GetEnumValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "private_vulnerability_reporting", n => { PrivateVulnerabilityReporting = n.GetEnumValue(); } }, + { "secret_scanning", n => { SecretScanning = n.GetEnumValue(); } }, + { "secret_scanning_push_protection", n => { SecretScanningPushProtection = n.GetEnumValue(); } }, + { "secret_scanning_validity_checks", n => { SecretScanningValidityChecks = n.GetEnumValue(); } }, }; } /// @@ -113,20 +115,20 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("advanced_security", AdvancedSecurity); - writer.WriteEnumValue("code_scanning_default_setup", CodeScanningDefaultSetup); - writer.WriteEnumValue("dependabot_alerts", DependabotAlerts); - writer.WriteEnumValue("dependabot_security_updates", DependabotSecurityUpdates); - writer.WriteEnumValue("dependency_graph", DependencyGraph); - writer.WriteEnumValue("dependency_graph_autosubmit_action", DependencyGraphAutosubmitAction); - writer.WriteObjectValue("dependency_graph_autosubmit_action_options", DependencyGraphAutosubmitActionOptions); + writer.WriteEnumValue("advanced_security", AdvancedSecurity); + writer.WriteEnumValue("code_scanning_default_setup", CodeScanningDefaultSetup); + writer.WriteEnumValue("dependabot_alerts", DependabotAlerts); + writer.WriteEnumValue("dependabot_security_updates", DependabotSecurityUpdates); + writer.WriteEnumValue("dependency_graph", DependencyGraph); + writer.WriteEnumValue("dependency_graph_autosubmit_action", DependencyGraphAutosubmitAction); + writer.WriteObjectValue("dependency_graph_autosubmit_action_options", DependencyGraphAutosubmitActionOptions); writer.WriteStringValue("description", Description); - writer.WriteEnumValue("enforcement", Enforcement); + writer.WriteEnumValue("enforcement", Enforcement); writer.WriteStringValue("name", Name); - writer.WriteEnumValue("private_vulnerability_reporting", PrivateVulnerabilityReporting); - writer.WriteEnumValue("secret_scanning", SecretScanning); - writer.WriteEnumValue("secret_scanning_push_protection", SecretScanningPushProtection); - writer.WriteEnumValue("secret_scanning_validity_checks", SecretScanningValidityChecks); + writer.WriteEnumValue("private_vulnerability_reporting", PrivateVulnerabilityReporting); + writer.WriteEnumValue("secret_scanning", SecretScanning); + writer.WriteEnumValue("secret_scanning_push_protection", SecretScanningPushProtection); + writer.WriteEnumValue("secret_scanning_validity_checks", SecretScanningValidityChecks); } } } diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_advanced_security.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_advanced_security.cs index b8f57dc6..768ae39a 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_advanced_security.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_advanced_security.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations +{ /// The enablement status of GitHub Advanced Security + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ConfigurationsPostRequestBody_advanced_security { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_code_scanning_default_setup.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_code_scanning_default_setup.cs index 12b0215e..ba4aa4dd 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_code_scanning_default_setup.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_code_scanning_default_setup.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations +{ /// The enablement status of code scanning default setup + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ConfigurationsPostRequestBody_code_scanning_default_setup { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependabot_alerts.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependabot_alerts.cs index 9434b99c..b0093e42 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependabot_alerts.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependabot_alerts.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations +{ /// The enablement status of Dependabot alerts + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ConfigurationsPostRequestBody_dependabot_alerts { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependabot_security_updates.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependabot_security_updates.cs index a309cb99..24531deb 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependabot_security_updates.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependabot_security_updates.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations +{ /// The enablement status of Dependabot security updates + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ConfigurationsPostRequestBody_dependabot_security_updates { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependency_graph.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependency_graph.cs index dde586e0..5476ca20 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependency_graph.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependency_graph.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations +{ /// The enablement status of Dependency Graph + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ConfigurationsPostRequestBody_dependency_graph { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependency_graph_autosubmit_action.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependency_graph_autosubmit_action.cs index 1ab6eed1..24136c4d 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependency_graph_autosubmit_action.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependency_graph_autosubmit_action.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations +{ /// The enablement status of Automatic dependency submission + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ConfigurationsPostRequestBody_dependency_graph_autosubmit_action { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options.cs index 54e7a595..156b0de5 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations +{ /// /// Feature options for Automatic dependency submission /// - public class ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// Whether to use runners labeled with 'dependency-submission' or standard GitHub runners. public bool? LabeledRunners { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options() { @@ -24,12 +26,12 @@ public ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options( /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options(); + return new global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options(); } /// /// The deserialization information for the current model @@ -39,7 +41,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labeled_runners", n => { LabeledRunners = n.GetBoolValue(); } }, + { "labeled_runners", n => { LabeledRunners = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_enforcement.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_enforcement.cs index 1b7e9581..1378de1f 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_enforcement.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_enforcement.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations +{ /// The enforcement status for a security configuration + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ConfigurationsPostRequestBody_enforcement { [EnumMember(Value = "enforced")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_private_vulnerability_reporting.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_private_vulnerability_reporting.cs index dfb47fc6..9af4f01c 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_private_vulnerability_reporting.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_private_vulnerability_reporting.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations +{ /// The enablement status of private vulnerability reporting + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ConfigurationsPostRequestBody_private_vulnerability_reporting { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning.cs index 4d228641..65990bcb 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations +{ /// The enablement status of secret scanning + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ConfigurationsPostRequestBody_secret_scanning { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_push_protection.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_push_protection.cs index d83f0ea9..78147a2c 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_push_protection.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_push_protection.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations +{ /// The enablement status of secret scanning push protection + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ConfigurationsPostRequestBody_secret_scanning_push_protection { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_validity_checks.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_validity_checks.cs index eafc4dbe..c080f8ca 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_validity_checks.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_validity_checks.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations +{ /// The enablement status of secret scanning validity checks + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ConfigurationsPostRequestBody_secret_scanning_validity_checks { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsRequestBuilder.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsRequestBuilder.cs index e8042f9f..96ee49d6 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsRequestBuilder.cs @@ -3,44 +3,46 @@ using GitHub.Orgs.Item.CodeSecurity.Configurations.Defaults; using GitHub.Orgs.Item.CodeSecurity.Configurations.Detach; using GitHub.Orgs.Item.CodeSecurity.Configurations.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations +{ /// /// Builds and executes requests for operations under \orgs\{org}\code-security\configurations /// - public class ConfigurationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ConfigurationsRequestBuilder : BaseRequestBuilder { /// The defaults property - public DefaultsRequestBuilder Defaults + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Defaults.DefaultsRequestBuilder Defaults { - get => new DefaultsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.CodeSecurity.Configurations.Defaults.DefaultsRequestBuilder(PathParameters, RequestAdapter); } /// The detach property - public DetachRequestBuilder Detach + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Detach.DetachRequestBuilder Detach { - get => new DetachRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.CodeSecurity.Configurations.Detach.DetachRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.orgs.item.codeSecurity.configurations.item collection /// The unique identifier of the code security configuration. - /// A - public WithConfiguration_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("configuration_id", position); - return new WithConfiguration_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -48,7 +50,7 @@ public ConfigurationsRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -59,49 +61,49 @@ public ConfigurationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Lists all code security configurations available in an organization.The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. /// API method documentation /// - /// A List<GitHub.Models.CodeSecurityConfiguration> + /// A List<global::GitHub.Models.CodeSecurityConfiguration> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GitHub.Models.CodeSecurityConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CodeSecurityConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Creates a code security configuration in an organization.The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ConfigurationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(ConfigurationsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.CodeSecurityConfiguration.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeSecurityConfiguration.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists all code security configurations available in an organization.The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. @@ -110,11 +112,11 @@ public ConfigurationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -130,11 +132,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ConfigurationsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ConfigurationsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -147,16 +149,17 @@ public RequestInformation ToPostRequestInformation(ConfigurationsPostRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ConfigurationsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsRequestBuilder WithUrl(string rawUrl) { - return new ConfigurationsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all code security configurations available in an organization.The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. /// - public class ConfigurationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ConfigurationsRequestBuilderGetQueryParameters { /// A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -183,7 +186,7 @@ public class ConfigurationsRequestBuilderGetQueryParameters public int? PerPage { get; set; } /// The target type of the code security configuration [QueryParameter("target_type")] - public GetTarget_typeQueryParameterType? TargetType { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.GetTarget_typeQueryParameterType? TargetType { get; set; } } } } diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Defaults/DefaultsRequestBuilder.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Defaults/DefaultsRequestBuilder.cs index 37a46878..5edebf79 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Defaults/DefaultsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Defaults/DefaultsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Defaults { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Defaults +{ /// /// Builds and executes requests for operations under \orgs\{org}\code-security\configurations\defaults /// - public class DefaultsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DefaultsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public DefaultsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,28 +36,28 @@ public DefaultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Lists the default code security configurations for an organization.The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. /// API method documentation /// - /// A List<CodeSecurityDefaultConfigurations> + /// A List<global::GitHub.Models.CodeSecurityDefaultConfigurations> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CodeSecurityDefaultConfigurations.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CodeSecurityDefaultConfigurations.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists the default code security configurations for an organization.The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. @@ -79,11 +81,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DefaultsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Defaults.DefaultsRequestBuilder WithUrl(string rawUrl) { - return new DefaultsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.CodeSecurity.Configurations.Defaults.DefaultsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Detach/DetachDeleteRequestBody.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Detach/DetachDeleteRequestBody.cs index 124cc225..18989a9b 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Detach/DetachDeleteRequestBody.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Detach/DetachDeleteRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Detach { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Detach +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class DetachDeleteRequestBody : IParsable + public partial class DetachDeleteRequestBody : IParsable #pragma warning restore CS1591 { /// An array of repository IDs to detach from configurations. @@ -20,12 +22,12 @@ public class DetachDeleteRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DetachDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.CodeSecurity.Configurations.Detach.DetachDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DetachDeleteRequestBody(); + return new global::GitHub.Orgs.Item.CodeSecurity.Configurations.Detach.DetachDeleteRequestBody(); } /// /// The deserialization information for the current model @@ -35,7 +37,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Detach/DetachRequestBuilder.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Detach/DetachRequestBuilder.cs index 8f8e860f..b81e5045 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Detach/DetachRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Detach/DetachRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Detach { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Detach +{ /// /// Builds and executes requests for operations under \orgs\{org}\code-security\configurations\detach /// - public class DetachRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DetachRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public DetachRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -37,27 +39,27 @@ public DetachRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 409 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 409 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(DetachDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(global::GitHub.Orgs.Item.CodeSecurity.Configurations.Detach.DetachDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(DetachDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(global::GitHub.Orgs.Item.CodeSecurity.Configurations.Detach.DetachDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"409", BasicError.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -69,11 +71,11 @@ public async Task DeleteAsync(DetachDeleteRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(DetachDeleteRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Orgs.Item.CodeSecurity.Configurations.Detach.DetachDeleteRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(DetachDeleteRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Orgs.Item.CodeSecurity.Configurations.Detach.DetachDeleteRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -86,11 +88,11 @@ public RequestInformation ToDeleteRequestInformation(DetachDeleteRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DetachRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Detach.DetachRequestBuilder WithUrl(string rawUrl) { - return new DetachRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.CodeSecurity.Configurations.Detach.DetachRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/GetTarget_typeQueryParameterType.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/GetTarget_typeQueryParameterType.cs index 50602ac9..4b40be5d 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/GetTarget_typeQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/GetTarget_typeQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetTarget_typeQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Attach/AttachPostRequestBody.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Attach/AttachPostRequestBody.cs index 70700951..a2116029 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Attach/AttachPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Attach/AttachPostRequestBody.cs @@ -1,16 +1,18 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AttachPostRequestBody : IParsable + public partial class AttachPostRequestBody : IParsable #pragma warning restore CS1591 { /// The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids` - public AttachPostRequestBody_scope? Scope { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach.AttachPostRequestBody_scope? Scope { get; set; } /// An array of repository IDs to attach the configuration to. You can only provide a list of repository ids when the `scope` is set to `selected`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -22,12 +24,12 @@ public class AttachPostRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AttachPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach.AttachPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AttachPostRequestBody(); + return new global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach.AttachPostRequestBody(); } /// /// The deserialization information for the current model @@ -37,8 +39,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"scope", n => { Scope = n.GetEnumValue(); } }, - {"selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "scope", n => { Scope = n.GetEnumValue(); } }, + { "selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("scope", Scope); + writer.WriteEnumValue("scope", Scope); writer.WriteCollectionOfPrimitiveValues("selected_repository_ids", SelectedRepositoryIds); } } diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Attach/AttachPostRequestBody_scope.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Attach/AttachPostRequestBody_scope.cs index 26276413..2ac9721a 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Attach/AttachPostRequestBody_scope.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Attach/AttachPostRequestBody_scope.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach +{ /// The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids` + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AttachPostRequestBody_scope { [EnumMember(Value = "all")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Attach/AttachPostResponse.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Attach/AttachPostResponse.cs index cd6f72bf..0a944363 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Attach/AttachPostResponse.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Attach/AttachPostResponse.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AttachPostResponse : IAdditionalDataHolder, IParsable + public partial class AttachPostResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AttachPostResponse() { @@ -21,12 +23,12 @@ public AttachPostResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AttachPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach.AttachPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AttachPostResponse(); + return new global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach.AttachPostResponse(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Attach/AttachRequestBuilder.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Attach/AttachRequestBuilder.cs index c26fecb6..ea6df86a 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Attach/AttachRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Attach/AttachRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach +{ /// /// Builds and executes requests for operations under \orgs\{org}\code-security\configurations\{configuration_id}\attach /// - public class AttachRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AttachRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public AttachRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,22 +35,22 @@ public AttachRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Attach a code security configuration to a set of repositories. If the repositories specified are already attached to a configuration, they will be re-attached to the provided configuration.If insufficient GHAS licenses are available to attach the configuration to a repository, only free features will be enabled.The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(AttachPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach.AttachPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(AttachPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach.AttachPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, AttachPostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach.AttachPostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Attach a code security configuration to a set of repositories. If the repositories specified are already attached to a configuration, they will be re-attached to the provided configuration.If insufficient GHAS licenses are available to attach the configuration to a repository, only free features will be enabled.The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. @@ -58,11 +60,11 @@ public async Task PostAsync(AttachPostRequestBody body, Acti /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(AttachPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach.AttachPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AttachPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach.AttachPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -75,11 +77,11 @@ public RequestInformation ToPostRequestInformation(AttachPostRequestBody body, A /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AttachRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach.AttachRequestBuilder WithUrl(string rawUrl) { - return new AttachRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach.AttachRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutRequestBody.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutRequestBody.cs index 050029c4..6caa6c03 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutRequestBody.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutRequestBody.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class DefaultsPutRequestBody : IAdditionalDataHolder, IParsable + public partial class DefaultsPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// Specify which types of repository this security configuration should be applied to by default. - public DefaultsPutRequestBody_default_for_new_repos? DefaultForNewRepos { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutRequestBody_default_for_new_repos? DefaultForNewRepos { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DefaultsPutRequestBody() { @@ -23,12 +25,12 @@ public DefaultsPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DefaultsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DefaultsPutRequestBody(); + return new global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutRequestBody(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"default_for_new_repos", n => { DefaultForNewRepos = n.GetEnumValue(); } }, + { "default_for_new_repos", n => { DefaultForNewRepos = n.GetEnumValue(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("default_for_new_repos", DefaultForNewRepos); + writer.WriteEnumValue("default_for_new_repos", DefaultForNewRepos); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutRequestBody_default_for_new_repos.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutRequestBody_default_for_new_repos.cs index fe5d7fef..08cf3204 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutRequestBody_default_for_new_repos.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutRequestBody_default_for_new_repos.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults +{ /// Specify which types of repository this security configuration should be applied to by default. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum DefaultsPutRequestBody_default_for_new_repos { [EnumMember(Value = "all")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutResponse.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutResponse.cs index b362c43c..6bce75db 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutResponse.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class DefaultsPutResponse : IAdditionalDataHolder, IParsable + public partial class DefaultsPutResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class DefaultsPutResponse : IAdditionalDataHolder, IParsable /// A code security configuration #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.CodeSecurityConfiguration? Configuration { get; set; } + public global::GitHub.Models.CodeSecurityConfiguration? Configuration { get; set; } #nullable restore #else - public GitHub.Models.CodeSecurityConfiguration Configuration { get; set; } + public global::GitHub.Models.CodeSecurityConfiguration Configuration { get; set; } #endif /// Specifies which types of repository this security configuration is applied to by default. - public DefaultsPutResponse_default_for_new_repos? DefaultForNewRepos { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutResponse_default_for_new_repos? DefaultForNewRepos { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DefaultsPutResponse() { @@ -32,12 +34,12 @@ public DefaultsPutResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DefaultsPutResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DefaultsPutResponse(); + return new global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"configuration", n => { Configuration = n.GetObjectValue(GitHub.Models.CodeSecurityConfiguration.CreateFromDiscriminatorValue); } }, - {"default_for_new_repos", n => { DefaultForNewRepos = n.GetEnumValue(); } }, + { "configuration", n => { Configuration = n.GetObjectValue(global::GitHub.Models.CodeSecurityConfiguration.CreateFromDiscriminatorValue); } }, + { "default_for_new_repos", n => { DefaultForNewRepos = n.GetEnumValue(); } }, }; } /// @@ -58,8 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("configuration", Configuration); - writer.WriteEnumValue("default_for_new_repos", DefaultForNewRepos); + writer.WriteObjectValue("configuration", Configuration); + writer.WriteEnumValue("default_for_new_repos", DefaultForNewRepos); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutResponse_default_for_new_repos.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutResponse_default_for_new_repos.cs index d3d0c124..c8c22ddb 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutResponse_default_for_new_repos.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutResponse_default_for_new_repos.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults +{ /// Specifies which types of repository this security configuration is applied to by default. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum DefaultsPutResponse_default_for_new_repos { [EnumMember(Value = "all")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsRequestBuilder.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsRequestBuilder.cs index 832a5f0f..b6735d8f 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults +{ /// /// Builds and executes requests for operations under \orgs\{org}\code-security\configurations\{configuration_id}\defaults /// - public class DefaultsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DefaultsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public DefaultsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,29 +36,29 @@ public DefaultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Sets a code security configuration as a default to be applied to new repositories in your organization.This configuration will be applied to the matching repository type (all, none, public, private and internal) by default when they are created.The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(DefaultsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(DefaultsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, DefaultsPutResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Sets a code security configuration as a default to be applied to new repositories in your organization.This configuration will be applied to the matching repository type (all, none, public, private and internal) by default when they are created.The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. @@ -66,11 +68,11 @@ public async Task PutAsync(DefaultsPutRequestBody body, Act /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(DefaultsPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(DefaultsPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -83,11 +85,11 @@ public RequestInformation ToPutRequestInformation(DefaultsPutRequestBody body, A /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DefaultsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsRequestBuilder WithUrl(string rawUrl) { - return new DefaultsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Repositories/RepositoriesRequestBuilder.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Repositories/RepositoriesRequestBuilder.cs index 2e6323f1..289d1eec 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Repositories/RepositoriesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/Repositories/RepositoriesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Repositories { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Repositories +{ /// /// Builds and executes requests for operations under \orgs\{org}\code-security\configurations\{configuration_id}\repositories /// - public class RepositoriesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RepositoriesRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,28 +36,28 @@ public RepositoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Lists the repositories associated with a code security configuration in an organization.The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. /// API method documentation /// - /// A List<CodeSecurityConfigurationRepositories> + /// A List<global::GitHub.Models.CodeSecurityConfigurationRepositories> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CodeSecurityConfigurationRepositories.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CodeSecurityConfigurationRepositories.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists the repositories associated with a code security configuration in an organization.The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. @@ -64,11 +66,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -79,16 +81,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RepositoriesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Repositories.RepositoriesRequestBuilder WithUrl(string rawUrl) { - return new RepositoriesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Repositories.RepositoriesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the repositories associated with a code security configuration in an organization.The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. /// - public class RepositoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilderGetQueryParameters { /// A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_ItemRequestBuilder.cs index b040f4c5..66ea02fb 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_ItemRequestBuilder.cs @@ -3,37 +3,39 @@ using GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach; using GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults; using GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Repositories; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\code-security\configurations\{configuration_id} /// - public class WithConfiguration_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithConfiguration_ItemRequestBuilder : BaseRequestBuilder { /// The attach property - public AttachRequestBuilder Attach + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach.AttachRequestBuilder Attach { - get => new AttachRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Attach.AttachRequestBuilder(PathParameters, RequestAdapter); } /// The defaults property - public DefaultsRequestBuilder Defaults + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsRequestBuilder Defaults { - get => new DefaultsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsRequestBuilder(PathParameters, RequestAdapter); } /// The repositories property - public RepositoriesRequestBuilder Repositories + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Repositories.RepositoriesRequestBuilder Repositories { - get => new RepositoriesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.Repositories.RepositoriesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -41,7 +43,7 @@ public WithConfiguration_ItemRequestBuilder(Dictionary pathParam { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -54,10 +56,10 @@ public WithConfiguration_ItemRequestBuilder(string rawUrl, IRequestAdapter reque /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 409 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 409 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -70,10 +72,10 @@ public async Task DeleteAsync(Action> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"409", BasicError.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -81,48 +83,48 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.CodeSecurityConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeSecurityConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Updates a code security configuration in an organization.The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithConfiguration_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithConfiguration_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.CodeSecurityConfiguration.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeSecurityConfiguration.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Deletes the desired code security configuration from an organization.Repositories attached to the configuration will retain their settings but will no longer be associated withthe configuration.The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. @@ -170,11 +172,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithConfiguration_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithConfiguration_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -187,11 +189,11 @@ public RequestInformation ToPatchRequestInformation(WithConfiguration_PatchReque /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithConfiguration_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithConfiguration_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody.cs index d1036f61..0b9fa29a 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody.cs @@ -1,33 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithConfiguration_PatchRequestBody : IParsable + public partial class WithConfiguration_PatchRequestBody : IParsable #pragma warning restore CS1591 { /// The enablement status of GitHub Advanced Security - public WithConfiguration_PatchRequestBody_advanced_security? AdvancedSecurity { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_advanced_security? AdvancedSecurity { get; set; } /// The enablement status of code scanning default setup - public WithConfiguration_PatchRequestBody_code_scanning_default_setup? CodeScanningDefaultSetup { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_code_scanning_default_setup? CodeScanningDefaultSetup { get; set; } /// The enablement status of Dependabot alerts - public WithConfiguration_PatchRequestBody_dependabot_alerts? DependabotAlerts { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_dependabot_alerts? DependabotAlerts { get; set; } /// The enablement status of Dependabot security updates - public WithConfiguration_PatchRequestBody_dependabot_security_updates? DependabotSecurityUpdates { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_dependabot_security_updates? DependabotSecurityUpdates { get; set; } /// The enablement status of Dependency Graph - public WithConfiguration_PatchRequestBody_dependency_graph? DependencyGraph { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_dependency_graph? DependencyGraph { get; set; } /// The enablement status of Automatic dependency submission - public WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action? DependencyGraphAutosubmitAction { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action? DependencyGraphAutosubmitAction { get; set; } /// Feature options for Automatic dependency submission #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options? DependencyGraphAutosubmitActionOptions { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options? DependencyGraphAutosubmitActionOptions { get; set; } #nullable restore #else - public WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options DependencyGraphAutosubmitActionOptions { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options DependencyGraphAutosubmitActionOptions { get; set; } #endif /// A description of the code security configuration #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -38,7 +40,7 @@ public class WithConfiguration_PatchRequestBody : IParsable public string Description { get; set; } #endif /// The enforcement status for a security configuration - public WithConfiguration_PatchRequestBody_enforcement? Enforcement { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_enforcement? Enforcement { get; set; } /// The name of the code security configuration. Must be unique within the organization. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -48,22 +50,22 @@ public class WithConfiguration_PatchRequestBody : IParsable public string Name { get; set; } #endif /// The enablement status of private vulnerability reporting - public WithConfiguration_PatchRequestBody_private_vulnerability_reporting? PrivateVulnerabilityReporting { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_private_vulnerability_reporting? PrivateVulnerabilityReporting { get; set; } /// The enablement status of secret scanning - public WithConfiguration_PatchRequestBody_secret_scanning? SecretScanning { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_secret_scanning? SecretScanning { get; set; } /// The enablement status of secret scanning push protection - public WithConfiguration_PatchRequestBody_secret_scanning_push_protection? SecretScanningPushProtection { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_secret_scanning_push_protection? SecretScanningPushProtection { get; set; } /// The enablement status of secret scanning validity checks - public WithConfiguration_PatchRequestBody_secret_scanning_validity_checks? SecretScanningValidityChecks { get; set; } + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_secret_scanning_validity_checks? SecretScanningValidityChecks { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithConfiguration_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithConfiguration_PatchRequestBody(); + return new global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -73,20 +75,20 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"advanced_security", n => { AdvancedSecurity = n.GetEnumValue(); } }, - {"code_scanning_default_setup", n => { CodeScanningDefaultSetup = n.GetEnumValue(); } }, - {"dependabot_alerts", n => { DependabotAlerts = n.GetEnumValue(); } }, - {"dependabot_security_updates", n => { DependabotSecurityUpdates = n.GetEnumValue(); } }, - {"dependency_graph", n => { DependencyGraph = n.GetEnumValue(); } }, - {"dependency_graph_autosubmit_action", n => { DependencyGraphAutosubmitAction = n.GetEnumValue(); } }, - {"dependency_graph_autosubmit_action_options", n => { DependencyGraphAutosubmitActionOptions = n.GetObjectValue(WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options.CreateFromDiscriminatorValue); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"enforcement", n => { Enforcement = n.GetEnumValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"private_vulnerability_reporting", n => { PrivateVulnerabilityReporting = n.GetEnumValue(); } }, - {"secret_scanning", n => { SecretScanning = n.GetEnumValue(); } }, - {"secret_scanning_push_protection", n => { SecretScanningPushProtection = n.GetEnumValue(); } }, - {"secret_scanning_validity_checks", n => { SecretScanningValidityChecks = n.GetEnumValue(); } }, + { "advanced_security", n => { AdvancedSecurity = n.GetEnumValue(); } }, + { "code_scanning_default_setup", n => { CodeScanningDefaultSetup = n.GetEnumValue(); } }, + { "dependabot_alerts", n => { DependabotAlerts = n.GetEnumValue(); } }, + { "dependabot_security_updates", n => { DependabotSecurityUpdates = n.GetEnumValue(); } }, + { "dependency_graph", n => { DependencyGraph = n.GetEnumValue(); } }, + { "dependency_graph_autosubmit_action", n => { DependencyGraphAutosubmitAction = n.GetEnumValue(); } }, + { "dependency_graph_autosubmit_action_options", n => { DependencyGraphAutosubmitActionOptions = n.GetObjectValue(global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options.CreateFromDiscriminatorValue); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "enforcement", n => { Enforcement = n.GetEnumValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "private_vulnerability_reporting", n => { PrivateVulnerabilityReporting = n.GetEnumValue(); } }, + { "secret_scanning", n => { SecretScanning = n.GetEnumValue(); } }, + { "secret_scanning_push_protection", n => { SecretScanningPushProtection = n.GetEnumValue(); } }, + { "secret_scanning_validity_checks", n => { SecretScanningValidityChecks = n.GetEnumValue(); } }, }; } /// @@ -96,20 +98,20 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("advanced_security", AdvancedSecurity); - writer.WriteEnumValue("code_scanning_default_setup", CodeScanningDefaultSetup); - writer.WriteEnumValue("dependabot_alerts", DependabotAlerts); - writer.WriteEnumValue("dependabot_security_updates", DependabotSecurityUpdates); - writer.WriteEnumValue("dependency_graph", DependencyGraph); - writer.WriteEnumValue("dependency_graph_autosubmit_action", DependencyGraphAutosubmitAction); - writer.WriteObjectValue("dependency_graph_autosubmit_action_options", DependencyGraphAutosubmitActionOptions); + writer.WriteEnumValue("advanced_security", AdvancedSecurity); + writer.WriteEnumValue("code_scanning_default_setup", CodeScanningDefaultSetup); + writer.WriteEnumValue("dependabot_alerts", DependabotAlerts); + writer.WriteEnumValue("dependabot_security_updates", DependabotSecurityUpdates); + writer.WriteEnumValue("dependency_graph", DependencyGraph); + writer.WriteEnumValue("dependency_graph_autosubmit_action", DependencyGraphAutosubmitAction); + writer.WriteObjectValue("dependency_graph_autosubmit_action_options", DependencyGraphAutosubmitActionOptions); writer.WriteStringValue("description", Description); - writer.WriteEnumValue("enforcement", Enforcement); + writer.WriteEnumValue("enforcement", Enforcement); writer.WriteStringValue("name", Name); - writer.WriteEnumValue("private_vulnerability_reporting", PrivateVulnerabilityReporting); - writer.WriteEnumValue("secret_scanning", SecretScanning); - writer.WriteEnumValue("secret_scanning_push_protection", SecretScanningPushProtection); - writer.WriteEnumValue("secret_scanning_validity_checks", SecretScanningValidityChecks); + writer.WriteEnumValue("private_vulnerability_reporting", PrivateVulnerabilityReporting); + writer.WriteEnumValue("secret_scanning", SecretScanning); + writer.WriteEnumValue("secret_scanning_push_protection", SecretScanningPushProtection); + writer.WriteEnumValue("secret_scanning_validity_checks", SecretScanningValidityChecks); } } } diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_advanced_security.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_advanced_security.cs index 5580edc3..1d698822 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_advanced_security.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_advanced_security.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item +{ /// The enablement status of GitHub Advanced Security + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithConfiguration_PatchRequestBody_advanced_security { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_code_scanning_default_setup.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_code_scanning_default_setup.cs index dddda06e..925147bc 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_code_scanning_default_setup.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_code_scanning_default_setup.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item +{ /// The enablement status of code scanning default setup + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithConfiguration_PatchRequestBody_code_scanning_default_setup { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependabot_alerts.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependabot_alerts.cs index a5ba3286..bf4bb7a8 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependabot_alerts.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependabot_alerts.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item +{ /// The enablement status of Dependabot alerts + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithConfiguration_PatchRequestBody_dependabot_alerts { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependabot_security_updates.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependabot_security_updates.cs index 6ff157ee..a3e39ffc 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependabot_security_updates.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependabot_security_updates.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item +{ /// The enablement status of Dependabot security updates + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithConfiguration_PatchRequestBody_dependabot_security_updates { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependency_graph.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependency_graph.cs index b20a8d07..fff47fbd 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependency_graph.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependency_graph.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item +{ /// The enablement status of Dependency Graph + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithConfiguration_PatchRequestBody_dependency_graph { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action.cs index df932b58..4f71a214 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item +{ /// The enablement status of Automatic dependency submission + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options.cs index 4622a8d5..12709186 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item +{ /// /// Feature options for Automatic dependency submission /// - public class WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// Whether to use runners labeled with 'dependency-submission' or standard GitHub runners. public bool? LabeledRunners { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options() { @@ -24,12 +26,12 @@ public WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_opt /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options(); + return new global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options(); } /// /// The deserialization information for the current model @@ -39,7 +41,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labeled_runners", n => { LabeledRunners = n.GetBoolValue(); } }, + { "labeled_runners", n => { LabeledRunners = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_enforcement.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_enforcement.cs index a8514d7a..1c1989ce 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_enforcement.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_enforcement.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item +{ /// The enforcement status for a security configuration + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithConfiguration_PatchRequestBody_enforcement { [EnumMember(Value = "enforced")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_private_vulnerability_reporting.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_private_vulnerability_reporting.cs index fb832e23..0e4b7127 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_private_vulnerability_reporting.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_private_vulnerability_reporting.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item +{ /// The enablement status of private vulnerability reporting + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithConfiguration_PatchRequestBody_private_vulnerability_reporting { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning.cs index 6a4c7ed8..99854c40 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item +{ /// The enablement status of secret scanning + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithConfiguration_PatchRequestBody_secret_scanning { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_push_protection.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_push_protection.cs index aca40c5d..cdc06c2f 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_push_protection.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_push_protection.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item +{ /// The enablement status of secret scanning push protection + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithConfiguration_PatchRequestBody_secret_scanning_push_protection { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_validity_checks.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_validity_checks.cs index 39b7f2b9..7f3ab72b 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_validity_checks.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_validity_checks.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item { +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item +{ /// The enablement status of secret scanning validity checks + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithConfiguration_PatchRequestBody_secret_scanning_validity_checks { [EnumMember(Value = "enabled")] diff --git a/src/GitHub/Orgs/Item/Codespaces/Access/AccessPutRequestBody.cs b/src/GitHub/Orgs/Item/Codespaces/Access/AccessPutRequestBody.cs index aeb8b615..3a265e2c 100644 --- a/src/GitHub/Orgs/Item/Codespaces/Access/AccessPutRequestBody.cs +++ b/src/GitHub/Orgs/Item/Codespaces/Access/AccessPutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Codespaces.Access { +namespace GitHub.Orgs.Item.Codespaces.Access +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AccessPutRequestBody : IAdditionalDataHolder, IParsable + public partial class AccessPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,9 +22,9 @@ public class AccessPutRequestBody : IAdditionalDataHolder, IParsable public List SelectedUsernames { get; set; } #endif /// Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization. - public AccessPutRequestBody_visibility? Visibility { get; set; } + public global::GitHub.Orgs.Item.Codespaces.Access.AccessPutRequestBody_visibility? Visibility { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AccessPutRequestBody() { @@ -31,12 +33,12 @@ public AccessPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AccessPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Codespaces.Access.AccessPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AccessPutRequestBody(); + return new global::GitHub.Orgs.Item.Codespaces.Access.AccessPutRequestBody(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"selected_usernames", n => { SelectedUsernames = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, + { "selected_usernames", n => { SelectedUsernames = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "visibility", n => { Visibility = n.GetEnumValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("selected_usernames", SelectedUsernames); - writer.WriteEnumValue("visibility", Visibility); + writer.WriteEnumValue("visibility", Visibility); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Codespaces/Access/AccessPutRequestBody_visibility.cs b/src/GitHub/Orgs/Item/Codespaces/Access/AccessPutRequestBody_visibility.cs index e1ba440a..6db2d7e9 100644 --- a/src/GitHub/Orgs/Item/Codespaces/Access/AccessPutRequestBody_visibility.cs +++ b/src/GitHub/Orgs/Item/Codespaces/Access/AccessPutRequestBody_visibility.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Codespaces.Access { +namespace GitHub.Orgs.Item.Codespaces.Access +{ /// Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum AccessPutRequestBody_visibility { [EnumMember(Value = "disabled")] diff --git a/src/GitHub/Orgs/Item/Codespaces/Access/AccessRequestBuilder.cs b/src/GitHub/Orgs/Item/Codespaces/Access/AccessRequestBuilder.cs index 09f9b02f..01361134 100644 --- a/src/GitHub/Orgs/Item/Codespaces/Access/AccessRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Codespaces/Access/AccessRequestBuilder.cs @@ -1,28 +1,30 @@ // using GitHub.Models; using GitHub.Orgs.Item.Codespaces.Access.Selected_users; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Codespaces.Access { +namespace GitHub.Orgs.Item.Codespaces.Access +{ /// /// Builds and executes requests for operations under \orgs\{org}\codespaces\access /// - public class AccessRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AccessRequestBuilder : BaseRequestBuilder { /// The selected_users property [Obsolete("")] - public Selected_usersRequestBuilder Selected_users + public global::GitHub.Orgs.Item.Codespaces.Access.Selected_users.Selected_usersRequestBuilder Selected_users { - get => new Selected_usersRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Codespaces.Access.Selected_users.Selected_usersRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -30,7 +32,7 @@ public AccessRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -44,26 +46,26 @@ public AccessRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code - /// When receiving a 500 status code + /// When receiving a 404 status code + /// When receiving a 422 status code + /// When receiving a 500 status code [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(AccessPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Codespaces.Access.AccessPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(AccessPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Codespaces.Access.AccessPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -76,11 +78,11 @@ public async Task PutAsync(AccessPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Codespaces.Access.AccessPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(AccessPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Codespaces.Access.AccessPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -93,12 +95,12 @@ public RequestInformation ToPutRequestInformation(AccessPutRequestBody body, Act /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public AccessRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Codespaces.Access.AccessRequestBuilder WithUrl(string rawUrl) { - return new AccessRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Codespaces.Access.AccessRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Codespaces/Access/Selected_users/Selected_usersDeleteRequestBody.cs b/src/GitHub/Orgs/Item/Codespaces/Access/Selected_users/Selected_usersDeleteRequestBody.cs index 08609fdc..6a0d0be1 100644 --- a/src/GitHub/Orgs/Item/Codespaces/Access/Selected_users/Selected_usersDeleteRequestBody.cs +++ b/src/GitHub/Orgs/Item/Codespaces/Access/Selected_users/Selected_usersDeleteRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Codespaces.Access.Selected_users { +namespace GitHub.Orgs.Item.Codespaces.Access.Selected_users +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Selected_usersDeleteRequestBody : IAdditionalDataHolder, IParsable + public partial class Selected_usersDeleteRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class Selected_usersDeleteRequestBody : IAdditionalDataHolder, IParsable public List SelectedUsernames { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Selected_usersDeleteRequestBody() { @@ -29,12 +31,12 @@ public Selected_usersDeleteRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Selected_usersDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Codespaces.Access.Selected_users.Selected_usersDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Selected_usersDeleteRequestBody(); + return new global::GitHub.Orgs.Item.Codespaces.Access.Selected_users.Selected_usersDeleteRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"selected_usernames", n => { SelectedUsernames = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "selected_usernames", n => { SelectedUsernames = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Codespaces/Access/Selected_users/Selected_usersPostRequestBody.cs b/src/GitHub/Orgs/Item/Codespaces/Access/Selected_users/Selected_usersPostRequestBody.cs index a5b8f610..12e90e17 100644 --- a/src/GitHub/Orgs/Item/Codespaces/Access/Selected_users/Selected_usersPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/Codespaces/Access/Selected_users/Selected_usersPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Codespaces.Access.Selected_users { +namespace GitHub.Orgs.Item.Codespaces.Access.Selected_users +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Selected_usersPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Selected_usersPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class Selected_usersPostRequestBody : IAdditionalDataHolder, IParsable public List SelectedUsernames { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Selected_usersPostRequestBody() { @@ -29,12 +31,12 @@ public Selected_usersPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Selected_usersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Codespaces.Access.Selected_users.Selected_usersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Selected_usersPostRequestBody(); + return new global::GitHub.Orgs.Item.Codespaces.Access.Selected_users.Selected_usersPostRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"selected_usernames", n => { SelectedUsernames = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "selected_usernames", n => { SelectedUsernames = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Codespaces/Access/Selected_users/Selected_usersRequestBuilder.cs b/src/GitHub/Orgs/Item/Codespaces/Access/Selected_users/Selected_usersRequestBuilder.cs index 481fb3f2..ffc46ecc 100644 --- a/src/GitHub/Orgs/Item/Codespaces/Access/Selected_users/Selected_usersRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Codespaces/Access/Selected_users/Selected_usersRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Codespaces.Access.Selected_users { +namespace GitHub.Orgs.Item.Codespaces.Access.Selected_users +{ /// /// Builds and executes requests for operations under \orgs\{org}\codespaces\access\selected_users /// - public class Selected_usersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Selected_usersRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Selected_usersRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -37,26 +39,26 @@ public Selected_usersRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code - /// When receiving a 500 status code + /// When receiving a 404 status code + /// When receiving a 422 status code + /// When receiving a 500 status code [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Selected_usersDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(global::GitHub.Orgs.Item.Codespaces.Access.Selected_users.Selected_usersDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Selected_usersDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(global::GitHub.Orgs.Item.Codespaces.Access.Selected_users.Selected_usersDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -67,26 +69,26 @@ public async Task DeleteAsync(Selected_usersDeleteRequestBody body, ActionThe request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code - /// When receiving a 500 status code + /// When receiving a 404 status code + /// When receiving a 422 status code + /// When receiving a 500 status code [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Selected_usersPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Codespaces.Access.Selected_users.Selected_usersPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Selected_usersPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Codespaces.Access.Selected_users.Selected_usersPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -99,11 +101,11 @@ public async Task PostAsync(Selected_usersPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Orgs.Item.Codespaces.Access.Selected_users.Selected_usersDeleteRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Selected_usersDeleteRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Orgs.Item.Codespaces.Access.Selected_users.Selected_usersDeleteRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,11 +124,11 @@ public RequestInformation ToDeleteRequestInformation(Selected_usersDeleteRequest [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Selected_usersPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Codespaces.Access.Selected_users.Selected_usersPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Selected_usersPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Codespaces.Access.Selected_users.Selected_usersPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -139,12 +141,12 @@ public RequestInformation ToPostRequestInformation(Selected_usersPostRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public Selected_usersRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Codespaces.Access.Selected_users.Selected_usersRequestBuilder WithUrl(string rawUrl) { - return new Selected_usersRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Codespaces.Access.Selected_users.Selected_usersRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Codespaces/CodespacesGetResponse.cs b/src/GitHub/Orgs/Item/Codespaces/CodespacesGetResponse.cs index 93182b2b..2294d741 100644 --- a/src/GitHub/Orgs/Item/Codespaces/CodespacesGetResponse.cs +++ b/src/GitHub/Orgs/Item/Codespaces/CodespacesGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Codespaces { +namespace GitHub.Orgs.Item.Codespaces +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodespacesGetResponse : IAdditionalDataHolder, IParsable + public partial class CodespacesGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class CodespacesGetResponse : IAdditionalDataHolder, IParsable /// The codespaces property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Codespaces { get; set; } + public List? Codespaces { get; set; } #nullable restore #else - public List Codespaces { get; set; } + public List Codespaces { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodespacesGetResponse() { @@ -32,12 +34,12 @@ public CodespacesGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodespacesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Codespaces.CodespacesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodespacesGetResponse(); + return new global::GitHub.Orgs.Item.Codespaces.CodespacesGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"codespaces", n => { Codespaces = n.GetCollectionOfObjectValues(Codespace.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "codespaces", n => { Codespaces = n.GetCollectionOfObjectValues(global::GitHub.Models.Codespace.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("codespaces", Codespaces); + writer.WriteCollectionOfObjectValues("codespaces", Codespaces); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Codespaces/CodespacesRequestBuilder.cs b/src/GitHub/Orgs/Item/Codespaces/CodespacesRequestBuilder.cs index 96184aa7..00236dfb 100644 --- a/src/GitHub/Orgs/Item/Codespaces/CodespacesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Codespaces/CodespacesRequestBuilder.cs @@ -2,32 +2,34 @@ using GitHub.Models; using GitHub.Orgs.Item.Codespaces.Access; using GitHub.Orgs.Item.Codespaces.Secrets; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Codespaces { +namespace GitHub.Orgs.Item.Codespaces +{ /// /// Builds and executes requests for operations under \orgs\{org}\codespaces /// - public class CodespacesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodespacesRequestBuilder : BaseRequestBuilder { /// The access property - public AccessRequestBuilder Access + public global::GitHub.Orgs.Item.Codespaces.Access.AccessRequestBuilder Access { - get => new AccessRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Codespaces.Access.AccessRequestBuilder(PathParameters, RequestAdapter); } /// The secrets property - public SecretsRequestBuilder Secrets + public global::GitHub.Orgs.Item.Codespaces.Secrets.SecretsRequestBuilder Secrets { - get => new SecretsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Codespaces.Secrets.SecretsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public CodespacesRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,31 +48,31 @@ public CodespacesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Lists the codespaces associated to a specified organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CodespacesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Codespaces.CodespacesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists the codespaces associated to a specified organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. @@ -79,11 +81,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -94,16 +96,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CodespacesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Codespaces.CodespacesRequestBuilder WithUrl(string rawUrl) { - return new CodespacesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Codespaces.CodespacesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the codespaces associated to a specified organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// - public class CodespacesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodespacesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/Repositories/Item/WithRepository_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/Repositories/Item/WithRepository_ItemRequestBuilder.cs index 046a543f..9645d239 100644 --- a/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/Repositories/Item/WithRepository_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/Repositories/Item/WithRepository_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories.Item { +namespace GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\codespaces\secrets\{secret_name}\repositories\{repository_id} /// - public class WithRepository_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRepository_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithRepository_ItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,8 +38,8 @@ public WithRepository_ItemRequestBuilder(string rawUrl, IRequestAdapter requestA /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -50,8 +52,8 @@ public async Task DeleteAsync(Action> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -61,8 +63,8 @@ public async Task DeleteAsync(Action /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -75,8 +77,8 @@ public async Task PutAsync(Action> var requestInfo = ToPutRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -121,11 +123,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRepository_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories.Item.WithRepository_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithRepository_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories.Item.WithRepository_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/Repositories/RepositoriesGetResponse.cs b/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/Repositories/RepositoriesGetResponse.cs index 85273e21..d02a2589 100644 --- a/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/Repositories/RepositoriesGetResponse.cs +++ b/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/Repositories/RepositoriesGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories { +namespace GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoriesGetResponse : IAdditionalDataHolder, IParsable + public partial class RepositoriesGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class RepositoriesGetResponse : IAdditionalDataHolder, IParsable /// The repositories property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Repositories { get; set; } + public List? Repositories { get; set; } #nullable restore #else - public List Repositories { get; set; } + public List Repositories { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoriesGetResponse() { @@ -32,12 +34,12 @@ public RepositoriesGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoriesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories.RepositoriesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoriesGetResponse(); + return new global::GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories.RepositoriesGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"repositories", n => { Repositories = n.GetCollectionOfObjectValues(MinimalRepository.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "repositories", n => { Repositories = n.GetCollectionOfObjectValues(global::GitHub.Models.MinimalRepository.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("repositories", Repositories); + writer.WriteCollectionOfObjectValues("repositories", Repositories); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/Repositories/RepositoriesPutRequestBody.cs b/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/Repositories/RepositoriesPutRequestBody.cs index abb4aa16..a446b724 100644 --- a/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/Repositories/RepositoriesPutRequestBody.cs +++ b/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/Repositories/RepositoriesPutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories { +namespace GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoriesPutRequestBody : IAdditionalDataHolder, IParsable + public partial class RepositoriesPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class RepositoriesPutRequestBody : IAdditionalDataHolder, IParsable public List SelectedRepositoryIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoriesPutRequestBody() { @@ -29,12 +31,12 @@ public RepositoriesPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoriesPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories.RepositoriesPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoriesPutRequestBody(); + return new global::GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories.RepositoriesPutRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/Repositories/RepositoriesRequestBuilder.cs b/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/Repositories/RepositoriesRequestBuilder.cs index 819ca430..dbfae775 100644 --- a/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/Repositories/RepositoriesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/Repositories/RepositoriesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories { +namespace GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories +{ /// /// Builds and executes requests for operations under \orgs\{org}\codespaces\secrets\{secret_name}\repositories /// - public class RepositoriesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.codespaces.secrets.item.repositories.item collection /// Unique identifier of the item - /// A - public WithRepository_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories.Item.WithRepository_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("repository_id", position); - return new WithRepository_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories.Item.WithRepository_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public RepositoriesRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,25 +49,25 @@ public RepositoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Lists all repositories that have been selected when the `visibility`for repository access to a secret is set to `selected`.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, RepositoriesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories.RepositoriesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Replaces all repositories for an organization development environment secret when the `visibility`for repository access is set to `selected`. The visibility is set when you [Createor update an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#create-or-update-an-organization-secret).OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. @@ -74,21 +76,21 @@ public async Task GetAsync(ActionThe request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(RepositoriesPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories.RepositoriesPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(RepositoriesPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories.RepositoriesPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -99,11 +101,11 @@ public async Task PutAsync(RepositoriesPutRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -119,11 +121,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(RepositoriesPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories.RepositoriesPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(RepositoriesPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories.RepositoriesPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -136,16 +138,17 @@ public RequestInformation ToPutRequestInformation(RepositoriesPutRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RepositoriesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories.RepositoriesRequestBuilder WithUrl(string rawUrl) { - return new RepositoriesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories.RepositoriesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all repositories that have been selected when the `visibility`for repository access to a secret is set to `selected`.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// - public class RepositoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/WithSecret_nameItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/WithSecret_nameItemRequestBuilder.cs index a0db740b..850adcdc 100644 --- a/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/WithSecret_nameItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/WithSecret_nameItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Codespaces.Secrets.Item { +namespace GitHub.Orgs.Item.Codespaces.Secrets.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\codespaces\secrets\{secret_name} /// - public class WithSecret_nameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithSecret_nameItemRequestBuilder : BaseRequestBuilder { /// The repositories property - public RepositoriesRequestBuilder Repositories + public global::GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories.RepositoriesRequestBuilder Repositories { - get => new RepositoriesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Codespaces.Secrets.Item.Repositories.RepositoriesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithSecret_nameItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -42,7 +44,7 @@ public WithSecret_nameItemRequestBuilder(string rawUrl, IRequestAdapter requestA /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -55,7 +57,7 @@ public async Task DeleteAsync(Action> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -63,48 +65,48 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CodespacesOrgSecret.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodespacesOrgSecret.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Creates or updates an organization development 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/enterprise-cloud@latest//rest/guides/encrypting-secrets-for-the-rest-api)."OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(WithSecret_namePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Codespaces.Secrets.Item.WithSecret_namePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(WithSecret_namePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Codespaces.Secrets.Item.WithSecret_namePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, EmptyObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EmptyObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Deletes an organization development environment secret using the secret name.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. @@ -152,11 +154,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(WithSecret_namePutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Codespaces.Secrets.Item.WithSecret_namePutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(WithSecret_namePutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Codespaces.Secrets.Item.WithSecret_namePutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -169,11 +171,11 @@ public RequestInformation ToPutRequestInformation(WithSecret_namePutRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithSecret_nameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Codespaces.Secrets.Item.WithSecret_nameItemRequestBuilder WithUrl(string rawUrl) { - return new WithSecret_nameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Codespaces.Secrets.Item.WithSecret_nameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/WithSecret_namePutRequestBody.cs b/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/WithSecret_namePutRequestBody.cs index 524aea48..0d84d104 100644 --- a/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/WithSecret_namePutRequestBody.cs +++ b/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/WithSecret_namePutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Codespaces.Secrets.Item { +namespace GitHub.Orgs.Item.Codespaces.Secrets.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithSecret_namePutRequestBody : IAdditionalDataHolder, IParsable + public partial class WithSecret_namePutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,9 +38,9 @@ public class WithSecret_namePutRequestBody : IAdditionalDataHolder, IParsable public List SelectedRepositoryIds { get; set; } #endif /// Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. - public WithSecret_namePutRequestBody_visibility? Visibility { get; set; } + public global::GitHub.Orgs.Item.Codespaces.Secrets.Item.WithSecret_namePutRequestBody_visibility? Visibility { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithSecret_namePutRequestBody() { @@ -47,12 +49,12 @@ public WithSecret_namePutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithSecret_namePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Codespaces.Secrets.Item.WithSecret_namePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithSecret_namePutRequestBody(); + return new global::GitHub.Orgs.Item.Codespaces.Secrets.Item.WithSecret_namePutRequestBody(); } /// /// The deserialization information for the current model @@ -62,10 +64,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"encrypted_value", n => { EncryptedValue = n.GetStringValue(); } }, - {"key_id", n => { KeyId = n.GetStringValue(); } }, - {"selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, + { "encrypted_value", n => { EncryptedValue = n.GetStringValue(); } }, + { "key_id", n => { KeyId = n.GetStringValue(); } }, + { "selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "visibility", n => { Visibility = n.GetEnumValue(); } }, }; } /// @@ -78,7 +80,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("encrypted_value", EncryptedValue); writer.WriteStringValue("key_id", KeyId); writer.WriteCollectionOfPrimitiveValues("selected_repository_ids", SelectedRepositoryIds); - writer.WriteEnumValue("visibility", Visibility); + writer.WriteEnumValue("visibility", Visibility); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/WithSecret_namePutRequestBody_visibility.cs b/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/WithSecret_namePutRequestBody_visibility.cs index 55cfca64..65a90542 100644 --- a/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/WithSecret_namePutRequestBody_visibility.cs +++ b/src/GitHub/Orgs/Item/Codespaces/Secrets/Item/WithSecret_namePutRequestBody_visibility.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Codespaces.Secrets.Item { +namespace GitHub.Orgs.Item.Codespaces.Secrets.Item +{ /// Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithSecret_namePutRequestBody_visibility { [EnumMember(Value = "all")] diff --git a/src/GitHub/Orgs/Item/Codespaces/Secrets/PublicKey/PublicKeyRequestBuilder.cs b/src/GitHub/Orgs/Item/Codespaces/Secrets/PublicKey/PublicKeyRequestBuilder.cs index a164dda5..50e1be86 100644 --- a/src/GitHub/Orgs/Item/Codespaces/Secrets/PublicKey/PublicKeyRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Codespaces/Secrets/PublicKey/PublicKeyRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Codespaces.Secrets.PublicKey { +namespace GitHub.Orgs.Item.Codespaces.Secrets.PublicKey +{ /// /// Builds and executes requests for operations under \orgs\{org}\codespaces\secrets\public-key /// - public class PublicKeyRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PublicKeyRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public PublicKeyRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public PublicKeyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Gets a public key for an organization, which is required in order to encrypt secrets. You need to encrypt the value of a secret before you can create or update secrets.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CodespacesPublicKey.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodespacesPublicKey.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets a public key for an organization, which is required in order to encrypt secrets. You need to encrypt the value of a secret before you can create or update secrets.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PublicKeyRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Codespaces.Secrets.PublicKey.PublicKeyRequestBuilder WithUrl(string rawUrl) { - return new PublicKeyRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Codespaces.Secrets.PublicKey.PublicKeyRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Codespaces/Secrets/SecretsGetResponse.cs b/src/GitHub/Orgs/Item/Codespaces/Secrets/SecretsGetResponse.cs index 4c5bace4..7d5173bd 100644 --- a/src/GitHub/Orgs/Item/Codespaces/Secrets/SecretsGetResponse.cs +++ b/src/GitHub/Orgs/Item/Codespaces/Secrets/SecretsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Codespaces.Secrets { +namespace GitHub.Orgs.Item.Codespaces.Secrets +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SecretsGetResponse : IAdditionalDataHolder, IParsable + public partial class SecretsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class SecretsGetResponse : IAdditionalDataHolder, IParsable /// The secrets property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Secrets { get; set; } + public List? Secrets { get; set; } #nullable restore #else - public List Secrets { get; set; } + public List Secrets { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretsGetResponse() { @@ -32,12 +34,12 @@ public SecretsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Codespaces.Secrets.SecretsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretsGetResponse(); + return new global::GitHub.Orgs.Item.Codespaces.Secrets.SecretsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"secrets", n => { Secrets = n.GetCollectionOfObjectValues(CodespacesOrgSecret.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "secrets", n => { Secrets = n.GetCollectionOfObjectValues(global::GitHub.Models.CodespacesOrgSecret.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("secrets", Secrets); + writer.WriteCollectionOfObjectValues("secrets", Secrets); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Codespaces/Secrets/SecretsRequestBuilder.cs b/src/GitHub/Orgs/Item/Codespaces/Secrets/SecretsRequestBuilder.cs index 5b757d45..a05b987d 100644 --- a/src/GitHub/Orgs/Item/Codespaces/Secrets/SecretsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Codespaces/Secrets/SecretsRequestBuilder.cs @@ -1,39 +1,41 @@ // using GitHub.Orgs.Item.Codespaces.Secrets.Item; using GitHub.Orgs.Item.Codespaces.Secrets.PublicKey; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Codespaces.Secrets { +namespace GitHub.Orgs.Item.Codespaces.Secrets +{ /// /// Builds and executes requests for operations under \orgs\{org}\codespaces\secrets /// - public class SecretsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretsRequestBuilder : BaseRequestBuilder { /// The publicKey property - public PublicKeyRequestBuilder PublicKey + public global::GitHub.Orgs.Item.Codespaces.Secrets.PublicKey.PublicKeyRequestBuilder PublicKey { - get => new PublicKeyRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Codespaces.Secrets.PublicKey.PublicKeyRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.orgs.item.codespaces.secrets.item collection /// The name of the secret. - /// A - public WithSecret_nameItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Codespaces.Secrets.Item.WithSecret_nameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("secret_name", position); - return new WithSecret_nameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Codespaces.Secrets.Item.WithSecret_nameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -41,7 +43,7 @@ public SecretsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,20 +54,20 @@ public SecretsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Lists all Codespaces development environment secrets available at the organization-level without revealing their encryptedvalues.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, SecretsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Codespaces.Secrets.SecretsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists all Codespaces development environment secrets available at the organization-level without revealing their encryptedvalues.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. @@ -74,11 +76,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -89,16 +91,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SecretsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Codespaces.Secrets.SecretsRequestBuilder WithUrl(string rawUrl) { - return new SecretsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Codespaces.Secrets.SecretsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all Codespaces development environment secrets available at the organization-level without revealing their encryptedvalues.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// - public class SecretsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/BillingRequestBuilder.cs b/src/GitHub/Orgs/Item/Copilot/Billing/BillingRequestBuilder.cs index 9c81a538..aa1384bc 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/BillingRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/BillingRequestBuilder.cs @@ -3,37 +3,39 @@ using GitHub.Orgs.Item.Copilot.Billing.Seats; using GitHub.Orgs.Item.Copilot.Billing.Selected_teams; using GitHub.Orgs.Item.Copilot.Billing.Selected_users; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Copilot.Billing { +namespace GitHub.Orgs.Item.Copilot.Billing +{ /// /// Builds and executes requests for operations under \orgs\{org}\copilot\billing /// - public class BillingRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class BillingRequestBuilder : BaseRequestBuilder { /// The seats property - public SeatsRequestBuilder Seats + public global::GitHub.Orgs.Item.Copilot.Billing.Seats.SeatsRequestBuilder Seats { - get => new SeatsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Copilot.Billing.Seats.SeatsRequestBuilder(PathParameters, RequestAdapter); } /// The selected_teams property - public Selected_teamsRequestBuilder Selected_teams + public global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsRequestBuilder Selected_teams { - get => new Selected_teamsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsRequestBuilder(PathParameters, RequestAdapter); } /// The selected_users property - public Selected_usersRequestBuilder Selected_users + public global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersRequestBuilder Selected_users { - get => new Selected_usersRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -41,7 +43,7 @@ public BillingRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,31 +54,31 @@ public BillingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// > [!NOTE]> This endpoint is in beta and is subject to change.Gets information about an organization's Copilot subscription, including seat breakdownand feature policies. To configure these settings, go to your organization's settings on GitHub.com.For more information, see "[Managing policies for Copilot in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-policies-for-copilot-business-in-your-organization)".Only organization owners can view details about the organization's Copilot Business or Copilot Enterprise subscription.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CopilotOrganizationDetails.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CopilotOrganizationDetails.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// > [!NOTE]> This endpoint is in beta and is subject to change.Gets information about an organization's Copilot subscription, including seat breakdownand feature policies. To configure these settings, go to your organization's settings on GitHub.com.For more information, see "[Managing policies for Copilot in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-policies-for-copilot-business-in-your-organization)".Only organization owners can view details about the organization's Copilot Business or Copilot Enterprise subscription.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. @@ -100,11 +102,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public BillingRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Copilot.Billing.BillingRequestBuilder WithUrl(string rawUrl) { - return new BillingRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Copilot.Billing.BillingRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/Seats/SeatsGetResponse.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Seats/SeatsGetResponse.cs index cb174767..fa3402e7 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/Seats/SeatsGetResponse.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/Seats/SeatsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Copilot.Billing.Seats { +namespace GitHub.Orgs.Item.Copilot.Billing.Seats +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SeatsGetResponse : IAdditionalDataHolder, IParsable + public partial class SeatsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class SeatsGetResponse : IAdditionalDataHolder, IParsable /// The seats property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Seats { get; set; } + public List? Seats { get; set; } #nullable restore #else - public List Seats { get; set; } + public List Seats { get; set; } #endif /// Total number of Copilot seats for the organization currently being billed. public int? TotalSeats { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SeatsGetResponse() { @@ -32,12 +34,12 @@ public SeatsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SeatsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Copilot.Billing.Seats.SeatsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SeatsGetResponse(); + return new global::GitHub.Orgs.Item.Copilot.Billing.Seats.SeatsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"seats", n => { Seats = n.GetCollectionOfObjectValues(CopilotSeatDetails.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_seats", n => { TotalSeats = n.GetIntValue(); } }, + { "seats", n => { Seats = n.GetCollectionOfObjectValues(global::GitHub.Models.CopilotSeatDetails.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_seats", n => { TotalSeats = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("seats", Seats); + writer.WriteCollectionOfObjectValues("seats", Seats); writer.WriteIntValue("total_seats", TotalSeats); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs index 1b19dd5b..f3892cbd 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Copilot.Billing.Seats { +namespace GitHub.Orgs.Item.Copilot.Billing.Seats +{ /// /// Builds and executes requests for operations under \orgs\{org}\copilot\billing\seats /// - public class SeatsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SeatsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public SeatsRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,31 +36,31 @@ public SeatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// > [!NOTE]> This endpoint is in beta and is subject to change.Lists all active Copilot seats for an organization with a Copilot Business or Copilot Enterprise subscription.Only organization owners can view assigned seats.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, SeatsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Copilot.Billing.Seats.SeatsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// > [!NOTE]> This endpoint is in beta and is subject to change.Lists all active Copilot seats for an organization with a Copilot Business or Copilot Enterprise subscription.Only organization owners can view assigned seats.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. @@ -67,11 +69,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -82,16 +84,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SeatsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Copilot.Billing.Seats.SeatsRequestBuilder WithUrl(string rawUrl) { - return new SeatsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Copilot.Billing.Seats.SeatsRequestBuilder(rawUrl, RequestAdapter); } /// /// > [!NOTE]> This endpoint is in beta and is subject to change.Lists all active Copilot seats for an organization with a Copilot Business or Copilot Enterprise subscription.Only organization owners can view assigned seats.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. /// - public class SeatsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SeatsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsDeleteRequestBody.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsDeleteRequestBody.cs index 5888bd66..d40a89c2 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsDeleteRequestBody.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsDeleteRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Copilot.Billing.Selected_teams { +namespace GitHub.Orgs.Item.Copilot.Billing.Selected_teams +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Selected_teamsDeleteRequestBody : IAdditionalDataHolder, IParsable + public partial class Selected_teamsDeleteRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class Selected_teamsDeleteRequestBody : IAdditionalDataHolder, IParsable public List SelectedTeams { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Selected_teamsDeleteRequestBody() { @@ -29,12 +31,12 @@ public Selected_teamsDeleteRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Selected_teamsDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Selected_teamsDeleteRequestBody(); + return new global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsDeleteRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"selected_teams", n => { SelectedTeams = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "selected_teams", n => { SelectedTeams = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsDeleteResponse.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsDeleteResponse.cs index 5044f236..bfcce19b 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsDeleteResponse.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsDeleteResponse.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Copilot.Billing.Selected_teams { +namespace GitHub.Orgs.Item.Copilot.Billing.Selected_teams +{ /// /// The total number of seat assignments cancelled. /// - public class Selected_teamsDeleteResponse : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Selected_teamsDeleteResponse : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The seats_cancelled property public int? SeatsCancelled { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Selected_teamsDeleteResponse() { @@ -24,12 +26,12 @@ public Selected_teamsDeleteResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Selected_teamsDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Selected_teamsDeleteResponse(); + return new global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsDeleteResponse(); } /// /// The deserialization information for the current model @@ -39,7 +41,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"seats_cancelled", n => { SeatsCancelled = n.GetIntValue(); } }, + { "seats_cancelled", n => { SeatsCancelled = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsPostRequestBody.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsPostRequestBody.cs index bfcc519c..756c5832 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Copilot.Billing.Selected_teams { +namespace GitHub.Orgs.Item.Copilot.Billing.Selected_teams +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Selected_teamsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Selected_teamsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class Selected_teamsPostRequestBody : IAdditionalDataHolder, IParsable public List SelectedTeams { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Selected_teamsPostRequestBody() { @@ -29,12 +31,12 @@ public Selected_teamsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Selected_teamsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Selected_teamsPostRequestBody(); + return new global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsPostRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"selected_teams", n => { SelectedTeams = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "selected_teams", n => { SelectedTeams = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsPostResponse.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsPostResponse.cs index 3dc55229..f3c62b01 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsPostResponse.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsPostResponse.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Copilot.Billing.Selected_teams { +namespace GitHub.Orgs.Item.Copilot.Billing.Selected_teams +{ /// /// The total number of seat assignments created. /// - public class Selected_teamsPostResponse : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Selected_teamsPostResponse : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The seats_created property public int? SeatsCreated { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Selected_teamsPostResponse() { @@ -24,12 +26,12 @@ public Selected_teamsPostResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Selected_teamsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Selected_teamsPostResponse(); + return new global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsPostResponse(); } /// /// The deserialization information for the current model @@ -39,7 +41,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"seats_created", n => { SeatsCreated = n.GetIntValue(); } }, + { "seats_created", n => { SeatsCreated = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsRequestBuilder.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsRequestBuilder.cs index 205d446f..11b2d1c2 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Copilot.Billing.Selected_teams { +namespace GitHub.Orgs.Item.Copilot.Billing.Selected_teams +{ /// /// Builds and executes requests for operations under \orgs\{org}\copilot\billing\selected_teams /// - public class Selected_teamsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Selected_teamsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Selected_teamsRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,65 +36,65 @@ public Selected_teamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// > [!NOTE]> This endpoint is in beta and is subject to change.Cancels the Copilot seat assignment for all members of each team specified.This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users.For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".Only organization owners can cancel Copilot seats for their organization members.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Selected_teamsDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Selected_teamsDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Selected_teamsDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// > [!NOTE]> This endpoint is in beta and is subject to change.Purchases a GitHub Copilot seat for all users within each specified team.The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Selected_teamsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Selected_teamsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Selected_teamsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// > [!NOTE]> This endpoint is in beta and is subject to change.Cancels the Copilot seat assignment for all members of each team specified.This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users.For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".Only organization owners can cancel Copilot seats for their organization members.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. @@ -102,11 +104,11 @@ public async Task PostAsync(Selected_teamsPostReques /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Selected_teamsDeleteRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsDeleteRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Selected_teamsDeleteRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsDeleteRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -124,11 +126,11 @@ public RequestInformation ToDeleteRequestInformation(Selected_teamsDeleteRequest /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Selected_teamsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Selected_teamsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -141,11 +143,11 @@ public RequestInformation ToPostRequestInformation(Selected_teamsPostRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Selected_teamsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsRequestBuilder WithUrl(string rawUrl) { - return new Selected_teamsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersDeleteRequestBody.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersDeleteRequestBody.cs index 81be33bf..21074e53 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersDeleteRequestBody.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersDeleteRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Copilot.Billing.Selected_users { +namespace GitHub.Orgs.Item.Copilot.Billing.Selected_users +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Selected_usersDeleteRequestBody : IAdditionalDataHolder, IParsable + public partial class Selected_usersDeleteRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class Selected_usersDeleteRequestBody : IAdditionalDataHolder, IParsable public List SelectedUsernames { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Selected_usersDeleteRequestBody() { @@ -29,12 +31,12 @@ public Selected_usersDeleteRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Selected_usersDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Selected_usersDeleteRequestBody(); + return new global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersDeleteRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"selected_usernames", n => { SelectedUsernames = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "selected_usernames", n => { SelectedUsernames = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersDeleteResponse.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersDeleteResponse.cs index cd37ceff..ed4a6b6e 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersDeleteResponse.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersDeleteResponse.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Copilot.Billing.Selected_users { +namespace GitHub.Orgs.Item.Copilot.Billing.Selected_users +{ /// /// The total number of seat assignments cancelled. /// - public class Selected_usersDeleteResponse : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Selected_usersDeleteResponse : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The seats_cancelled property public int? SeatsCancelled { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Selected_usersDeleteResponse() { @@ -24,12 +26,12 @@ public Selected_usersDeleteResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Selected_usersDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Selected_usersDeleteResponse(); + return new global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersDeleteResponse(); } /// /// The deserialization information for the current model @@ -39,7 +41,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"seats_cancelled", n => { SeatsCancelled = n.GetIntValue(); } }, + { "seats_cancelled", n => { SeatsCancelled = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersPostRequestBody.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersPostRequestBody.cs index 637346f1..27a535cd 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Copilot.Billing.Selected_users { +namespace GitHub.Orgs.Item.Copilot.Billing.Selected_users +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Selected_usersPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Selected_usersPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class Selected_usersPostRequestBody : IAdditionalDataHolder, IParsable public List SelectedUsernames { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Selected_usersPostRequestBody() { @@ -29,12 +31,12 @@ public Selected_usersPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Selected_usersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Selected_usersPostRequestBody(); + return new global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersPostRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"selected_usernames", n => { SelectedUsernames = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "selected_usernames", n => { SelectedUsernames = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersPostResponse.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersPostResponse.cs index 71795619..12c2e933 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersPostResponse.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersPostResponse.cs @@ -1,21 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Copilot.Billing.Selected_users { +namespace GitHub.Orgs.Item.Copilot.Billing.Selected_users +{ /// /// The total number of seat assignments created. /// - public class Selected_usersPostResponse : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Selected_usersPostResponse : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The seats_created property public int? SeatsCreated { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Selected_usersPostResponse() { @@ -24,12 +26,12 @@ public Selected_usersPostResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Selected_usersPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Selected_usersPostResponse(); + return new global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersPostResponse(); } /// /// The deserialization information for the current model @@ -39,7 +41,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"seats_created", n => { SeatsCreated = n.GetIntValue(); } }, + { "seats_created", n => { SeatsCreated = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersRequestBuilder.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersRequestBuilder.cs index b52a1501..bd17ac84 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Copilot.Billing.Selected_users { +namespace GitHub.Orgs.Item.Copilot.Billing.Selected_users +{ /// /// Builds and executes requests for operations under \orgs\{org}\copilot\billing\selected_users /// - public class Selected_usersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Selected_usersRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Selected_usersRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,65 +36,65 @@ public Selected_usersRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// > [!NOTE]> This endpoint is in beta and is subject to change.Cancels the Copilot seat assignment for each user specified.This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users.For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".Only organization owners can cancel Copilot seats for their organization members.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Selected_usersDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Selected_usersDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Selected_usersDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// > [!NOTE]> This endpoint is in beta and is subject to change.Purchases a GitHub Copilot seat for each user specified.The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Selected_usersPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Selected_usersPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Selected_usersPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// > [!NOTE]> This endpoint is in beta and is subject to change.Cancels the Copilot seat assignment for each user specified.This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users.For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".Only organization owners can cancel Copilot seats for their organization members.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. @@ -102,11 +104,11 @@ public async Task PostAsync(Selected_usersPostReques /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Selected_usersDeleteRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersDeleteRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Selected_usersDeleteRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersDeleteRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -124,11 +126,11 @@ public RequestInformation ToDeleteRequestInformation(Selected_usersDeleteRequest /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Selected_usersPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Selected_usersPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -141,11 +143,11 @@ public RequestInformation ToPostRequestInformation(Selected_usersPostRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Selected_usersRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersRequestBuilder WithUrl(string rawUrl) { - return new Selected_usersRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Copilot/CopilotRequestBuilder.cs b/src/GitHub/Orgs/Item/Copilot/CopilotRequestBuilder.cs index d051ca46..bdcb98d4 100644 --- a/src/GitHub/Orgs/Item/Copilot/CopilotRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Copilot/CopilotRequestBuilder.cs @@ -1,30 +1,32 @@ // using GitHub.Orgs.Item.Copilot.Billing; using GitHub.Orgs.Item.Copilot.Usage; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Copilot { +namespace GitHub.Orgs.Item.Copilot +{ /// /// Builds and executes requests for operations under \orgs\{org}\copilot /// - public class CopilotRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CopilotRequestBuilder : BaseRequestBuilder { /// The billing property - public BillingRequestBuilder Billing + public global::GitHub.Orgs.Item.Copilot.Billing.BillingRequestBuilder Billing { - get => new BillingRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Copilot.Billing.BillingRequestBuilder(PathParameters, RequestAdapter); } /// The usage property - public UsageRequestBuilder Usage + public global::GitHub.Orgs.Item.Copilot.Usage.UsageRequestBuilder Usage { - get => new UsageRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Copilot.Usage.UsageRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -32,7 +34,7 @@ public CopilotRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Copilot/Usage/UsageRequestBuilder.cs b/src/GitHub/Orgs/Item/Copilot/Usage/UsageRequestBuilder.cs index ef1d273d..365ba02c 100644 --- a/src/GitHub/Orgs/Item/Copilot/Usage/UsageRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Copilot/Usage/UsageRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Copilot.Usage { +namespace GitHub.Orgs.Item.Copilot.Usage +{ /// /// Builds and executes requests for operations under \orgs\{org}\copilot\usage /// - public class UsageRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsageRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public UsageRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,32 +36,32 @@ public UsageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// > [!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 IDEacross an organization, 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 up to 28 days prior. 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.Organization owners, and owners and billing managers of the parent enterprise, can view Copilot usage metrics.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. /// API method documentation /// - /// A List<CopilotUsageMetrics> + /// A List<global::GitHub.Models.CopilotUsageMetrics> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CopilotUsageMetrics.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CopilotUsageMetrics.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// > [!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 IDEacross an organization, 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 up to 28 days prior. 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.Organization owners, and owners and billing managers of the parent enterprise, can view Copilot usage metrics.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. @@ -68,11 +70,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -83,16 +85,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UsageRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Copilot.Usage.UsageRequestBuilder WithUrl(string rawUrl) { - return new UsageRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Copilot.Usage.UsageRequestBuilder(rawUrl, RequestAdapter); } /// /// > [!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 IDEacross an organization, 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 up to 28 days prior. 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.Organization owners, and owners and billing managers of the parent enterprise, can view Copilot usage metrics.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. /// - public class UsageRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsageRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/CredentialAuthorizations/CredentialAuthorizationsRequestBuilder.cs b/src/GitHub/Orgs/Item/CredentialAuthorizations/CredentialAuthorizationsRequestBuilder.cs index 3fee3dd8..b7225632 100644 --- a/src/GitHub/Orgs/Item/CredentialAuthorizations/CredentialAuthorizationsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/CredentialAuthorizations/CredentialAuthorizationsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.CredentialAuthorizations.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.CredentialAuthorizations { +namespace GitHub.Orgs.Item.CredentialAuthorizations +{ /// /// Builds and executes requests for operations under \orgs\{org}\credential-authorizations /// - public class CredentialAuthorizationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CredentialAuthorizationsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.credentialAuthorizations.item collection /// Unique identifier of the item - /// A - public WithCredential_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.CredentialAuthorizations.Item.WithCredential_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("credential_id", position); - return new WithCredential_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.CredentialAuthorizations.Item.WithCredential_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public CredentialAuthorizationsRequestBuilder(Dictionary pathPar { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public CredentialAuthorizationsRequestBuilder(string rawUrl, IRequestAdapter req /// Lists all credential authorizations for an organization that uses SAML single sign-on (SSO). The credentials are either personal access tokens or SSH keys that organization members have authorized for the organization. For more information, see [About authentication with SAML single sign-on](https://docs.github.com/enterprise-cloud@latest//articles/about-authentication-with-saml-single-sign-on).The authenticated user must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. /// API method documentation /// - /// A List<CredentialAuthorization> + /// A List<global::GitHub.Models.CredentialAuthorization> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CredentialAuthorization.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CredentialAuthorization.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists all credential authorizations for an organization that uses SAML single sign-on (SSO). The credentials are either personal access tokens or SSH keys that organization members have authorized for the organization. For more information, see [About authentication with SAML single sign-on](https://docs.github.com/enterprise-cloud@latest//articles/about-authentication-with-saml-single-sign-on).The authenticated user must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. @@ -70,11 +72,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -85,16 +87,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CredentialAuthorizationsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.CredentialAuthorizations.CredentialAuthorizationsRequestBuilder WithUrl(string rawUrl) { - return new CredentialAuthorizationsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.CredentialAuthorizations.CredentialAuthorizationsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all credential authorizations for an organization that uses SAML single sign-on (SSO). The credentials are either personal access tokens or SSH keys that organization members have authorized for the organization. For more information, see [About authentication with SAML single sign-on](https://docs.github.com/enterprise-cloud@latest//articles/about-authentication-with-saml-single-sign-on).The authenticated user must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. /// - public class CredentialAuthorizationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CredentialAuthorizationsRequestBuilderGetQueryParameters { /// Limits the list of credentials authorizations for an organization to a specific login #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Orgs/Item/CredentialAuthorizations/Item/WithCredential_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/CredentialAuthorizations/Item/WithCredential_ItemRequestBuilder.cs index d62270d9..04b7a1c4 100644 --- a/src/GitHub/Orgs/Item/CredentialAuthorizations/Item/WithCredential_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/CredentialAuthorizations/Item/WithCredential_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.CredentialAuthorizations.Item { +namespace GitHub.Orgs.Item.CredentialAuthorizations.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\credential-authorizations\{credential_id} /// - public class WithCredential_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithCredential_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithCredential_ItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public WithCredential_ItemRequestBuilder(string rawUrl, IRequestAdapter requestA /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -49,7 +51,7 @@ public async Task DeleteAsync(Action> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -75,11 +77,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithCredential_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.CredentialAuthorizations.Item.WithCredential_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithCredential_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.CredentialAuthorizations.Item.WithCredential_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/CustomRepositoryRoles/CustomRepositoryRolesGetResponse.cs b/src/GitHub/Orgs/Item/CustomRepositoryRoles/CustomRepositoryRolesGetResponse.cs index 8cb1ab52..7afb1141 100644 --- a/src/GitHub/Orgs/Item/CustomRepositoryRoles/CustomRepositoryRolesGetResponse.cs +++ b/src/GitHub/Orgs/Item/CustomRepositoryRoles/CustomRepositoryRolesGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.CustomRepositoryRoles { +namespace GitHub.Orgs.Item.CustomRepositoryRoles +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CustomRepositoryRolesGetResponse : IAdditionalDataHolder, IParsable + public partial class CustomRepositoryRolesGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class CustomRepositoryRolesGetResponse : IAdditionalDataHolder, IParsable /// The custom_roles property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? CustomRoles { get; set; } + public List? CustomRoles { get; set; } #nullable restore #else - public List CustomRoles { get; set; } + public List CustomRoles { get; set; } #endif /// The number of custom roles in this organization public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CustomRepositoryRolesGetResponse() { @@ -32,12 +34,12 @@ public CustomRepositoryRolesGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CustomRepositoryRolesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.CustomRepositoryRoles.CustomRepositoryRolesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CustomRepositoryRolesGetResponse(); + return new global::GitHub.Orgs.Item.CustomRepositoryRoles.CustomRepositoryRolesGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"custom_roles", n => { CustomRoles = n.GetCollectionOfObjectValues(OrganizationCustomRepositoryRole.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "custom_roles", n => { CustomRoles = n.GetCollectionOfObjectValues(global::GitHub.Models.OrganizationCustomRepositoryRole.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("custom_roles", CustomRoles); + writer.WriteCollectionOfObjectValues("custom_roles", CustomRoles); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/CustomRepositoryRoles/CustomRepositoryRolesRequestBuilder.cs b/src/GitHub/Orgs/Item/CustomRepositoryRoles/CustomRepositoryRolesRequestBuilder.cs index 15eff616..8268aabd 100644 --- a/src/GitHub/Orgs/Item/CustomRepositoryRoles/CustomRepositoryRolesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/CustomRepositoryRoles/CustomRepositoryRolesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.CustomRepositoryRoles.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.CustomRepositoryRoles { +namespace GitHub.Orgs.Item.CustomRepositoryRoles +{ /// /// Builds and executes requests for operations under \orgs\{org}\custom-repository-roles /// - public class CustomRepositoryRolesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CustomRepositoryRolesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.customRepositoryRoles.item collection /// The unique identifier of the role. - /// A - public WithRole_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.CustomRepositoryRoles.Item.WithRole_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("role_id", position); - return new WithRole_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.CustomRepositoryRoles.Item.WithRole_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public CustomRepositoryRolesRequestBuilder(Dictionary pathParame { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,48 +49,48 @@ public CustomRepositoryRolesRequestBuilder(string rawUrl, IRequestAdapter reques /// List the custom repository roles available in this organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be an administrator of the organization or of a repository of the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CustomRepositoryRolesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.CustomRepositoryRoles.CustomRepositoryRolesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Creates a custom repository role that can be used by all repositories owned by the organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-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 /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(OrganizationCustomRepositoryRoleCreateSchema body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Models.OrganizationCustomRepositoryRoleCreateSchema body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(OrganizationCustomRepositoryRoleCreateSchema body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Models.OrganizationCustomRepositoryRoleCreateSchema body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationCustomRepositoryRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrganizationCustomRepositoryRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// List the custom repository roles available in this organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be an administrator of the organization or of a repository of the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. @@ -117,11 +119,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(OrganizationCustomRepositoryRoleCreateSchema body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Models.OrganizationCustomRepositoryRoleCreateSchema body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OrganizationCustomRepositoryRoleCreateSchema body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Models.OrganizationCustomRepositoryRoleCreateSchema body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -134,11 +136,11 @@ public RequestInformation ToPostRequestInformation(OrganizationCustomRepositoryR /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CustomRepositoryRolesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.CustomRepositoryRoles.CustomRepositoryRolesRequestBuilder WithUrl(string rawUrl) { - return new CustomRepositoryRolesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.CustomRepositoryRoles.CustomRepositoryRolesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/CustomRepositoryRoles/Item/WithRole_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/CustomRepositoryRoles/Item/WithRole_ItemRequestBuilder.cs index 5cd7bc42..7926e7b2 100644 --- a/src/GitHub/Orgs/Item/CustomRepositoryRoles/Item/WithRole_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/CustomRepositoryRoles/Item/WithRole_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.CustomRepositoryRoles.Item { +namespace GitHub.Orgs.Item.CustomRepositoryRoles.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\custom-repository-roles\{role_id} /// - public class WithRole_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRole_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithRole_ItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,53 +54,53 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationCustomRepositoryRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrganizationCustomRepositoryRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Updates a custom repository role that can be used by all repositories owned by the organization. For more information about custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-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 /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(OrganizationCustomRepositoryRoleUpdateSchema body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Models.OrganizationCustomRepositoryRoleUpdateSchema body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(OrganizationCustomRepositoryRoleUpdateSchema body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Models.OrganizationCustomRepositoryRoleUpdateSchema body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationCustomRepositoryRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrganizationCustomRepositoryRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Deletes a custom role from an organization. Once the custom role has been deleted, anyuser, team, or invitation with the deleted custom role will be reassigned the inherited role. For more information about custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-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. @@ -145,11 +147,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(OrganizationCustomRepositoryRoleUpdateSchema body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Models.OrganizationCustomRepositoryRoleUpdateSchema body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OrganizationCustomRepositoryRoleUpdateSchema body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Models.OrganizationCustomRepositoryRoleUpdateSchema body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -162,11 +164,11 @@ public RequestInformation ToPatchRequestInformation(OrganizationCustomRepository /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRole_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.CustomRepositoryRoles.Item.WithRole_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithRole_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.CustomRepositoryRoles.Item.WithRole_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Custom_roles/Custom_rolesRequestBuilder.cs b/src/GitHub/Orgs/Item/Custom_roles/Custom_rolesRequestBuilder.cs index e0003c16..69871c74 100644 --- a/src/GitHub/Orgs/Item/Custom_roles/Custom_rolesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Custom_roles/Custom_rolesRequestBuilder.cs @@ -1,35 +1,37 @@ // using GitHub.Models; using GitHub.Orgs.Item.Custom_roles.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Custom_roles { +namespace GitHub.Orgs.Item.Custom_roles +{ /// /// Builds and executes requests for operations under \orgs\{org}\custom_roles /// - public class Custom_rolesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Custom_rolesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.custom_roles.item collection /// The unique identifier of the role. - /// A + /// A [Obsolete("")] - public WithRole_ItemRequestBuilder this[int position] + public global::GitHub.Orgs.Item.Custom_roles.Item.WithRole_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("role_id", position); - return new WithRole_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Custom_roles.Item.WithRole_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -37,7 +39,7 @@ public Custom_rolesRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -48,30 +50,30 @@ public Custom_rolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after September 6, 2023. Use the "[Create a custom repository role](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#create-a-custom-repository-role)" endpoint instead.Creates a custom repository role that can be used by all repositories owned by the organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-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 /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(OrganizationCustomRepositoryRoleCreateSchema body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Models.OrganizationCustomRepositoryRoleCreateSchema body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(OrganizationCustomRepositoryRoleCreateSchema body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Models.OrganizationCustomRepositoryRoleCreateSchema body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationCustomRepositoryRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrganizationCustomRepositoryRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after September 6, 2023. Use the "[Create a custom repository role](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#create-a-custom-repository-role)" endpoint instead.Creates a custom repository role that can be used by all repositories owned by the organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-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. @@ -82,11 +84,11 @@ public async Task PostAsync(OrganizationCustom [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(OrganizationCustomRepositoryRoleCreateSchema body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Models.OrganizationCustomRepositoryRoleCreateSchema body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OrganizationCustomRepositoryRoleCreateSchema body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Models.OrganizationCustomRepositoryRoleCreateSchema body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,12 +101,12 @@ public RequestInformation ToPostRequestInformation(OrganizationCustomRepositoryR /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public Custom_rolesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Custom_roles.Custom_rolesRequestBuilder WithUrl(string rawUrl) { - return new Custom_rolesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Custom_roles.Custom_rolesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Custom_roles/Item/WithRole_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Custom_roles/Item/WithRole_ItemRequestBuilder.cs index e327df64..f5b6599e 100644 --- a/src/GitHub/Orgs/Item/Custom_roles/Item/WithRole_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Custom_roles/Item/WithRole_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Custom_roles.Item { +namespace GitHub.Orgs.Item.Custom_roles.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\custom_roles\{role_id} /// - public class WithRole_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRole_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithRole_ItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -53,55 +55,55 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationCustomRepositoryRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrganizationCustomRepositoryRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after September 6, 2023. Use the "[Update a custom repository role](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#update-a-custom-repository-role)" endpoint instead.Updates a custom repository role that can be used by all repositories owned by the organization. For more information about custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-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 /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(OrganizationCustomRepositoryRoleUpdateSchema body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Models.OrganizationCustomRepositoryRoleUpdateSchema body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(OrganizationCustomRepositoryRoleUpdateSchema body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Models.OrganizationCustomRepositoryRoleUpdateSchema body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationCustomRepositoryRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrganizationCustomRepositoryRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after September 6, 2023. Use the "[Delete a custom repository role](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#delete-a-custom-repository-role)" endpoint instead.Deletes a custom role from an organization. Once the custom role has been deleted, anyuser, team, or invitation with the deleted custom role will be reassigned the inherited role. For more information about custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-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. @@ -151,11 +153,11 @@ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Models.OrganizationCustomRepositoryRoleUpdateSchema body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OrganizationCustomRepositoryRoleUpdateSchema body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Models.OrganizationCustomRepositoryRoleUpdateSchema body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -168,12 +170,12 @@ public RequestInformation ToPatchRequestInformation(OrganizationCustomRepository /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public WithRole_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Custom_roles.Item.WithRole_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithRole_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Custom_roles.Item.WithRole_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Dependabot/Alerts/AlertsRequestBuilder.cs b/src/GitHub/Orgs/Item/Dependabot/Alerts/AlertsRequestBuilder.cs index 191dc5d8..c4c64748 100644 --- a/src/GitHub/Orgs/Item/Dependabot/Alerts/AlertsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Dependabot/Alerts/AlertsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Dependabot.Alerts { +namespace GitHub.Orgs.Item.Dependabot.Alerts +{ /// /// Builds and executes requests for operations under \orgs\{org}\dependabot\alerts /// - public class AlertsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AlertsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AlertsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,32 +36,32 @@ public AlertsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Lists Dependabot alerts for an organization.The authenticated user must be an owner or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. /// API method documentation /// - /// A List<DependabotAlertWithRepository> + /// A List<global::GitHub.Models.DependabotAlertWithRepository> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, DependabotAlertWithRepository.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.DependabotAlertWithRepository.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists Dependabot alerts for an organization.The authenticated user must be an owner or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. @@ -68,11 +70,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -83,16 +85,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AlertsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Dependabot.Alerts.AlertsRequestBuilder WithUrl(string rawUrl) { - return new AlertsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Dependabot.Alerts.AlertsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists Dependabot alerts for an organization.The authenticated user must be an owner or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. /// - public class AlertsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AlertsRequestBuilderGetQueryParameters { /// A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -116,7 +119,7 @@ public class AlertsRequestBuilderGetQueryParameters #endif /// The direction to sort the results by. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Orgs.Item.Dependabot.Alerts.GetDirectionQueryParameterType? Direction { get; set; } /// A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned.Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -148,7 +151,7 @@ public class AlertsRequestBuilderGetQueryParameters public int? PerPage { get; set; } /// The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. [QueryParameter("scope")] - public GetScopeQueryParameterType? Scope { get; set; } + public global::GitHub.Orgs.Item.Dependabot.Alerts.GetScopeQueryParameterType? Scope { get; set; } /// A comma-separated list of severities. If specified, only alerts with these severities will be returned.Can be: `low`, `medium`, `high`, `critical` #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -161,7 +164,7 @@ public class AlertsRequestBuilderGetQueryParameters #endif /// The property by which to sort the results.`created` means when the alert was created.`updated` means when the alert's state last changed. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Orgs.Item.Dependabot.Alerts.GetSortQueryParameterType? Sort { get; set; } /// A comma-separated list of states. If specified, only alerts with these states will be returned.Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/GitHub/Orgs/Item/Dependabot/Alerts/GetDirectionQueryParameterType.cs b/src/GitHub/Orgs/Item/Dependabot/Alerts/GetDirectionQueryParameterType.cs index 90d57a27..e44e7286 100644 --- a/src/GitHub/Orgs/Item/Dependabot/Alerts/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Dependabot/Alerts/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Dependabot.Alerts { +namespace GitHub.Orgs.Item.Dependabot.Alerts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Dependabot/Alerts/GetScopeQueryParameterType.cs b/src/GitHub/Orgs/Item/Dependabot/Alerts/GetScopeQueryParameterType.cs index 6a3f7adb..f2890a5b 100644 --- a/src/GitHub/Orgs/Item/Dependabot/Alerts/GetScopeQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Dependabot/Alerts/GetScopeQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Dependabot.Alerts { +namespace GitHub.Orgs.Item.Dependabot.Alerts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetScopeQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Dependabot/Alerts/GetSortQueryParameterType.cs b/src/GitHub/Orgs/Item/Dependabot/Alerts/GetSortQueryParameterType.cs index c4933c05..1f20c8ac 100644 --- a/src/GitHub/Orgs/Item/Dependabot/Alerts/GetSortQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Dependabot/Alerts/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Dependabot.Alerts { +namespace GitHub.Orgs.Item.Dependabot.Alerts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Dependabot/DependabotRequestBuilder.cs b/src/GitHub/Orgs/Item/Dependabot/DependabotRequestBuilder.cs index e5905059..a61c3806 100644 --- a/src/GitHub/Orgs/Item/Dependabot/DependabotRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Dependabot/DependabotRequestBuilder.cs @@ -1,30 +1,32 @@ // using GitHub.Orgs.Item.Dependabot.Alerts; using GitHub.Orgs.Item.Dependabot.Secrets; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Dependabot { +namespace GitHub.Orgs.Item.Dependabot +{ /// /// Builds and executes requests for operations under \orgs\{org}\dependabot /// - public class DependabotRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DependabotRequestBuilder : BaseRequestBuilder { /// The alerts property - public AlertsRequestBuilder Alerts + public global::GitHub.Orgs.Item.Dependabot.Alerts.AlertsRequestBuilder Alerts { - get => new AlertsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Dependabot.Alerts.AlertsRequestBuilder(PathParameters, RequestAdapter); } /// The secrets property - public SecretsRequestBuilder Secrets + public global::GitHub.Orgs.Item.Dependabot.Secrets.SecretsRequestBuilder Secrets { - get => new SecretsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Dependabot.Secrets.SecretsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -32,7 +34,7 @@ public DependabotRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/Repositories/Item/WithRepository_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/Repositories/Item/WithRepository_ItemRequestBuilder.cs index d5961197..ff545c04 100644 --- a/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/Repositories/Item/WithRepository_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/Repositories/Item/WithRepository_ItemRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories.Item { +namespace GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\dependabot\secrets\{secret_name}\repositories\{repository_id} /// - public class WithRepository_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRepository_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public WithRepository_ItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -104,11 +106,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRepository_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories.Item.WithRepository_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithRepository_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories.Item.WithRepository_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/Repositories/RepositoriesGetResponse.cs b/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/Repositories/RepositoriesGetResponse.cs index 01349696..c8062c0d 100644 --- a/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/Repositories/RepositoriesGetResponse.cs +++ b/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/Repositories/RepositoriesGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories { +namespace GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoriesGetResponse : IAdditionalDataHolder, IParsable + public partial class RepositoriesGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class RepositoriesGetResponse : IAdditionalDataHolder, IParsable /// The repositories property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Repositories { get; set; } + public List? Repositories { get; set; } #nullable restore #else - public List Repositories { get; set; } + public List Repositories { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoriesGetResponse() { @@ -32,12 +34,12 @@ public RepositoriesGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoriesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories.RepositoriesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoriesGetResponse(); + return new global::GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories.RepositoriesGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"repositories", n => { Repositories = n.GetCollectionOfObjectValues(MinimalRepository.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "repositories", n => { Repositories = n.GetCollectionOfObjectValues(global::GitHub.Models.MinimalRepository.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("repositories", Repositories); + writer.WriteCollectionOfObjectValues("repositories", Repositories); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/Repositories/RepositoriesPutRequestBody.cs b/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/Repositories/RepositoriesPutRequestBody.cs index f34cdbc1..9311d233 100644 --- a/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/Repositories/RepositoriesPutRequestBody.cs +++ b/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/Repositories/RepositoriesPutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories { +namespace GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RepositoriesPutRequestBody : IAdditionalDataHolder, IParsable + public partial class RepositoriesPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class RepositoriesPutRequestBody : IAdditionalDataHolder, IParsable public List SelectedRepositoryIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RepositoriesPutRequestBody() { @@ -29,12 +31,12 @@ public RepositoriesPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RepositoriesPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories.RepositoriesPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepositoriesPutRequestBody(); + return new global::GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories.RepositoriesPutRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/Repositories/RepositoriesRequestBuilder.cs b/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/Repositories/RepositoriesRequestBuilder.cs index e44e8a18..9c9cbd68 100644 --- a/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/Repositories/RepositoriesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/Repositories/RepositoriesRequestBuilder.cs @@ -1,33 +1,35 @@ // using GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories { +namespace GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories +{ /// /// Builds and executes requests for operations under \orgs\{org}\dependabot\secrets\{secret_name}\repositories /// - public class RepositoriesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.dependabot.secrets.item.repositories.item collection /// Unique identifier of the item - /// A - public WithRepository_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories.Item.WithRepository_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("repository_id", position); - return new WithRepository_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories.Item.WithRepository_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public RepositoriesRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,20 +48,20 @@ public RepositoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Lists all repositories that have been selected when the `visibility`for repository access to a secret is set to `selected`.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RepositoriesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories.RepositoriesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Replaces all repositories for an organization secret when the `visibility`for repository access is set to `selected`. The visibility is set when you [Createor update an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#create-or-update-an-organization-secret).OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. @@ -70,11 +72,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(RepositoriesPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories.RepositoriesPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(RepositoriesPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories.RepositoriesPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -88,11 +90,11 @@ public async Task PutAsync(RepositoriesPutRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -108,11 +110,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(RepositoriesPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories.RepositoriesPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(RepositoriesPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories.RepositoriesPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -124,16 +126,17 @@ public RequestInformation ToPutRequestInformation(RepositoriesPutRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RepositoriesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories.RepositoriesRequestBuilder WithUrl(string rawUrl) { - return new RepositoriesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories.RepositoriesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all repositories that have been selected when the `visibility`for repository access to a secret is set to `selected`.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// - public class RepositoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/WithSecret_nameItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/WithSecret_nameItemRequestBuilder.cs index 97e2f14f..187933fd 100644 --- a/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/WithSecret_nameItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/WithSecret_nameItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Dependabot.Secrets.Item { +namespace GitHub.Orgs.Item.Dependabot.Secrets.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\dependabot\secrets\{secret_name} /// - public class WithSecret_nameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithSecret_nameItemRequestBuilder : BaseRequestBuilder { /// The repositories property - public RepositoriesRequestBuilder Repositories + public global::GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories.RepositoriesRequestBuilder Repositories { - get => new RepositoriesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Dependabot.Secrets.Item.Repositories.RepositoriesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithSecret_nameItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -58,41 +60,41 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, OrganizationDependabotSecret.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrganizationDependabotSecret.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Creates or updates an organization 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/enterprise-cloud@latest//rest/guides/encrypting-secrets-for-the-rest-api)."OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(WithSecret_namePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Dependabot.Secrets.Item.WithSecret_namePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(WithSecret_namePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Dependabot.Secrets.Item.WithSecret_namePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Deletes a secret in an organization using the secret name.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. @@ -139,11 +141,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(WithSecret_namePutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Dependabot.Secrets.Item.WithSecret_namePutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(WithSecret_namePutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Dependabot.Secrets.Item.WithSecret_namePutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -156,11 +158,11 @@ public RequestInformation ToPutRequestInformation(WithSecret_namePutRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithSecret_nameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Dependabot.Secrets.Item.WithSecret_nameItemRequestBuilder WithUrl(string rawUrl) { - return new WithSecret_nameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Dependabot.Secrets.Item.WithSecret_nameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/WithSecret_namePutRequestBody.cs b/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/WithSecret_namePutRequestBody.cs index aa52cf0d..a1ed556c 100644 --- a/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/WithSecret_namePutRequestBody.cs +++ b/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/WithSecret_namePutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Dependabot.Secrets.Item { +namespace GitHub.Orgs.Item.Dependabot.Secrets.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithSecret_namePutRequestBody : IAdditionalDataHolder, IParsable + public partial class WithSecret_namePutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,9 +38,9 @@ public class WithSecret_namePutRequestBody : IAdditionalDataHolder, IParsable public List SelectedRepositoryIds { get; set; } #endif /// Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. - public WithSecret_namePutRequestBody_visibility? Visibility { get; set; } + public global::GitHub.Orgs.Item.Dependabot.Secrets.Item.WithSecret_namePutRequestBody_visibility? Visibility { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithSecret_namePutRequestBody() { @@ -47,12 +49,12 @@ public WithSecret_namePutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithSecret_namePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Dependabot.Secrets.Item.WithSecret_namePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithSecret_namePutRequestBody(); + return new global::GitHub.Orgs.Item.Dependabot.Secrets.Item.WithSecret_namePutRequestBody(); } /// /// The deserialization information for the current model @@ -62,10 +64,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"encrypted_value", n => { EncryptedValue = n.GetStringValue(); } }, - {"key_id", n => { KeyId = n.GetStringValue(); } }, - {"selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, + { "encrypted_value", n => { EncryptedValue = n.GetStringValue(); } }, + { "key_id", n => { KeyId = n.GetStringValue(); } }, + { "selected_repository_ids", n => { SelectedRepositoryIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "visibility", n => { Visibility = n.GetEnumValue(); } }, }; } /// @@ -78,7 +80,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("encrypted_value", EncryptedValue); writer.WriteStringValue("key_id", KeyId); writer.WriteCollectionOfPrimitiveValues("selected_repository_ids", SelectedRepositoryIds); - writer.WriteEnumValue("visibility", Visibility); + writer.WriteEnumValue("visibility", Visibility); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/WithSecret_namePutRequestBody_visibility.cs b/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/WithSecret_namePutRequestBody_visibility.cs index 27d2bad9..0356396b 100644 --- a/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/WithSecret_namePutRequestBody_visibility.cs +++ b/src/GitHub/Orgs/Item/Dependabot/Secrets/Item/WithSecret_namePutRequestBody_visibility.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Dependabot.Secrets.Item { +namespace GitHub.Orgs.Item.Dependabot.Secrets.Item +{ /// Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithSecret_namePutRequestBody_visibility { [EnumMember(Value = "all")] diff --git a/src/GitHub/Orgs/Item/Dependabot/Secrets/PublicKey/PublicKeyRequestBuilder.cs b/src/GitHub/Orgs/Item/Dependabot/Secrets/PublicKey/PublicKeyRequestBuilder.cs index c42a6246..f6a84923 100644 --- a/src/GitHub/Orgs/Item/Dependabot/Secrets/PublicKey/PublicKeyRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Dependabot/Secrets/PublicKey/PublicKeyRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Dependabot.Secrets.PublicKey { +namespace GitHub.Orgs.Item.Dependabot.Secrets.PublicKey +{ /// /// Builds and executes requests for operations under \orgs\{org}\dependabot\secrets\public-key /// - public class PublicKeyRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PublicKeyRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public PublicKeyRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public PublicKeyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Gets your public key, which you need to encrypt secrets. You need toencrypt a secret before you can create or update secrets.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, DependabotPublicKey.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.DependabotPublicKey.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets your public key, which you need to encrypt secrets. You need toencrypt a secret before you can create or update secrets.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PublicKeyRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Dependabot.Secrets.PublicKey.PublicKeyRequestBuilder WithUrl(string rawUrl) { - return new PublicKeyRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Dependabot.Secrets.PublicKey.PublicKeyRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Dependabot/Secrets/SecretsGetResponse.cs b/src/GitHub/Orgs/Item/Dependabot/Secrets/SecretsGetResponse.cs index 01103d4c..cea87561 100644 --- a/src/GitHub/Orgs/Item/Dependabot/Secrets/SecretsGetResponse.cs +++ b/src/GitHub/Orgs/Item/Dependabot/Secrets/SecretsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Dependabot.Secrets { +namespace GitHub.Orgs.Item.Dependabot.Secrets +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SecretsGetResponse : IAdditionalDataHolder, IParsable + public partial class SecretsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class SecretsGetResponse : IAdditionalDataHolder, IParsable /// The secrets property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Secrets { get; set; } + public List? Secrets { get; set; } #nullable restore #else - public List Secrets { get; set; } + public List Secrets { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretsGetResponse() { @@ -32,12 +34,12 @@ public SecretsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Dependabot.Secrets.SecretsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretsGetResponse(); + return new global::GitHub.Orgs.Item.Dependabot.Secrets.SecretsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"secrets", n => { Secrets = n.GetCollectionOfObjectValues(OrganizationDependabotSecret.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "secrets", n => { Secrets = n.GetCollectionOfObjectValues(global::GitHub.Models.OrganizationDependabotSecret.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("secrets", Secrets); + writer.WriteCollectionOfObjectValues("secrets", Secrets); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Dependabot/Secrets/SecretsRequestBuilder.cs b/src/GitHub/Orgs/Item/Dependabot/Secrets/SecretsRequestBuilder.cs index 3bcfd398..d7b48792 100644 --- a/src/GitHub/Orgs/Item/Dependabot/Secrets/SecretsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Dependabot/Secrets/SecretsRequestBuilder.cs @@ -1,39 +1,41 @@ // using GitHub.Orgs.Item.Dependabot.Secrets.Item; using GitHub.Orgs.Item.Dependabot.Secrets.PublicKey; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Dependabot.Secrets { +namespace GitHub.Orgs.Item.Dependabot.Secrets +{ /// /// Builds and executes requests for operations under \orgs\{org}\dependabot\secrets /// - public class SecretsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretsRequestBuilder : BaseRequestBuilder { /// The publicKey property - public PublicKeyRequestBuilder PublicKey + public global::GitHub.Orgs.Item.Dependabot.Secrets.PublicKey.PublicKeyRequestBuilder PublicKey { - get => new PublicKeyRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Dependabot.Secrets.PublicKey.PublicKeyRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.orgs.item.dependabot.secrets.item collection /// The name of the secret. - /// A - public WithSecret_nameItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Dependabot.Secrets.Item.WithSecret_nameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("secret_name", position); - return new WithSecret_nameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Dependabot.Secrets.Item.WithSecret_nameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -41,7 +43,7 @@ public SecretsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,20 +54,20 @@ public SecretsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Lists all secrets available in an organization without revealing theirencrypted values.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, SecretsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Dependabot.Secrets.SecretsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists all secrets available in an organization without revealing theirencrypted values.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. @@ -74,11 +76,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -89,16 +91,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SecretsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Dependabot.Secrets.SecretsRequestBuilder WithUrl(string rawUrl) { - return new SecretsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Dependabot.Secrets.SecretsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all secrets available in an organization without revealing theirencrypted values.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// - public class SecretsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Docker/Conflicts/ConflictsRequestBuilder.cs b/src/GitHub/Orgs/Item/Docker/Conflicts/ConflictsRequestBuilder.cs index 0ea7b763..bc465e3e 100644 --- a/src/GitHub/Orgs/Item/Docker/Conflicts/ConflictsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Docker/Conflicts/ConflictsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Docker.Conflicts { +namespace GitHub.Orgs.Item.Docker.Conflicts +{ /// /// Builds and executes requests for operations under \orgs\{org}\docker\conflicts /// - public class ConflictsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ConflictsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ConflictsRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,28 +36,28 @@ public ConflictsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Lists all packages that are in a specific organization, are readable by the requesting user, and that encountered a conflict during a Docker migration.OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. /// API method documentation /// - /// A List<Package> + /// A List<global::GitHub.Models.Package> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code + /// When receiving a 401 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Package.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Package.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists all packages that are in a specific organization, are readable by the requesting user, and that encountered a conflict during a Docker migration.OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. @@ -79,11 +81,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ConflictsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Docker.Conflicts.ConflictsRequestBuilder WithUrl(string rawUrl) { - return new ConflictsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Docker.Conflicts.ConflictsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Docker/DockerRequestBuilder.cs b/src/GitHub/Orgs/Item/Docker/DockerRequestBuilder.cs index 2b0b3dbc..d7dbb119 100644 --- a/src/GitHub/Orgs/Item/Docker/DockerRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Docker/DockerRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Orgs.Item.Docker.Conflicts; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Docker { +namespace GitHub.Orgs.Item.Docker +{ /// /// Builds and executes requests for operations under \orgs\{org}\docker /// - public class DockerRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DockerRequestBuilder : BaseRequestBuilder { /// The conflicts property - public ConflictsRequestBuilder Conflicts + public global::GitHub.Orgs.Item.Docker.Conflicts.ConflictsRequestBuilder Conflicts { - get => new ConflictsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Docker.Conflicts.ConflictsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public DockerRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Events/EventsRequestBuilder.cs b/src/GitHub/Orgs/Item/Events/EventsRequestBuilder.cs index ebd9b4fd..1ed1a6c0 100644 --- a/src/GitHub/Orgs/Item/Events/EventsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Events/EventsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Events { +namespace GitHub.Orgs.Item.Events +{ /// /// Builds and executes requests for operations under \orgs\{org}\events /// - public class EventsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EventsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public EventsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. /// API method documentation /// - /// A List<Event> + /// A List<global::GitHub.Models.Event> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Event.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Event.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. @@ -57,11 +59,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -72,16 +74,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public EventsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Events.EventsRequestBuilder WithUrl(string rawUrl) { - return new EventsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Events.EventsRequestBuilder(rawUrl, RequestAdapter); } /// /// > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. /// - public class EventsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EventsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/ExternalGroup/ExternalGroupRequestBuilder.cs b/src/GitHub/Orgs/Item/ExternalGroup/ExternalGroupRequestBuilder.cs index 9374c3cd..2235204a 100644 --- a/src/GitHub/Orgs/Item/ExternalGroup/ExternalGroupRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/ExternalGroup/ExternalGroupRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Orgs.Item.ExternalGroup.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.ExternalGroup { +namespace GitHub.Orgs.Item.ExternalGroup +{ /// /// Builds and executes requests for operations under \orgs\{org}\external-group /// - public class ExternalGroupRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ExternalGroupRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.externalGroup.item collection /// The unique identifier of the group. - /// A - public WithGroup_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.ExternalGroup.Item.WithGroup_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("group_id", position); - return new WithGroup_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.ExternalGroup.Item.WithGroup_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public ExternalGroupRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/ExternalGroup/Item/WithGroup_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/ExternalGroup/Item/WithGroup_ItemRequestBuilder.cs index bc5cb620..fbdcc1fc 100644 --- a/src/GitHub/Orgs/Item/ExternalGroup/Item/WithGroup_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/ExternalGroup/Item/WithGroup_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.ExternalGroup.Item { +namespace GitHub.Orgs.Item.ExternalGroup.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\external-group\{group_id} /// - public class WithGroup_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithGroup_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithGroup_ItemRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public WithGroup_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Displays information about the specific group's usage. Provides a list of the group's external members as well as a list of teams that this group is connected to.You can manage team membership with your identity provider using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see "[GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products)" in the GitHub Help documentation. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.ExternalGroup.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ExternalGroup.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Displays information about the specific group's usage. Provides a list of the group's external members as well as a list of teams that this group is connected to.You can manage team membership with your identity provider using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see "[GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products)" in the GitHub Help documentation. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithGroup_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.ExternalGroup.Item.WithGroup_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithGroup_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.ExternalGroup.Item.WithGroup_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/ExternalGroups/ExternalGroupsRequestBuilder.cs b/src/GitHub/Orgs/Item/ExternalGroups/ExternalGroupsRequestBuilder.cs index 2679c0ff..99c92294 100644 --- a/src/GitHub/Orgs/Item/ExternalGroups/ExternalGroupsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/ExternalGroups/ExternalGroupsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.ExternalGroups { +namespace GitHub.Orgs.Item.ExternalGroups +{ /// /// Builds and executes requests for operations under \orgs\{org}\external-groups /// - public class ExternalGroupsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ExternalGroupsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ExternalGroupsRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public ExternalGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Lists external groups available in an organization. You can query the groups using the `display_name` parameter, only groups with a `group_name` containing the text provided in the `display_name` parameter will be returned. You can also limit your page results using the `per_page` parameter. GitHub Enterprise Cloud generates a url-encoded `page` token using a cursor value for where the next page begins. For more information on cursor pagination, see "[Offset and Cursor Pagination explained](https://dev.to/jackmarchant/offset-and-cursor-pagination-explained-b89)."You can manage team membership with your identity provider using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see "[GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products)" in the GitHub Help documentation. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.ExternalGroups.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ExternalGroups.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists external groups available in an organization. You can query the groups using the `display_name` parameter, only groups with a `group_name` containing the text provided in the `display_name` parameter will be returned. You can also limit your page results using the `per_page` parameter. GitHub Enterprise Cloud generates a url-encoded `page` token using a cursor value for where the next page begins. For more information on cursor pagination, see "[Offset and Cursor Pagination explained](https://dev.to/jackmarchant/offset-and-cursor-pagination-explained-b89)."You can manage team membership with your identity provider using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see "[GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products)" in the GitHub Help documentation. @@ -56,11 +58,11 @@ public ExternalGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -71,16 +73,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ExternalGroupsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.ExternalGroups.ExternalGroupsRequestBuilder WithUrl(string rawUrl) { - return new ExternalGroupsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.ExternalGroups.ExternalGroupsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists external groups available in an organization. You can query the groups using the `display_name` parameter, only groups with a `group_name` containing the text provided in the `display_name` parameter will be returned. You can also limit your page results using the `per_page` parameter. GitHub Enterprise Cloud generates a url-encoded `page` token using a cursor value for where the next page begins. For more information on cursor pagination, see "[Offset and Cursor Pagination explained](https://dev.to/jackmarchant/offset-and-cursor-pagination-explained-b89)."You can manage team membership with your identity provider using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see "[GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products)" in the GitHub Help documentation. /// - public class ExternalGroupsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ExternalGroupsRequestBuilderGetQueryParameters { /// Limits the list to groups containing the text in the group name #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Orgs/Item/Failed_invitations/Failed_invitationsRequestBuilder.cs b/src/GitHub/Orgs/Item/Failed_invitations/Failed_invitationsRequestBuilder.cs index eacd817e..69a67d67 100644 --- a/src/GitHub/Orgs/Item/Failed_invitations/Failed_invitationsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Failed_invitations/Failed_invitationsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Failed_invitations { +namespace GitHub.Orgs.Item.Failed_invitations +{ /// /// Builds and executes requests for operations under \orgs\{org}\failed_invitations /// - public class Failed_invitationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Failed_invitationsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Failed_invitationsRequestBuilder(Dictionary pathParameter { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,26 +36,26 @@ public Failed_invitationsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// The return hash contains `failed_at` and `failed_reason` fields which represent the time at which the invitation failed and the reason for the failure.This endpoint is not available for [Enterprise Managed User (EMU) organizations](https://docs.github.com/enterprise-cloud@latest//admin/identity-and-access-management/using-enterprise-managed-users-for-iam/about-enterprise-managed-users). /// API method documentation /// - /// A List<OrganizationInvitation> + /// A List<global::GitHub.Models.OrganizationInvitation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, OrganizationInvitation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.OrganizationInvitation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// The return hash contains `failed_at` and `failed_reason` fields which represent the time at which the invitation failed and the reason for the failure.This endpoint is not available for [Enterprise Managed User (EMU) organizations](https://docs.github.com/enterprise-cloud@latest//admin/identity-and-access-management/using-enterprise-managed-users-for-iam/about-enterprise-managed-users). @@ -62,11 +64,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -77,16 +79,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Failed_invitationsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Failed_invitations.Failed_invitationsRequestBuilder WithUrl(string rawUrl) { - return new Failed_invitationsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Failed_invitations.Failed_invitationsRequestBuilder(rawUrl, RequestAdapter); } /// /// The return hash contains `failed_at` and `failed_reason` fields which represent the time at which the invitation failed and the reason for the failure.This endpoint is not available for [Enterprise Managed User (EMU) organizations](https://docs.github.com/enterprise-cloud@latest//admin/identity-and-access-management/using-enterprise-managed-users-for-iam/about-enterprise-managed-users). /// - public class Failed_invitationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Failed_invitationsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Fine_grained_permissions/Fine_grained_permissionsRequestBuilder.cs b/src/GitHub/Orgs/Item/Fine_grained_permissions/Fine_grained_permissionsRequestBuilder.cs index d4bd1abe..e09a4fa0 100644 --- a/src/GitHub/Orgs/Item/Fine_grained_permissions/Fine_grained_permissionsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Fine_grained_permissions/Fine_grained_permissionsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Fine_grained_permissions { +namespace GitHub.Orgs.Item.Fine_grained_permissions +{ /// /// Builds and executes requests for operations under \orgs\{org}\fine_grained_permissions /// - public class Fine_grained_permissionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Fine_grained_permissionsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Fine_grained_permissionsRequestBuilder(Dictionary pathPar { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,22 +36,22 @@ public Fine_grained_permissionsRequestBuilder(string rawUrl, IRequestAdapter req /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after September 6, 2023. Use the "[List fine-grained repository permissions](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#list-repository-fine-grained-permissions-for-an-organization)" endpoint instead.Lists the fine-grained permissions that can be used in custom repository roles for an organization. For more information, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."To use this endpoint the authenticated user must be an administrator of the organization or of a repository of the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. /// API method documentation /// - /// A List<RepositoryFineGrainedPermission> + /// A List<global::GitHub.Models.RepositoryFineGrainedPermission> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RepositoryFineGrainedPermission.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.RepositoryFineGrainedPermission.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after September 6, 2023. Use the "[List fine-grained repository permissions](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#list-repository-fine-grained-permissions-for-an-organization)" endpoint instead.Lists the fine-grained permissions that can be used in custom repository roles for an organization. For more information, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."To use this endpoint the authenticated user must be an administrator of the organization or of a repository of the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. @@ -74,12 +76,12 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public Fine_grained_permissionsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Fine_grained_permissions.Fine_grained_permissionsRequestBuilder WithUrl(string rawUrl) { - return new Fine_grained_permissionsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Fine_grained_permissions.Fine_grained_permissionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Hooks/HooksPostRequestBody.cs b/src/GitHub/Orgs/Item/Hooks/HooksPostRequestBody.cs index e9314ed0..124367d8 100644 --- a/src/GitHub/Orgs/Item/Hooks/HooksPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/Hooks/HooksPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Hooks { +namespace GitHub.Orgs.Item.Hooks +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class HooksPostRequestBody : IAdditionalDataHolder, IParsable + public partial class HooksPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. @@ -16,10 +18,10 @@ public class HooksPostRequestBody : IAdditionalDataHolder, IParsable /// Key/value pairs to provide settings for this webhook. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public HooksPostRequestBody_config? Config { get; set; } + public global::GitHub.Orgs.Item.Hooks.HooksPostRequestBody_config? Config { get; set; } #nullable restore #else - public HooksPostRequestBody_config Config { get; set; } + public global::GitHub.Orgs.Item.Hooks.HooksPostRequestBody_config Config { get; set; } #endif /// Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for. Set to `["*"]` to receive all possible events. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -38,7 +40,7 @@ public class HooksPostRequestBody : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public HooksPostRequestBody() { @@ -47,12 +49,12 @@ public HooksPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static HooksPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Hooks.HooksPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new HooksPostRequestBody(); + return new global::GitHub.Orgs.Item.Hooks.HooksPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,10 +64,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"active", n => { Active = n.GetBoolValue(); } }, - {"config", n => { Config = n.GetObjectValue(HooksPostRequestBody_config.CreateFromDiscriminatorValue); } }, - {"events", n => { Events = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "active", n => { Active = n.GetBoolValue(); } }, + { "config", n => { Config = n.GetObjectValue(global::GitHub.Orgs.Item.Hooks.HooksPostRequestBody_config.CreateFromDiscriminatorValue); } }, + { "events", n => { Events = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// @@ -76,7 +78,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("active", Active); - writer.WriteObjectValue("config", Config); + writer.WriteObjectValue("config", Config); writer.WriteCollectionOfPrimitiveValues("events", Events); writer.WriteStringValue("name", Name); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Orgs/Item/Hooks/HooksPostRequestBody_config.cs b/src/GitHub/Orgs/Item/Hooks/HooksPostRequestBody_config.cs index ede683f7..7bbecd1d 100644 --- a/src/GitHub/Orgs/Item/Hooks/HooksPostRequestBody_config.cs +++ b/src/GitHub/Orgs/Item/Hooks/HooksPostRequestBody_config.cs @@ -1,15 +1,17 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Hooks { +namespace GitHub.Orgs.Item.Hooks +{ /// /// Key/value pairs to provide settings for this webhook. /// - public class HooksPostRequestBody_config : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class HooksPostRequestBody_config : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -24,10 +26,10 @@ public class HooksPostRequestBody_config : IAdditionalDataHolder, IParsable /// The insecure_ssl property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WebhookConfigInsecureSsl? InsecureSsl { get; set; } + public global::GitHub.Models.WebhookConfigInsecureSsl? InsecureSsl { get; set; } #nullable restore #else - public WebhookConfigInsecureSsl InsecureSsl { get; set; } + public global::GitHub.Models.WebhookConfigInsecureSsl InsecureSsl { get; set; } #endif /// The password property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -62,7 +64,7 @@ public class HooksPostRequestBody_config : IAdditionalDataHolder, IParsable public string Username { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public HooksPostRequestBody_config() { @@ -71,12 +73,12 @@ public HooksPostRequestBody_config() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static HooksPostRequestBody_config CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Hooks.HooksPostRequestBody_config CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new HooksPostRequestBody_config(); + return new global::GitHub.Orgs.Item.Hooks.HooksPostRequestBody_config(); } /// /// The deserialization information for the current model @@ -86,12 +88,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content_type", n => { ContentType = n.GetStringValue(); } }, - {"insecure_ssl", n => { InsecureSsl = n.GetObjectValue(WebhookConfigInsecureSsl.CreateFromDiscriminatorValue); } }, - {"password", n => { Password = n.GetStringValue(); } }, - {"secret", n => { Secret = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"username", n => { Username = n.GetStringValue(); } }, + { "content_type", n => { ContentType = n.GetStringValue(); } }, + { "insecure_ssl", n => { InsecureSsl = n.GetObjectValue(global::GitHub.Models.WebhookConfigInsecureSsl.CreateFromDiscriminatorValue); } }, + { "password", n => { Password = n.GetStringValue(); } }, + { "secret", n => { Secret = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "username", n => { Username = n.GetStringValue(); } }, }; } /// @@ -102,7 +104,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("content_type", ContentType); - writer.WriteObjectValue("insecure_ssl", InsecureSsl); + writer.WriteObjectValue("insecure_ssl", InsecureSsl); writer.WriteStringValue("password", Password); writer.WriteStringValue("secret", Secret); writer.WriteStringValue("url", Url); diff --git a/src/GitHub/Orgs/Item/Hooks/HooksRequestBuilder.cs b/src/GitHub/Orgs/Item/Hooks/HooksRequestBuilder.cs index 0cbdf21a..5d9fd2ca 100644 --- a/src/GitHub/Orgs/Item/Hooks/HooksRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Hooks/HooksRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Hooks.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Hooks { +namespace GitHub.Orgs.Item.Hooks +{ /// /// Builds and executes requests for operations under \orgs\{org}\hooks /// - public class HooksRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class HooksRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.hooks.item collection /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. - /// A - public WithHook_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.Hooks.Item.WithHook_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("hook_id", position); - return new WithHook_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Hooks.Item.WithHook_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public HooksRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,54 +49,54 @@ public HooksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// You must be an organization owner or have the "Manage organization webhooks" permission to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit webhooksthat they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. /// API method documentation /// - /// A List<OrgHook> + /// A List<global::GitHub.Models.OrgHook> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, OrgHook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.OrgHook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// You must be an organization owner or have the "Manage organization webhooks" permission to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit webhooksthat they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(HooksPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Hooks.HooksPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(HooksPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Hooks.HooksPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrgHook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrgHook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// You must be an organization owner or have the "Manage organization webhooks" permission to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit webhooksthat they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. @@ -103,11 +105,11 @@ public async Task PostAsync(HooksPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -123,11 +125,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(HooksPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Hooks.HooksPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(HooksPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Hooks.HooksPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -140,16 +142,17 @@ public RequestInformation ToPostRequestInformation(HooksPostRequestBody body, Ac /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public HooksRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Hooks.HooksRequestBuilder WithUrl(string rawUrl) { - return new HooksRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Hooks.HooksRequestBuilder(rawUrl, RequestAdapter); } /// /// You must be an organization owner or have the "Manage organization webhooks" permission to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit webhooksthat they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. /// - public class HooksRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class HooksRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Hooks/Item/Config/ConfigPatchRequestBody.cs b/src/GitHub/Orgs/Item/Hooks/Item/Config/ConfigPatchRequestBody.cs index 278f46f2..5e60aaf6 100644 --- a/src/GitHub/Orgs/Item/Hooks/Item/Config/ConfigPatchRequestBody.cs +++ b/src/GitHub/Orgs/Item/Hooks/Item/Config/ConfigPatchRequestBody.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Hooks.Item.Config { +namespace GitHub.Orgs.Item.Hooks.Item.Config +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ConfigPatchRequestBody : IAdditionalDataHolder, IParsable + public partial class ConfigPatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -23,10 +25,10 @@ public class ConfigPatchRequestBody : IAdditionalDataHolder, IParsable /// The insecure_ssl property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WebhookConfigInsecureSsl? InsecureSsl { get; set; } + public global::GitHub.Models.WebhookConfigInsecureSsl? InsecureSsl { get; set; } #nullable restore #else - public WebhookConfigInsecureSsl InsecureSsl { get; set; } + public global::GitHub.Models.WebhookConfigInsecureSsl InsecureSsl { get; set; } #endif /// 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/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -45,7 +47,7 @@ public class ConfigPatchRequestBody : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ConfigPatchRequestBody() { @@ -54,12 +56,12 @@ public ConfigPatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ConfigPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Hooks.Item.Config.ConfigPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ConfigPatchRequestBody(); + return new global::GitHub.Orgs.Item.Hooks.Item.Config.ConfigPatchRequestBody(); } /// /// The deserialization information for the current model @@ -69,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content_type", n => { ContentType = n.GetStringValue(); } }, - {"insecure_ssl", n => { InsecureSsl = n.GetObjectValue(WebhookConfigInsecureSsl.CreateFromDiscriminatorValue); } }, - {"secret", n => { Secret = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "content_type", n => { ContentType = n.GetStringValue(); } }, + { "insecure_ssl", n => { InsecureSsl = n.GetObjectValue(global::GitHub.Models.WebhookConfigInsecureSsl.CreateFromDiscriminatorValue); } }, + { "secret", n => { Secret = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -83,7 +85,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("content_type", ContentType); - writer.WriteObjectValue("insecure_ssl", InsecureSsl); + writer.WriteObjectValue("insecure_ssl", InsecureSsl); writer.WriteStringValue("secret", Secret); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Orgs/Item/Hooks/Item/Config/ConfigRequestBuilder.cs b/src/GitHub/Orgs/Item/Hooks/Item/Config/ConfigRequestBuilder.cs index b1847537..86a1477b 100644 --- a/src/GitHub/Orgs/Item/Hooks/Item/Config/ConfigRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Hooks/Item/Config/ConfigRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Hooks.Item.Config { +namespace GitHub.Orgs.Item.Hooks.Item.Config +{ /// /// Builds and executes requests for operations under \orgs\{org}\hooks\{hook_id}\config /// - public class ConfigRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ConfigRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ConfigRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,41 +36,41 @@ public ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// You must be an organization owner or have the "Manage organization webhooks" permission to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit webhooksthat they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, WebhookConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.WebhookConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// You must be an organization owner or have the "Manage organization webhooks" permission to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit webhooksthat they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(ConfigPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.Hooks.Item.Config.ConfigPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(ConfigPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.Hooks.Item.Config.ConfigPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, WebhookConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.WebhookConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// You must be an organization owner or have the "Manage organization webhooks" permission to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit webhooksthat they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. @@ -97,11 +99,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ConfigPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Hooks.Item.Config.ConfigPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ConfigPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Hooks.Item.Config.ConfigPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -114,11 +116,11 @@ public RequestInformation ToPatchRequestInformation(ConfigPatchRequestBody body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ConfigRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Hooks.Item.Config.ConfigRequestBuilder WithUrl(string rawUrl) { - return new ConfigRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Hooks.Item.Config.ConfigRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Hooks/Item/Deliveries/DeliveriesRequestBuilder.cs b/src/GitHub/Orgs/Item/Hooks/Item/Deliveries/DeliveriesRequestBuilder.cs index 46c3869c..aecec344 100644 --- a/src/GitHub/Orgs/Item/Hooks/Item/Deliveries/DeliveriesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Hooks/Item/Deliveries/DeliveriesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Hooks.Item.Deliveries.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Hooks.Item.Deliveries { +namespace GitHub.Orgs.Item.Hooks.Item.Deliveries +{ /// /// Builds and executes requests for operations under \orgs\{org}\hooks\{hook_id}\deliveries /// - public class DeliveriesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DeliveriesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.hooks.item.deliveries.item collection /// Unique identifier of the item - /// A - public WithDelivery_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.Hooks.Item.Deliveries.Item.WithDelivery_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("delivery_id", position); - return new WithDelivery_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Hooks.Item.Deliveries.Item.WithDelivery_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public DeliveriesRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,28 +49,28 @@ public DeliveriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// You must be an organization owner or have the "Manage organization webhooks" permission to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit webhooksthat they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. /// API method documentation /// - /// A List<HookDeliveryItem> + /// A List<global::GitHub.Models.HookDeliveryItem> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, HookDeliveryItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.HookDeliveryItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// You must be an organization owner or have the "Manage organization webhooks" permission to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit webhooksthat they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. @@ -77,11 +79,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -92,16 +94,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DeliveriesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Hooks.Item.Deliveries.DeliveriesRequestBuilder WithUrl(string rawUrl) { - return new DeliveriesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Hooks.Item.Deliveries.DeliveriesRequestBuilder(rawUrl, RequestAdapter); } /// /// You must be an organization owner or have the "Manage organization webhooks" permission to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit webhooksthat they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. /// - public class DeliveriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DeliveriesRequestBuilderGetQueryParameters { /// Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Orgs/Item/Hooks/Item/Deliveries/Item/Attempts/AttemptsPostResponse.cs b/src/GitHub/Orgs/Item/Hooks/Item/Deliveries/Item/Attempts/AttemptsPostResponse.cs index 9ee710e2..584e3adf 100644 --- a/src/GitHub/Orgs/Item/Hooks/Item/Deliveries/Item/Attempts/AttemptsPostResponse.cs +++ b/src/GitHub/Orgs/Item/Hooks/Item/Deliveries/Item/Attempts/AttemptsPostResponse.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Hooks.Item.Deliveries.Item.Attempts { +namespace GitHub.Orgs.Item.Hooks.Item.Deliveries.Item.Attempts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AttemptsPostResponse : IAdditionalDataHolder, IParsable + public partial class AttemptsPostResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AttemptsPostResponse() { @@ -21,12 +23,12 @@ public AttemptsPostResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AttemptsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Hooks.Item.Deliveries.Item.Attempts.AttemptsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AttemptsPostResponse(); + return new global::GitHub.Orgs.Item.Hooks.Item.Deliveries.Item.Attempts.AttemptsPostResponse(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Orgs/Item/Hooks/Item/Deliveries/Item/Attempts/AttemptsRequestBuilder.cs b/src/GitHub/Orgs/Item/Hooks/Item/Deliveries/Item/Attempts/AttemptsRequestBuilder.cs index 92fd64f0..a16d9b03 100644 --- a/src/GitHub/Orgs/Item/Hooks/Item/Deliveries/Item/Attempts/AttemptsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Hooks/Item/Deliveries/Item/Attempts/AttemptsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Hooks.Item.Deliveries.Item.Attempts { +namespace GitHub.Orgs.Item.Hooks.Item.Deliveries.Item.Attempts +{ /// /// Builds and executes requests for operations under \orgs\{org}\hooks\{hook_id}\deliveries\{delivery_id}\attempts /// - public class AttemptsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AttemptsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AttemptsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public AttemptsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// You must be an organization owner or have the "Manage organization webhooks" permission to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit webhooksthat they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, AttemptsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Hooks.Item.Deliveries.Item.Attempts.AttemptsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// You must be an organization owner or have the "Manage organization webhooks" permission to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit webhooksthat they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. @@ -78,11 +80,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AttemptsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Hooks.Item.Deliveries.Item.Attempts.AttemptsRequestBuilder WithUrl(string rawUrl) { - return new AttemptsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Hooks.Item.Deliveries.Item.Attempts.AttemptsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Hooks/Item/Deliveries/Item/WithDelivery_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Hooks/Item/Deliveries/Item/WithDelivery_ItemRequestBuilder.cs index a21acdf0..486b2a8d 100644 --- a/src/GitHub/Orgs/Item/Hooks/Item/Deliveries/Item/WithDelivery_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Hooks/Item/Deliveries/Item/WithDelivery_ItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Orgs.Item.Hooks.Item.Deliveries.Item.Attempts; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Hooks.Item.Deliveries.Item { +namespace GitHub.Orgs.Item.Hooks.Item.Deliveries.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\hooks\{hook_id}\deliveries\{delivery_id} /// - public class WithDelivery_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithDelivery_ItemRequestBuilder : BaseRequestBuilder { /// The attempts property - public AttemptsRequestBuilder Attempts + public global::GitHub.Orgs.Item.Hooks.Item.Deliveries.Item.Attempts.AttemptsRequestBuilder Attempts { - get => new AttemptsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Hooks.Item.Deliveries.Item.Attempts.AttemptsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithDelivery_ItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -40,27 +42,27 @@ public WithDelivery_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAda /// You must be an organization owner or have the "Manage organization webhooks" permission to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit webhooksthat they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, HookDelivery.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.HookDelivery.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// You must be an organization owner or have the "Manage organization webhooks" permission to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit webhooksthat they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. @@ -84,11 +86,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithDelivery_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Hooks.Item.Deliveries.Item.WithDelivery_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithDelivery_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Hooks.Item.Deliveries.Item.WithDelivery_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Hooks/Item/Pings/PingsRequestBuilder.cs b/src/GitHub/Orgs/Item/Hooks/Item/Pings/PingsRequestBuilder.cs index a0528c50..c21e5897 100644 --- a/src/GitHub/Orgs/Item/Hooks/Item/Pings/PingsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Hooks/Item/Pings/PingsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Hooks.Item.Pings { +namespace GitHub.Orgs.Item.Hooks.Item.Pings +{ /// /// Builds and executes requests for operations under \orgs\{org}\hooks\{hook_id}\pings /// - public class PingsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PingsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public PingsRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public PingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -49,7 +51,7 @@ public async Task PostAsync(Action> var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -75,11 +77,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PingsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Hooks.Item.Pings.PingsRequestBuilder WithUrl(string rawUrl) { - return new PingsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Hooks.Item.Pings.PingsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Hooks/Item/WithHook_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Hooks/Item/WithHook_ItemRequestBuilder.cs index 1277b867..4d37a530 100644 --- a/src/GitHub/Orgs/Item/Hooks/Item/WithHook_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Hooks/Item/WithHook_ItemRequestBuilder.cs @@ -3,37 +3,39 @@ using GitHub.Orgs.Item.Hooks.Item.Config; using GitHub.Orgs.Item.Hooks.Item.Deliveries; using GitHub.Orgs.Item.Hooks.Item.Pings; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Hooks.Item { +namespace GitHub.Orgs.Item.Hooks.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\hooks\{hook_id} /// - public class WithHook_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithHook_ItemRequestBuilder : BaseRequestBuilder { /// The config property - public ConfigRequestBuilder Config + public global::GitHub.Orgs.Item.Hooks.Item.Config.ConfigRequestBuilder Config { - get => new ConfigRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Hooks.Item.Config.ConfigRequestBuilder(PathParameters, RequestAdapter); } /// The deliveries property - public DeliveriesRequestBuilder Deliveries + public global::GitHub.Orgs.Item.Hooks.Item.Deliveries.DeliveriesRequestBuilder Deliveries { - get => new DeliveriesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Hooks.Item.Deliveries.DeliveriesRequestBuilder(PathParameters, RequestAdapter); } /// The pings property - public PingsRequestBuilder Pings + public global::GitHub.Orgs.Item.Hooks.Item.Pings.PingsRequestBuilder Pings { - get => new PingsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Hooks.Item.Pings.PingsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -41,7 +43,7 @@ public WithHook_ItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -54,7 +56,7 @@ public WithHook_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -67,7 +69,7 @@ public async Task DeleteAsync(Action> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -75,53 +77,53 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrgHook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrgHook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// You must be an organization owner or have the "Manage organization webhooks" permission to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit webhooksthat they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithHook_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.Hooks.Item.WithHook_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithHook_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.Hooks.Item.WithHook_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrgHook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrgHook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// You must be an organization owner or have the "Manage organization webhooks" permission to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit webhooksthat they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. @@ -169,11 +171,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithHook_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Hooks.Item.WithHook_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithHook_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Hooks.Item.WithHook_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -186,11 +188,11 @@ public RequestInformation ToPatchRequestInformation(WithHook_PatchRequestBody bo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithHook_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Hooks.Item.WithHook_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithHook_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Hooks.Item.WithHook_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Hooks/Item/WithHook_PatchRequestBody.cs b/src/GitHub/Orgs/Item/Hooks/Item/WithHook_PatchRequestBody.cs index ca863d51..437dd767 100644 --- a/src/GitHub/Orgs/Item/Hooks/Item/WithHook_PatchRequestBody.cs +++ b/src/GitHub/Orgs/Item/Hooks/Item/WithHook_PatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Hooks.Item { +namespace GitHub.Orgs.Item.Hooks.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithHook_PatchRequestBody : IAdditionalDataHolder, IParsable + public partial class WithHook_PatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. @@ -16,10 +18,10 @@ public class WithHook_PatchRequestBody : IAdditionalDataHolder, IParsable /// Key/value pairs to provide settings for this webhook. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithHook_PatchRequestBody_config? Config { get; set; } + public global::GitHub.Orgs.Item.Hooks.Item.WithHook_PatchRequestBody_config? Config { get; set; } #nullable restore #else - public WithHook_PatchRequestBody_config Config { get; set; } + public global::GitHub.Orgs.Item.Hooks.Item.WithHook_PatchRequestBody_config Config { get; set; } #endif /// Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -38,7 +40,7 @@ public class WithHook_PatchRequestBody : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithHook_PatchRequestBody() { @@ -47,12 +49,12 @@ public WithHook_PatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithHook_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Hooks.Item.WithHook_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithHook_PatchRequestBody(); + return new global::GitHub.Orgs.Item.Hooks.Item.WithHook_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -62,10 +64,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"active", n => { Active = n.GetBoolValue(); } }, - {"config", n => { Config = n.GetObjectValue(WithHook_PatchRequestBody_config.CreateFromDiscriminatorValue); } }, - {"events", n => { Events = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "active", n => { Active = n.GetBoolValue(); } }, + { "config", n => { Config = n.GetObjectValue(global::GitHub.Orgs.Item.Hooks.Item.WithHook_PatchRequestBody_config.CreateFromDiscriminatorValue); } }, + { "events", n => { Events = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// @@ -76,7 +78,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("active", Active); - writer.WriteObjectValue("config", Config); + writer.WriteObjectValue("config", Config); writer.WriteCollectionOfPrimitiveValues("events", Events); writer.WriteStringValue("name", Name); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Orgs/Item/Hooks/Item/WithHook_PatchRequestBody_config.cs b/src/GitHub/Orgs/Item/Hooks/Item/WithHook_PatchRequestBody_config.cs index 86cc4085..97dec955 100644 --- a/src/GitHub/Orgs/Item/Hooks/Item/WithHook_PatchRequestBody_config.cs +++ b/src/GitHub/Orgs/Item/Hooks/Item/WithHook_PatchRequestBody_config.cs @@ -1,15 +1,17 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Hooks.Item { +namespace GitHub.Orgs.Item.Hooks.Item +{ /// /// Key/value pairs to provide settings for this webhook. /// - public class WithHook_PatchRequestBody_config : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithHook_PatchRequestBody_config : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -24,10 +26,10 @@ public class WithHook_PatchRequestBody_config : IAdditionalDataHolder, IParsable /// The insecure_ssl property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WebhookConfigInsecureSsl? InsecureSsl { get; set; } + public global::GitHub.Models.WebhookConfigInsecureSsl? InsecureSsl { get; set; } #nullable restore #else - public WebhookConfigInsecureSsl InsecureSsl { get; set; } + public global::GitHub.Models.WebhookConfigInsecureSsl InsecureSsl { get; set; } #endif /// 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/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -46,7 +48,7 @@ public class WithHook_PatchRequestBody_config : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithHook_PatchRequestBody_config() { @@ -55,12 +57,12 @@ public WithHook_PatchRequestBody_config() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithHook_PatchRequestBody_config CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Hooks.Item.WithHook_PatchRequestBody_config CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithHook_PatchRequestBody_config(); + return new global::GitHub.Orgs.Item.Hooks.Item.WithHook_PatchRequestBody_config(); } /// /// The deserialization information for the current model @@ -70,10 +72,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content_type", n => { ContentType = n.GetStringValue(); } }, - {"insecure_ssl", n => { InsecureSsl = n.GetObjectValue(WebhookConfigInsecureSsl.CreateFromDiscriminatorValue); } }, - {"secret", n => { Secret = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "content_type", n => { ContentType = n.GetStringValue(); } }, + { "insecure_ssl", n => { InsecureSsl = n.GetObjectValue(global::GitHub.Models.WebhookConfigInsecureSsl.CreateFromDiscriminatorValue); } }, + { "secret", n => { Secret = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -84,7 +86,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("content_type", ContentType); - writer.WriteObjectValue("insecure_ssl", InsecureSsl); + writer.WriteObjectValue("insecure_ssl", InsecureSsl); writer.WriteStringValue("secret", Secret); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Orgs/Item/Installation/InstallationRequestBuilder.cs b/src/GitHub/Orgs/Item/Installation/InstallationRequestBuilder.cs index 208764e3..a4882a8c 100644 --- a/src/GitHub/Orgs/Item/Installation/InstallationRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Installation/InstallationRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Installation { +namespace GitHub.Orgs.Item.Installation +{ /// /// Builds and executes requests for operations under \orgs\{org}\installation /// - public class InstallationRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InstallationRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public InstallationRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public InstallationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Enables an authenticated GitHub App to find the organization's installation information.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.Installation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Installation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Enables an authenticated GitHub App to find the organization's installation information.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public InstallationRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Installation.InstallationRequestBuilder WithUrl(string rawUrl) { - return new InstallationRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Installation.InstallationRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Installations/InstallationsGetResponse.cs b/src/GitHub/Orgs/Item/Installations/InstallationsGetResponse.cs index 33021ed6..b8498af5 100644 --- a/src/GitHub/Orgs/Item/Installations/InstallationsGetResponse.cs +++ b/src/GitHub/Orgs/Item/Installations/InstallationsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Installations { +namespace GitHub.Orgs.Item.Installations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class InstallationsGetResponse : IAdditionalDataHolder, IParsable + public partial class InstallationsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class InstallationsGetResponse : IAdditionalDataHolder, IParsable /// The installations property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Installations { get; set; } + public List? Installations { get; set; } #nullable restore #else - public List Installations { get; set; } + public List Installations { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public InstallationsGetResponse() { @@ -32,12 +34,12 @@ public InstallationsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static InstallationsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Installations.InstallationsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new InstallationsGetResponse(); + return new global::GitHub.Orgs.Item.Installations.InstallationsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"installations", n => { Installations = n.GetCollectionOfObjectValues(GitHub.Models.Installation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "installations", n => { Installations = n.GetCollectionOfObjectValues(global::GitHub.Models.Installation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("installations", Installations); + writer.WriteCollectionOfObjectValues("installations", Installations); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Installations/InstallationsRequestBuilder.cs b/src/GitHub/Orgs/Item/Installations/InstallationsRequestBuilder.cs index 74ceca53..c99dd6cc 100644 --- a/src/GitHub/Orgs/Item/Installations/InstallationsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Installations/InstallationsRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Installations { +namespace GitHub.Orgs.Item.Installations +{ /// /// Builds and executes requests for operations under \orgs\{org}\installations /// - public class InstallationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InstallationsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public InstallationsRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,20 +35,20 @@ public InstallationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Lists all GitHub Apps in an organization. The installation count includesall GitHub Apps installed on repositories in the organization.The authenticated user must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:read` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, InstallationsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Installations.InstallationsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists all GitHub Apps in an organization. The installation count includesall GitHub Apps installed on repositories in the organization.The authenticated user must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:read` scope to use this endpoint. @@ -55,11 +57,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -70,16 +72,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public InstallationsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Installations.InstallationsRequestBuilder WithUrl(string rawUrl) { - return new InstallationsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Installations.InstallationsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all GitHub Apps in an organization. The installation count includesall GitHub Apps installed on repositories in the organization.The authenticated user must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:read` scope to use this endpoint. /// - public class InstallationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InstallationsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/InteractionLimits/InteractionLimitsRequestBuilder.cs b/src/GitHub/Orgs/Item/InteractionLimits/InteractionLimitsRequestBuilder.cs index 7a2527ec..d8120744 100644 --- a/src/GitHub/Orgs/Item/InteractionLimits/InteractionLimitsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/InteractionLimits/InteractionLimitsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.InteractionLimits { +namespace GitHub.Orgs.Item.InteractionLimits +{ /// /// Builds and executes requests for operations under \orgs\{org}\interaction-limits /// - public class InteractionLimitsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InteractionLimitsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public InteractionLimitsRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,46 +54,46 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, InteractionLimitResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.InteractionLimitResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Temporarily restricts interactions to a certain type of GitHub user in any public repository in the given organization. You must be an organization owner to set these restrictions. Setting the interaction limit at the organization level will overwrite any interaction limits that are set for individual repositories owned by the organization. /// API method documentation /// - /// A + /// A /// Limit interactions to a specific type of user for a specified duration /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(InteractionLimit body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.InteractionLimit body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(InteractionLimit body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.InteractionLimit body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, InteractionLimitResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.InteractionLimitResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Removes all interaction restrictions from public repositories in the given organization. You must be an organization owner to remove restrictions. @@ -138,11 +140,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(InteractionLimit body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.InteractionLimit body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(InteractionLimit body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.InteractionLimit body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -155,11 +157,11 @@ public RequestInformation ToPutRequestInformation(InteractionLimit body, Action< /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public InteractionLimitsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.InteractionLimits.InteractionLimitsRequestBuilder WithUrl(string rawUrl) { - return new InteractionLimitsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.InteractionLimits.InteractionLimitsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Invitations/GetInvitation_sourceQueryParameterType.cs b/src/GitHub/Orgs/Item/Invitations/GetInvitation_sourceQueryParameterType.cs index 82b1a3a4..76a3236f 100644 --- a/src/GitHub/Orgs/Item/Invitations/GetInvitation_sourceQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Invitations/GetInvitation_sourceQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Invitations { +namespace GitHub.Orgs.Item.Invitations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetInvitation_sourceQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Invitations/GetRoleQueryParameterType.cs b/src/GitHub/Orgs/Item/Invitations/GetRoleQueryParameterType.cs index b31579f4..43d51f1a 100644 --- a/src/GitHub/Orgs/Item/Invitations/GetRoleQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Invitations/GetRoleQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Invitations { +namespace GitHub.Orgs.Item.Invitations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetRoleQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Invitations/InvitationsPostRequestBody.cs b/src/GitHub/Orgs/Item/Invitations/InvitationsPostRequestBody.cs index 01a4eb99..1d3a8956 100644 --- a/src/GitHub/Orgs/Item/Invitations/InvitationsPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/Invitations/InvitationsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Invitations { +namespace GitHub.Orgs.Item.Invitations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class InvitationsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class InvitationsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class InvitationsPostRequestBody : IAdditionalDataHolder, IParsable /// **Required unless you provide `email`**. GitHub user ID for the person you are inviting. public int? InviteeId { get; set; } /// The role for the new member. * `admin` - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. * `direct_member` - Non-owner organization members with ability to see other members and join teams by invitation. * `billing_manager` - Non-owner organization members with ability to manage the billing settings of your organization. * `reinstate` - The previous role assigned to the invitee before they were removed from your organization. Can be one of the roles listed above. Only works if the invitee was previously part of your organization. - public InvitationsPostRequestBody_role? Role { get; set; } + public global::GitHub.Orgs.Item.Invitations.InvitationsPostRequestBody_role? Role { get; set; } /// Specify IDs for the teams you want to invite new members to. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -32,22 +34,22 @@ public class InvitationsPostRequestBody : IAdditionalDataHolder, IParsable public List TeamIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public InvitationsPostRequestBody() { AdditionalData = new Dictionary(); - Role = InvitationsPostRequestBody_role.Direct_member; + Role = global::GitHub.Orgs.Item.Invitations.InvitationsPostRequestBody_role.Direct_member; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static InvitationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Invitations.InvitationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new InvitationsPostRequestBody(); + return new global::GitHub.Orgs.Item.Invitations.InvitationsPostRequestBody(); } /// /// The deserialization information for the current model @@ -57,10 +59,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"email", n => { Email = n.GetStringValue(); } }, - {"invitee_id", n => { InviteeId = n.GetIntValue(); } }, - {"role", n => { Role = n.GetEnumValue(); } }, - {"team_ids", n => { TeamIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "invitee_id", n => { InviteeId = n.GetIntValue(); } }, + { "role", n => { Role = n.GetEnumValue(); } }, + { "team_ids", n => { TeamIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -72,7 +74,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("email", Email); writer.WriteIntValue("invitee_id", InviteeId); - writer.WriteEnumValue("role", Role); + writer.WriteEnumValue("role", Role); writer.WriteCollectionOfPrimitiveValues("team_ids", TeamIds); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Invitations/InvitationsPostRequestBody_role.cs b/src/GitHub/Orgs/Item/Invitations/InvitationsPostRequestBody_role.cs index a7bbd51e..1638ec3d 100644 --- a/src/GitHub/Orgs/Item/Invitations/InvitationsPostRequestBody_role.cs +++ b/src/GitHub/Orgs/Item/Invitations/InvitationsPostRequestBody_role.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Invitations { +namespace GitHub.Orgs.Item.Invitations +{ /// The role for the new member. * `admin` - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. * `direct_member` - Non-owner organization members with ability to see other members and join teams by invitation. * `billing_manager` - Non-owner organization members with ability to manage the billing settings of your organization. * `reinstate` - The previous role assigned to the invitee before they were removed from your organization. Can be one of the roles listed above. Only works if the invitee was previously part of your organization. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum InvitationsPostRequestBody_role { [EnumMember(Value = "admin")] diff --git a/src/GitHub/Orgs/Item/Invitations/InvitationsRequestBuilder.cs b/src/GitHub/Orgs/Item/Invitations/InvitationsRequestBuilder.cs index fbbd1e87..55db3bb8 100644 --- a/src/GitHub/Orgs/Item/Invitations/InvitationsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Invitations/InvitationsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Invitations.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Invitations { +namespace GitHub.Orgs.Item.Invitations +{ /// /// Builds and executes requests for operations under \orgs\{org}\invitations /// - public class InvitationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InvitationsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.invitations.item collection /// The unique identifier of the invitation. - /// A - public WithInvitation_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.Invitations.Item.WithInvitation_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("invitation_id", position); - return new WithInvitation_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Invitations.Item.WithInvitation_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public InvitationsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,54 +49,54 @@ public InvitationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// The return hash contains a `role` field which refers to the OrganizationInvitation role and will be one of the following values: `direct_member`, `admin`,`billing_manager`, or `hiring_manager`. If the invitee is not a GitHub Enterprise Cloudmember, the `login` field in the return hash will be `null`.This endpoint is not available for [Enterprise Managed User (EMU) organizations](https://docs.github.com/enterprise-cloud@latest//admin/identity-and-access-management/using-enterprise-managed-users-for-iam/about-enterprise-managed-users). /// API method documentation /// - /// A List<OrganizationInvitation> + /// A List<global::GitHub.Models.OrganizationInvitation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, OrganizationInvitation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.OrganizationInvitation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Invite people to an organization by using their GitHub user ID or their email address. In order to create invitations in an organization, the authenticated user must be an organization owner.This endpoint is not available for [Enterprise Managed User (EMU) organizations](https://docs.github.com/enterprise-cloud@latest//admin/identity-and-access-management/using-enterprise-managed-users-for-iam/about-enterprise-managed-users).This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary rate limits](https://docs.github.com/enterprise-cloud@latest//rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary rate limits](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(InvitationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Invitations.InvitationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(InvitationsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Invitations.InvitationsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationInvitation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrganizationInvitation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The return hash contains a `role` field which refers to the OrganizationInvitation role and will be one of the following values: `direct_member`, `admin`,`billing_manager`, or `hiring_manager`. If the invitee is not a GitHub Enterprise Cloudmember, the `login` field in the return hash will be `null`.This endpoint is not available for [Enterprise Managed User (EMU) organizations](https://docs.github.com/enterprise-cloud@latest//admin/identity-and-access-management/using-enterprise-managed-users-for-iam/about-enterprise-managed-users). @@ -103,11 +105,11 @@ public async Task PostAsync(InvitationsPostRequestBody b /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -123,11 +125,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(InvitationsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Invitations.InvitationsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(InvitationsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Invitations.InvitationsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -140,20 +142,21 @@ public RequestInformation ToPostRequestInformation(InvitationsPostRequestBody bo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public InvitationsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Invitations.InvitationsRequestBuilder WithUrl(string rawUrl) { - return new InvitationsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Invitations.InvitationsRequestBuilder(rawUrl, RequestAdapter); } /// /// The return hash contains a `role` field which refers to the OrganizationInvitation role and will be one of the following values: `direct_member`, `admin`,`billing_manager`, or `hiring_manager`. If the invitee is not a GitHub Enterprise Cloudmember, the `login` field in the return hash will be `null`.This endpoint is not available for [Enterprise Managed User (EMU) organizations](https://docs.github.com/enterprise-cloud@latest//admin/identity-and-access-management/using-enterprise-managed-users-for-iam/about-enterprise-managed-users). /// - public class InvitationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InvitationsRequestBuilderGetQueryParameters { /// Filter invitations by their invitation source. [QueryParameter("invitation_source")] - public GetInvitation_sourceQueryParameterType? InvitationSource { get; set; } + public global::GitHub.Orgs.Item.Invitations.GetInvitation_sourceQueryParameterType? InvitationSource { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } @@ -162,7 +165,7 @@ public class InvitationsRequestBuilderGetQueryParameters public int? PerPage { get; set; } /// Filter invitations by their member role. [QueryParameter("role")] - public GetRoleQueryParameterType? Role { get; set; } + public global::GitHub.Orgs.Item.Invitations.GetRoleQueryParameterType? Role { get; set; } } } } diff --git a/src/GitHub/Orgs/Item/Invitations/Item/Teams/TeamsRequestBuilder.cs b/src/GitHub/Orgs/Item/Invitations/Item/Teams/TeamsRequestBuilder.cs index f9e416cd..9fab671d 100644 --- a/src/GitHub/Orgs/Item/Invitations/Item/Teams/TeamsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Invitations/Item/Teams/TeamsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Invitations.Item.Teams { +namespace GitHub.Orgs.Item.Invitations.Item.Teams +{ /// /// Builds and executes requests for operations under \orgs\{org}\invitations\{invitation_id}\teams /// - public class TeamsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public TeamsRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,26 +36,26 @@ public TeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// List all teams associated with an invitation. In order to see invitationsin an organization, the authenticated user must be an organization owner.This endpoint is not available for [Enterprise Managed User (EMU) organizations](https://docs.github.com/enterprise-cloud@latest//admin/identity-and-access-management/using-enterprise-managed-users-for-iam/about-enterprise-managed-users). /// API method documentation /// - /// A List<GitHub.Models.Team> + /// A List<global::GitHub.Models.Team> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GitHub.Models.Team.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Team.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// List all teams associated with an invitation. In order to see invitationsin an organization, the authenticated user must be an organization owner.This endpoint is not available for [Enterprise Managed User (EMU) organizations](https://docs.github.com/enterprise-cloud@latest//admin/identity-and-access-management/using-enterprise-managed-users-for-iam/about-enterprise-managed-users). @@ -62,11 +64,11 @@ public TeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -77,16 +79,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public TeamsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Invitations.Item.Teams.TeamsRequestBuilder WithUrl(string rawUrl) { - return new TeamsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Invitations.Item.Teams.TeamsRequestBuilder(rawUrl, RequestAdapter); } /// /// List all teams associated with an invitation. In order to see invitationsin an organization, the authenticated user must be an organization owner.This endpoint is not available for [Enterprise Managed User (EMU) organizations](https://docs.github.com/enterprise-cloud@latest//admin/identity-and-access-management/using-enterprise-managed-users-for-iam/about-enterprise-managed-users). /// - public class TeamsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Invitations/Item/WithInvitation_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Invitations/Item/WithInvitation_ItemRequestBuilder.cs index 8c500c22..cff487a1 100644 --- a/src/GitHub/Orgs/Item/Invitations/Item/WithInvitation_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Invitations/Item/WithInvitation_ItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Orgs.Item.Invitations.Item.Teams; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Invitations.Item { +namespace GitHub.Orgs.Item.Invitations.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\invitations\{invitation_id} /// - public class WithInvitation_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithInvitation_ItemRequestBuilder : BaseRequestBuilder { /// The teams property - public TeamsRequestBuilder Teams + public global::GitHub.Orgs.Item.Invitations.Item.Teams.TeamsRequestBuilder Teams { - get => new TeamsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Invitations.Item.Teams.TeamsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithInvitation_ItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -42,8 +44,8 @@ public WithInvitation_ItemRequestBuilder(string rawUrl, IRequestAdapter requestA /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -56,8 +58,8 @@ public async Task DeleteAsync(Action> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -83,11 +85,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithInvitation_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Invitations.Item.WithInvitation_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithInvitation_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Invitations.Item.WithInvitation_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Issues/GetDirectionQueryParameterType.cs b/src/GitHub/Orgs/Item/Issues/GetDirectionQueryParameterType.cs index ae3be938..ab351614 100644 --- a/src/GitHub/Orgs/Item/Issues/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Issues/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Issues { +namespace GitHub.Orgs.Item.Issues +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Issues/GetFilterQueryParameterType.cs b/src/GitHub/Orgs/Item/Issues/GetFilterQueryParameterType.cs index 89067d1b..03e9257a 100644 --- a/src/GitHub/Orgs/Item/Issues/GetFilterQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Issues/GetFilterQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Issues { +namespace GitHub.Orgs.Item.Issues +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetFilterQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Issues/GetSortQueryParameterType.cs b/src/GitHub/Orgs/Item/Issues/GetSortQueryParameterType.cs index dcf74f2b..4cb40aca 100644 --- a/src/GitHub/Orgs/Item/Issues/GetSortQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Issues/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Issues { +namespace GitHub.Orgs.Item.Issues +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Issues/GetStateQueryParameterType.cs b/src/GitHub/Orgs/Item/Issues/GetStateQueryParameterType.cs index 137ad2d5..f0413159 100644 --- a/src/GitHub/Orgs/Item/Issues/GetStateQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Issues/GetStateQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Issues { +namespace GitHub.Orgs.Item.Issues +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetStateQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Issues/IssuesRequestBuilder.cs b/src/GitHub/Orgs/Item/Issues/IssuesRequestBuilder.cs index 15c00c52..48c4aede 100644 --- a/src/GitHub/Orgs/Item/Issues/IssuesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Issues/IssuesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Issues { +namespace GitHub.Orgs.Item.Issues +{ /// /// Builds and executes requests for operations under \orgs\{org}\issues /// - public class IssuesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class IssuesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public IssuesRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,26 +36,26 @@ public IssuesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// List issues in an organization assigned to the authenticated user.> [!NOTE]> GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#list-pull-requests)" endpoint.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. /// API method documentation /// - /// A List<Issue> + /// A List<global::GitHub.Models.Issue> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Issue.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Issue.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// List issues in an organization assigned to the authenticated user.> [!NOTE]> GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#list-pull-requests)" endpoint.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. @@ -62,11 +64,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -77,23 +79,24 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public IssuesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Issues.IssuesRequestBuilder WithUrl(string rawUrl) { - return new IssuesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Issues.IssuesRequestBuilder(rawUrl, RequestAdapter); } /// /// List issues in an organization assigned to the authenticated user.> [!NOTE]> GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#list-pull-requests)" endpoint.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. /// - public class IssuesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class IssuesRequestBuilderGetQueryParameters { /// The direction to sort the results by. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Orgs.Item.Issues.GetDirectionQueryParameterType? Direction { get; set; } /// Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation. [QueryParameter("filter")] - public GetFilterQueryParameterType? Filter { get; set; } + public global::GitHub.Orgs.Item.Issues.GetFilterQueryParameterType? Filter { get; set; } /// A list of comma separated label names. Example: `bug,ui,@high` #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -115,10 +118,10 @@ public class IssuesRequestBuilderGetQueryParameters public DateTimeOffset? Since { get; set; } /// What to sort results by. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Orgs.Item.Issues.GetSortQueryParameterType? Sort { get; set; } /// Indicates the state of the issues to return. [QueryParameter("state")] - public GetStateQueryParameterType? State { get; set; } + public global::GitHub.Orgs.Item.Issues.GetStateQueryParameterType? State { get; set; } } } } diff --git a/src/GitHub/Orgs/Item/Item/Item/WithEnablementItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Item/Item/WithEnablementItemRequestBuilder.cs index 636b9a08..8c9a4999 100644 --- a/src/GitHub/Orgs/Item/Item/Item/WithEnablementItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Item/Item/WithEnablementItemRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Item.Item { +namespace GitHub.Orgs.Item.Item.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\{security_product}\{enablement} /// - public class WithEnablementItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithEnablementItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public WithEnablementItemRequestBuilder(Dictionary pathParameter { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -39,11 +41,11 @@ public WithEnablementItemRequestBuilder(string rawUrl, IRequestAdapter requestAd [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(WithEnablementPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Item.Item.WithEnablementPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(WithEnablementPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Item.Item.WithEnablementPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -59,11 +61,11 @@ public async Task PostAsync(WithEnablementPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Item.Item.WithEnablementPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WithEnablementPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Item.Item.WithEnablementPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -75,12 +77,12 @@ public RequestInformation ToPostRequestInformation(WithEnablementPostRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public WithEnablementItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Item.Item.WithEnablementItemRequestBuilder WithUrl(string rawUrl) { - return new WithEnablementItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Item.Item.WithEnablementItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Item/Item/WithEnablementPostRequestBody.cs b/src/GitHub/Orgs/Item/Item/Item/WithEnablementPostRequestBody.cs index a98b5219..88e2ae09 100644 --- a/src/GitHub/Orgs/Item/Item/Item/WithEnablementPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/Item/Item/WithEnablementPostRequestBody.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Item.Item { +namespace GitHub.Orgs.Item.Item.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithEnablementPostRequestBody : IAdditionalDataHolder, IParsable + public partial class WithEnablementPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// CodeQL query suite to be used. If you specify the `query_suite` parameter, the default setup will be configured with this query suite only on all repositories that didn't have default setup already configured. It will not change the query suite on repositories that already have default setup configured.If you don't specify any `query_suite` in your request, the preferred query suite of the organization will be applied. - public WithEnablementPostRequestBody_query_suite? QuerySuite { get; set; } + public global::GitHub.Orgs.Item.Item.Item.WithEnablementPostRequestBody_query_suite? QuerySuite { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithEnablementPostRequestBody() { @@ -23,12 +25,12 @@ public WithEnablementPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithEnablementPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Item.Item.WithEnablementPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithEnablementPostRequestBody(); + return new global::GitHub.Orgs.Item.Item.Item.WithEnablementPostRequestBody(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"query_suite", n => { QuerySuite = n.GetEnumValue(); } }, + { "query_suite", n => { QuerySuite = n.GetEnumValue(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("query_suite", QuerySuite); + writer.WriteEnumValue("query_suite", QuerySuite); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Item/Item/WithEnablementPostRequestBody_query_suite.cs b/src/GitHub/Orgs/Item/Item/Item/WithEnablementPostRequestBody_query_suite.cs index 402002be..b0ac57f5 100644 --- a/src/GitHub/Orgs/Item/Item/Item/WithEnablementPostRequestBody_query_suite.cs +++ b/src/GitHub/Orgs/Item/Item/Item/WithEnablementPostRequestBody_query_suite.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Item.Item { +namespace GitHub.Orgs.Item.Item.Item +{ /// CodeQL query suite to be used. If you specify the `query_suite` parameter, the default setup will be configured with this query suite only on all repositories that didn't have default setup already configured. It will not change the query suite on repositories that already have default setup configured.If you don't specify any `query_suite` in your request, the preferred query suite of the organization will be applied. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithEnablementPostRequestBody_query_suite { [EnumMember(Value = "default")] diff --git a/src/GitHub/Orgs/Item/Item/WithSecurity_productItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Item/WithSecurity_productItemRequestBuilder.cs index d59dd815..8a320c75 100644 --- a/src/GitHub/Orgs/Item/Item/WithSecurity_productItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Item/WithSecurity_productItemRequestBuilder.cs @@ -1,32 +1,34 @@ // using GitHub.Orgs.Item.Item.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Item { +namespace GitHub.Orgs.Item.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\{security_product} /// - public class WithSecurity_productItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithSecurity_productItemRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.item.item collection /// The action to take.`enable_all` means to enable the specified security feature for all repositories in the organization.`disable_all` means to disable the specified security feature for all repositories in the organization. - /// A + /// A [Obsolete("")] - public WithEnablementItemRequestBuilder this[string position] + public global::GitHub.Orgs.Item.Item.Item.WithEnablementItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("enablement", position); - return new WithEnablementItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Item.Item.WithEnablementItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -34,7 +36,7 @@ public WithSecurity_productItemRequestBuilder(Dictionary pathPar { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Members/GetFilterQueryParameterType.cs b/src/GitHub/Orgs/Item/Members/GetFilterQueryParameterType.cs index b4f8ce3a..7c4700c0 100644 --- a/src/GitHub/Orgs/Item/Members/GetFilterQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Members/GetFilterQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Members { +namespace GitHub.Orgs.Item.Members +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetFilterQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Members/GetRoleQueryParameterType.cs b/src/GitHub/Orgs/Item/Members/GetRoleQueryParameterType.cs index 619f5800..3fa95d17 100644 --- a/src/GitHub/Orgs/Item/Members/GetRoleQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Members/GetRoleQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Members { +namespace GitHub.Orgs.Item.Members +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetRoleQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Members/Item/Codespaces/CodespacesGetResponse.cs b/src/GitHub/Orgs/Item/Members/Item/Codespaces/CodespacesGetResponse.cs index f9e26927..a95f2642 100644 --- a/src/GitHub/Orgs/Item/Members/Item/Codespaces/CodespacesGetResponse.cs +++ b/src/GitHub/Orgs/Item/Members/Item/Codespaces/CodespacesGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Members.Item.Codespaces { +namespace GitHub.Orgs.Item.Members.Item.Codespaces +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodespacesGetResponse : IAdditionalDataHolder, IParsable + public partial class CodespacesGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class CodespacesGetResponse : IAdditionalDataHolder, IParsable /// The codespaces property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Codespaces { get; set; } + public List? Codespaces { get; set; } #nullable restore #else - public List Codespaces { get; set; } + public List Codespaces { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodespacesGetResponse() { @@ -32,12 +34,12 @@ public CodespacesGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodespacesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Members.Item.Codespaces.CodespacesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodespacesGetResponse(); + return new global::GitHub.Orgs.Item.Members.Item.Codespaces.CodespacesGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"codespaces", n => { Codespaces = n.GetCollectionOfObjectValues(Codespace.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "codespaces", n => { Codespaces = n.GetCollectionOfObjectValues(global::GitHub.Models.Codespace.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("codespaces", Codespaces); + writer.WriteCollectionOfObjectValues("codespaces", Codespaces); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Members/Item/Codespaces/CodespacesRequestBuilder.cs b/src/GitHub/Orgs/Item/Members/Item/Codespaces/CodespacesRequestBuilder.cs index 4b305054..a74749b8 100644 --- a/src/GitHub/Orgs/Item/Members/Item/Codespaces/CodespacesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Members/Item/Codespaces/CodespacesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Members.Item.Codespaces.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Members.Item.Codespaces { +namespace GitHub.Orgs.Item.Members.Item.Codespaces +{ /// /// Builds and executes requests for operations under \orgs\{org}\members\{username}\codespaces /// - public class CodespacesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodespacesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.members.item.codespaces.item collection /// The name of the codespace. - /// A - public WithCodespace_nameItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Members.Item.Codespaces.Item.WithCodespace_nameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("codespace_name", position); - return new WithCodespace_nameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Members.Item.Codespaces.Item.WithCodespace_nameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public CodespacesRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,31 +49,31 @@ public CodespacesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Lists the codespaces that a member of an organization has for repositories in that organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CodespacesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Members.Item.Codespaces.CodespacesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists the codespaces that a member of an organization has for repositories in that organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. @@ -80,11 +82,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -95,16 +97,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CodespacesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Members.Item.Codespaces.CodespacesRequestBuilder WithUrl(string rawUrl) { - return new CodespacesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Members.Item.Codespaces.CodespacesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the codespaces that a member of an organization has for repositories in that organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// - public class CodespacesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodespacesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Members/Item/Codespaces/Item/Stop/StopRequestBuilder.cs b/src/GitHub/Orgs/Item/Members/Item/Codespaces/Item/Stop/StopRequestBuilder.cs index a10feced..c3502db7 100644 --- a/src/GitHub/Orgs/Item/Members/Item/Codespaces/Item/Stop/StopRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Members/Item/Codespaces/Item/Stop/StopRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Members.Item.Codespaces.Item.Stop { +namespace GitHub.Orgs.Item.Members.Item.Codespaces.Item.Stop +{ /// /// Builds and executes requests for operations under \orgs\{org}\members\{username}\codespaces\{codespace_name}\stop /// - public class StopRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class StopRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public StopRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,31 +36,31 @@ public StopRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// Stops a user's codespace.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Codespace.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Codespace.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Stops a user's codespace.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. @@ -82,11 +84,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public StopRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Members.Item.Codespaces.Item.Stop.StopRequestBuilder WithUrl(string rawUrl) { - return new StopRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Members.Item.Codespaces.Item.Stop.StopRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Members/Item/Codespaces/Item/WithCodespace_nameDeleteResponse.cs b/src/GitHub/Orgs/Item/Members/Item/Codespaces/Item/WithCodespace_nameDeleteResponse.cs index b6a9663d..6b2a8845 100644 --- a/src/GitHub/Orgs/Item/Members/Item/Codespaces/Item/WithCodespace_nameDeleteResponse.cs +++ b/src/GitHub/Orgs/Item/Members/Item/Codespaces/Item/WithCodespace_nameDeleteResponse.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Members.Item.Codespaces.Item { +namespace GitHub.Orgs.Item.Members.Item.Codespaces.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithCodespace_nameDeleteResponse : IAdditionalDataHolder, IParsable + public partial class WithCodespace_nameDeleteResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithCodespace_nameDeleteResponse() { @@ -21,12 +23,12 @@ public WithCodespace_nameDeleteResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithCodespace_nameDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Members.Item.Codespaces.Item.WithCodespace_nameDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithCodespace_nameDeleteResponse(); + return new global::GitHub.Orgs.Item.Members.Item.Codespaces.Item.WithCodespace_nameDeleteResponse(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Orgs/Item/Members/Item/Codespaces/Item/WithCodespace_nameItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Members/Item/Codespaces/Item/WithCodespace_nameItemRequestBuilder.cs index 5ec9bb62..f657b5dd 100644 --- a/src/GitHub/Orgs/Item/Members/Item/Codespaces/Item/WithCodespace_nameItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Members/Item/Codespaces/Item/WithCodespace_nameItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Orgs.Item.Members.Item.Codespaces.Item.Stop; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Members.Item.Codespaces.Item { +namespace GitHub.Orgs.Item.Members.Item.Codespaces.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\members\{username}\codespaces\{codespace_name} /// - public class WithCodespace_nameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithCodespace_nameItemRequestBuilder : BaseRequestBuilder { /// The stop property - public StopRequestBuilder Stop + public global::GitHub.Orgs.Item.Members.Item.Codespaces.Item.Stop.StopRequestBuilder Stop { - get => new StopRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Members.Item.Codespaces.Item.Stop.StopRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithCodespace_nameItemRequestBuilder(Dictionary pathParam { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -40,31 +42,31 @@ public WithCodespace_nameItemRequestBuilder(string rawUrl, IRequestAdapter reque /// Deletes a user's codespace.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, WithCodespace_nameDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Members.Item.Codespaces.Item.WithCodespace_nameDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Deletes a user's codespace.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. @@ -88,11 +90,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithCodespace_nameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Members.Item.Codespaces.Item.WithCodespace_nameItemRequestBuilder WithUrl(string rawUrl) { - return new WithCodespace_nameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Members.Item.Codespaces.Item.WithCodespace_nameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Members/Item/Copilot/CopilotRequestBuilder.cs b/src/GitHub/Orgs/Item/Members/Item/Copilot/CopilotRequestBuilder.cs index 4bc69aad..31258901 100644 --- a/src/GitHub/Orgs/Item/Members/Item/Copilot/CopilotRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Members/Item/Copilot/CopilotRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Members.Item.Copilot { +namespace GitHub.Orgs.Item.Members.Item.Copilot +{ /// /// Builds and executes requests for operations under \orgs\{org}\members\{username}\copilot /// - public class CopilotRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CopilotRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public CopilotRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,31 +36,31 @@ public CopilotRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// > [!NOTE]> This endpoint is in beta and is subject to change.Gets the GitHub Copilot seat assignment details for a member of an organization who currently has access to GitHub Copilot.Only organization owners can view Copilot seat assignment details for members of their organization.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CopilotSeatDetails.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CopilotSeatDetails.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// > [!NOTE]> This endpoint is in beta and is subject to change.Gets the GitHub Copilot seat assignment details for a member of an organization who currently has access to GitHub Copilot.Only organization owners can view Copilot seat assignment details for members of their organization.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. @@ -82,11 +84,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CopilotRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Members.Item.Copilot.CopilotRequestBuilder WithUrl(string rawUrl) { - return new CopilotRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Members.Item.Copilot.CopilotRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Members/Item/WithUsernameItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Members/Item/WithUsernameItemRequestBuilder.cs index bd244f1b..2525bdc3 100644 --- a/src/GitHub/Orgs/Item/Members/Item/WithUsernameItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Members/Item/WithUsernameItemRequestBuilder.cs @@ -2,32 +2,34 @@ using GitHub.Models; using GitHub.Orgs.Item.Members.Item.Codespaces; using GitHub.Orgs.Item.Members.Item.Copilot; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Members.Item { +namespace GitHub.Orgs.Item.Members.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\members\{username} /// - public class WithUsernameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithUsernameItemRequestBuilder : BaseRequestBuilder { /// The codespaces property - public CodespacesRequestBuilder Codespaces + public global::GitHub.Orgs.Item.Members.Item.Codespaces.CodespacesRequestBuilder Codespaces { - get => new CodespacesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Members.Item.Codespaces.CodespacesRequestBuilder(PathParameters, RequestAdapter); } /// The copilot property - public CopilotRequestBuilder Copilot + public global::GitHub.Orgs.Item.Members.Item.Copilot.CopilotRequestBuilder Copilot { - get => new CopilotRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Members.Item.Copilot.CopilotRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public WithUsernameItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -48,7 +50,7 @@ public WithUsernameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -61,7 +63,7 @@ public async Task DeleteAsync(Action> { - {"403", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -123,11 +125,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithUsernameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Members.Item.WithUsernameItemRequestBuilder WithUrl(string rawUrl) { - return new WithUsernameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Members.Item.WithUsernameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Members/MembersRequestBuilder.cs b/src/GitHub/Orgs/Item/Members/MembersRequestBuilder.cs index a2fe133d..e5cb2053 100644 --- a/src/GitHub/Orgs/Item/Members/MembersRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Members/MembersRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Members.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Members { +namespace GitHub.Orgs.Item.Members +{ /// /// Builds and executes requests for operations under \orgs\{org}\members /// - public class MembersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class MembersRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.members.item collection /// The handle for the GitHub user account. - /// A - public WithUsernameItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Members.Item.WithUsernameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("username", position); - return new WithUsernameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Members.Item.WithUsernameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,26 +49,26 @@ public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// List all users who are members of an organization. If the authenticated user is also a member of this organization then both concealed and public members will be returned. /// API method documentation /// - /// A List<SimpleUser> + /// A List<global::GitHub.Models.SimpleUser> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, SimpleUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// List all users who are members of an organization. If the authenticated user is also a member of this organization then both concealed and public members will be returned. @@ -75,11 +77,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -90,20 +92,21 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MembersRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Members.MembersRequestBuilder WithUrl(string rawUrl) { - return new MembersRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Members.MembersRequestBuilder(rawUrl, RequestAdapter); } /// /// List all users who are members of an organization. If the authenticated user is also a member of this organization then both concealed and public members will be returned. /// - public class MembersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class MembersRequestBuilderGetQueryParameters { /// Filter members returned in the list. `2fa_disabled` means that only members without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled will be returned. This options is only available for organization owners. [QueryParameter("filter")] - public GetFilterQueryParameterType? Filter { get; set; } + public global::GitHub.Orgs.Item.Members.GetFilterQueryParameterType? Filter { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } @@ -112,7 +115,7 @@ public class MembersRequestBuilderGetQueryParameters public int? PerPage { get; set; } /// Filter members returned by their role. [QueryParameter("role")] - public GetRoleQueryParameterType? Role { get; set; } + public global::GitHub.Orgs.Item.Members.GetRoleQueryParameterType? Role { get; set; } } } } diff --git a/src/GitHub/Orgs/Item/Memberships/Item/WithUsernameItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Memberships/Item/WithUsernameItemRequestBuilder.cs index 4ac21610..2dff3699 100644 --- a/src/GitHub/Orgs/Item/Memberships/Item/WithUsernameItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Memberships/Item/WithUsernameItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Memberships.Item { +namespace GitHub.Orgs.Item.Memberships.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\memberships\{username} /// - public class WithUsernameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithUsernameItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithUsernameItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,8 +38,8 @@ public WithUsernameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -50,8 +52,8 @@ public async Task DeleteAsync(Action> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -59,55 +61,55 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrgMembership.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrgMembership.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Only authenticated organization owners can add a member to the organization or update the member's role.* If the authenticated user is _adding_ a member to the organization, the invited user will receive an email inviting them to the organization. The user's [membership status](https://docs.github.com/enterprise-cloud@latest//rest/orgs/members#get-organization-membership-for-a-user) will be `pending` until they accept the invitation. * Authenticated users can _update_ a user's membership by passing the `role` parameter. If the authenticated user changes a member's role to `admin`, the affected user will receive an email notifying them that they've been made an organization owner. If the authenticated user changes an owner's role to `member`, no email will be sent.**Rate limits**To prevent abuse, organization owners are limited to creating 50 organization invitations for an organization within a 24 hour period. If the organization is more than one month old or on a paid plan, the limit is 500 invitations per 24 hour period. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(WithUsernamePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Memberships.Item.WithUsernamePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(WithUsernamePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Memberships.Item.WithUsernamePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrgMembership.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrgMembership.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// In order to remove a user's membership with an organization, the authenticated user must be an organization owner.If the specified user is an active member of the organization, this will remove them from the organization. If the specified user has been invited to the organization, this will cancel their invitation. The specified user will receive an email notification in both cases. @@ -155,11 +157,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(WithUsernamePutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Memberships.Item.WithUsernamePutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(WithUsernamePutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Memberships.Item.WithUsernamePutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -172,11 +174,11 @@ public RequestInformation ToPutRequestInformation(WithUsernamePutRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithUsernameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Memberships.Item.WithUsernameItemRequestBuilder WithUrl(string rawUrl) { - return new WithUsernameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Memberships.Item.WithUsernameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Memberships/Item/WithUsernamePutRequestBody.cs b/src/GitHub/Orgs/Item/Memberships/Item/WithUsernamePutRequestBody.cs index a115f956..4b59064e 100644 --- a/src/GitHub/Orgs/Item/Memberships/Item/WithUsernamePutRequestBody.cs +++ b/src/GitHub/Orgs/Item/Memberships/Item/WithUsernamePutRequestBody.cs @@ -1,35 +1,37 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Memberships.Item { +namespace GitHub.Orgs.Item.Memberships.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithUsernamePutRequestBody : IAdditionalDataHolder, IParsable + public partial class WithUsernamePutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The role to give the user in the organization. Can be one of: * `admin` - The user will become an owner of the organization. * `member` - The user will become a non-owner member of the organization. - public WithUsernamePutRequestBody_role? Role { get; set; } + public global::GitHub.Orgs.Item.Memberships.Item.WithUsernamePutRequestBody_role? Role { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithUsernamePutRequestBody() { AdditionalData = new Dictionary(); - Role = WithUsernamePutRequestBody_role.Member; + Role = global::GitHub.Orgs.Item.Memberships.Item.WithUsernamePutRequestBody_role.Member; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithUsernamePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Memberships.Item.WithUsernamePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithUsernamePutRequestBody(); + return new global::GitHub.Orgs.Item.Memberships.Item.WithUsernamePutRequestBody(); } /// /// The deserialization information for the current model @@ -39,7 +41,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"role", n => { Role = n.GetEnumValue(); } }, + { "role", n => { Role = n.GetEnumValue(); } }, }; } /// @@ -49,7 +51,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("role", Role); + writer.WriteEnumValue("role", Role); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Memberships/Item/WithUsernamePutRequestBody_role.cs b/src/GitHub/Orgs/Item/Memberships/Item/WithUsernamePutRequestBody_role.cs index 7e11c9f7..327ea9c4 100644 --- a/src/GitHub/Orgs/Item/Memberships/Item/WithUsernamePutRequestBody_role.cs +++ b/src/GitHub/Orgs/Item/Memberships/Item/WithUsernamePutRequestBody_role.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Memberships.Item { +namespace GitHub.Orgs.Item.Memberships.Item +{ /// The role to give the user in the organization. Can be one of: * `admin` - The user will become an owner of the organization. * `member` - The user will become a non-owner member of the organization. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithUsernamePutRequestBody_role { [EnumMember(Value = "admin")] diff --git a/src/GitHub/Orgs/Item/Memberships/MembershipsRequestBuilder.cs b/src/GitHub/Orgs/Item/Memberships/MembershipsRequestBuilder.cs index ca04e265..9ff4d023 100644 --- a/src/GitHub/Orgs/Item/Memberships/MembershipsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Memberships/MembershipsRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Orgs.Item.Memberships.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Memberships { +namespace GitHub.Orgs.Item.Memberships +{ /// /// Builds and executes requests for operations under \orgs\{org}\memberships /// - public class MembershipsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class MembershipsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.memberships.item collection /// The handle for the GitHub user account. - /// A - public WithUsernameItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Memberships.Item.WithUsernameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("username", position); - return new WithUsernameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Memberships.Item.WithUsernameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public MembershipsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Migrations/GetExcludeQueryParameterType.cs b/src/GitHub/Orgs/Item/Migrations/GetExcludeQueryParameterType.cs index c964e683..fbe74883 100644 --- a/src/GitHub/Orgs/Item/Migrations/GetExcludeQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Migrations/GetExcludeQueryParameterType.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Migrations { +namespace GitHub.Orgs.Item.Migrations +{ /// Allowed values that can be passed to the exclude param. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum GetExcludeQueryParameterType { [EnumMember(Value = "repositories")] diff --git a/src/GitHub/Orgs/Item/Migrations/Item/Archive/ArchiveRequestBuilder.cs b/src/GitHub/Orgs/Item/Migrations/Item/Archive/ArchiveRequestBuilder.cs index f5ae606f..0e2d3464 100644 --- a/src/GitHub/Orgs/Item/Migrations/Item/Archive/ArchiveRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Migrations/Item/Archive/ArchiveRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Migrations.Item.Archive { +namespace GitHub.Orgs.Item.Migrations.Item.Archive +{ /// /// Builds and executes requests for operations under \orgs\{org}\migrations\{migration_id}\archive /// - public class ArchiveRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ArchiveRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ArchiveRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public ArchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -49,7 +51,7 @@ public async Task DeleteAsync(Action> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -59,7 +61,7 @@ public async Task DeleteAsync(Action /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -72,7 +74,7 @@ public async Task GetAsync(Action> var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -117,11 +119,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ArchiveRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Migrations.Item.Archive.ArchiveRequestBuilder WithUrl(string rawUrl) { - return new ArchiveRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Migrations.Item.Archive.ArchiveRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Migrations/Item/GetExcludeQueryParameterType.cs b/src/GitHub/Orgs/Item/Migrations/Item/GetExcludeQueryParameterType.cs index 5df43cd6..2969206c 100644 --- a/src/GitHub/Orgs/Item/Migrations/Item/GetExcludeQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Migrations/Item/GetExcludeQueryParameterType.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Migrations.Item { +namespace GitHub.Orgs.Item.Migrations.Item +{ /// Allowed values that can be passed to the exclude param. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum GetExcludeQueryParameterType { [EnumMember(Value = "repositories")] diff --git a/src/GitHub/Orgs/Item/Migrations/Item/Repos/Item/Lock/LockRequestBuilder.cs b/src/GitHub/Orgs/Item/Migrations/Item/Repos/Item/Lock/LockRequestBuilder.cs index 76b251ec..3e0e0c1c 100644 --- a/src/GitHub/Orgs/Item/Migrations/Item/Repos/Item/Lock/LockRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Migrations/Item/Repos/Item/Lock/LockRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Migrations.Item.Repos.Item.Lock { +namespace GitHub.Orgs.Item.Migrations.Item.Repos.Item.Lock +{ /// /// Builds and executes requests for operations under \orgs\{org}\migrations\{migration_id}\repos\{repo_name}\lock /// - public class LockRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class LockRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public LockRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public LockRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -49,7 +51,7 @@ public async Task DeleteAsync(Action> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -75,11 +77,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public LockRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Migrations.Item.Repos.Item.Lock.LockRequestBuilder WithUrl(string rawUrl) { - return new LockRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Migrations.Item.Repos.Item.Lock.LockRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Migrations/Item/Repos/Item/WithRepo_nameItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Migrations/Item/Repos/Item/WithRepo_nameItemRequestBuilder.cs index 1707c039..1e32e51a 100644 --- a/src/GitHub/Orgs/Item/Migrations/Item/Repos/Item/WithRepo_nameItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Migrations/Item/Repos/Item/WithRepo_nameItemRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Orgs.Item.Migrations.Item.Repos.Item.Lock; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Migrations.Item.Repos.Item { +namespace GitHub.Orgs.Item.Migrations.Item.Repos.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\migrations\{migration_id}\repos\{repo_name} /// - public class WithRepo_nameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRepo_nameItemRequestBuilder : BaseRequestBuilder { /// The lock property - public LockRequestBuilder Lock + public global::GitHub.Orgs.Item.Migrations.Item.Repos.Item.Lock.LockRequestBuilder Lock { - get => new LockRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Migrations.Item.Repos.Item.Lock.LockRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public WithRepo_nameItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Migrations/Item/Repos/ReposRequestBuilder.cs b/src/GitHub/Orgs/Item/Migrations/Item/Repos/ReposRequestBuilder.cs index 5b6ff3e4..0d264a72 100644 --- a/src/GitHub/Orgs/Item/Migrations/Item/Repos/ReposRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Migrations/Item/Repos/ReposRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Orgs.Item.Migrations.Item.Repos.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Migrations.Item.Repos { +namespace GitHub.Orgs.Item.Migrations.Item.Repos +{ /// /// Builds and executes requests for operations under \orgs\{org}\migrations\{migration_id}\repos /// - public class ReposRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReposRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.migrations.item.repos.item collection /// repo_name parameter - /// A - public WithRepo_nameItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Migrations.Item.Repos.Item.WithRepo_nameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("repo_name", position); - return new WithRepo_nameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Migrations.Item.Repos.Item.WithRepo_nameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public ReposRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Migrations/Item/Repositories/RepositoriesRequestBuilder.cs b/src/GitHub/Orgs/Item/Migrations/Item/Repositories/RepositoriesRequestBuilder.cs index ad9a162d..3accdbe3 100644 --- a/src/GitHub/Orgs/Item/Migrations/Item/Repositories/RepositoriesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Migrations/Item/Repositories/RepositoriesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Migrations.Item.Repositories { +namespace GitHub.Orgs.Item.Migrations.Item.Repositories +{ /// /// Builds and executes requests for operations under \orgs\{org}\migrations\{migration_id}\repositories /// - public class RepositoriesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RepositoriesRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,26 +36,26 @@ public RepositoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// List all the repositories for this organization migration. /// API method documentation /// - /// A List<MinimalRepository> + /// A List<global::GitHub.Models.MinimalRepository> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, MinimalRepository.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.MinimalRepository.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// List all the repositories for this organization migration. @@ -62,11 +64,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -77,16 +79,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RepositoriesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Migrations.Item.Repositories.RepositoriesRequestBuilder WithUrl(string rawUrl) { - return new RepositoriesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Migrations.Item.Repositories.RepositoriesRequestBuilder(rawUrl, RequestAdapter); } /// /// List all the repositories for this organization migration. /// - public class RepositoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Migrations/Item/WithMigration_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Migrations/Item/WithMigration_ItemRequestBuilder.cs index 61bfa6ac..f45fcfa9 100644 --- a/src/GitHub/Orgs/Item/Migrations/Item/WithMigration_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Migrations/Item/WithMigration_ItemRequestBuilder.cs @@ -3,37 +3,39 @@ using GitHub.Orgs.Item.Migrations.Item.Archive; using GitHub.Orgs.Item.Migrations.Item.Repos; using GitHub.Orgs.Item.Migrations.Item.Repositories; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Migrations.Item { +namespace GitHub.Orgs.Item.Migrations.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\migrations\{migration_id} /// - public class WithMigration_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithMigration_ItemRequestBuilder : BaseRequestBuilder { /// The archive property - public ArchiveRequestBuilder Archive + public global::GitHub.Orgs.Item.Migrations.Item.Archive.ArchiveRequestBuilder Archive { - get => new ArchiveRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Migrations.Item.Archive.ArchiveRequestBuilder(PathParameters, RequestAdapter); } /// The repos property - public ReposRequestBuilder Repos + public global::GitHub.Orgs.Item.Migrations.Item.Repos.ReposRequestBuilder Repos { - get => new ReposRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Migrations.Item.Repos.ReposRequestBuilder(PathParameters, RequestAdapter); } /// The repositories property - public RepositoriesRequestBuilder Repositories + public global::GitHub.Orgs.Item.Migrations.Item.Repositories.RepositoriesRequestBuilder Repositories { - get => new RepositoriesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Migrations.Item.Repositories.RepositoriesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -41,7 +43,7 @@ public WithMigration_ItemRequestBuilder(Dictionary pathParameter { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,25 +54,25 @@ public WithMigration_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Fetches the status of a migration.The `state` of a migration can be one of the following values:* `pending`, which means the migration hasn't started yet.* `exporting`, which means the migration is in progress.* `exported`, which means the migration finished successfully.* `failed`, which means the migration failed. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Migration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Migration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Fetches the status of a migration.The `state` of a migration can be one of the following values:* `pending`, which means the migration hasn't started yet.* `exporting`, which means the migration is in progress.* `exported`, which means the migration finished successfully.* `failed`, which means the migration failed. @@ -79,11 +81,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -94,26 +96,27 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithMigration_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Migrations.Item.WithMigration_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithMigration_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Migrations.Item.WithMigration_ItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Fetches the status of a migration.The `state` of a migration can be one of the following values:* `pending`, which means the migration hasn't started yet.* `exporting`, which means the migration is in progress.* `exported`, which means the migration finished successfully.* `failed`, which means the migration failed. /// - public class WithMigration_ItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithMigration_ItemRequestBuilderGetQueryParameters { /// Exclude attributes from the API response to improve performance #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("exclude")] - public GetExcludeQueryParameterType[]? Exclude { get; set; } + public global::GitHub.Orgs.Item.Migrations.Item.GetExcludeQueryParameterType[]? Exclude { get; set; } #nullable restore #else [QueryParameter("exclude")] - public GetExcludeQueryParameterType[] Exclude { get; set; } + public global::GitHub.Orgs.Item.Migrations.Item.GetExcludeQueryParameterType[] Exclude { get; set; } #endif } } diff --git a/src/GitHub/Orgs/Item/Migrations/MigrationsPostRequestBody.cs b/src/GitHub/Orgs/Item/Migrations/MigrationsPostRequestBody.cs index 06831649..e02c8abb 100644 --- a/src/GitHub/Orgs/Item/Migrations/MigrationsPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/Migrations/MigrationsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Migrations { +namespace GitHub.Orgs.Item.Migrations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class MigrationsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class MigrationsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,10 +16,10 @@ public class MigrationsPostRequestBody : IAdditionalDataHolder, IParsable /// Exclude related items from being returned in the response in order to improve performance of the request. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Exclude { get; set; } + public List? Exclude { get; set; } #nullable restore #else - public List Exclude { get; set; } + public List Exclude { get; set; } #endif /// Indicates whether attachments should be excluded from the migration (to reduce migration archive file size). public bool? ExcludeAttachments { get; set; } @@ -42,7 +44,7 @@ public class MigrationsPostRequestBody : IAdditionalDataHolder, IParsable public List Repositories { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MigrationsPostRequestBody() { @@ -51,12 +53,12 @@ public MigrationsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MigrationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Migrations.MigrationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MigrationsPostRequestBody(); + return new global::GitHub.Orgs.Item.Migrations.MigrationsPostRequestBody(); } /// /// The deserialization information for the current model @@ -66,15 +68,15 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"exclude", n => { Exclude = n.GetCollectionOfEnumValues()?.ToList(); } }, - {"exclude_attachments", n => { ExcludeAttachments = n.GetBoolValue(); } }, - {"exclude_git_data", n => { ExcludeGitData = n.GetBoolValue(); } }, - {"exclude_metadata", n => { ExcludeMetadata = n.GetBoolValue(); } }, - {"exclude_owner_projects", n => { ExcludeOwnerProjects = n.GetBoolValue(); } }, - {"exclude_releases", n => { ExcludeReleases = n.GetBoolValue(); } }, - {"lock_repositories", n => { LockRepositories = n.GetBoolValue(); } }, - {"org_metadata_only", n => { OrgMetadataOnly = n.GetBoolValue(); } }, - {"repositories", n => { Repositories = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "exclude", n => { Exclude = n.GetCollectionOfEnumValues()?.AsList(); } }, + { "exclude_attachments", n => { ExcludeAttachments = n.GetBoolValue(); } }, + { "exclude_git_data", n => { ExcludeGitData = n.GetBoolValue(); } }, + { "exclude_metadata", n => { ExcludeMetadata = n.GetBoolValue(); } }, + { "exclude_owner_projects", n => { ExcludeOwnerProjects = n.GetBoolValue(); } }, + { "exclude_releases", n => { ExcludeReleases = n.GetBoolValue(); } }, + { "lock_repositories", n => { LockRepositories = n.GetBoolValue(); } }, + { "org_metadata_only", n => { OrgMetadataOnly = n.GetBoolValue(); } }, + { "repositories", n => { Repositories = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -84,7 +86,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfEnumValues("exclude", Exclude); + writer.WriteCollectionOfEnumValues("exclude", Exclude); writer.WriteBoolValue("exclude_attachments", ExcludeAttachments); writer.WriteBoolValue("exclude_git_data", ExcludeGitData); writer.WriteBoolValue("exclude_metadata", ExcludeMetadata); diff --git a/src/GitHub/Orgs/Item/Migrations/MigrationsPostRequestBody_exclude.cs b/src/GitHub/Orgs/Item/Migrations/MigrationsPostRequestBody_exclude.cs index ce3a980b..0738f77a 100644 --- a/src/GitHub/Orgs/Item/Migrations/MigrationsPostRequestBody_exclude.cs +++ b/src/GitHub/Orgs/Item/Migrations/MigrationsPostRequestBody_exclude.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Migrations { +namespace GitHub.Orgs.Item.Migrations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum MigrationsPostRequestBody_exclude #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Migrations/MigrationsRequestBuilder.cs b/src/GitHub/Orgs/Item/Migrations/MigrationsRequestBuilder.cs index 56a7c99a..0eb1b291 100644 --- a/src/GitHub/Orgs/Item/Migrations/MigrationsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Migrations/MigrationsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Migrations.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Migrations { +namespace GitHub.Orgs.Item.Migrations +{ /// /// Builds and executes requests for operations under \orgs\{org}\migrations /// - public class MigrationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class MigrationsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.migrations.item collection /// The unique identifier of the migration. - /// A - public WithMigration_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.Migrations.Item.WithMigration_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("migration_id", position); - return new WithMigration_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Migrations.Item.WithMigration_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public MigrationsRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,49 +49,49 @@ public MigrationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Lists the most recent migrations, including both exports (which can be started through the REST API) and imports (which cannot be started using the REST API).A list of `repositories` is only returned for export migrations. /// API method documentation /// - /// A List<Migration> + /// A List<global::GitHub.Models.Migration> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Migration.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Migration.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Initiates the generation of a migration archive. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(MigrationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Migrations.MigrationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(MigrationsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Migrations.MigrationsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Migration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Migration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists the most recent migrations, including both exports (which can be started through the REST API) and imports (which cannot be started using the REST API).A list of `repositories` is only returned for export migrations. @@ -98,11 +100,11 @@ public async Task PostAsync(MigrationsPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -118,11 +120,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(MigrationsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Migrations.MigrationsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MigrationsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Migrations.MigrationsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -135,26 +137,27 @@ public RequestInformation ToPostRequestInformation(MigrationsPostRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MigrationsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Migrations.MigrationsRequestBuilder WithUrl(string rawUrl) { - return new MigrationsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Migrations.MigrationsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the most recent migrations, including both exports (which can be started through the REST API) and imports (which cannot be started using the REST API).A list of `repositories` is only returned for export migrations. /// - public class MigrationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class MigrationsRequestBuilderGetQueryParameters { /// Exclude attributes from the API response to improve performance #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("exclude")] - public GetExcludeQueryParameterType[]? Exclude { get; set; } + public global::GitHub.Orgs.Item.Migrations.GetExcludeQueryParameterType[]? Exclude { get; set; } #nullable restore #else [QueryParameter("exclude")] - public GetExcludeQueryParameterType[] Exclude { get; set; } + public global::GitHub.Orgs.Item.Migrations.GetExcludeQueryParameterType[] Exclude { get; set; } #endif /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/OrganizationFineGrainedPermissions/OrganizationFineGrainedPermissionsRequestBuilder.cs b/src/GitHub/Orgs/Item/OrganizationFineGrainedPermissions/OrganizationFineGrainedPermissionsRequestBuilder.cs index 1c66f514..0e7e12b6 100644 --- a/src/GitHub/Orgs/Item/OrganizationFineGrainedPermissions/OrganizationFineGrainedPermissionsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/OrganizationFineGrainedPermissions/OrganizationFineGrainedPermissionsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.OrganizationFineGrainedPermissions { +namespace GitHub.Orgs.Item.OrganizationFineGrainedPermissions +{ /// /// Builds and executes requests for operations under \orgs\{org}\organization-fine-grained-permissions /// - public class OrganizationFineGrainedPermissionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationFineGrainedPermissionsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public OrganizationFineGrainedPermissionsRequestBuilder(Dictionary - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,28 +36,28 @@ public OrganizationFineGrainedPermissionsRequestBuilder(string rawUrl, IRequestA /// 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/enterprise-cloud@latest//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/enterprise-cloud@latest//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. /// API method documentation /// - /// A List<OrganizationFineGrainedPermission> + /// A List<global::GitHub.Models.OrganizationFineGrainedPermission> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, OrganizationFineGrainedPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.OrganizationFineGrainedPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// 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/enterprise-cloud@latest//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/enterprise-cloud@latest//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. @@ -79,11 +81,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public OrganizationFineGrainedPermissionsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.OrganizationFineGrainedPermissions.OrganizationFineGrainedPermissionsRequestBuilder WithUrl(string rawUrl) { - return new OrganizationFineGrainedPermissionsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.OrganizationFineGrainedPermissions.OrganizationFineGrainedPermissionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/OrganizationRoles/Item/Teams/TeamsRequestBuilder.cs b/src/GitHub/Orgs/Item/OrganizationRoles/Item/Teams/TeamsRequestBuilder.cs index d87c958a..6b03f00a 100644 --- a/src/GitHub/Orgs/Item/OrganizationRoles/Item/Teams/TeamsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/OrganizationRoles/Item/Teams/TeamsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.OrganizationRoles.Item.Teams { +namespace GitHub.Orgs.Item.OrganizationRoles.Item.Teams +{ /// /// Builds and executes requests for operations under \orgs\{org}\organization-roles\{role_id}\teams /// - public class TeamsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public TeamsRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public TeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Lists the teams that are assigned to an organization role. For more information on organization roles, see "[Using organization roles](https://docs.github.com/enterprise-cloud@latest//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. /// API method documentation /// - /// A List<TeamRoleAssignment> + /// A List<global::GitHub.Models.TeamRoleAssignment> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, TeamRoleAssignment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.TeamRoleAssignment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists the teams that are assigned to an organization role. For more information on organization roles, see "[Using organization roles](https://docs.github.com/enterprise-cloud@latest//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. @@ -57,11 +59,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -72,16 +74,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public TeamsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.OrganizationRoles.Item.Teams.TeamsRequestBuilder WithUrl(string rawUrl) { - return new TeamsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.OrganizationRoles.Item.Teams.TeamsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the teams that are assigned to an organization role. For more information on organization roles, see "[Using organization roles](https://docs.github.com/enterprise-cloud@latest//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. /// - public class TeamsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/OrganizationRoles/Item/Users/UsersRequestBuilder.cs b/src/GitHub/Orgs/Item/OrganizationRoles/Item/Users/UsersRequestBuilder.cs index 20f8e24a..0e7b2fb5 100644 --- a/src/GitHub/Orgs/Item/OrganizationRoles/Item/Users/UsersRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/OrganizationRoles/Item/Users/UsersRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.OrganizationRoles.Item.Users { +namespace GitHub.Orgs.Item.OrganizationRoles.Item.Users +{ /// /// Builds and executes requests for operations under \orgs\{org}\organization-roles\{role_id}\users /// - public class UsersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsersRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public UsersRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Lists organization members that are assigned to an organization role. For more information on organization roles, see "[Using organization roles](https://docs.github.com/enterprise-cloud@latest//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. /// API method documentation /// - /// A List<UserRoleAssignment> + /// A List<global::GitHub.Models.UserRoleAssignment> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, UserRoleAssignment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.UserRoleAssignment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists organization members that are assigned to an organization role. For more information on organization roles, see "[Using organization roles](https://docs.github.com/enterprise-cloud@latest//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. @@ -57,11 +59,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -72,16 +74,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UsersRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.OrganizationRoles.Item.Users.UsersRequestBuilder WithUrl(string rawUrl) { - return new UsersRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.OrganizationRoles.Item.Users.UsersRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists organization members that are assigned to an organization role. For more information on organization roles, see "[Using organization roles](https://docs.github.com/enterprise-cloud@latest//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. /// - public class UsersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsersRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/OrganizationRoles/Item/WithRole_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/OrganizationRoles/Item/WithRole_ItemRequestBuilder.cs index cbc525a9..28d8593d 100644 --- a/src/GitHub/Orgs/Item/OrganizationRoles/Item/WithRole_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/OrganizationRoles/Item/WithRole_ItemRequestBuilder.cs @@ -2,32 +2,34 @@ using GitHub.Models; using GitHub.Orgs.Item.OrganizationRoles.Item.Teams; using GitHub.Orgs.Item.OrganizationRoles.Item.Users; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.OrganizationRoles.Item { +namespace GitHub.Orgs.Item.OrganizationRoles.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\organization-roles\{role_id} /// - public class WithRole_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRole_ItemRequestBuilder : BaseRequestBuilder { /// The teams property - public TeamsRequestBuilder Teams + public global::GitHub.Orgs.Item.OrganizationRoles.Item.Teams.TeamsRequestBuilder Teams { - get => new TeamsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.OrganizationRoles.Item.Teams.TeamsRequestBuilder(PathParameters, RequestAdapter); } /// The users property - public UsersRequestBuilder Users + public global::GitHub.Orgs.Item.OrganizationRoles.Item.Users.UsersRequestBuilder Users { - get => new UsersRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.OrganizationRoles.Item.Users.UsersRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public WithRole_ItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -64,57 +66,57 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrganizationRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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/enterprise-cloud@latest//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. + /// 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/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."If the update would add repository permissions, the `base_role` must also be set to a value besides `none`, eitherpreviously or as part of the update.If the update sets the `base_role` field to `none`, you must also remove all of the repositorypermissions as well, otherwise the update will fail.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 /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 409 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 409 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithRole_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Models.OrganizationCustomOrganizationRoleUpdateSchema body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithRole_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Models.OrganizationCustomOrganizationRoleUpdateSchema body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"409", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrganizationRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// 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/enterprise-cloud@latest//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. @@ -154,18 +156,18 @@ public RequestInformation ToGetRequestInformation(Action - /// 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/enterprise-cloud@latest//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. + /// 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/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."If the update would add repository permissions, the `base_role` must also be set to a value besides `none`, eitherpreviously or as part of the update.If the update sets the `base_role` field to `none`, you must also remove all of the repositorypermissions as well, otherwise the update will fail.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. /// /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithRole_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Models.OrganizationCustomOrganizationRoleUpdateSchema body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithRole_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Models.OrganizationCustomOrganizationRoleUpdateSchema body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -178,11 +180,11 @@ public RequestInformation ToPatchRequestInformation(WithRole_PatchRequestBody bo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRole_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.OrganizationRoles.Item.WithRole_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithRole_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.OrganizationRoles.Item.WithRole_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/OrganizationRoles/OrganizationRolesGetResponse.cs b/src/GitHub/Orgs/Item/OrganizationRoles/OrganizationRolesGetResponse.cs index 47b2ea13..77cad626 100644 --- a/src/GitHub/Orgs/Item/OrganizationRoles/OrganizationRolesGetResponse.cs +++ b/src/GitHub/Orgs/Item/OrganizationRoles/OrganizationRolesGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.OrganizationRoles { +namespace GitHub.Orgs.Item.OrganizationRoles +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class OrganizationRolesGetResponse : IAdditionalDataHolder, IParsable + public partial class OrganizationRolesGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class OrganizationRolesGetResponse : IAdditionalDataHolder, IParsable /// The list of organization roles available to the organization. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Roles { get; set; } + public List? Roles { get; set; } #nullable restore #else - public List Roles { get; set; } + public List Roles { get; set; } #endif /// The total number of organization roles available to the organization. public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationRolesGetResponse() { @@ -32,12 +34,12 @@ public OrganizationRolesGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationRolesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.OrganizationRoles.OrganizationRolesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationRolesGetResponse(); + return new global::GitHub.Orgs.Item.OrganizationRoles.OrganizationRolesGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"roles", n => { Roles = n.GetCollectionOfObjectValues(OrganizationRole.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "roles", n => { Roles = n.GetCollectionOfObjectValues(global::GitHub.Models.OrganizationRole.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("roles", Roles); + writer.WriteCollectionOfObjectValues("roles", Roles); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/OrganizationRoles/OrganizationRolesRequestBuilder.cs b/src/GitHub/Orgs/Item/OrganizationRoles/OrganizationRolesRequestBuilder.cs index 005a8d05..ea769cdd 100644 --- a/src/GitHub/Orgs/Item/OrganizationRoles/OrganizationRolesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/OrganizationRoles/OrganizationRolesRequestBuilder.cs @@ -3,44 +3,46 @@ using GitHub.Orgs.Item.OrganizationRoles.Item; using GitHub.Orgs.Item.OrganizationRoles.Teams; using GitHub.Orgs.Item.OrganizationRoles.Users; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.OrganizationRoles { +namespace GitHub.Orgs.Item.OrganizationRoles +{ /// /// Builds and executes requests for operations under \orgs\{org}\organization-roles /// - public class OrganizationRolesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationRolesRequestBuilder : BaseRequestBuilder { /// The teams property - public TeamsRequestBuilder Teams + public global::GitHub.Orgs.Item.OrganizationRoles.Teams.TeamsRequestBuilder Teams { - get => new TeamsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.OrganizationRoles.Teams.TeamsRequestBuilder(PathParameters, RequestAdapter); } /// The users property - public UsersRequestBuilder Users + public global::GitHub.Orgs.Item.OrganizationRoles.Users.UsersRequestBuilder Users { - get => new UsersRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.OrganizationRoles.Users.UsersRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.orgs.item.organizationRoles.item collection /// The unique identifier of the role. - /// A - public WithRole_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.OrganizationRoles.Item.WithRole_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("role_id", position); - return new WithRole_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.OrganizationRoles.Item.WithRole_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -48,7 +50,7 @@ public OrganizationRolesRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -59,57 +61,57 @@ public OrganizationRolesRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Lists the organization roles available in this organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/enterprise-cloud@latest//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. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationRolesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.OrganizationRoles.OrganizationRolesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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/enterprise-cloud@latest//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. + /// Creates a custom organization role that can be assigned to users and teams, granting them specificpermissions over the organization and optionally across all repositories in the organization. Formore information on custom organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To include repository permissions in an organization role, you must also include the `base_role`field, which is one of `read`, `write`, `triage`, `maintain`, or `admin` (or `none` if no base role is set). This base role provides a set offine-grained permissions as well as implicit permissions - those that aren't exposed as fine-grained permissionsand can only be granted through the base role (like "reading a repo"). If you include repository permissions, thosepermissions apply across all of the repositories in the organization. You do not have to include organization permissionsin order to add repository permissions.See "[List repository permissions](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#list-repository-fine-grained-permissions-for-an-organization)" for valid repository permissions.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 /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 409 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 409 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(OrganizationRolesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Models.OrganizationCustomOrganizationRoleCreateSchema body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(OrganizationRolesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Models.OrganizationCustomOrganizationRoleCreateSchema body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"409", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrganizationRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists the organization roles available in this organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/enterprise-cloud@latest//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. @@ -131,18 +133,18 @@ public RequestInformation ToGetRequestInformation(Action - /// 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/enterprise-cloud@latest//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. + /// Creates a custom organization role that can be assigned to users and teams, granting them specificpermissions over the organization and optionally across all repositories in the organization. Formore information on custom organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To include repository permissions in an organization role, you must also include the `base_role`field, which is one of `read`, `write`, `triage`, `maintain`, or `admin` (or `none` if no base role is set). This base role provides a set offine-grained permissions as well as implicit permissions - those that aren't exposed as fine-grained permissionsand can only be granted through the base role (like "reading a repo"). If you include repository permissions, thosepermissions apply across all of the repositories in the organization. You do not have to include organization permissionsin order to add repository permissions.See "[List repository permissions](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#list-repository-fine-grained-permissions-for-an-organization)" for valid repository permissions.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. /// /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(OrganizationRolesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Models.OrganizationCustomOrganizationRoleCreateSchema body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OrganizationRolesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Models.OrganizationCustomOrganizationRoleCreateSchema body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -155,11 +157,11 @@ public RequestInformation ToPostRequestInformation(OrganizationRolesPostRequestB /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public OrganizationRolesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.OrganizationRoles.OrganizationRolesRequestBuilder WithUrl(string rawUrl) { - return new OrganizationRolesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.OrganizationRoles.OrganizationRolesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/OrganizationRoles/Teams/Item/Item/WithRole_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/OrganizationRoles/Teams/Item/Item/WithRole_ItemRequestBuilder.cs index 1f80bf7a..27241f96 100644 --- a/src/GitHub/Orgs/Item/OrganizationRoles/Teams/Item/Item/WithRole_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/OrganizationRoles/Teams/Item/Item/WithRole_ItemRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.OrganizationRoles.Teams.Item.Item { +namespace GitHub.Orgs.Item.OrganizationRoles.Teams.Item.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\organization-roles\teams\{team_slug}\{role_id} /// - public class WithRole_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRole_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public WithRole_ItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -104,11 +106,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRole_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.OrganizationRoles.Teams.Item.Item.WithRole_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithRole_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.OrganizationRoles.Teams.Item.Item.WithRole_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/OrganizationRoles/Teams/Item/WithTeam_slugItemRequestBuilder.cs b/src/GitHub/Orgs/Item/OrganizationRoles/Teams/Item/WithTeam_slugItemRequestBuilder.cs index 5eb37506..742ae027 100644 --- a/src/GitHub/Orgs/Item/OrganizationRoles/Teams/Item/WithTeam_slugItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/OrganizationRoles/Teams/Item/WithTeam_slugItemRequestBuilder.cs @@ -1,33 +1,35 @@ // using GitHub.Orgs.Item.OrganizationRoles.Teams.Item.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.OrganizationRoles.Teams.Item { +namespace GitHub.Orgs.Item.OrganizationRoles.Teams.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\organization-roles\teams\{team_slug} /// - public class WithTeam_slugItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithTeam_slugItemRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.organizationRoles.teams.item.item collection /// The unique identifier of the role. - /// A - public WithRole_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.OrganizationRoles.Teams.Item.Item.WithRole_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("role_id", position); - return new WithRole_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.OrganizationRoles.Teams.Item.Item.WithRole_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public WithTeam_slugItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -81,11 +83,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithTeam_slugItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.OrganizationRoles.Teams.Item.WithTeam_slugItemRequestBuilder WithUrl(string rawUrl) { - return new WithTeam_slugItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.OrganizationRoles.Teams.Item.WithTeam_slugItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/OrganizationRoles/Teams/TeamsRequestBuilder.cs b/src/GitHub/Orgs/Item/OrganizationRoles/Teams/TeamsRequestBuilder.cs index fc840ddf..3884cc9a 100644 --- a/src/GitHub/Orgs/Item/OrganizationRoles/Teams/TeamsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/OrganizationRoles/Teams/TeamsRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Orgs.Item.OrganizationRoles.Teams.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.OrganizationRoles.Teams { +namespace GitHub.Orgs.Item.OrganizationRoles.Teams +{ /// /// Builds and executes requests for operations under \orgs\{org}\organization-roles\teams /// - public class TeamsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.organizationRoles.teams.item collection /// The slug of the team name. - /// A - public WithTeam_slugItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.OrganizationRoles.Teams.Item.WithTeam_slugItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("team_slug", position); - return new WithTeam_slugItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.OrganizationRoles.Teams.Item.WithTeam_slugItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public TeamsRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/OrganizationRoles/Users/Item/Item/WithRole_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/OrganizationRoles/Users/Item/Item/WithRole_ItemRequestBuilder.cs index 65c061d1..50b10332 100644 --- a/src/GitHub/Orgs/Item/OrganizationRoles/Users/Item/Item/WithRole_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/OrganizationRoles/Users/Item/Item/WithRole_ItemRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.OrganizationRoles.Users.Item.Item { +namespace GitHub.Orgs.Item.OrganizationRoles.Users.Item.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\organization-roles\users\{username}\{role_id} /// - public class WithRole_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRole_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public WithRole_ItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -104,11 +106,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRole_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.OrganizationRoles.Users.Item.Item.WithRole_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithRole_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.OrganizationRoles.Users.Item.Item.WithRole_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/OrganizationRoles/Users/Item/WithUsernameItemRequestBuilder.cs b/src/GitHub/Orgs/Item/OrganizationRoles/Users/Item/WithUsernameItemRequestBuilder.cs index 811225aa..f498745c 100644 --- a/src/GitHub/Orgs/Item/OrganizationRoles/Users/Item/WithUsernameItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/OrganizationRoles/Users/Item/WithUsernameItemRequestBuilder.cs @@ -1,33 +1,35 @@ // using GitHub.Orgs.Item.OrganizationRoles.Users.Item.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.OrganizationRoles.Users.Item { +namespace GitHub.Orgs.Item.OrganizationRoles.Users.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\organization-roles\users\{username} /// - public class WithUsernameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithUsernameItemRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.organizationRoles.users.item.item collection /// The unique identifier of the role. - /// A - public WithRole_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.OrganizationRoles.Users.Item.Item.WithRole_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("role_id", position); - return new WithRole_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.OrganizationRoles.Users.Item.Item.WithRole_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public WithUsernameItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -81,11 +83,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithUsernameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.OrganizationRoles.Users.Item.WithUsernameItemRequestBuilder WithUrl(string rawUrl) { - return new WithUsernameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.OrganizationRoles.Users.Item.WithUsernameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/OrganizationRoles/Users/UsersRequestBuilder.cs b/src/GitHub/Orgs/Item/OrganizationRoles/Users/UsersRequestBuilder.cs index d352f780..63e03576 100644 --- a/src/GitHub/Orgs/Item/OrganizationRoles/Users/UsersRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/OrganizationRoles/Users/UsersRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Orgs.Item.OrganizationRoles.Users.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.OrganizationRoles.Users { +namespace GitHub.Orgs.Item.OrganizationRoles.Users +{ /// /// Builds and executes requests for operations under \orgs\{org}\organization-roles\users /// - public class UsersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsersRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.organizationRoles.users.item collection /// The handle for the GitHub user account. - /// A - public WithUsernameItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.OrganizationRoles.Users.Item.WithUsernameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("username", position); - return new WithUsernameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.OrganizationRoles.Users.Item.WithUsernameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public UsersRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Outside_collaborators/GetFilterQueryParameterType.cs b/src/GitHub/Orgs/Item/Outside_collaborators/GetFilterQueryParameterType.cs index b98ee66f..3b9bb209 100644 --- a/src/GitHub/Orgs/Item/Outside_collaborators/GetFilterQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Outside_collaborators/GetFilterQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Outside_collaborators { +namespace GitHub.Orgs.Item.Outside_collaborators +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetFilterQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Outside_collaborators/Item/WithUsername422Error.cs b/src/GitHub/Orgs/Item/Outside_collaborators/Item/WithUsername422Error.cs index 5aaad477..badddfed 100644 --- a/src/GitHub/Orgs/Item/Outside_collaborators/Item/WithUsername422Error.cs +++ b/src/GitHub/Orgs/Item/Outside_collaborators/Item/WithUsername422Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Outside_collaborators.Item { +namespace GitHub.Orgs.Item.Outside_collaborators.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithUsername422Error : ApiException, IAdditionalDataHolder, IParsable + public partial class WithUsername422Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,16 +22,10 @@ public class WithUsername422Error : ApiException, IAdditionalDataHolder, IParsab #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithUsername422Error() { @@ -38,12 +34,12 @@ public WithUsername422Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithUsername422Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Outside_collaborators.Item.WithUsername422Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithUsername422Error(); + return new global::GitHub.Orgs.Item.Outside_collaborators.Item.WithUsername422Error(); } /// /// The deserialization information for the current model @@ -53,8 +49,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -65,7 +60,6 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Outside_collaborators/Item/WithUsernameItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Outside_collaborators/Item/WithUsernameItemRequestBuilder.cs index 4c93488b..28915843 100644 --- a/src/GitHub/Orgs/Item/Outside_collaborators/Item/WithUsernameItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Outside_collaborators/Item/WithUsernameItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Outside_collaborators.Item { +namespace GitHub.Orgs.Item.Outside_collaborators.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\outside_collaborators\{username} /// - public class WithUsernameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithUsernameItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithUsernameItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public WithUsernameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -49,7 +51,7 @@ public async Task DeleteAsync(Action> { - {"422", WithUsername422Error.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Orgs.Item.Outside_collaborators.Item.WithUsername422Error.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -57,27 +59,27 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(WithUsernamePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Outside_collaborators.Item.WithUsernamePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(WithUsernamePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Outside_collaborators.Item.WithUsernamePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, WithUsernamePutResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Outside_collaborators.Item.WithUsernamePutResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Removing a user from this list will remove them from all the organization's repositories. @@ -106,11 +108,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(WithUsernamePutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Outside_collaborators.Item.WithUsernamePutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(WithUsernamePutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Outside_collaborators.Item.WithUsernamePutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -123,11 +125,11 @@ public RequestInformation ToPutRequestInformation(WithUsernamePutRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithUsernameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Outside_collaborators.Item.WithUsernameItemRequestBuilder WithUrl(string rawUrl) { - return new WithUsernameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Outside_collaborators.Item.WithUsernameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Outside_collaborators/Item/WithUsernamePutRequestBody.cs b/src/GitHub/Orgs/Item/Outside_collaborators/Item/WithUsernamePutRequestBody.cs index 1a7e1e57..1161d4f5 100644 --- a/src/GitHub/Orgs/Item/Outside_collaborators/Item/WithUsernamePutRequestBody.cs +++ b/src/GitHub/Orgs/Item/Outside_collaborators/Item/WithUsernamePutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Outside_collaborators.Item { +namespace GitHub.Orgs.Item.Outside_collaborators.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithUsernamePutRequestBody : IAdditionalDataHolder, IParsable + public partial class WithUsernamePutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class WithUsernamePutRequestBody : IAdditionalDataHolder, IParsable /// When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued. public bool? Async { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithUsernamePutRequestBody() { @@ -23,12 +25,12 @@ public WithUsernamePutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithUsernamePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Outside_collaborators.Item.WithUsernamePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithUsernamePutRequestBody(); + return new global::GitHub.Orgs.Item.Outside_collaborators.Item.WithUsernamePutRequestBody(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"async", n => { Async = n.GetBoolValue(); } }, + { "async", n => { Async = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Outside_collaborators/Item/WithUsernamePutResponse.cs b/src/GitHub/Orgs/Item/Outside_collaborators/Item/WithUsernamePutResponse.cs index beb8ff0f..6df9cd01 100644 --- a/src/GitHub/Orgs/Item/Outside_collaborators/Item/WithUsernamePutResponse.cs +++ b/src/GitHub/Orgs/Item/Outside_collaborators/Item/WithUsernamePutResponse.cs @@ -1,23 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Outside_collaborators.Item { +namespace GitHub.Orgs.Item.Outside_collaborators.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithUsernamePutResponse : IParsable + public partial class WithUsernamePutResponse : IParsable #pragma warning restore CS1591 { /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithUsernamePutResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Outside_collaborators.Item.WithUsernamePutResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithUsernamePutResponse(); + return new global::GitHub.Orgs.Item.Outside_collaborators.Item.WithUsernamePutResponse(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Orgs/Item/Outside_collaborators/Outside_collaboratorsRequestBuilder.cs b/src/GitHub/Orgs/Item/Outside_collaborators/Outside_collaboratorsRequestBuilder.cs index 261a2a76..3d91b293 100644 --- a/src/GitHub/Orgs/Item/Outside_collaborators/Outside_collaboratorsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Outside_collaborators/Outside_collaboratorsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Outside_collaborators.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Outside_collaborators { +namespace GitHub.Orgs.Item.Outside_collaborators +{ /// /// Builds and executes requests for operations under \orgs\{org}\outside_collaborators /// - public class Outside_collaboratorsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Outside_collaboratorsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.outside_collaborators.item collection /// The handle for the GitHub user account. - /// A - public WithUsernameItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Outside_collaborators.Item.WithUsernameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("username", position); - return new WithUsernameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Outside_collaborators.Item.WithUsernameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public Outside_collaboratorsRequestBuilder(Dictionary pathParame { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public Outside_collaboratorsRequestBuilder(string rawUrl, IRequestAdapter reques /// List all users who are outside collaborators of an organization. /// API method documentation /// - /// A List<SimpleUser> + /// A List<global::GitHub.Models.SimpleUser> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, SimpleUser.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// List all users who are outside collaborators of an organization. @@ -70,11 +72,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -85,20 +87,21 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Outside_collaboratorsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Outside_collaborators.Outside_collaboratorsRequestBuilder WithUrl(string rawUrl) { - return new Outside_collaboratorsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Outside_collaborators.Outside_collaboratorsRequestBuilder(rawUrl, RequestAdapter); } /// /// List all users who are outside collaborators of an organization. /// - public class Outside_collaboratorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Outside_collaboratorsRequestBuilderGetQueryParameters { /// Filter the list of outside collaborators. `2fa_disabled` means that only outside collaborators without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled will be returned. [QueryParameter("filter")] - public GetFilterQueryParameterType? Filter { get; set; } + public global::GitHub.Orgs.Item.Outside_collaborators.GetFilterQueryParameterType? Filter { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } diff --git a/src/GitHub/Orgs/Item/Packages/GetPackage_typeQueryParameterType.cs b/src/GitHub/Orgs/Item/Packages/GetPackage_typeQueryParameterType.cs index 0e47f111..2036db2d 100644 --- a/src/GitHub/Orgs/Item/Packages/GetPackage_typeQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Packages/GetPackage_typeQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Packages { +namespace GitHub.Orgs.Item.Packages +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetPackage_typeQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Packages/GetVisibilityQueryParameterType.cs b/src/GitHub/Orgs/Item/Packages/GetVisibilityQueryParameterType.cs index 68b26a24..7b70b989 100644 --- a/src/GitHub/Orgs/Item/Packages/GetVisibilityQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Packages/GetVisibilityQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Packages { +namespace GitHub.Orgs.Item.Packages +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetVisibilityQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Packages/Item/Item/Restore/RestoreRequestBuilder.cs b/src/GitHub/Orgs/Item/Packages/Item/Item/Restore/RestoreRequestBuilder.cs index 79a15213..f36717d6 100644 --- a/src/GitHub/Orgs/Item/Packages/Item/Item/Restore/RestoreRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Packages/Item/Item/Restore/RestoreRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Packages.Item.Item.Restore { +namespace GitHub.Orgs.Item.Packages.Item.Item.Restore +{ /// /// Builds and executes requests for operations under \orgs\{org}\packages\{package_type}\{package_name}\restore /// - public class RestoreRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RestoreRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,24 +38,24 @@ public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -64,11 +66,11 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -79,16 +81,17 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RestoreRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Packages.Item.Item.Restore.RestoreRequestBuilder WithUrl(string rawUrl) { - return new RestoreRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Packages.Item.Item.Restore.RestoreRequestBuilder(rawUrl, RequestAdapter); } /// /// Restores an entire package in an organization.You can restore a deleted package under the following conditions: - The package was deleted within the last 30 days. - The same package namespace and version is still available and not reused for a new package. If the same package namespace is not available, you will not be able to restore your package. In this scenario, to restore the deleted package, you must delete the new package that uses the deleted package's namespace first.The authenticated user must have admin permissions in the organization to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, the authenticated user must also have admin permissions to the package. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/enterprise-cloud@latest//packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."OAuth app tokens and personal access tokens (classic) need the `read:packages` and `write:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/enterprise-cloud@latest//packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." /// - public class RestoreRequestBuilderPostQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RestoreRequestBuilderPostQueryParameters { /// package token #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Orgs/Item/Packages/Item/Item/Versions/GetStateQueryParameterType.cs b/src/GitHub/Orgs/Item/Packages/Item/Item/Versions/GetStateQueryParameterType.cs index b6774948..b921f96d 100644 --- a/src/GitHub/Orgs/Item/Packages/Item/Item/Versions/GetStateQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Packages/Item/Item/Versions/GetStateQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Packages.Item.Item.Versions { +namespace GitHub.Orgs.Item.Packages.Item.Item.Versions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetStateQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Packages/Item/Item/Versions/Item/Restore/RestoreRequestBuilder.cs b/src/GitHub/Orgs/Item/Packages/Item/Item/Versions/Item/Restore/RestoreRequestBuilder.cs index 7c2f5dce..5682d4ca 100644 --- a/src/GitHub/Orgs/Item/Packages/Item/Item/Versions/Item/Restore/RestoreRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Packages/Item/Item/Versions/Item/Restore/RestoreRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Packages.Item.Item.Versions.Item.Restore { +namespace GitHub.Orgs.Item.Packages.Item.Item.Versions.Item.Restore +{ /// /// Builds and executes requests for operations under \orgs\{org}\packages\{package_type}\{package_name}\versions\{package_version_id}\restore /// - public class RestoreRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RestoreRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,9 +38,9 @@ public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -51,9 +53,9 @@ public async Task PostAsync(Action> var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -79,11 +81,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RestoreRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Packages.Item.Item.Versions.Item.Restore.RestoreRequestBuilder WithUrl(string rawUrl) { - return new RestoreRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Packages.Item.Item.Versions.Item.Restore.RestoreRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Packages/Item/Item/Versions/Item/WithPackage_version_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Packages/Item/Item/Versions/Item/WithPackage_version_ItemRequestBuilder.cs index 884d1501..a73cfc28 100644 --- a/src/GitHub/Orgs/Item/Packages/Item/Item/Versions/Item/WithPackage_version_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Packages/Item/Item/Versions/Item/WithPackage_version_ItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Orgs.Item.Packages.Item.Item.Versions.Item.Restore; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Packages.Item.Item.Versions.Item { +namespace GitHub.Orgs.Item.Packages.Item.Item.Versions.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\packages\{package_type}\{package_name}\versions\{package_version_id} /// - public class WithPackage_version_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithPackage_version_ItemRequestBuilder : BaseRequestBuilder { /// The restore property - public RestoreRequestBuilder Restore + public global::GitHub.Orgs.Item.Packages.Item.Item.Versions.Item.Restore.RestoreRequestBuilder Restore { - get => new RestoreRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Packages.Item.Item.Versions.Item.Restore.RestoreRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithPackage_version_ItemRequestBuilder(Dictionary pathPar { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -42,9 +44,9 @@ public WithPackage_version_ItemRequestBuilder(string rawUrl, IRequestAdapter req /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -57,9 +59,9 @@ public async Task DeleteAsync(Action> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -67,20 +69,20 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, PackageVersion.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.PackageVersion.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Deletes a specific package version in an organization. If the package is public and the package version has more than 5,000 downloads, you cannot delete the package version. In this scenario, contact GitHub support for further assistance.The authenticated user must have admin permissions in the organization to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, the authenticated user must also have admin permissions to the package. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/enterprise-cloud@latest//packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."OAuth app tokens and personal access tokens (classic) need the `read:packages` and `delete:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/enterprise-cloud@latest//packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." @@ -123,11 +125,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithPackage_version_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Packages.Item.Item.Versions.Item.WithPackage_version_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithPackage_version_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Packages.Item.Item.Versions.Item.WithPackage_version_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Packages/Item/Item/Versions/VersionsRequestBuilder.cs b/src/GitHub/Orgs/Item/Packages/Item/Item/Versions/VersionsRequestBuilder.cs index b437fc95..35bc4d31 100644 --- a/src/GitHub/Orgs/Item/Packages/Item/Item/Versions/VersionsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Packages/Item/Item/Versions/VersionsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Packages.Item.Item.Versions.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Packages.Item.Item.Versions { +namespace GitHub.Orgs.Item.Packages.Item.Item.Versions +{ /// /// Builds and executes requests for operations under \orgs\{org}\packages\{package_type}\{package_name}\versions /// - public class VersionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class VersionsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.packages.item.item.versions.item collection /// Unique identifier of the package version. - /// A - public WithPackage_version_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.Packages.Item.Item.Versions.Item.WithPackage_version_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("package_version_id", position); - return new WithPackage_version_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Packages.Item.Item.Versions.Item.WithPackage_version_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public VersionsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,30 +49,30 @@ public VersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Lists package versions for a package owned by an organization.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint if the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/enterprise-cloud@latest//packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." /// API method documentation /// - /// A List<PackageVersion> + /// A List<global::GitHub.Models.PackageVersion> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, PackageVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.PackageVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists package versions for a package owned by an organization.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint if the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/enterprise-cloud@latest//packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." @@ -79,11 +81,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -94,16 +96,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public VersionsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Packages.Item.Item.Versions.VersionsRequestBuilder WithUrl(string rawUrl) { - return new VersionsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Packages.Item.Item.Versions.VersionsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists package versions for a package owned by an organization.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint if the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/enterprise-cloud@latest//packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." /// - public class VersionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class VersionsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] @@ -113,7 +116,7 @@ public class VersionsRequestBuilderGetQueryParameters public int? PerPage { get; set; } /// The state of the package, either active or deleted. [QueryParameter("state")] - public GetStateQueryParameterType? State { get; set; } + public global::GitHub.Orgs.Item.Packages.Item.Item.Versions.GetStateQueryParameterType? State { get; set; } } } } diff --git a/src/GitHub/Orgs/Item/Packages/Item/Item/WithPackage_nameItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Packages/Item/Item/WithPackage_nameItemRequestBuilder.cs index 7054ca90..d9bc1ba1 100644 --- a/src/GitHub/Orgs/Item/Packages/Item/Item/WithPackage_nameItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Packages/Item/Item/WithPackage_nameItemRequestBuilder.cs @@ -2,32 +2,34 @@ using GitHub.Models; using GitHub.Orgs.Item.Packages.Item.Item.Restore; using GitHub.Orgs.Item.Packages.Item.Item.Versions; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Packages.Item.Item { +namespace GitHub.Orgs.Item.Packages.Item.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\packages\{package_type}\{package_name} /// - public class WithPackage_nameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithPackage_nameItemRequestBuilder : BaseRequestBuilder { /// The restore property - public RestoreRequestBuilder Restore + public global::GitHub.Orgs.Item.Packages.Item.Item.Restore.RestoreRequestBuilder Restore { - get => new RestoreRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Packages.Item.Item.Restore.RestoreRequestBuilder(PathParameters, RequestAdapter); } /// The versions property - public VersionsRequestBuilder Versions + public global::GitHub.Orgs.Item.Packages.Item.Item.Versions.VersionsRequestBuilder Versions { - get => new VersionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Packages.Item.Item.Versions.VersionsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public WithPackage_nameItemRequestBuilder(Dictionary pathParamet { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -48,9 +50,9 @@ public WithPackage_nameItemRequestBuilder(string rawUrl, IRequestAdapter request /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -63,9 +65,9 @@ public async Task DeleteAsync(Action> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -73,20 +75,20 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, Package.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Package.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Deletes an entire package in an organization. You cannot delete a public package if any version of the package has more than 5,000 downloads. In this scenario, contact GitHub support for further assistance.The authenticated user must have admin permissions in the organization to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, the authenticated user must also have admin permissions to the package. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/enterprise-cloud@latest//packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."OAuth app tokens and personal access tokens (classic) need the `read:packages` and `delete:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/enterprise-cloud@latest//packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." @@ -129,11 +131,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithPackage_nameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Packages.Item.Item.WithPackage_nameItemRequestBuilder WithUrl(string rawUrl) { - return new WithPackage_nameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Packages.Item.Item.WithPackage_nameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Packages/Item/WithPackage_typeItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Packages/Item/WithPackage_typeItemRequestBuilder.cs index f0a47fa4..1b0d0422 100644 --- a/src/GitHub/Orgs/Item/Packages/Item/WithPackage_typeItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Packages/Item/WithPackage_typeItemRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Orgs.Item.Packages.Item.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Packages.Item { +namespace GitHub.Orgs.Item.Packages.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\packages\{package_type} /// - public class WithPackage_typeItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithPackage_typeItemRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.packages.item.item collection /// The name of the package. - /// A - public WithPackage_nameItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Packages.Item.Item.WithPackage_nameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("package_name", position); - return new WithPackage_nameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Packages.Item.Item.WithPackage_nameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public WithPackage_typeItemRequestBuilder(Dictionary pathParamet { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Packages/PackagesRequestBuilder.cs b/src/GitHub/Orgs/Item/Packages/PackagesRequestBuilder.cs index 59b0bf02..eb0fac93 100644 --- a/src/GitHub/Orgs/Item/Packages/PackagesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Packages/PackagesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Packages.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Packages { +namespace GitHub.Orgs.Item.Packages +{ /// /// Builds and executes requests for operations under \orgs\{org}\packages /// - public class PackagesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PackagesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.packages.item collection /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// A - public WithPackage_typeItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Packages.Item.WithPackage_typeItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("package_type", position); - return new WithPackage_typeItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Packages.Item.WithPackage_typeItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public PackagesRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,28 +49,28 @@ public PackagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Lists packages in an organization readable by the user.OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/enterprise-cloud@latest//packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." /// API method documentation /// - /// A List<Package> + /// A List<global::GitHub.Models.Package> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code + /// When receiving a 401 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Package.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Package.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists packages in an organization readable by the user.OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/enterprise-cloud@latest//packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." @@ -77,11 +79,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -92,20 +94,21 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PackagesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Packages.PackagesRequestBuilder WithUrl(string rawUrl) { - return new PackagesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Packages.PackagesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists packages in an organization readable by the user.OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/enterprise-cloud@latest//packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." /// - public class PackagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PackagesRequestBuilderGetQueryParameters { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. [QueryParameter("package_type")] - public GetPackage_typeQueryParameterType? PackageType { get; set; } + public global::GitHub.Orgs.Item.Packages.GetPackage_typeQueryParameterType? PackageType { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } @@ -114,7 +117,7 @@ public class PackagesRequestBuilderGetQueryParameters public int? PerPage { get; set; } /// The selected visibility of the packages. This parameter is optional and only filters an existing result set.The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`.For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/enterprise-cloud@latest//packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." [QueryParameter("visibility")] - public GetVisibilityQueryParameterType? Visibility { get; set; } + public global::GitHub.Orgs.Item.Packages.GetVisibilityQueryParameterType? Visibility { get; set; } } } } diff --git a/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/GetDirectionQueryParameterType.cs b/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/GetDirectionQueryParameterType.cs index 04b48439..7bb78a3f 100644 --- a/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.PersonalAccessTokenRequests { +namespace GitHub.Orgs.Item.PersonalAccessTokenRequests +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/GetSortQueryParameterType.cs b/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/GetSortQueryParameterType.cs index 9ef6c261..5bc40ebe 100644 --- a/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/GetSortQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.PersonalAccessTokenRequests { +namespace GitHub.Orgs.Item.PersonalAccessTokenRequests +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/Item/Repositories/RepositoriesRequestBuilder.cs b/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/Item/Repositories/RepositoriesRequestBuilder.cs index 0ab0746e..97042407 100644 --- a/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/Item/Repositories/RepositoriesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/Item/Repositories/RepositoriesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.PersonalAccessTokenRequests.Item.Repositories { +namespace GitHub.Orgs.Item.PersonalAccessTokenRequests.Item.Repositories +{ /// /// Builds and executes requests for operations under \orgs\{org}\personal-access-token-requests\{pat_request_id}\repositories /// - public class RepositoriesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RepositoriesRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,30 +36,30 @@ public RepositoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Lists the repositories a fine-grained personal access token request is requesting access to.Only GitHub Apps can use this endpoint. /// API method documentation /// - /// A List<MinimalRepository> + /// A List<global::GitHub.Models.MinimalRepository> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, MinimalRepository.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.MinimalRepository.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists the repositories a fine-grained personal access token request is requesting access to.Only GitHub Apps can use this endpoint. @@ -66,11 +68,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -81,16 +83,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RepositoriesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.PersonalAccessTokenRequests.Item.Repositories.RepositoriesRequestBuilder WithUrl(string rawUrl) { - return new RepositoriesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.PersonalAccessTokenRequests.Item.Repositories.RepositoriesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the repositories a fine-grained personal access token request is requesting access to.Only GitHub Apps can use this endpoint. /// - public class RepositoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/Item/WithPat_request_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/Item/WithPat_request_ItemRequestBuilder.cs index b4bf4994..d5bd3724 100644 --- a/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/Item/WithPat_request_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/Item/WithPat_request_ItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Orgs.Item.PersonalAccessTokenRequests.Item.Repositories; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.PersonalAccessTokenRequests.Item { +namespace GitHub.Orgs.Item.PersonalAccessTokenRequests.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\personal-access-token-requests\{pat_request_id} /// - public class WithPat_request_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithPat_request_ItemRequestBuilder : BaseRequestBuilder { /// The repositories property - public RepositoriesRequestBuilder Repositories + public global::GitHub.Orgs.Item.PersonalAccessTokenRequests.Item.Repositories.RepositoriesRequestBuilder Repositories { - get => new RepositoriesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.PersonalAccessTokenRequests.Item.Repositories.RepositoriesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithPat_request_ItemRequestBuilder(Dictionary pathParamet { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,27 +45,27 @@ public WithPat_request_ItemRequestBuilder(string rawUrl, IRequestAdapter request /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code - /// When receiving a 500 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(WithPat_request_PostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.PersonalAccessTokenRequests.Item.WithPat_request_PostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(WithPat_request_PostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.PersonalAccessTokenRequests.Item.WithPat_request_PostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -75,11 +77,11 @@ public async Task PostAsync(WithPat_request_PostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(WithPat_request_PostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.PersonalAccessTokenRequests.Item.WithPat_request_PostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WithPat_request_PostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.PersonalAccessTokenRequests.Item.WithPat_request_PostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -92,11 +94,11 @@ public RequestInformation ToPostRequestInformation(WithPat_request_PostRequestBo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithPat_request_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.PersonalAccessTokenRequests.Item.WithPat_request_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithPat_request_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.PersonalAccessTokenRequests.Item.WithPat_request_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/Item/WithPat_request_PostRequestBody.cs b/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/Item/WithPat_request_PostRequestBody.cs index 44da814f..e91183c5 100644 --- a/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/Item/WithPat_request_PostRequestBody.cs +++ b/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/Item/WithPat_request_PostRequestBody.cs @@ -1,16 +1,18 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.PersonalAccessTokenRequests.Item { +namespace GitHub.Orgs.Item.PersonalAccessTokenRequests.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithPat_request_PostRequestBody : IAdditionalDataHolder, IParsable + public partial class WithPat_request_PostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Action to apply to the request. - public WithPat_request_PostRequestBody_action? Action { get; set; } + public global::GitHub.Orgs.Item.PersonalAccessTokenRequests.Item.WithPat_request_PostRequestBody_action? Action { get; set; } /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// Reason for approving or denying the request. Max 1024 characters. @@ -22,7 +24,7 @@ public class WithPat_request_PostRequestBody : IAdditionalDataHolder, IParsable public string Reason { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithPat_request_PostRequestBody() { @@ -31,12 +33,12 @@ public WithPat_request_PostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithPat_request_PostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.PersonalAccessTokenRequests.Item.WithPat_request_PostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithPat_request_PostRequestBody(); + return new global::GitHub.Orgs.Item.PersonalAccessTokenRequests.Item.WithPat_request_PostRequestBody(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"action", n => { Action = n.GetEnumValue(); } }, - {"reason", n => { Reason = n.GetStringValue(); } }, + { "action", n => { Action = n.GetEnumValue(); } }, + { "reason", n => { Reason = n.GetStringValue(); } }, }; } /// @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("action", Action); + writer.WriteEnumValue("action", Action); writer.WriteStringValue("reason", Reason); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/Item/WithPat_request_PostRequestBody_action.cs b/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/Item/WithPat_request_PostRequestBody_action.cs index 1601b5e8..67269be7 100644 --- a/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/Item/WithPat_request_PostRequestBody_action.cs +++ b/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/Item/WithPat_request_PostRequestBody_action.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.PersonalAccessTokenRequests.Item { +namespace GitHub.Orgs.Item.PersonalAccessTokenRequests.Item +{ /// Action to apply to the request. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithPat_request_PostRequestBody_action { [EnumMember(Value = "approve")] diff --git a/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/PersonalAccessTokenRequestsPostRequestBody.cs b/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/PersonalAccessTokenRequestsPostRequestBody.cs index 6cdbf3e1..c226f92f 100644 --- a/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/PersonalAccessTokenRequestsPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/PersonalAccessTokenRequestsPostRequestBody.cs @@ -1,16 +1,18 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.PersonalAccessTokenRequests { +namespace GitHub.Orgs.Item.PersonalAccessTokenRequests +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PersonalAccessTokenRequestsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class PersonalAccessTokenRequestsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Action to apply to the requests. - public PersonalAccessTokenRequestsPostRequestBody_action? Action { get; set; } + public global::GitHub.Orgs.Item.PersonalAccessTokenRequests.PersonalAccessTokenRequestsPostRequestBody_action? Action { get; set; } /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// Unique identifiers of the requests for access via fine-grained personal access token. Must be formed of between 1 and 100 `pat_request_id` values. @@ -30,7 +32,7 @@ public class PersonalAccessTokenRequestsPostRequestBody : IAdditionalDataHolder, public string Reason { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PersonalAccessTokenRequestsPostRequestBody() { @@ -39,12 +41,12 @@ public PersonalAccessTokenRequestsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PersonalAccessTokenRequestsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.PersonalAccessTokenRequests.PersonalAccessTokenRequestsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PersonalAccessTokenRequestsPostRequestBody(); + return new global::GitHub.Orgs.Item.PersonalAccessTokenRequests.PersonalAccessTokenRequestsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"action", n => { Action = n.GetEnumValue(); } }, - {"pat_request_ids", n => { PatRequestIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"reason", n => { Reason = n.GetStringValue(); } }, + { "action", n => { Action = n.GetEnumValue(); } }, + { "pat_request_ids", n => { PatRequestIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "reason", n => { Reason = n.GetStringValue(); } }, }; } /// @@ -66,7 +68,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("action", Action); + writer.WriteEnumValue("action", Action); writer.WriteCollectionOfPrimitiveValues("pat_request_ids", PatRequestIds); writer.WriteStringValue("reason", Reason); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/PersonalAccessTokenRequestsPostRequestBody_action.cs b/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/PersonalAccessTokenRequestsPostRequestBody_action.cs index 1e505e79..522ac36b 100644 --- a/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/PersonalAccessTokenRequestsPostRequestBody_action.cs +++ b/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/PersonalAccessTokenRequestsPostRequestBody_action.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.PersonalAccessTokenRequests { +namespace GitHub.Orgs.Item.PersonalAccessTokenRequests +{ /// Action to apply to the requests. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum PersonalAccessTokenRequestsPostRequestBody_action { [EnumMember(Value = "approve")] diff --git a/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/PersonalAccessTokenRequestsPostResponse.cs b/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/PersonalAccessTokenRequestsPostResponse.cs index e42538ad..299fb718 100644 --- a/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/PersonalAccessTokenRequestsPostResponse.cs +++ b/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/PersonalAccessTokenRequestsPostResponse.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.PersonalAccessTokenRequests { +namespace GitHub.Orgs.Item.PersonalAccessTokenRequests +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PersonalAccessTokenRequestsPostResponse : IAdditionalDataHolder, IParsable + public partial class PersonalAccessTokenRequestsPostResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PersonalAccessTokenRequestsPostResponse() { @@ -21,12 +23,12 @@ public PersonalAccessTokenRequestsPostResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PersonalAccessTokenRequestsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.PersonalAccessTokenRequests.PersonalAccessTokenRequestsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PersonalAccessTokenRequestsPostResponse(); + return new global::GitHub.Orgs.Item.PersonalAccessTokenRequests.PersonalAccessTokenRequestsPostResponse(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/PersonalAccessTokenRequestsRequestBuilder.cs b/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/PersonalAccessTokenRequestsRequestBuilder.cs index b212d4f2..3f569fd6 100644 --- a/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/PersonalAccessTokenRequestsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/PersonalAccessTokenRequests/PersonalAccessTokenRequestsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.PersonalAccessTokenRequests.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.PersonalAccessTokenRequests { +namespace GitHub.Orgs.Item.PersonalAccessTokenRequests +{ /// /// Builds and executes requests for operations under \orgs\{org}\personal-access-token-requests /// - public class PersonalAccessTokenRequestsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PersonalAccessTokenRequestsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.personalAccessTokenRequests.item collection /// Unique identifier of the request for access via fine-grained personal access token. - /// A - public WithPat_request_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.PersonalAccessTokenRequests.Item.WithPat_request_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("pat_request_id", position); - return new WithPat_request_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.PersonalAccessTokenRequests.Item.WithPat_request_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public PersonalAccessTokenRequestsRequestBuilder(Dictionary path { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,64 +49,64 @@ public PersonalAccessTokenRequestsRequestBuilder(string rawUrl, IRequestAdapter /// Lists requests from organization members to access organization resources with a fine-grained personal access token.Only GitHub Apps can use this endpoint. /// API method documentation /// - /// A List<OrganizationProgrammaticAccessGrantRequest> + /// A List<global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code - /// When receiving a 500 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, OrganizationProgrammaticAccessGrantRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.OrganizationProgrammaticAccessGrantRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Approves or denies multiple pending requests to access organization resources via a fine-grained personal access token.Only GitHub Apps can use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code - /// When receiving a 500 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(PersonalAccessTokenRequestsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.PersonalAccessTokenRequests.PersonalAccessTokenRequestsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(PersonalAccessTokenRequestsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.PersonalAccessTokenRequests.PersonalAccessTokenRequestsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, PersonalAccessTokenRequestsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.PersonalAccessTokenRequests.PersonalAccessTokenRequestsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists requests from organization members to access organization resources with a fine-grained personal access token.Only GitHub Apps can use this endpoint. @@ -113,11 +115,11 @@ public async Task PostAsync(PersonalAcc /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -133,11 +135,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(PersonalAccessTokenRequestsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.PersonalAccessTokenRequests.PersonalAccessTokenRequestsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PersonalAccessTokenRequestsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.PersonalAccessTokenRequests.PersonalAccessTokenRequestsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -150,20 +152,21 @@ public RequestInformation ToPostRequestInformation(PersonalAccessTokenRequestsPo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PersonalAccessTokenRequestsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.PersonalAccessTokenRequests.PersonalAccessTokenRequestsRequestBuilder WithUrl(string rawUrl) { - return new PersonalAccessTokenRequestsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.PersonalAccessTokenRequests.PersonalAccessTokenRequestsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists requests from organization members to access organization resources with a fine-grained personal access token.Only GitHub Apps can use this endpoint. /// - public class PersonalAccessTokenRequestsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PersonalAccessTokenRequestsRequestBuilderGetQueryParameters { /// The direction to sort the results by. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Orgs.Item.PersonalAccessTokenRequests.GetDirectionQueryParameterType? Direction { get; set; } /// Only show fine-grained personal access tokens used after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. [QueryParameter("last_used_after")] public DateTimeOffset? LastUsedAfter { get; set; } @@ -208,7 +211,7 @@ public class PersonalAccessTokenRequestsRequestBuilderGetQueryParameters #endif /// The property by which to sort the results. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Orgs.Item.PersonalAccessTokenRequests.GetSortQueryParameterType? Sort { get; set; } } } } diff --git a/src/GitHub/Orgs/Item/PersonalAccessTokens/GetDirectionQueryParameterType.cs b/src/GitHub/Orgs/Item/PersonalAccessTokens/GetDirectionQueryParameterType.cs index f8dab72c..6d2f9ee5 100644 --- a/src/GitHub/Orgs/Item/PersonalAccessTokens/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/PersonalAccessTokens/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.PersonalAccessTokens { +namespace GitHub.Orgs.Item.PersonalAccessTokens +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/PersonalAccessTokens/GetSortQueryParameterType.cs b/src/GitHub/Orgs/Item/PersonalAccessTokens/GetSortQueryParameterType.cs index 8bacbe11..cfd8e98f 100644 --- a/src/GitHub/Orgs/Item/PersonalAccessTokens/GetSortQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/PersonalAccessTokens/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.PersonalAccessTokens { +namespace GitHub.Orgs.Item.PersonalAccessTokens +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/PersonalAccessTokens/Item/Repositories/RepositoriesRequestBuilder.cs b/src/GitHub/Orgs/Item/PersonalAccessTokens/Item/Repositories/RepositoriesRequestBuilder.cs index fa3bbcde..5f8500ce 100644 --- a/src/GitHub/Orgs/Item/PersonalAccessTokens/Item/Repositories/RepositoriesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/PersonalAccessTokens/Item/Repositories/RepositoriesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.PersonalAccessTokens.Item.Repositories { +namespace GitHub.Orgs.Item.PersonalAccessTokens.Item.Repositories +{ /// /// Builds and executes requests for operations under \orgs\{org}\personal-access-tokens\{pat_id}\repositories /// - public class RepositoriesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RepositoriesRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,30 +36,30 @@ public RepositoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Lists the repositories a fine-grained personal access token has access to.Only GitHub Apps can use this endpoint. /// API method documentation /// - /// A List<MinimalRepository> + /// A List<global::GitHub.Models.MinimalRepository> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, MinimalRepository.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.MinimalRepository.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists the repositories a fine-grained personal access token has access to.Only GitHub Apps can use this endpoint. @@ -66,11 +68,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -81,16 +83,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RepositoriesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.PersonalAccessTokens.Item.Repositories.RepositoriesRequestBuilder WithUrl(string rawUrl) { - return new RepositoriesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.PersonalAccessTokens.Item.Repositories.RepositoriesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the repositories a fine-grained personal access token has access to.Only GitHub Apps can use this endpoint. /// - public class RepositoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoriesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/PersonalAccessTokens/Item/WithPat_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/PersonalAccessTokens/Item/WithPat_ItemRequestBuilder.cs index e7944e07..e0675029 100644 --- a/src/GitHub/Orgs/Item/PersonalAccessTokens/Item/WithPat_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/PersonalAccessTokens/Item/WithPat_ItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Orgs.Item.PersonalAccessTokens.Item.Repositories; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.PersonalAccessTokens.Item { +namespace GitHub.Orgs.Item.PersonalAccessTokens.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\personal-access-tokens\{pat_id} /// - public class WithPat_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithPat_ItemRequestBuilder : BaseRequestBuilder { /// The repositories property - public RepositoriesRequestBuilder Repositories + public global::GitHub.Orgs.Item.PersonalAccessTokens.Item.Repositories.RepositoriesRequestBuilder Repositories { - get => new RepositoriesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.PersonalAccessTokens.Item.Repositories.RepositoriesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithPat_ItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,27 +45,27 @@ public WithPat_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code - /// When receiving a 500 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(WithPat_PostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.PersonalAccessTokens.Item.WithPat_PostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(WithPat_PostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.PersonalAccessTokens.Item.WithPat_PostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -75,11 +77,11 @@ public async Task PostAsync(WithPat_PostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(WithPat_PostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.PersonalAccessTokens.Item.WithPat_PostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WithPat_PostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.PersonalAccessTokens.Item.WithPat_PostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -92,11 +94,11 @@ public RequestInformation ToPostRequestInformation(WithPat_PostRequestBody body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithPat_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.PersonalAccessTokens.Item.WithPat_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithPat_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.PersonalAccessTokens.Item.WithPat_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/PersonalAccessTokens/Item/WithPat_PostRequestBody.cs b/src/GitHub/Orgs/Item/PersonalAccessTokens/Item/WithPat_PostRequestBody.cs index 31f07af6..fd844935 100644 --- a/src/GitHub/Orgs/Item/PersonalAccessTokens/Item/WithPat_PostRequestBody.cs +++ b/src/GitHub/Orgs/Item/PersonalAccessTokens/Item/WithPat_PostRequestBody.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.PersonalAccessTokens.Item { +namespace GitHub.Orgs.Item.PersonalAccessTokens.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithPat_PostRequestBody : IAdditionalDataHolder, IParsable + public partial class WithPat_PostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Action to apply to the fine-grained personal access token. - public WithPat_PostRequestBody_action? Action { get; set; } + public global::GitHub.Orgs.Item.PersonalAccessTokens.Item.WithPat_PostRequestBody_action? Action { get; set; } /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithPat_PostRequestBody() { @@ -23,12 +25,12 @@ public WithPat_PostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithPat_PostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.PersonalAccessTokens.Item.WithPat_PostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithPat_PostRequestBody(); + return new global::GitHub.Orgs.Item.PersonalAccessTokens.Item.WithPat_PostRequestBody(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"action", n => { Action = n.GetEnumValue(); } }, + { "action", n => { Action = n.GetEnumValue(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("action", Action); + writer.WriteEnumValue("action", Action); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/PersonalAccessTokens/Item/WithPat_PostRequestBody_action.cs b/src/GitHub/Orgs/Item/PersonalAccessTokens/Item/WithPat_PostRequestBody_action.cs index 8f6782ef..21ce4c11 100644 --- a/src/GitHub/Orgs/Item/PersonalAccessTokens/Item/WithPat_PostRequestBody_action.cs +++ b/src/GitHub/Orgs/Item/PersonalAccessTokens/Item/WithPat_PostRequestBody_action.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.PersonalAccessTokens.Item { +namespace GitHub.Orgs.Item.PersonalAccessTokens.Item +{ /// Action to apply to the fine-grained personal access token. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithPat_PostRequestBody_action { [EnumMember(Value = "revoke")] diff --git a/src/GitHub/Orgs/Item/PersonalAccessTokens/PersonalAccessTokensPostRequestBody.cs b/src/GitHub/Orgs/Item/PersonalAccessTokens/PersonalAccessTokensPostRequestBody.cs index 4cd73bfd..faa9010c 100644 --- a/src/GitHub/Orgs/Item/PersonalAccessTokens/PersonalAccessTokensPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/PersonalAccessTokens/PersonalAccessTokensPostRequestBody.cs @@ -1,16 +1,18 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.PersonalAccessTokens { +namespace GitHub.Orgs.Item.PersonalAccessTokens +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PersonalAccessTokensPostRequestBody : IAdditionalDataHolder, IParsable + public partial class PersonalAccessTokensPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Action to apply to the fine-grained personal access token. - public PersonalAccessTokensPostRequestBody_action? Action { get; set; } + public global::GitHub.Orgs.Item.PersonalAccessTokens.PersonalAccessTokensPostRequestBody_action? Action { get; set; } /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The IDs of the fine-grained personal access tokens. @@ -22,7 +24,7 @@ public class PersonalAccessTokensPostRequestBody : IAdditionalDataHolder, IParsa public List PatIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PersonalAccessTokensPostRequestBody() { @@ -31,12 +33,12 @@ public PersonalAccessTokensPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PersonalAccessTokensPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.PersonalAccessTokens.PersonalAccessTokensPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PersonalAccessTokensPostRequestBody(); + return new global::GitHub.Orgs.Item.PersonalAccessTokens.PersonalAccessTokensPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"action", n => { Action = n.GetEnumValue(); } }, - {"pat_ids", n => { PatIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "action", n => { Action = n.GetEnumValue(); } }, + { "pat_ids", n => { PatIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("action", Action); + writer.WriteEnumValue("action", Action); writer.WriteCollectionOfPrimitiveValues("pat_ids", PatIds); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/PersonalAccessTokens/PersonalAccessTokensPostRequestBody_action.cs b/src/GitHub/Orgs/Item/PersonalAccessTokens/PersonalAccessTokensPostRequestBody_action.cs index 981ef390..6d609c51 100644 --- a/src/GitHub/Orgs/Item/PersonalAccessTokens/PersonalAccessTokensPostRequestBody_action.cs +++ b/src/GitHub/Orgs/Item/PersonalAccessTokens/PersonalAccessTokensPostRequestBody_action.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.PersonalAccessTokens { +namespace GitHub.Orgs.Item.PersonalAccessTokens +{ /// Action to apply to the fine-grained personal access token. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum PersonalAccessTokensPostRequestBody_action { [EnumMember(Value = "revoke")] diff --git a/src/GitHub/Orgs/Item/PersonalAccessTokens/PersonalAccessTokensPostResponse.cs b/src/GitHub/Orgs/Item/PersonalAccessTokens/PersonalAccessTokensPostResponse.cs index 3df4720c..1981fa9d 100644 --- a/src/GitHub/Orgs/Item/PersonalAccessTokens/PersonalAccessTokensPostResponse.cs +++ b/src/GitHub/Orgs/Item/PersonalAccessTokens/PersonalAccessTokensPostResponse.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.PersonalAccessTokens { +namespace GitHub.Orgs.Item.PersonalAccessTokens +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PersonalAccessTokensPostResponse : IAdditionalDataHolder, IParsable + public partial class PersonalAccessTokensPostResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PersonalAccessTokensPostResponse() { @@ -21,12 +23,12 @@ public PersonalAccessTokensPostResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PersonalAccessTokensPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.PersonalAccessTokens.PersonalAccessTokensPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PersonalAccessTokensPostResponse(); + return new global::GitHub.Orgs.Item.PersonalAccessTokens.PersonalAccessTokensPostResponse(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Orgs/Item/PersonalAccessTokens/PersonalAccessTokensRequestBuilder.cs b/src/GitHub/Orgs/Item/PersonalAccessTokens/PersonalAccessTokensRequestBuilder.cs index 295d92ba..e6f9a2c2 100644 --- a/src/GitHub/Orgs/Item/PersonalAccessTokens/PersonalAccessTokensRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/PersonalAccessTokens/PersonalAccessTokensRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.PersonalAccessTokens.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.PersonalAccessTokens { +namespace GitHub.Orgs.Item.PersonalAccessTokens +{ /// /// Builds and executes requests for operations under \orgs\{org}\personal-access-tokens /// - public class PersonalAccessTokensRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PersonalAccessTokensRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.personalAccessTokens.item collection /// The unique identifier of the fine-grained personal access token. - /// A - public WithPat_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.PersonalAccessTokens.Item.WithPat_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("pat_id", position); - return new WithPat_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.PersonalAccessTokens.Item.WithPat_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public PersonalAccessTokensRequestBuilder(Dictionary pathParamet { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,64 +49,64 @@ public PersonalAccessTokensRequestBuilder(string rawUrl, IRequestAdapter request /// Lists approved fine-grained personal access tokens owned by organization members that can access organization resources.Only GitHub Apps can use this endpoint. /// API method documentation /// - /// A List<OrganizationProgrammaticAccessGrant> + /// A List<global::GitHub.Models.OrganizationProgrammaticAccessGrant> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code - /// When receiving a 500 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, OrganizationProgrammaticAccessGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.OrganizationProgrammaticAccessGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Updates the access organization members have to organization resources via fine-grained personal access tokens. Limited to revoking a token's existing access.Only GitHub Apps can use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code - /// When receiving a 500 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(PersonalAccessTokensPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.PersonalAccessTokens.PersonalAccessTokensPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(PersonalAccessTokensPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.PersonalAccessTokens.PersonalAccessTokensPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, PersonalAccessTokensPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.PersonalAccessTokens.PersonalAccessTokensPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists approved fine-grained personal access tokens owned by organization members that can access organization resources.Only GitHub Apps can use this endpoint. @@ -113,11 +115,11 @@ public async Task PostAsync(PersonalAccessToke /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -133,11 +135,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(PersonalAccessTokensPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.PersonalAccessTokens.PersonalAccessTokensPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PersonalAccessTokensPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.PersonalAccessTokens.PersonalAccessTokensPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -150,20 +152,21 @@ public RequestInformation ToPostRequestInformation(PersonalAccessTokensPostReque /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PersonalAccessTokensRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.PersonalAccessTokens.PersonalAccessTokensRequestBuilder WithUrl(string rawUrl) { - return new PersonalAccessTokensRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.PersonalAccessTokens.PersonalAccessTokensRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists approved fine-grained personal access tokens owned by organization members that can access organization resources.Only GitHub Apps can use this endpoint. /// - public class PersonalAccessTokensRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PersonalAccessTokensRequestBuilderGetQueryParameters { /// The direction to sort the results by. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Orgs.Item.PersonalAccessTokens.GetDirectionQueryParameterType? Direction { get; set; } /// Only show fine-grained personal access tokens used after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. [QueryParameter("last_used_after")] public DateTimeOffset? LastUsedAfter { get; set; } @@ -208,7 +211,7 @@ public class PersonalAccessTokensRequestBuilderGetQueryParameters #endif /// The property by which to sort the results. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Orgs.Item.PersonalAccessTokens.GetSortQueryParameterType? Sort { get; set; } } } } diff --git a/src/GitHub/Orgs/Item/Projects/GetStateQueryParameterType.cs b/src/GitHub/Orgs/Item/Projects/GetStateQueryParameterType.cs index 613169f2..e81e43a2 100644 --- a/src/GitHub/Orgs/Item/Projects/GetStateQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Projects/GetStateQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Projects { +namespace GitHub.Orgs.Item.Projects +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetStateQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Projects/ProjectsPostRequestBody.cs b/src/GitHub/Orgs/Item/Projects/ProjectsPostRequestBody.cs index 2c409ded..ca1871e9 100644 --- a/src/GitHub/Orgs/Item/Projects/ProjectsPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/Projects/ProjectsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Projects { +namespace GitHub.Orgs.Item.Projects +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ProjectsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ProjectsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class ProjectsPostRequestBody : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProjectsPostRequestBody() { @@ -37,12 +39,12 @@ public ProjectsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Projects.ProjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProjectsPostRequestBody(); + return new global::GitHub.Orgs.Item.Projects.ProjectsPostRequestBody(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"body", n => { Body = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Projects/ProjectsRequestBuilder.cs b/src/GitHub/Orgs/Item/Projects/ProjectsRequestBuilder.cs index 09a51881..ca77b8af 100644 --- a/src/GitHub/Orgs/Item/Projects/ProjectsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Projects/ProjectsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Projects { +namespace GitHub.Orgs.Item.Projects +{ /// /// Builds and executes requests for operations under \orgs\{org}\projects /// - public class ProjectsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProjectsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ProjectsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,60 +36,60 @@ public ProjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Lists the projects in an organization. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. /// API method documentation /// - /// A List<Project> + /// A List<global::GitHub.Models.Project> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Project.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Project.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Creates an organization project board. Returns a `410 Gone` status if projects are disabled in the organization or if the organization does not have existing classic projects. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 410 status code - /// When receiving a 422 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 410 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ProjectsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Projects.ProjectsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(ProjectsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Projects.ProjectsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"410", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "410", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Project.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Project.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists the projects in an organization. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. @@ -96,11 +98,11 @@ public async Task PostAsync(ProjectsPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -116,11 +118,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ProjectsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Projects.ProjectsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ProjectsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Projects.ProjectsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -133,16 +135,17 @@ public RequestInformation ToPostRequestInformation(ProjectsPostRequestBody body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ProjectsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Projects.ProjectsRequestBuilder WithUrl(string rawUrl) { - return new ProjectsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Projects.ProjectsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the projects in an organization. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. /// - public class ProjectsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProjectsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] @@ -152,7 +155,7 @@ public class ProjectsRequestBuilderGetQueryParameters public int? PerPage { get; set; } /// Indicates the state of the projects to return. [QueryParameter("state")] - public GetStateQueryParameterType? State { get; set; } + public global::GitHub.Orgs.Item.Projects.GetStateQueryParameterType? State { get; set; } } } } diff --git a/src/GitHub/Orgs/Item/Properties/PropertiesRequestBuilder.cs b/src/GitHub/Orgs/Item/Properties/PropertiesRequestBuilder.cs index c939d3f6..99a9d8a8 100644 --- a/src/GitHub/Orgs/Item/Properties/PropertiesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Properties/PropertiesRequestBuilder.cs @@ -1,30 +1,32 @@ // using GitHub.Orgs.Item.Properties.Schema; using GitHub.Orgs.Item.Properties.Values; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Properties { +namespace GitHub.Orgs.Item.Properties +{ /// /// Builds and executes requests for operations under \orgs\{org}\properties /// - public class PropertiesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PropertiesRequestBuilder : BaseRequestBuilder { /// The schema property - public SchemaRequestBuilder Schema + public global::GitHub.Orgs.Item.Properties.Schema.SchemaRequestBuilder Schema { - get => new SchemaRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Properties.Schema.SchemaRequestBuilder(PathParameters, RequestAdapter); } /// The values property - public ValuesRequestBuilder Values + public global::GitHub.Orgs.Item.Properties.Values.ValuesRequestBuilder Values { - get => new ValuesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Properties.Values.ValuesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -32,7 +34,7 @@ public PropertiesRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Properties/Schema/Item/WithCustom_property_nameItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Properties/Schema/Item/WithCustom_property_nameItemRequestBuilder.cs index f8f8fa8e..084d5dbe 100644 --- a/src/GitHub/Orgs/Item/Properties/Schema/Item/WithCustom_property_nameItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Properties/Schema/Item/WithCustom_property_nameItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Properties.Schema.Item { +namespace GitHub.Orgs.Item.Properties.Schema.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\properties\schema\{custom_property_name} /// - public class WithCustom_property_nameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithCustom_property_nameItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithCustom_property_nameItemRequestBuilder(Dictionary pat { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,8 +38,8 @@ public WithCustom_property_nameItemRequestBuilder(string rawUrl, IRequestAdapter /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -50,8 +52,8 @@ public async Task DeleteAsync(Action> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -59,55 +61,55 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CustomProperty.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CustomProperty.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Creates a new or updates an existing custom property that is defined 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 permission of `custom_properties_org_definitions_manager` in the organization. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(WithCustom_property_namePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Properties.Schema.Item.WithCustom_property_namePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(WithCustom_property_namePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Properties.Schema.Item.WithCustom_property_namePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CustomProperty.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CustomProperty.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Removes a custom property that is defined 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 permission of `custom_properties_org_definitions_manager` in the organization. @@ -155,11 +157,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(WithCustom_property_namePutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Properties.Schema.Item.WithCustom_property_namePutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(WithCustom_property_namePutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Properties.Schema.Item.WithCustom_property_namePutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -172,11 +174,11 @@ public RequestInformation ToPutRequestInformation(WithCustom_property_namePutReq /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithCustom_property_nameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Properties.Schema.Item.WithCustom_property_nameItemRequestBuilder WithUrl(string rawUrl) { - return new WithCustom_property_nameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Properties.Schema.Item.WithCustom_property_nameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Properties/Schema/Item/WithCustom_property_namePutRequestBody.cs b/src/GitHub/Orgs/Item/Properties/Schema/Item/WithCustom_property_namePutRequestBody.cs index 4195429a..4481ba0c 100644 --- a/src/GitHub/Orgs/Item/Properties/Schema/Item/WithCustom_property_namePutRequestBody.cs +++ b/src/GitHub/Orgs/Item/Properties/Schema/Item/WithCustom_property_namePutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Properties.Schema.Item { +namespace GitHub.Orgs.Item.Properties.Schema.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithCustom_property_namePutRequestBody : IAdditionalDataHolder, IParsable + public partial class WithCustom_property_namePutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,10 +24,10 @@ public class WithCustom_property_namePutRequestBody : IAdditionalDataHolder, IPa /// Default value of the property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithCustom_property_namePutRequestBody_default_value? DefaultValue { get; set; } + public global::GitHub.Orgs.Item.Properties.Schema.Item.WithCustom_property_namePutRequestBody.WithCustom_property_namePutRequestBody_default_value? DefaultValue { get; set; } #nullable restore #else - public WithCustom_property_namePutRequestBody_default_value DefaultValue { get; set; } + public global::GitHub.Orgs.Item.Properties.Schema.Item.WithCustom_property_namePutRequestBody.WithCustom_property_namePutRequestBody_default_value DefaultValue { get; set; } #endif /// Short description of the property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -38,9 +40,9 @@ public class WithCustom_property_namePutRequestBody : IAdditionalDataHolder, IPa /// Whether the property is required. public bool? Required { get; set; } /// The type of the value for the property - public WithCustom_property_namePutRequestBody_value_type? ValueType { get; set; } + public global::GitHub.Orgs.Item.Properties.Schema.Item.WithCustom_property_namePutRequestBody_value_type? ValueType { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithCustom_property_namePutRequestBody() { @@ -49,12 +51,12 @@ public WithCustom_property_namePutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithCustom_property_namePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Properties.Schema.Item.WithCustom_property_namePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithCustom_property_namePutRequestBody(); + return new global::GitHub.Orgs.Item.Properties.Schema.Item.WithCustom_property_namePutRequestBody(); } /// /// The deserialization information for the current model @@ -64,11 +66,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allowed_values", n => { AllowedValues = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"default_value", n => { DefaultValue = n.GetObjectValue(WithCustom_property_namePutRequestBody_default_value.CreateFromDiscriminatorValue); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"required", n => { Required = n.GetBoolValue(); } }, - {"value_type", n => { ValueType = n.GetEnumValue(); } }, + { "allowed_values", n => { AllowedValues = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "default_value", n => { DefaultValue = n.GetObjectValue(global::GitHub.Orgs.Item.Properties.Schema.Item.WithCustom_property_namePutRequestBody.WithCustom_property_namePutRequestBody_default_value.CreateFromDiscriminatorValue); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "required", n => { Required = n.GetBoolValue(); } }, + { "value_type", n => { ValueType = n.GetEnumValue(); } }, }; } /// @@ -79,16 +81,17 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("allowed_values", AllowedValues); - writer.WriteObjectValue("default_value", DefaultValue); + writer.WriteObjectValue("default_value", DefaultValue); writer.WriteStringValue("description", Description); writer.WriteBoolValue("required", Required); - writer.WriteEnumValue("value_type", ValueType); + writer.WriteEnumValue("value_type", ValueType); writer.WriteAdditionalData(AdditionalData); } /// /// Composed type wrapper for classes /// - public class WithCustom_property_namePutRequestBody_default_value : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithCustom_property_namePutRequestBody_default_value : IComposedTypeWrapper, IParsable { /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -101,13 +104,13 @@ public class WithCustom_property_namePutRequestBody_default_value : IComposedTyp /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithCustom_property_namePutRequestBody_default_value CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Properties.Schema.Item.WithCustom_property_namePutRequestBody.WithCustom_property_namePutRequestBody_default_value CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new WithCustom_property_namePutRequestBody_default_value(); + var result = new global::GitHub.Orgs.Item.Properties.Schema.Item.WithCustom_property_namePutRequestBody.WithCustom_property_namePutRequestBody_default_value(); if(parseNode.GetStringValue() is string stringValue) { result.String = stringValue; diff --git a/src/GitHub/Orgs/Item/Properties/Schema/Item/WithCustom_property_namePutRequestBody_value_type.cs b/src/GitHub/Orgs/Item/Properties/Schema/Item/WithCustom_property_namePutRequestBody_value_type.cs index 0254fb2a..65a054d5 100644 --- a/src/GitHub/Orgs/Item/Properties/Schema/Item/WithCustom_property_namePutRequestBody_value_type.cs +++ b/src/GitHub/Orgs/Item/Properties/Schema/Item/WithCustom_property_namePutRequestBody_value_type.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Properties.Schema.Item { +namespace GitHub.Orgs.Item.Properties.Schema.Item +{ /// The type of the value for the property + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithCustom_property_namePutRequestBody_value_type { [EnumMember(Value = "string")] diff --git a/src/GitHub/Orgs/Item/Properties/Schema/SchemaPatchRequestBody.cs b/src/GitHub/Orgs/Item/Properties/Schema/SchemaPatchRequestBody.cs index 7bf972d7..b04569e7 100644 --- a/src/GitHub/Orgs/Item/Properties/Schema/SchemaPatchRequestBody.cs +++ b/src/GitHub/Orgs/Item/Properties/Schema/SchemaPatchRequestBody.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Properties.Schema { +namespace GitHub.Orgs.Item.Properties.Schema +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SchemaPatchRequestBody : IAdditionalDataHolder, IParsable + public partial class SchemaPatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,13 +17,13 @@ public class SchemaPatchRequestBody : IAdditionalDataHolder, IParsable /// The array of custom properties to create or update. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Properties { get; set; } + public List? Properties { get; set; } #nullable restore #else - public List Properties { get; set; } + public List Properties { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SchemaPatchRequestBody() { @@ -30,12 +32,12 @@ public SchemaPatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SchemaPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Properties.Schema.SchemaPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SchemaPatchRequestBody(); + return new global::GitHub.Orgs.Item.Properties.Schema.SchemaPatchRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"properties", n => { Properties = n.GetCollectionOfObjectValues(CustomProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + { "properties", n => { Properties = n.GetCollectionOfObjectValues(global::GitHub.Models.CustomProperty.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("properties", Properties); + writer.WriteCollectionOfObjectValues("properties", Properties); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Properties/Schema/SchemaRequestBuilder.cs b/src/GitHub/Orgs/Item/Properties/Schema/SchemaRequestBuilder.cs index aaf416b5..fc8865fc 100644 --- a/src/GitHub/Orgs/Item/Properties/Schema/SchemaRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Properties/Schema/SchemaRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Properties.Schema.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Properties.Schema { +namespace GitHub.Orgs.Item.Properties.Schema +{ /// /// Builds and executes requests for operations under \orgs\{org}\properties\schema /// - public class SchemaRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SchemaRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.properties.schema.item collection /// The custom property name. The name is case sensitive. - /// A - public WithCustom_property_nameItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Properties.Schema.Item.WithCustom_property_nameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("custom_property_name", position); - return new WithCustom_property_nameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Properties.Schema.Item.WithCustom_property_nameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public SchemaRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,57 +49,57 @@ public SchemaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Gets all custom properties defined for an organization.Organization members can read these properties. /// API method documentation /// - /// A List<CustomProperty> + /// A List<global::GitHub.Models.CustomProperty> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CustomProperty.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CustomProperty.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Creates new or updates existing custom properties defined for an organization in a batch.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 permission of `custom_properties_org_definitions_manager` in the organization. /// API method documentation /// - /// A List<CustomProperty> + /// A List<global::GitHub.Models.CustomProperty> /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> PatchAsync(SchemaPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> PatchAsync(global::GitHub.Orgs.Item.Properties.Schema.SchemaPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> PatchAsync(SchemaPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> PatchAsync(global::GitHub.Orgs.Item.Properties.Schema.SchemaPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CustomProperty.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CustomProperty.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Gets all custom properties defined for an organization.Organization members can read these properties. @@ -126,11 +128,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(SchemaPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Properties.Schema.SchemaPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(SchemaPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Properties.Schema.SchemaPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -143,11 +145,11 @@ public RequestInformation ToPatchRequestInformation(SchemaPatchRequestBody body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SchemaRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Properties.Schema.SchemaRequestBuilder WithUrl(string rawUrl) { - return new SchemaRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Properties.Schema.SchemaRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Properties/Values/ValuesPatchRequestBody.cs b/src/GitHub/Orgs/Item/Properties/Values/ValuesPatchRequestBody.cs index 0cfb2171..1e97e615 100644 --- a/src/GitHub/Orgs/Item/Properties/Values/ValuesPatchRequestBody.cs +++ b/src/GitHub/Orgs/Item/Properties/Values/ValuesPatchRequestBody.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Properties.Values { +namespace GitHub.Orgs.Item.Properties.Values +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ValuesPatchRequestBody : IAdditionalDataHolder, IParsable + public partial class ValuesPatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,10 +17,10 @@ public class ValuesPatchRequestBody : IAdditionalDataHolder, IParsable /// List of custom property names and associated values to apply to the repositories. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Properties { get; set; } + public List? Properties { get; set; } #nullable restore #else - public List Properties { get; set; } + public List Properties { get; set; } #endif /// The names of repositories that the custom property values will be applied to. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -29,7 +31,7 @@ public class ValuesPatchRequestBody : IAdditionalDataHolder, IParsable public List RepositoryNames { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ValuesPatchRequestBody() { @@ -38,12 +40,12 @@ public ValuesPatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ValuesPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Properties.Values.ValuesPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ValuesPatchRequestBody(); + return new global::GitHub.Orgs.Item.Properties.Values.ValuesPatchRequestBody(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"properties", n => { Properties = n.GetCollectionOfObjectValues(CustomPropertyValue.CreateFromDiscriminatorValue)?.ToList(); } }, - {"repository_names", n => { RepositoryNames = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "properties", n => { Properties = n.GetCollectionOfObjectValues(global::GitHub.Models.CustomPropertyValue.CreateFromDiscriminatorValue)?.AsList(); } }, + { "repository_names", n => { RepositoryNames = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -64,7 +66,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("properties", Properties); + writer.WriteCollectionOfObjectValues("properties", Properties); writer.WriteCollectionOfPrimitiveValues("repository_names", RepositoryNames); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Properties/Values/ValuesRequestBuilder.cs b/src/GitHub/Orgs/Item/Properties/Values/ValuesRequestBuilder.cs index c1462b7e..73d56f62 100644 --- a/src/GitHub/Orgs/Item/Properties/Values/ValuesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Properties/Values/ValuesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Properties.Values { +namespace GitHub.Orgs.Item.Properties.Values +{ /// /// Builds and executes requests for operations under \orgs\{org}\properties\values /// - public class ValuesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ValuesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ValuesRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,28 +36,28 @@ public ValuesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Lists organization repositories with all of their custom property values.Organization members can read these properties. /// API method documentation /// - /// A List<OrgRepoCustomPropertyValues> + /// A List<global::GitHub.Models.OrgRepoCustomPropertyValues> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, OrgRepoCustomPropertyValues.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.OrgRepoCustomPropertyValues.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create new or update existing custom property values for repositories in a batch that belong to an organization.Each target repository will have its custom property values updated to match the values provided in the request.A maximum of 30 repositories can be updated in a single request.Using a value of `null` for a custom property will remove or 'unset' the property value from the repository.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 permission of `custom_properties_org_values_editor` in the organization. @@ -64,25 +66,25 @@ public async Task> GetAsync(ActionThe request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(ValuesPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.Properties.Values.ValuesPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(ValuesPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.Properties.Values.ValuesPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -93,11 +95,11 @@ public async Task PatchAsync(ValuesPatchRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -113,11 +115,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ValuesPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Properties.Values.ValuesPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ValuesPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Properties.Values.ValuesPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -130,16 +132,17 @@ public RequestInformation ToPatchRequestInformation(ValuesPatchRequestBody body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ValuesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Properties.Values.ValuesRequestBuilder WithUrl(string rawUrl) { - return new ValuesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Properties.Values.ValuesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists organization repositories with all of their custom property values.Organization members can read these properties. /// - public class ValuesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ValuesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Public_members/Item/WithUsernameItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Public_members/Item/WithUsernameItemRequestBuilder.cs index fc967837..a8243b92 100644 --- a/src/GitHub/Orgs/Item/Public_members/Item/WithUsernameItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Public_members/Item/WithUsernameItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Public_members.Item { +namespace GitHub.Orgs.Item.Public_members.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\public_members\{username} /// - public class WithUsernameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithUsernameItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithUsernameItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -72,7 +74,7 @@ public async Task GetAsync(Action> /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -85,7 +87,7 @@ public async Task PutAsync(Action> var requestInfo = ToPutRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -147,11 +149,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithUsernameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Public_members.Item.WithUsernameItemRequestBuilder WithUrl(string rawUrl) { - return new WithUsernameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Public_members.Item.WithUsernameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Public_members/Public_membersRequestBuilder.cs b/src/GitHub/Orgs/Item/Public_members/Public_membersRequestBuilder.cs index de86d218..c3ff66f3 100644 --- a/src/GitHub/Orgs/Item/Public_members/Public_membersRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Public_members/Public_membersRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Public_members.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Public_members { +namespace GitHub.Orgs.Item.Public_members +{ /// /// Builds and executes requests for operations under \orgs\{org}\public_members /// - public class Public_membersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Public_membersRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.public_members.item collection /// The handle for the GitHub user account. - /// A - public WithUsernameItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Public_members.Item.WithUsernameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("username", position); - return new WithUsernameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Public_members.Item.WithUsernameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public Public_membersRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public Public_membersRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Members of an organization can choose to have their membership publicized or not. /// API method documentation /// - /// A List<SimpleUser> + /// A List<global::GitHub.Models.SimpleUser> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, SimpleUser.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Members of an organization can choose to have their membership publicized or not. @@ -70,11 +72,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -85,16 +87,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Public_membersRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Public_members.Public_membersRequestBuilder WithUrl(string rawUrl) { - return new Public_membersRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Public_members.Public_membersRequestBuilder(rawUrl, RequestAdapter); } /// /// Members of an organization can choose to have their membership publicized or not. /// - public class Public_membersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Public_membersRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Repos/GetDirectionQueryParameterType.cs b/src/GitHub/Orgs/Item/Repos/GetDirectionQueryParameterType.cs index b9e09d6a..2fb34689 100644 --- a/src/GitHub/Orgs/Item/Repos/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Repos/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Repos { +namespace GitHub.Orgs.Item.Repos +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Repos/GetSortQueryParameterType.cs b/src/GitHub/Orgs/Item/Repos/GetSortQueryParameterType.cs index bec48e16..526a8c5f 100644 --- a/src/GitHub/Orgs/Item/Repos/GetSortQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Repos/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Repos { +namespace GitHub.Orgs.Item.Repos +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Repos/GetTypeQueryParameterType.cs b/src/GitHub/Orgs/Item/Repos/GetTypeQueryParameterType.cs index 3c589874..d512454a 100644 --- a/src/GitHub/Orgs/Item/Repos/GetTypeQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Repos/GetTypeQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Repos { +namespace GitHub.Orgs.Item.Repos +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetTypeQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody.cs b/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody.cs index a58979af..01621501 100644 --- a/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Repos { +namespace GitHub.Orgs.Item.Repos +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ReposPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ReposPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -24,10 +26,10 @@ public class ReposPostRequestBody : IAdditionalDataHolder, IParsable /// The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ReposPostRequestBody_custom_properties? CustomProperties { get; set; } + public global::GitHub.Orgs.Item.Repos.ReposPostRequestBody_custom_properties? CustomProperties { get; set; } #nullable restore #else - public ReposPostRequestBody_custom_properties CustomProperties { get; set; } + public global::GitHub.Orgs.Item.Repos.ReposPostRequestBody_custom_properties CustomProperties { get; set; } #endif /// Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.** public bool? DeleteBranchOnMerge { get; set; } @@ -74,9 +76,9 @@ public class ReposPostRequestBody : IAdditionalDataHolder, IParsable public string LicenseTemplate { get; set; } #endif /// 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. - public ReposPostRequestBody_merge_commit_message? MergeCommitMessage { get; set; } + public global::GitHub.Orgs.Item.Repos.ReposPostRequestBody_merge_commit_message? MergeCommitMessage { get; set; } /// Required when using `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). - public ReposPostRequestBody_merge_commit_title? MergeCommitTitle { get; set; } + public global::GitHub.Orgs.Item.Repos.ReposPostRequestBody_merge_commit_title? MergeCommitTitle { get; set; } /// The name of the repository. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -88,18 +90,18 @@ public class ReposPostRequestBody : IAdditionalDataHolder, IParsable /// Whether the repository is private. public bool? Private { get; set; } /// 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. - public ReposPostRequestBody_squash_merge_commit_message? SquashMergeCommitMessage { get; set; } + public global::GitHub.Orgs.Item.Repos.ReposPostRequestBody_squash_merge_commit_message? SquashMergeCommitMessage { get; set; } /// Required when using `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). - public ReposPostRequestBody_squash_merge_commit_title? SquashMergeCommitTitle { get; set; } + public global::GitHub.Orgs.Item.Repos.ReposPostRequestBody_squash_merge_commit_title? SquashMergeCommitTitle { get; set; } /// The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. public int? TeamId { get; set; } /// 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. [Obsolete("")] public bool? UseSquashPrTitleAsDefault { get; set; } /// The visibility of the repository. - public ReposPostRequestBody_visibility? Visibility { get; set; } + public global::GitHub.Orgs.Item.Repos.ReposPostRequestBody_visibility? Visibility { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReposPostRequestBody() { @@ -108,12 +110,12 @@ public ReposPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ReposPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Repos.ReposPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReposPostRequestBody(); + return new global::GitHub.Orgs.Item.Repos.ReposPostRequestBody(); } /// /// The deserialization information for the current model @@ -123,31 +125,31 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allow_auto_merge", n => { AllowAutoMerge = n.GetBoolValue(); } }, - {"allow_merge_commit", n => { AllowMergeCommit = n.GetBoolValue(); } }, - {"allow_rebase_merge", n => { AllowRebaseMerge = n.GetBoolValue(); } }, - {"allow_squash_merge", n => { AllowSquashMerge = n.GetBoolValue(); } }, - {"auto_init", n => { AutoInit = n.GetBoolValue(); } }, - {"custom_properties", n => { CustomProperties = n.GetObjectValue(ReposPostRequestBody_custom_properties.CreateFromDiscriminatorValue); } }, - {"delete_branch_on_merge", n => { DeleteBranchOnMerge = n.GetBoolValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"gitignore_template", n => { GitignoreTemplate = n.GetStringValue(); } }, - {"has_downloads", n => { HasDownloads = n.GetBoolValue(); } }, - {"has_issues", n => { HasIssues = n.GetBoolValue(); } }, - {"has_projects", n => { HasProjects = n.GetBoolValue(); } }, - {"has_wiki", n => { HasWiki = n.GetBoolValue(); } }, - {"homepage", n => { Homepage = n.GetStringValue(); } }, - {"is_template", n => { IsTemplate = n.GetBoolValue(); } }, - {"license_template", n => { LicenseTemplate = n.GetStringValue(); } }, - {"merge_commit_message", n => { MergeCommitMessage = n.GetEnumValue(); } }, - {"merge_commit_title", n => { MergeCommitTitle = n.GetEnumValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"private", n => { Private = n.GetBoolValue(); } }, - {"squash_merge_commit_message", n => { SquashMergeCommitMessage = n.GetEnumValue(); } }, - {"squash_merge_commit_title", n => { SquashMergeCommitTitle = n.GetEnumValue(); } }, - {"team_id", n => { TeamId = n.GetIntValue(); } }, - {"use_squash_pr_title_as_default", n => { UseSquashPrTitleAsDefault = n.GetBoolValue(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, + { "allow_auto_merge", n => { AllowAutoMerge = n.GetBoolValue(); } }, + { "allow_merge_commit", n => { AllowMergeCommit = n.GetBoolValue(); } }, + { "allow_rebase_merge", n => { AllowRebaseMerge = n.GetBoolValue(); } }, + { "allow_squash_merge", n => { AllowSquashMerge = n.GetBoolValue(); } }, + { "auto_init", n => { AutoInit = n.GetBoolValue(); } }, + { "custom_properties", n => { CustomProperties = n.GetObjectValue(global::GitHub.Orgs.Item.Repos.ReposPostRequestBody_custom_properties.CreateFromDiscriminatorValue); } }, + { "delete_branch_on_merge", n => { DeleteBranchOnMerge = n.GetBoolValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "gitignore_template", n => { GitignoreTemplate = n.GetStringValue(); } }, + { "has_downloads", n => { HasDownloads = n.GetBoolValue(); } }, + { "has_issues", n => { HasIssues = n.GetBoolValue(); } }, + { "has_projects", n => { HasProjects = n.GetBoolValue(); } }, + { "has_wiki", n => { HasWiki = n.GetBoolValue(); } }, + { "homepage", n => { Homepage = n.GetStringValue(); } }, + { "is_template", n => { IsTemplate = n.GetBoolValue(); } }, + { "license_template", n => { LicenseTemplate = n.GetStringValue(); } }, + { "merge_commit_message", n => { MergeCommitMessage = n.GetEnumValue(); } }, + { "merge_commit_title", n => { MergeCommitTitle = n.GetEnumValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "private", n => { Private = n.GetBoolValue(); } }, + { "squash_merge_commit_message", n => { SquashMergeCommitMessage = n.GetEnumValue(); } }, + { "squash_merge_commit_title", n => { SquashMergeCommitTitle = n.GetEnumValue(); } }, + { "team_id", n => { TeamId = n.GetIntValue(); } }, + { "use_squash_pr_title_as_default", n => { UseSquashPrTitleAsDefault = n.GetBoolValue(); } }, + { "visibility", n => { Visibility = n.GetEnumValue(); } }, }; } /// @@ -162,7 +164,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("allow_rebase_merge", AllowRebaseMerge); writer.WriteBoolValue("allow_squash_merge", AllowSquashMerge); writer.WriteBoolValue("auto_init", AutoInit); - writer.WriteObjectValue("custom_properties", CustomProperties); + writer.WriteObjectValue("custom_properties", CustomProperties); writer.WriteBoolValue("delete_branch_on_merge", DeleteBranchOnMerge); writer.WriteStringValue("description", Description); writer.WriteStringValue("gitignore_template", GitignoreTemplate); @@ -173,15 +175,15 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("homepage", Homepage); writer.WriteBoolValue("is_template", IsTemplate); writer.WriteStringValue("license_template", LicenseTemplate); - writer.WriteEnumValue("merge_commit_message", MergeCommitMessage); - writer.WriteEnumValue("merge_commit_title", MergeCommitTitle); + writer.WriteEnumValue("merge_commit_message", MergeCommitMessage); + writer.WriteEnumValue("merge_commit_title", MergeCommitTitle); writer.WriteStringValue("name", Name); writer.WriteBoolValue("private", Private); - writer.WriteEnumValue("squash_merge_commit_message", SquashMergeCommitMessage); - writer.WriteEnumValue("squash_merge_commit_title", SquashMergeCommitTitle); + writer.WriteEnumValue("squash_merge_commit_message", SquashMergeCommitMessage); + writer.WriteEnumValue("squash_merge_commit_title", SquashMergeCommitTitle); writer.WriteIntValue("team_id", TeamId); writer.WriteBoolValue("use_squash_pr_title_as_default", UseSquashPrTitleAsDefault); - writer.WriteEnumValue("visibility", Visibility); + writer.WriteEnumValue("visibility", Visibility); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_custom_properties.cs b/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_custom_properties.cs index 010ac971..30484cb9 100644 --- a/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_custom_properties.cs +++ b/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_custom_properties.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Repos { +namespace GitHub.Orgs.Item.Repos +{ /// /// The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values. /// - public class ReposPostRequestBody_custom_properties : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReposPostRequestBody_custom_properties : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReposPostRequestBody_custom_properties() { @@ -22,12 +24,12 @@ public ReposPostRequestBody_custom_properties() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ReposPostRequestBody_custom_properties CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Repos.ReposPostRequestBody_custom_properties CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReposPostRequestBody_custom_properties(); + return new global::GitHub.Orgs.Item.Repos.ReposPostRequestBody_custom_properties(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_merge_commit_message.cs b/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_merge_commit_message.cs index b12490f3..c0caf878 100644 --- a/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_merge_commit_message.cs +++ b/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_merge_commit_message.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Repos { +namespace GitHub.Orgs.Item.Repos +{ /// 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. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ReposPostRequestBody_merge_commit_message { [EnumMember(Value = "PR_BODY")] diff --git a/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_merge_commit_title.cs b/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_merge_commit_title.cs index 40d4c094..a1858948 100644 --- a/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_merge_commit_title.cs +++ b/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_merge_commit_title.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Repos { +namespace GitHub.Orgs.Item.Repos +{ /// Required when using `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). + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ReposPostRequestBody_merge_commit_title { [EnumMember(Value = "PR_TITLE")] diff --git a/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_squash_merge_commit_message.cs b/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_squash_merge_commit_message.cs index 1171a1a4..ae923742 100644 --- a/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_squash_merge_commit_message.cs +++ b/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_squash_merge_commit_message.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Repos { +namespace GitHub.Orgs.Item.Repos +{ /// 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. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ReposPostRequestBody_squash_merge_commit_message { [EnumMember(Value = "PR_BODY")] diff --git a/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_squash_merge_commit_title.cs b/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_squash_merge_commit_title.cs index 11c74af6..5cdf7e99 100644 --- a/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_squash_merge_commit_title.cs +++ b/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_squash_merge_commit_title.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Repos { +namespace GitHub.Orgs.Item.Repos +{ /// Required when using `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). + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ReposPostRequestBody_squash_merge_commit_title { [EnumMember(Value = "PR_TITLE")] diff --git a/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_visibility.cs b/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_visibility.cs index e0631e9f..6b6fe343 100644 --- a/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_visibility.cs +++ b/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody_visibility.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Repos { +namespace GitHub.Orgs.Item.Repos +{ /// The visibility of the repository. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ReposPostRequestBody_visibility { [EnumMember(Value = "public")] diff --git a/src/GitHub/Orgs/Item/Repos/ReposRequestBuilder.cs b/src/GitHub/Orgs/Item/Repos/ReposRequestBuilder.cs index d4fffdbf..454cfb20 100644 --- a/src/GitHub/Orgs/Item/Repos/ReposRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Repos/ReposRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Repos { +namespace GitHub.Orgs.Item.Repos +{ /// /// Builds and executes requests for operations under \orgs\{org}\repos /// - public class ReposRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReposRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ReposRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,49 +36,49 @@ public ReposRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Lists repositories for the specified organization.> [!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/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)." /// API method documentation /// - /// A List<MinimalRepository> + /// A List<global::GitHub.Models.MinimalRepository> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, MinimalRepository.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.MinimalRepository.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Creates a new repository in the specified organization. The authenticated user must be a member of the organization.OAuth app tokens and personal access tokens (classic) need the `public_repo` or `repo` scope to create a public repository, and `repo` scope to create a private repository. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ReposPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Repos.ReposPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(ReposPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Repos.ReposPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, FullRepository.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.FullRepository.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists repositories for the specified organization.> [!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/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)." @@ -85,11 +87,11 @@ public async Task PostAsync(ReposPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -105,11 +107,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ReposPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Repos.ReposPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReposPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Repos.ReposPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,20 +124,21 @@ public RequestInformation ToPostRequestInformation(ReposPostRequestBody body, Ac /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ReposRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Repos.ReposRequestBuilder WithUrl(string rawUrl) { - return new ReposRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Repos.ReposRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists repositories for the specified organization.> [!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/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)." /// - public class ReposRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReposRequestBuilderGetQueryParameters { /// The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Orgs.Item.Repos.GetDirectionQueryParameterType? Direction { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } @@ -144,10 +147,10 @@ public class ReposRequestBuilderGetQueryParameters public int? PerPage { get; set; } /// The property to sort the results by. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Orgs.Item.Repos.GetSortQueryParameterType? Sort { get; set; } /// Specifies the types of repositories you want returned. `internal` is not yet supported when a GitHub App calls this endpoint with an installation access token. [QueryParameter("type")] - public GetTypeQueryParameterType? Type { get; set; } + public global::GitHub.Orgs.Item.Repos.GetTypeQueryParameterType? Type { get; set; } } } } diff --git a/src/GitHub/Orgs/Item/RepositoryFineGrainedPermissions/RepositoryFineGrainedPermissionsRequestBuilder.cs b/src/GitHub/Orgs/Item/RepositoryFineGrainedPermissions/RepositoryFineGrainedPermissionsRequestBuilder.cs index 0d7a83bc..9378144b 100644 --- a/src/GitHub/Orgs/Item/RepositoryFineGrainedPermissions/RepositoryFineGrainedPermissionsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/RepositoryFineGrainedPermissions/RepositoryFineGrainedPermissionsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.RepositoryFineGrainedPermissions { +namespace GitHub.Orgs.Item.RepositoryFineGrainedPermissions +{ /// /// Builds and executes requests for operations under \orgs\{org}\repository-fine-grained-permissions /// - public class RepositoryFineGrainedPermissionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RepositoryFineGrainedPermissionsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RepositoryFineGrainedPermissionsRequestBuilder(Dictionary { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public RepositoryFineGrainedPermissionsRequestBuilder(string rawUrl, IRequestAda /// Lists the fine-grained permissions that can be used in custom repository roles for an organization. For more information, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be an administrator of the organization or of a repository of the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. /// API method documentation /// - /// A List<RepositoryFineGrainedPermission> + /// A List<global::GitHub.Models.RepositoryFineGrainedPermission> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RepositoryFineGrainedPermission.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.RepositoryFineGrainedPermission.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists the fine-grained permissions that can be used in custom repository roles for an organization. For more information, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be an administrator of the organization or of a repository of the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. @@ -72,11 +74,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RepositoryFineGrainedPermissionsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.RepositoryFineGrainedPermissions.RepositoryFineGrainedPermissionsRequestBuilder WithUrl(string rawUrl) { - return new RepositoryFineGrainedPermissionsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.RepositoryFineGrainedPermissions.RepositoryFineGrainedPermissionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Rulesets/Item/WithRuleset_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Rulesets/Item/WithRuleset_ItemRequestBuilder.cs index 88198c33..46882b5f 100644 --- a/src/GitHub/Orgs/Item/Rulesets/Item/WithRuleset_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Rulesets/Item/WithRuleset_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Rulesets.Item { +namespace GitHub.Orgs.Item.Rulesets.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\rulesets\{ruleset_id} /// - public class WithRuleset_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRuleset_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithRuleset_ItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,8 +38,8 @@ public WithRuleset_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -50,8 +52,8 @@ public async Task DeleteAsync(Action> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -59,55 +61,55 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, RepositoryRuleset.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.RepositoryRuleset.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update a ruleset for an organization. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(WithRuleset_PutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Rulesets.Item.WithRuleset_PutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(WithRuleset_PutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Rulesets.Item.WithRuleset_PutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, RepositoryRuleset.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.RepositoryRuleset.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Delete a ruleset for an organization. @@ -155,11 +157,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(WithRuleset_PutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Rulesets.Item.WithRuleset_PutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(WithRuleset_PutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Rulesets.Item.WithRuleset_PutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -172,11 +174,11 @@ public RequestInformation ToPutRequestInformation(WithRuleset_PutRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRuleset_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Rulesets.Item.WithRuleset_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithRuleset_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Rulesets.Item.WithRuleset_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Rulesets/Item/WithRuleset_PutRequestBody.cs b/src/GitHub/Orgs/Item/Rulesets/Item/WithRuleset_PutRequestBody.cs index f0071df3..e835bcb8 100644 --- a/src/GitHub/Orgs/Item/Rulesets/Item/WithRuleset_PutRequestBody.cs +++ b/src/GitHub/Orgs/Item/Rulesets/Item/WithRuleset_PutRequestBody.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Rulesets.Item { +namespace GitHub.Orgs.Item.Rulesets.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithRuleset_PutRequestBody : IAdditionalDataHolder, IParsable + public partial class WithRuleset_PutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,21 +17,21 @@ public class WithRuleset_PutRequestBody : IAdditionalDataHolder, IParsable /// The actors that can bypass the rules in this ruleset #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? BypassActors { get; set; } + public List? BypassActors { get; set; } #nullable restore #else - public List BypassActors { get; set; } + public List BypassActors { get; set; } #endif /// Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrgRulesetConditions? Conditions { get; set; } + public global::GitHub.Models.OrgRulesetConditions? Conditions { get; set; } #nullable restore #else - public OrgRulesetConditions Conditions { get; set; } + public global::GitHub.Models.OrgRulesetConditions Conditions { get; set; } #endif /// The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. - public RepositoryRuleEnforcement? Enforcement { get; set; } + public global::GitHub.Models.RepositoryRuleEnforcement? Enforcement { get; set; } /// The name of the ruleset. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -41,15 +43,15 @@ public class WithRuleset_PutRequestBody : IAdditionalDataHolder, IParsable /// An array of rules within the ruleset. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Rules { get; set; } + public List? Rules { get; set; } #nullable restore #else - public List Rules { get; set; } + public List Rules { get; set; } #endif /// The target of the ruleset> [!NOTE]> The `push` target is in beta and is subject to change. - public WithRuleset_PutRequestBody_target? Target { get; set; } + public global::GitHub.Orgs.Item.Rulesets.Item.WithRuleset_PutRequestBody_target? Target { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithRuleset_PutRequestBody() { @@ -58,12 +60,12 @@ public WithRuleset_PutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithRuleset_PutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Rulesets.Item.WithRuleset_PutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithRuleset_PutRequestBody(); + return new global::GitHub.Orgs.Item.Rulesets.Item.WithRuleset_PutRequestBody(); } /// /// The deserialization information for the current model @@ -73,12 +75,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"bypass_actors", n => { BypassActors = n.GetCollectionOfObjectValues(RepositoryRulesetBypassActor.CreateFromDiscriminatorValue)?.ToList(); } }, - {"conditions", n => { Conditions = n.GetObjectValue(OrgRulesetConditions.CreateFromDiscriminatorValue); } }, - {"enforcement", n => { Enforcement = n.GetEnumValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"rules", n => { Rules = n.GetCollectionOfObjectValues(RepositoryRule.CreateFromDiscriminatorValue)?.ToList(); } }, - {"target", n => { Target = n.GetEnumValue(); } }, + { "bypass_actors", n => { BypassActors = n.GetCollectionOfObjectValues(global::GitHub.Models.RepositoryRulesetBypassActor.CreateFromDiscriminatorValue)?.AsList(); } }, + { "conditions", n => { Conditions = n.GetObjectValue(global::GitHub.Models.OrgRulesetConditions.CreateFromDiscriminatorValue); } }, + { "enforcement", n => { Enforcement = n.GetEnumValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "rules", n => { Rules = n.GetCollectionOfObjectValues(global::GitHub.Models.RepositoryRule.CreateFromDiscriminatorValue)?.AsList(); } }, + { "target", n => { Target = n.GetEnumValue(); } }, }; } /// @@ -88,12 +90,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("bypass_actors", BypassActors); - writer.WriteObjectValue("conditions", Conditions); - writer.WriteEnumValue("enforcement", Enforcement); + writer.WriteCollectionOfObjectValues("bypass_actors", BypassActors); + writer.WriteObjectValue("conditions", Conditions); + writer.WriteEnumValue("enforcement", Enforcement); writer.WriteStringValue("name", Name); - writer.WriteCollectionOfObjectValues("rules", Rules); - writer.WriteEnumValue("target", Target); + writer.WriteCollectionOfObjectValues("rules", Rules); + writer.WriteEnumValue("target", Target); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Rulesets/Item/WithRuleset_PutRequestBody_target.cs b/src/GitHub/Orgs/Item/Rulesets/Item/WithRuleset_PutRequestBody_target.cs index 5d6c575e..903fffb8 100644 --- a/src/GitHub/Orgs/Item/Rulesets/Item/WithRuleset_PutRequestBody_target.cs +++ b/src/GitHub/Orgs/Item/Rulesets/Item/WithRuleset_PutRequestBody_target.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Rulesets.Item { +namespace GitHub.Orgs.Item.Rulesets.Item +{ /// The target of the ruleset> [!NOTE]> The `push` target is in beta and is subject to change. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithRuleset_PutRequestBody_target { [EnumMember(Value = "branch")] diff --git a/src/GitHub/Orgs/Item/Rulesets/RuleSuites/GetRule_suite_resultQueryParameterType.cs b/src/GitHub/Orgs/Item/Rulesets/RuleSuites/GetRule_suite_resultQueryParameterType.cs index fc82ff9a..b1cf8e4f 100644 --- a/src/GitHub/Orgs/Item/Rulesets/RuleSuites/GetRule_suite_resultQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Rulesets/RuleSuites/GetRule_suite_resultQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Rulesets.RuleSuites { +namespace GitHub.Orgs.Item.Rulesets.RuleSuites +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetRule_suite_resultQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Rulesets/RuleSuites/GetTime_periodQueryParameterType.cs b/src/GitHub/Orgs/Item/Rulesets/RuleSuites/GetTime_periodQueryParameterType.cs index 09e16cdf..ef622575 100644 --- a/src/GitHub/Orgs/Item/Rulesets/RuleSuites/GetTime_periodQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Rulesets/RuleSuites/GetTime_periodQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Rulesets.RuleSuites { +namespace GitHub.Orgs.Item.Rulesets.RuleSuites +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetTime_periodQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Rulesets/RuleSuites/Item/WithRule_suite_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Rulesets/RuleSuites/Item/WithRule_suite_ItemRequestBuilder.cs index 14d640b5..e75f9720 100644 --- a/src/GitHub/Orgs/Item/Rulesets/RuleSuites/Item/WithRule_suite_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Rulesets/RuleSuites/Item/WithRule_suite_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Rulesets.RuleSuites.Item { +namespace GitHub.Orgs.Item.Rulesets.RuleSuites.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\rulesets\rule-suites\{rule_suite_id} /// - public class WithRule_suite_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRule_suite_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithRule_suite_ItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public WithRule_suite_ItemRequestBuilder(string rawUrl, IRequestAdapter requestA /// Gets information about a suite of rule evaluations from within an organization.For more information, see "[Managing rulesets for repositories in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-organization-settings/managing-rulesets-for-repositories-in-your-organization#viewing-insights-for-rulesets)." /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, RuleSuite.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.RuleSuite.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets information about a suite of rule evaluations from within an organization.For more information, see "[Managing rulesets for repositories in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-organization-settings/managing-rulesets-for-repositories-in-your-organization#viewing-insights-for-rulesets)." @@ -78,11 +80,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRule_suite_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Rulesets.RuleSuites.Item.WithRule_suite_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithRule_suite_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Rulesets.RuleSuites.Item.WithRule_suite_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Rulesets/RuleSuites/RuleSuitesRequestBuilder.cs b/src/GitHub/Orgs/Item/Rulesets/RuleSuites/RuleSuitesRequestBuilder.cs index 0dd5191e..d72ae581 100644 --- a/src/GitHub/Orgs/Item/Rulesets/RuleSuites/RuleSuitesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Rulesets/RuleSuites/RuleSuitesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Rulesets.RuleSuites.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Rulesets.RuleSuites { +namespace GitHub.Orgs.Item.Rulesets.RuleSuites +{ /// /// Builds and executes requests for operations under \orgs\{org}\rulesets\rule-suites /// - public class RuleSuitesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RuleSuitesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.rulesets.ruleSuites.item collection /// The unique identifier of the rule suite result.To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/enterprise-cloud@latest//rest/repos/rule-suites#list-repository-rule-suites)for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/enterprise-cloud@latest//rest/orgs/rule-suites#list-organization-rule-suites)for organizations. - /// A - public WithRule_suite_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.Rulesets.RuleSuites.Item.WithRule_suite_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("rule_suite_id", position); - return new WithRule_suite_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Rulesets.RuleSuites.Item.WithRule_suite_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public RuleSuitesRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,28 +49,28 @@ public RuleSuitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Lists suites of rule evaluations at the organization level.For more information, see "[Managing rulesets for repositories in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-organization-settings/managing-rulesets-for-repositories-in-your-organization#viewing-insights-for-rulesets)." /// API method documentation /// - /// A List<GitHub.Models.RuleSuites> + /// A List<global::GitHub.Models.RuleSuites> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GitHub.Models.RuleSuites.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.RuleSuites.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists suites of rule evaluations at the organization level.For more information, see "[Managing rulesets for repositories in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-organization-settings/managing-rulesets-for-repositories-in-your-organization#viewing-insights-for-rulesets)." @@ -77,11 +79,11 @@ public RuleSuitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -92,16 +94,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RuleSuitesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Rulesets.RuleSuites.RuleSuitesRequestBuilder WithUrl(string rawUrl) { - return new RuleSuitesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Rulesets.RuleSuites.RuleSuitesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists suites of rule evaluations at the organization level.For more information, see "[Managing rulesets for repositories in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-organization-settings/managing-rulesets-for-repositories-in-your-organization#viewing-insights-for-rulesets)." /// - public class RuleSuitesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RuleSuitesRequestBuilderGetQueryParameters { /// The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,10 +137,10 @@ public class RuleSuitesRequestBuilderGetQueryParameters public int? RepositoryName { get; set; } /// The rule results to filter on. When specified, only suites with this result will be returned. [QueryParameter("rule_suite_result")] - public GetRule_suite_resultQueryParameterType? RuleSuiteResult { get; set; } + public global::GitHub.Orgs.Item.Rulesets.RuleSuites.GetRule_suite_resultQueryParameterType? RuleSuiteResult { get; set; } /// The time period to filter by.For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). [QueryParameter("time_period")] - public GetTime_periodQueryParameterType? TimePeriod { get; set; } + public global::GitHub.Orgs.Item.Rulesets.RuleSuites.GetTime_periodQueryParameterType? TimePeriod { get; set; } } } } diff --git a/src/GitHub/Orgs/Item/Rulesets/RulesetsPostRequestBody.cs b/src/GitHub/Orgs/Item/Rulesets/RulesetsPostRequestBody.cs index ac053d8c..fa1d2b9b 100644 --- a/src/GitHub/Orgs/Item/Rulesets/RulesetsPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/Rulesets/RulesetsPostRequestBody.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Rulesets { +namespace GitHub.Orgs.Item.Rulesets +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RulesetsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RulesetsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,21 +17,21 @@ public class RulesetsPostRequestBody : IAdditionalDataHolder, IParsable /// The actors that can bypass the rules in this ruleset #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? BypassActors { get; set; } + public List? BypassActors { get; set; } #nullable restore #else - public List BypassActors { get; set; } + public List BypassActors { get; set; } #endif /// Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrgRulesetConditions? Conditions { get; set; } + public global::GitHub.Models.OrgRulesetConditions? Conditions { get; set; } #nullable restore #else - public OrgRulesetConditions Conditions { get; set; } + public global::GitHub.Models.OrgRulesetConditions Conditions { get; set; } #endif /// The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. - public RepositoryRuleEnforcement? Enforcement { get; set; } + public global::GitHub.Models.RepositoryRuleEnforcement? Enforcement { get; set; } /// The name of the ruleset. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -41,30 +43,30 @@ public class RulesetsPostRequestBody : IAdditionalDataHolder, IParsable /// An array of rules within the ruleset. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Rules { get; set; } + public List? Rules { get; set; } #nullable restore #else - public List Rules { get; set; } + public List Rules { get; set; } #endif /// The target of the ruleset> [!NOTE]> The `push` target is in beta and is subject to change. - public RulesetsPostRequestBody_target? Target { get; set; } + public global::GitHub.Orgs.Item.Rulesets.RulesetsPostRequestBody_target? Target { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RulesetsPostRequestBody() { AdditionalData = new Dictionary(); - Target = RulesetsPostRequestBody_target.Branch; + Target = global::GitHub.Orgs.Item.Rulesets.RulesetsPostRequestBody_target.Branch; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RulesetsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Rulesets.RulesetsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RulesetsPostRequestBody(); + return new global::GitHub.Orgs.Item.Rulesets.RulesetsPostRequestBody(); } /// /// The deserialization information for the current model @@ -74,12 +76,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"bypass_actors", n => { BypassActors = n.GetCollectionOfObjectValues(RepositoryRulesetBypassActor.CreateFromDiscriminatorValue)?.ToList(); } }, - {"conditions", n => { Conditions = n.GetObjectValue(OrgRulesetConditions.CreateFromDiscriminatorValue); } }, - {"enforcement", n => { Enforcement = n.GetEnumValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"rules", n => { Rules = n.GetCollectionOfObjectValues(RepositoryRule.CreateFromDiscriminatorValue)?.ToList(); } }, - {"target", n => { Target = n.GetEnumValue(); } }, + { "bypass_actors", n => { BypassActors = n.GetCollectionOfObjectValues(global::GitHub.Models.RepositoryRulesetBypassActor.CreateFromDiscriminatorValue)?.AsList(); } }, + { "conditions", n => { Conditions = n.GetObjectValue(global::GitHub.Models.OrgRulesetConditions.CreateFromDiscriminatorValue); } }, + { "enforcement", n => { Enforcement = n.GetEnumValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "rules", n => { Rules = n.GetCollectionOfObjectValues(global::GitHub.Models.RepositoryRule.CreateFromDiscriminatorValue)?.AsList(); } }, + { "target", n => { Target = n.GetEnumValue(); } }, }; } /// @@ -89,12 +91,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("bypass_actors", BypassActors); - writer.WriteObjectValue("conditions", Conditions); - writer.WriteEnumValue("enforcement", Enforcement); + writer.WriteCollectionOfObjectValues("bypass_actors", BypassActors); + writer.WriteObjectValue("conditions", Conditions); + writer.WriteEnumValue("enforcement", Enforcement); writer.WriteStringValue("name", Name); - writer.WriteCollectionOfObjectValues("rules", Rules); - writer.WriteEnumValue("target", Target); + writer.WriteCollectionOfObjectValues("rules", Rules); + writer.WriteEnumValue("target", Target); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Rulesets/RulesetsPostRequestBody_target.cs b/src/GitHub/Orgs/Item/Rulesets/RulesetsPostRequestBody_target.cs index c3410997..05b9390e 100644 --- a/src/GitHub/Orgs/Item/Rulesets/RulesetsPostRequestBody_target.cs +++ b/src/GitHub/Orgs/Item/Rulesets/RulesetsPostRequestBody_target.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Rulesets { +namespace GitHub.Orgs.Item.Rulesets +{ /// The target of the ruleset> [!NOTE]> The `push` target is in beta and is subject to change. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum RulesetsPostRequestBody_target { [EnumMember(Value = "branch")] diff --git a/src/GitHub/Orgs/Item/Rulesets/RulesetsRequestBuilder.cs b/src/GitHub/Orgs/Item/Rulesets/RulesetsRequestBuilder.cs index 299524ad..df2f42ee 100644 --- a/src/GitHub/Orgs/Item/Rulesets/RulesetsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Rulesets/RulesetsRequestBuilder.cs @@ -2,39 +2,41 @@ using GitHub.Models; using GitHub.Orgs.Item.Rulesets.Item; using GitHub.Orgs.Item.Rulesets.RuleSuites; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Rulesets { +namespace GitHub.Orgs.Item.Rulesets +{ /// /// Builds and executes requests for operations under \orgs\{org}\rulesets /// - public class RulesetsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RulesetsRequestBuilder : BaseRequestBuilder { /// The ruleSuites property - public RuleSuitesRequestBuilder RuleSuites + public global::GitHub.Orgs.Item.Rulesets.RuleSuites.RuleSuitesRequestBuilder RuleSuites { - get => new RuleSuitesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Rulesets.RuleSuites.RuleSuitesRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.orgs.item.rulesets.item collection /// The ID of the ruleset. - /// A - public WithRuleset_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.Rulesets.Item.WithRuleset_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("ruleset_id", position); - return new WithRuleset_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Rulesets.Item.WithRuleset_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -42,7 +44,7 @@ public RulesetsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -53,56 +55,56 @@ public RulesetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Get all the repository rulesets for an organization. /// API method documentation /// - /// A List<RepositoryRuleset> + /// A List<global::GitHub.Models.RepositoryRuleset> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RepositoryRuleset.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.RepositoryRuleset.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a repository ruleset for an organization. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(RulesetsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Rulesets.RulesetsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(RulesetsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Rulesets.RulesetsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, RepositoryRuleset.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.RepositoryRuleset.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Get all the repository rulesets for an organization. @@ -111,11 +113,11 @@ public async Task PostAsync(RulesetsPostRequestBody body, Act /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -131,11 +133,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(RulesetsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Rulesets.RulesetsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RulesetsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Rulesets.RulesetsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -148,16 +150,17 @@ public RequestInformation ToPostRequestInformation(RulesetsPostRequestBody body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RulesetsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Rulesets.RulesetsRequestBuilder WithUrl(string rawUrl) { - return new RulesetsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Rulesets.RulesetsRequestBuilder(rawUrl, RequestAdapter); } /// /// Get all the repository rulesets for an organization. /// - public class RulesetsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RulesetsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs b/src/GitHub/Orgs/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs index 028e30f6..f6e16558 100644 --- a/src/GitHub/Orgs/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.SecretScanning.Alerts { +namespace GitHub.Orgs.Item.SecretScanning.Alerts +{ /// /// Builds and executes requests for operations under \orgs\{org}\secret-scanning\alerts /// - public class AlertsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AlertsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AlertsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,28 +36,28 @@ public AlertsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Lists secret scanning alerts for eligible repositories in an organization, from newest to oldest.The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. /// API method documentation /// - /// A List<OrganizationSecretScanningAlert> + /// A List<global::GitHub.Models.OrganizationSecretScanningAlert> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 503 status code + /// When receiving a 404 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"503", Alerts503Error.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.Alerts503Error.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, OrganizationSecretScanningAlert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.OrganizationSecretScanningAlert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists secret scanning alerts for eligible repositories in an organization, from newest to oldest.The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. @@ -64,11 +66,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -79,16 +81,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AlertsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.SecretScanning.Alerts.AlertsRequestBuilder WithUrl(string rawUrl) { - return new AlertsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.SecretScanning.Alerts.AlertsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists secret scanning alerts for eligible repositories in an organization, from newest to oldest.The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. /// - public class AlertsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AlertsRequestBuilderGetQueryParameters { /// A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty "after" query string. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -112,7 +115,7 @@ public class AlertsRequestBuilderGetQueryParameters #endif /// The direction to sort the results by. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Orgs.Item.SecretScanning.Alerts.GetDirectionQueryParameterType? Direction { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } @@ -141,10 +144,10 @@ public class AlertsRequestBuilderGetQueryParameters #endif /// The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Orgs.Item.SecretScanning.Alerts.GetSortQueryParameterType? Sort { get; set; } /// Set to `open` or `resolved` to only list secret scanning alerts in a specific state. [QueryParameter("state")] - public GetStateQueryParameterType? State { get; set; } + public global::GitHub.Orgs.Item.SecretScanning.Alerts.GetStateQueryParameterType? State { get; set; } /// A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are `active`, `inactive`, and `unknown`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/GitHub/Orgs/Item/SecretScanning/Alerts/GetDirectionQueryParameterType.cs b/src/GitHub/Orgs/Item/SecretScanning/Alerts/GetDirectionQueryParameterType.cs index cee71bad..db316b41 100644 --- a/src/GitHub/Orgs/Item/SecretScanning/Alerts/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/SecretScanning/Alerts/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.SecretScanning.Alerts { +namespace GitHub.Orgs.Item.SecretScanning.Alerts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/SecretScanning/Alerts/GetSortQueryParameterType.cs b/src/GitHub/Orgs/Item/SecretScanning/Alerts/GetSortQueryParameterType.cs index 408163d6..636f3c4c 100644 --- a/src/GitHub/Orgs/Item/SecretScanning/Alerts/GetSortQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/SecretScanning/Alerts/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.SecretScanning.Alerts { +namespace GitHub.Orgs.Item.SecretScanning.Alerts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/SecretScanning/Alerts/GetStateQueryParameterType.cs b/src/GitHub/Orgs/Item/SecretScanning/Alerts/GetStateQueryParameterType.cs index b334dc24..8a4f9c2c 100644 --- a/src/GitHub/Orgs/Item/SecretScanning/Alerts/GetStateQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/SecretScanning/Alerts/GetStateQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.SecretScanning.Alerts { +namespace GitHub.Orgs.Item.SecretScanning.Alerts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetStateQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/SecretScanning/SecretScanningRequestBuilder.cs b/src/GitHub/Orgs/Item/SecretScanning/SecretScanningRequestBuilder.cs index fe8d6a78..25a15119 100644 --- a/src/GitHub/Orgs/Item/SecretScanning/SecretScanningRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/SecretScanning/SecretScanningRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Orgs.Item.SecretScanning.Alerts; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.SecretScanning { +namespace GitHub.Orgs.Item.SecretScanning +{ /// /// Builds and executes requests for operations under \orgs\{org}\secret-scanning /// - public class SecretScanningRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretScanningRequestBuilder : BaseRequestBuilder { /// The alerts property - public AlertsRequestBuilder Alerts + public global::GitHub.Orgs.Item.SecretScanning.Alerts.AlertsRequestBuilder Alerts { - get => new AlertsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.SecretScanning.Alerts.AlertsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public SecretScanningRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/SecurityAdvisories/GetDirectionQueryParameterType.cs b/src/GitHub/Orgs/Item/SecurityAdvisories/GetDirectionQueryParameterType.cs index 61b49d45..9225777c 100644 --- a/src/GitHub/Orgs/Item/SecurityAdvisories/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/SecurityAdvisories/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.SecurityAdvisories { +namespace GitHub.Orgs.Item.SecurityAdvisories +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/SecurityAdvisories/GetSortQueryParameterType.cs b/src/GitHub/Orgs/Item/SecurityAdvisories/GetSortQueryParameterType.cs index 528bda00..c67fd4a9 100644 --- a/src/GitHub/Orgs/Item/SecurityAdvisories/GetSortQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/SecurityAdvisories/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.SecurityAdvisories { +namespace GitHub.Orgs.Item.SecurityAdvisories +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/SecurityAdvisories/GetStateQueryParameterType.cs b/src/GitHub/Orgs/Item/SecurityAdvisories/GetStateQueryParameterType.cs index 6d1dd23c..25f13e16 100644 --- a/src/GitHub/Orgs/Item/SecurityAdvisories/GetStateQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/SecurityAdvisories/GetStateQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.SecurityAdvisories { +namespace GitHub.Orgs.Item.SecurityAdvisories +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetStateQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/SecurityAdvisories/SecurityAdvisoriesRequestBuilder.cs b/src/GitHub/Orgs/Item/SecurityAdvisories/SecurityAdvisoriesRequestBuilder.cs index c71ca55c..4d0ac811 100644 --- a/src/GitHub/Orgs/Item/SecurityAdvisories/SecurityAdvisoriesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/SecurityAdvisories/SecurityAdvisoriesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.SecurityAdvisories { +namespace GitHub.Orgs.Item.SecurityAdvisories +{ /// /// Builds and executes requests for operations under \orgs\{org}\security-advisories /// - public class SecurityAdvisoriesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecurityAdvisoriesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public SecurityAdvisoriesRequestBuilder(Dictionary pathParameter { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,28 +36,28 @@ public SecurityAdvisoriesRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Lists repository security advisories for an organization.The authenticated user must be an owner or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:write` scope to use this endpoint. /// API method documentation /// - /// A List<RepositoryAdvisory> + /// A List<global::GitHub.Models.RepositoryAdvisory> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 404 status code + /// When receiving a 400 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RepositoryAdvisory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.RepositoryAdvisory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists repository security advisories for an organization.The authenticated user must be an owner or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:write` scope to use this endpoint. @@ -64,11 +66,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -79,16 +81,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SecurityAdvisoriesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.SecurityAdvisories.SecurityAdvisoriesRequestBuilder WithUrl(string rawUrl) { - return new SecurityAdvisoriesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.SecurityAdvisories.SecurityAdvisoriesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists repository security advisories for an organization.The authenticated user must be an owner or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:write` scope to use this endpoint. /// - public class SecurityAdvisoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecurityAdvisoriesRequestBuilderGetQueryParameters { /// A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -112,16 +115,16 @@ public class SecurityAdvisoriesRequestBuilderGetQueryParameters #endif /// The direction to sort the results by. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Orgs.Item.SecurityAdvisories.GetDirectionQueryParameterType? Direction { get; set; } /// The number of advisories to return per page. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("per_page")] public int? PerPage { get; set; } /// The property to sort the results by. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Orgs.Item.SecurityAdvisories.GetSortQueryParameterType? Sort { get; set; } /// Filter by the state of the repository advisories. Only advisories of this state will be returned. [QueryParameter("state")] - public GetStateQueryParameterType? State { get; set; } + public global::GitHub.Orgs.Item.SecurityAdvisories.GetStateQueryParameterType? State { get; set; } } } } diff --git a/src/GitHub/Orgs/Item/SecurityManagers/SecurityManagersRequestBuilder.cs b/src/GitHub/Orgs/Item/SecurityManagers/SecurityManagersRequestBuilder.cs index 710f5e4b..b9395bcb 100644 --- a/src/GitHub/Orgs/Item/SecurityManagers/SecurityManagersRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/SecurityManagers/SecurityManagersRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Orgs.Item.SecurityManagers.Teams; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.SecurityManagers { +namespace GitHub.Orgs.Item.SecurityManagers +{ /// /// Builds and executes requests for operations under \orgs\{org}\security-managers /// - public class SecurityManagersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecurityManagersRequestBuilder : BaseRequestBuilder { /// The teams property - public TeamsRequestBuilder Teams + public global::GitHub.Orgs.Item.SecurityManagers.Teams.TeamsRequestBuilder Teams { - get => new TeamsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.SecurityManagers.Teams.TeamsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public SecurityManagersRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -40,21 +42,21 @@ public SecurityManagersRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Lists teams that are security managers for an organization. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. /// API method documentation /// - /// A List<TeamSimple> + /// A List<global::GitHub.Models.TeamSimple> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, TeamSimple.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.TeamSimple.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists teams that are security managers for an organization. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. @@ -78,11 +80,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SecurityManagersRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.SecurityManagers.SecurityManagersRequestBuilder WithUrl(string rawUrl) { - return new SecurityManagersRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.SecurityManagers.SecurityManagersRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/SecurityManagers/Teams/Item/WithTeam_slugItemRequestBuilder.cs b/src/GitHub/Orgs/Item/SecurityManagers/Teams/Item/WithTeam_slugItemRequestBuilder.cs index 1f0d1533..29e4f2a4 100644 --- a/src/GitHub/Orgs/Item/SecurityManagers/Teams/Item/WithTeam_slugItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/SecurityManagers/Teams/Item/WithTeam_slugItemRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.SecurityManagers.Teams.Item { +namespace GitHub.Orgs.Item.SecurityManagers.Teams.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\security-managers\teams\{team_slug} /// - public class WithTeam_slugItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithTeam_slugItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public WithTeam_slugItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -104,11 +106,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithTeam_slugItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.SecurityManagers.Teams.Item.WithTeam_slugItemRequestBuilder WithUrl(string rawUrl) { - return new WithTeam_slugItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.SecurityManagers.Teams.Item.WithTeam_slugItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/SecurityManagers/Teams/TeamsRequestBuilder.cs b/src/GitHub/Orgs/Item/SecurityManagers/Teams/TeamsRequestBuilder.cs index 0447188a..52de7ace 100644 --- a/src/GitHub/Orgs/Item/SecurityManagers/Teams/TeamsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/SecurityManagers/Teams/TeamsRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Orgs.Item.SecurityManagers.Teams.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.SecurityManagers.Teams { +namespace GitHub.Orgs.Item.SecurityManagers.Teams +{ /// /// Builds and executes requests for operations under \orgs\{org}\security-managers\teams /// - public class TeamsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.securityManagers.teams.item collection /// The slug of the team name. - /// A - public WithTeam_slugItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.SecurityManagers.Teams.Item.WithTeam_slugItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("team_slug", position); - return new WithTeam_slugItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.SecurityManagers.Teams.Item.WithTeam_slugItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public TeamsRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Settings/Billing/Actions/ActionsRequestBuilder.cs b/src/GitHub/Orgs/Item/Settings/Billing/Actions/ActionsRequestBuilder.cs index 8273e7e3..e1bb75f3 100644 --- a/src/GitHub/Orgs/Item/Settings/Billing/Actions/ActionsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Settings/Billing/Actions/ActionsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Settings.Billing.Actions { +namespace GitHub.Orgs.Item.Settings.Billing.Actions +{ /// /// Builds and executes requests for operations under \orgs\{org}\settings\billing\actions /// - public class ActionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ActionsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ActionsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public ActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Gets the summary of the free and paid GitHub Actions minutes used.Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage returned includes any minute multipliers for macOS and Windows runners, and is rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)".OAuth app tokens and personal access tokens (classic) need the `repo` or `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ActionsBillingUsage.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsBillingUsage.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets the summary of the free and paid GitHub Actions minutes used.Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage returned includes any minute multipliers for macOS and Windows runners, and is rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)".OAuth app tokens and personal access tokens (classic) need the `repo` or `admin:org` scope to use this endpoint. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ActionsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Settings.Billing.Actions.ActionsRequestBuilder WithUrl(string rawUrl) { - return new ActionsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Settings.Billing.Actions.ActionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Settings/Billing/AdvancedSecurity/AdvancedSecurityRequestBuilder.cs b/src/GitHub/Orgs/Item/Settings/Billing/AdvancedSecurity/AdvancedSecurityRequestBuilder.cs index 17b1ac97..83b9c712 100644 --- a/src/GitHub/Orgs/Item/Settings/Billing/AdvancedSecurity/AdvancedSecurityRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Settings/Billing/AdvancedSecurity/AdvancedSecurityRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Settings.Billing.AdvancedSecurity { +namespace GitHub.Orgs.Item.Settings.Billing.AdvancedSecurity +{ /// /// Builds and executes requests for operations under \orgs\{org}\settings\billing\advanced-security /// - public class AdvancedSecurityRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AdvancedSecurityRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AdvancedSecurityRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public AdvancedSecurityRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Gets the GitHub Advanced Security active committers for an organization per repository.Each distinct user login across all repositories is counted as a single Advanced Security seat, so the `total_advanced_security_committers` is not the sum of advanced_security_committers for each repository.If this organization defers to an enterprise for billing, the `total_advanced_security_committers` returned from the organization API may include some users that are in more than one organization, so they will only consume a single Advanced Security seat at the enterprise level.The total number of repositories with committer information is tracked by the `total_count` field. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, AdvancedSecurityActiveCommitters.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.AdvancedSecurityActiveCommitters.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets the GitHub Advanced Security active committers for an organization per repository.Each distinct user login across all repositories is counted as a single Advanced Security seat, so the `total_advanced_security_committers` is not the sum of advanced_security_committers for each repository.If this organization defers to an enterprise for billing, the `total_advanced_security_committers` returned from the organization API may include some users that are in more than one organization, so they will only consume a single Advanced Security seat at the enterprise level.The total number of repositories with committer information is tracked by the `total_count` field. @@ -56,11 +58,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -71,16 +73,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AdvancedSecurityRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Settings.Billing.AdvancedSecurity.AdvancedSecurityRequestBuilder WithUrl(string rawUrl) { - return new AdvancedSecurityRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Settings.Billing.AdvancedSecurity.AdvancedSecurityRequestBuilder(rawUrl, RequestAdapter); } /// /// Gets the GitHub Advanced Security active committers for an organization per repository.Each distinct user login across all repositories is counted as a single Advanced Security seat, so the `total_advanced_security_committers` is not the sum of advanced_security_committers for each repository.If this organization defers to an enterprise for billing, the `total_advanced_security_committers` returned from the organization API may include some users that are in more than one organization, so they will only consume a single Advanced Security seat at the enterprise level.The total number of repositories with committer information is tracked by the `total_count` field. /// - public class AdvancedSecurityRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AdvancedSecurityRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Settings/Billing/BillingRequestBuilder.cs b/src/GitHub/Orgs/Item/Settings/Billing/BillingRequestBuilder.cs index 507e1029..baba9ba8 100644 --- a/src/GitHub/Orgs/Item/Settings/Billing/BillingRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Settings/Billing/BillingRequestBuilder.cs @@ -3,40 +3,42 @@ using GitHub.Orgs.Item.Settings.Billing.AdvancedSecurity; using GitHub.Orgs.Item.Settings.Billing.Packages; using GitHub.Orgs.Item.Settings.Billing.SharedStorage; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Settings.Billing { +namespace GitHub.Orgs.Item.Settings.Billing +{ /// /// Builds and executes requests for operations under \orgs\{org}\settings\billing /// - public class BillingRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class BillingRequestBuilder : BaseRequestBuilder { /// The actions property - public ActionsRequestBuilder Actions + public global::GitHub.Orgs.Item.Settings.Billing.Actions.ActionsRequestBuilder Actions { - get => new ActionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Settings.Billing.Actions.ActionsRequestBuilder(PathParameters, RequestAdapter); } /// The advancedSecurity property - public AdvancedSecurityRequestBuilder AdvancedSecurity + public global::GitHub.Orgs.Item.Settings.Billing.AdvancedSecurity.AdvancedSecurityRequestBuilder AdvancedSecurity { - get => new AdvancedSecurityRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Settings.Billing.AdvancedSecurity.AdvancedSecurityRequestBuilder(PathParameters, RequestAdapter); } /// The packages property - public PackagesRequestBuilder Packages + public global::GitHub.Orgs.Item.Settings.Billing.Packages.PackagesRequestBuilder Packages { - get => new PackagesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Settings.Billing.Packages.PackagesRequestBuilder(PathParameters, RequestAdapter); } /// The sharedStorage property - public SharedStorageRequestBuilder SharedStorage + public global::GitHub.Orgs.Item.Settings.Billing.SharedStorage.SharedStorageRequestBuilder SharedStorage { - get => new SharedStorageRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Settings.Billing.SharedStorage.SharedStorageRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -44,7 +46,7 @@ public BillingRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Settings/Billing/Packages/PackagesRequestBuilder.cs b/src/GitHub/Orgs/Item/Settings/Billing/Packages/PackagesRequestBuilder.cs index 7b2002d0..ef599996 100644 --- a/src/GitHub/Orgs/Item/Settings/Billing/Packages/PackagesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Settings/Billing/Packages/PackagesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Settings.Billing.Packages { +namespace GitHub.Orgs.Item.Settings.Billing.Packages +{ /// /// Builds and executes requests for operations under \orgs\{org}\settings\billing\packages /// - public class PackagesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PackagesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public PackagesRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public PackagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Gets the free and paid storage used for GitHub Packages in gigabytes.Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)."OAuth app tokens and personal access tokens (classic) need the `repo` or `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, PackagesBillingUsage.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.PackagesBillingUsage.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets the free and paid storage used for GitHub Packages in gigabytes.Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)."OAuth app tokens and personal access tokens (classic) need the `repo` or `admin:org` scope to use this endpoint. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PackagesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Settings.Billing.Packages.PackagesRequestBuilder WithUrl(string rawUrl) { - return new PackagesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Settings.Billing.Packages.PackagesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Settings/Billing/SharedStorage/SharedStorageRequestBuilder.cs b/src/GitHub/Orgs/Item/Settings/Billing/SharedStorage/SharedStorageRequestBuilder.cs index 1815015b..20bcb643 100644 --- a/src/GitHub/Orgs/Item/Settings/Billing/SharedStorage/SharedStorageRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Settings/Billing/SharedStorage/SharedStorageRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Settings.Billing.SharedStorage { +namespace GitHub.Orgs.Item.Settings.Billing.SharedStorage +{ /// /// Builds and executes requests for operations under \orgs\{org}\settings\billing\shared-storage /// - public class SharedStorageRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SharedStorageRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public SharedStorageRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public SharedStorageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Gets the estimated paid and estimated total storage used for GitHub Actions and GitHub Packages.Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)."OAuth app tokens and personal access tokens (classic) need the `repo` or `admin:org` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CombinedBillingUsage.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CombinedBillingUsage.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets the estimated paid and estimated total storage used for GitHub Actions and GitHub Packages.Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)."OAuth app tokens and personal access tokens (classic) need the `repo` or `admin:org` scope to use this endpoint. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SharedStorageRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Settings.Billing.SharedStorage.SharedStorageRequestBuilder WithUrl(string rawUrl) { - return new SharedStorageRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Settings.Billing.SharedStorage.SharedStorageRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Settings/SettingsRequestBuilder.cs b/src/GitHub/Orgs/Item/Settings/SettingsRequestBuilder.cs index 753500c6..cf3b8e68 100644 --- a/src/GitHub/Orgs/Item/Settings/SettingsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Settings/SettingsRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Orgs.Item.Settings.Billing; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Settings { +namespace GitHub.Orgs.Item.Settings +{ /// /// Builds and executes requests for operations under \orgs\{org}\settings /// - public class SettingsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SettingsRequestBuilder : BaseRequestBuilder { /// The billing property - public BillingRequestBuilder Billing + public global::GitHub.Orgs.Item.Settings.Billing.BillingRequestBuilder Billing { - get => new BillingRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Settings.Billing.BillingRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public SettingsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Team/Item/Copilot/CopilotRequestBuilder.cs b/src/GitHub/Orgs/Item/Team/Item/Copilot/CopilotRequestBuilder.cs index cbd55e3f..5c6e4517 100644 --- a/src/GitHub/Orgs/Item/Team/Item/Copilot/CopilotRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Team/Item/Copilot/CopilotRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Orgs.Item.Team.Item.Copilot.Usage; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Team.Item.Copilot { +namespace GitHub.Orgs.Item.Team.Item.Copilot +{ /// /// Builds and executes requests for operations under \orgs\{org}\team\{team_slug}\copilot /// - public class CopilotRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CopilotRequestBuilder : BaseRequestBuilder { /// The usage property - public UsageRequestBuilder Usage + public global::GitHub.Orgs.Item.Team.Item.Copilot.Usage.UsageRequestBuilder Usage { - get => new UsageRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Team.Item.Copilot.Usage.UsageRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public CopilotRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Team/Item/Copilot/Usage/UsageRequestBuilder.cs b/src/GitHub/Orgs/Item/Team/Item/Copilot/Usage/UsageRequestBuilder.cs index 60707071..1135b737 100644 --- a/src/GitHub/Orgs/Item/Team/Item/Copilot/Usage/UsageRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Team/Item/Copilot/Usage/UsageRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Team.Item.Copilot.Usage { +namespace GitHub.Orgs.Item.Team.Item.Copilot.Usage +{ /// /// Builds and executes requests for operations under \orgs\{org}\team\{team_slug}\copilot\usage /// - public class UsageRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsageRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public UsageRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,32 +36,32 @@ public UsageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// > [!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 up to 28 days prior. 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 with active Copilot licenses, as evaluated at the end of that day.Organization owners for the organization that contains this team, and owners and billing managers of the parent enterprise can view Copilot usage metrics for a team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. /// API method documentation /// - /// A List<CopilotUsageMetrics> + /// A List<global::GitHub.Models.CopilotUsageMetrics> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CopilotUsageMetrics.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CopilotUsageMetrics.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// > [!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 up to 28 days prior. 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 with active Copilot licenses, as evaluated at the end of that day.Organization owners for the organization that contains this team, and owners and billing managers of the parent enterprise can view Copilot usage metrics for a team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. @@ -68,11 +70,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -83,16 +85,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UsageRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Team.Item.Copilot.Usage.UsageRequestBuilder WithUrl(string rawUrl) { - return new UsageRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Team.Item.Copilot.Usage.UsageRequestBuilder(rawUrl, RequestAdapter); } /// /// > [!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 up to 28 days prior. 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 with active Copilot licenses, as evaluated at the end of that day.Organization owners for the organization that contains this team, and owners and billing managers of the parent enterprise can view Copilot usage metrics for a team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. /// - public class UsageRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsageRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Team/Item/WithTeam_slugItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Team/Item/WithTeam_slugItemRequestBuilder.cs index 93b53a52..9d5f772c 100644 --- a/src/GitHub/Orgs/Item/Team/Item/WithTeam_slugItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Team/Item/WithTeam_slugItemRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Orgs.Item.Team.Item.Copilot; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Team.Item { +namespace GitHub.Orgs.Item.Team.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\team\{team_slug} /// - public class WithTeam_slugItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithTeam_slugItemRequestBuilder : BaseRequestBuilder { /// The copilot property - public CopilotRequestBuilder Copilot + public global::GitHub.Orgs.Item.Team.Item.Copilot.CopilotRequestBuilder Copilot { - get => new CopilotRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Team.Item.Copilot.CopilotRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public WithTeam_slugItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Team/TeamRequestBuilder.cs b/src/GitHub/Orgs/Item/Team/TeamRequestBuilder.cs index 3b8052a6..9fde9474 100644 --- a/src/GitHub/Orgs/Item/Team/TeamRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Team/TeamRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Orgs.Item.Team.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Team { +namespace GitHub.Orgs.Item.Team +{ /// /// Builds and executes requests for operations under \orgs\{org}\team /// - public class TeamRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.team.item collection /// The slug of the team name. - /// A - public WithTeam_slugItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Team.Item.WithTeam_slugItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("team_slug", position); - return new WithTeam_slugItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Team.Item.WithTeam_slugItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public TeamRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/TeamSync/Groups/GroupsRequestBuilder.cs b/src/GitHub/Orgs/Item/TeamSync/Groups/GroupsRequestBuilder.cs index d4a3bbf0..773b92af 100644 --- a/src/GitHub/Orgs/Item/TeamSync/Groups/GroupsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/TeamSync/Groups/GroupsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.TeamSync.Groups { +namespace GitHub.Orgs.Item.TeamSync.Groups +{ /// /// Builds and executes requests for operations under \orgs\{org}\team-sync\groups /// - public class GroupsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GroupsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public GroupsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Lists IdP groups available in an organization. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GroupMapping.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GroupMapping.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists IdP groups available in an organization. @@ -56,11 +58,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -71,16 +73,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public GroupsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.TeamSync.Groups.GroupsRequestBuilder WithUrl(string rawUrl) { - return new GroupsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.TeamSync.Groups.GroupsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists IdP groups available in an organization. /// - public class GroupsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GroupsRequestBuilderGetQueryParameters { /// Page token #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Orgs/Item/TeamSync/TeamSyncRequestBuilder.cs b/src/GitHub/Orgs/Item/TeamSync/TeamSyncRequestBuilder.cs index db16bcad..f0b0ded7 100644 --- a/src/GitHub/Orgs/Item/TeamSync/TeamSyncRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/TeamSync/TeamSyncRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Orgs.Item.TeamSync.Groups; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.TeamSync { +namespace GitHub.Orgs.Item.TeamSync +{ /// /// Builds and executes requests for operations under \orgs\{org}\team-sync /// - public class TeamSyncRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamSyncRequestBuilder : BaseRequestBuilder { /// The groups property - public GroupsRequestBuilder Groups + public global::GitHub.Orgs.Item.TeamSync.Groups.GroupsRequestBuilder Groups { - get => new GroupsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.TeamSync.Groups.GroupsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public TeamSyncRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Teams/Item/Discussions/DiscussionsPostRequestBody.cs b/src/GitHub/Orgs/Item/Teams/Item/Discussions/DiscussionsPostRequestBody.cs index 1a23d747..d3dbdb52 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Discussions/DiscussionsPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Discussions/DiscussionsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Teams.Item.Discussions { +namespace GitHub.Orgs.Item.Teams.Item.Discussions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class DiscussionsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DiscussionsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,7 +32,7 @@ public class DiscussionsPostRequestBody : IAdditionalDataHolder, IParsable public string Title { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DiscussionsPostRequestBody() { @@ -39,12 +41,12 @@ public DiscussionsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DiscussionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Teams.Item.Discussions.DiscussionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DiscussionsPostRequestBody(); + return new global::GitHub.Orgs.Item.Teams.Item.Discussions.DiscussionsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"body", n => { Body = n.GetStringValue(); } }, - {"private", n => { Private = n.GetBoolValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "private", n => { Private = n.GetBoolValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Teams/Item/Discussions/DiscussionsRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/Discussions/DiscussionsRequestBuilder.cs index 5b6f9779..79ea5c2d 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Discussions/DiscussionsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Discussions/DiscussionsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Teams.Item.Discussions.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Teams.Item.Discussions { +namespace GitHub.Orgs.Item.Teams.Item.Discussions +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug}\discussions /// - public class DiscussionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DiscussionsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.teams.item.discussions.item collection /// The number that identifies the discussion. - /// A - public WithDiscussion_numberItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.WithDiscussion_numberItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("discussion_number", position); - return new WithDiscussion_numberItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.WithDiscussion_numberItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public DiscussionsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,42 +49,42 @@ public DiscussionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// List all discussions on a team's page.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// API method documentation /// - /// A List<TeamDiscussion> + /// A List<global::GitHub.Models.TeamDiscussion> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, TeamDiscussion.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.TeamDiscussion.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Creates a new discussion post on a team's page.This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)."> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions`.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(DiscussionsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Teams.Item.Discussions.DiscussionsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(DiscussionsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Teams.Item.Discussions.DiscussionsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, TeamDiscussion.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.TeamDiscussion.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// List all discussions on a team's page.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. @@ -91,11 +93,11 @@ public async Task PostAsync(DiscussionsPostRequestBody body, Act /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -111,11 +113,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(DiscussionsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Teams.Item.Discussions.DiscussionsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DiscussionsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Teams.Item.Discussions.DiscussionsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,20 +130,21 @@ public RequestInformation ToPostRequestInformation(DiscussionsPostRequestBody bo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DiscussionsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Teams.Item.Discussions.DiscussionsRequestBuilder WithUrl(string rawUrl) { - return new DiscussionsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Discussions.DiscussionsRequestBuilder(rawUrl, RequestAdapter); } /// /// List all discussions on a team's page.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// - public class DiscussionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DiscussionsRequestBuilderGetQueryParameters { /// The direction to sort the results by. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Orgs.Item.Teams.Item.Discussions.GetDirectionQueryParameterType? Direction { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } diff --git a/src/GitHub/Orgs/Item/Teams/Item/Discussions/GetDirectionQueryParameterType.cs b/src/GitHub/Orgs/Item/Teams/Item/Discussions/GetDirectionQueryParameterType.cs index ea2657a6..cd857001 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Discussions/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Discussions/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Teams.Item.Discussions { +namespace GitHub.Orgs.Item.Teams.Item.Discussions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/CommentsPostRequestBody.cs b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/CommentsPostRequestBody.cs index 44777aaf..b7330921 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/CommentsPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/CommentsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments { +namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CommentsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CommentsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class CommentsPostRequestBody : IAdditionalDataHolder, IParsable public string Body { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommentsPostRequestBody() { @@ -29,12 +31,12 @@ public CommentsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CommentsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.CommentsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommentsPostRequestBody(); + return new global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.CommentsPostRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"body", n => { Body = n.GetStringValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/CommentsRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/CommentsRequestBuilder.cs index cc004c7e..3cb51ba7 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/CommentsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/CommentsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments { +namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug}\discussions\{discussion_number}\comments /// - public class CommentsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommentsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.teams.item.discussions.item.comments.item collection /// The number that identifies the comment. - /// A - public WithComment_numberItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.WithComment_numberItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("comment_number", position); - return new WithComment_numberItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.WithComment_numberItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public CommentsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,42 +49,42 @@ public CommentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// List all comments on a team discussion.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments`.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// API method documentation /// - /// A List<TeamDiscussionComment> + /// A List<global::GitHub.Models.TeamDiscussionComment> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, TeamDiscussionComment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.TeamDiscussionComment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Creates a new comment on a team discussion.This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)."> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments`.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(CommentsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.CommentsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(CommentsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.CommentsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, TeamDiscussionComment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.TeamDiscussionComment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// List all comments on a team discussion.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments`.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. @@ -91,11 +93,11 @@ public async Task PostAsync(CommentsPostRequestBody body, /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -111,11 +113,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(CommentsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.CommentsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CommentsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.CommentsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,20 +130,21 @@ public RequestInformation ToPostRequestInformation(CommentsPostRequestBody body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CommentsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.CommentsRequestBuilder WithUrl(string rawUrl) { - return new CommentsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.CommentsRequestBuilder(rawUrl, RequestAdapter); } /// /// List all comments on a team discussion.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments`.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// - public class CommentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommentsRequestBuilderGetQueryParameters { /// The direction to sort the results by. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.GetDirectionQueryParameterType? Direction { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } diff --git a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/GetDirectionQueryParameterType.cs b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/GetDirectionQueryParameterType.cs index e020c146..e140b57d 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments { +namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/Reactions/GetContentQueryParameterType.cs b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/Reactions/GetContentQueryParameterType.cs index eeefea4d..e6b6f0cb 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/Reactions/GetContentQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/Reactions/GetContentQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions { +namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetContentQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/Reactions/Item/WithReaction_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/Reactions/Item/WithReaction_ItemRequestBuilder.cs index c6cc2bea..fca35bf9 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/Reactions/Item/WithReaction_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/Reactions/Item/WithReaction_ItemRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions.Item { +namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug}\discussions\{discussion_number}\comments\{comment_number}\reactions\{reaction_id} /// - public class WithReaction_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithReaction_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public WithReaction_ItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -68,11 +70,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithReaction_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions.Item.WithReaction_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithReaction_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions.Item.WithReaction_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/Reactions/ReactionsPostRequestBody.cs b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/Reactions/ReactionsPostRequestBody.cs index 48eab511..2ad0594e 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/Reactions/ReactionsPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/Reactions/ReactionsPostRequestBody.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions { +namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ReactionsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ReactionsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion comment. - public ReactionsPostRequestBody_content? Content { get; set; } + public global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions.ReactionsPostRequestBody_content? Content { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReactionsPostRequestBody() { @@ -23,12 +25,12 @@ public ReactionsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ReactionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions.ReactionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReactionsPostRequestBody(); + return new global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions.ReactionsPostRequestBody(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content", n => { Content = n.GetEnumValue(); } }, + { "content", n => { Content = n.GetEnumValue(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("content", Content); + writer.WriteEnumValue("content", Content); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/Reactions/ReactionsPostRequestBody_content.cs b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/Reactions/ReactionsPostRequestBody_content.cs index bf070b2f..e5f808c1 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/Reactions/ReactionsPostRequestBody_content.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/Reactions/ReactionsPostRequestBody_content.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions { +namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions +{ /// The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion comment. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ReactionsPostRequestBody_content { [EnumMember(Value = "+1")] diff --git a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/Reactions/ReactionsRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/Reactions/ReactionsRequestBuilder.cs index f78e0a57..5f9df91d 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/Reactions/ReactionsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/Reactions/ReactionsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions { +namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug}\discussions\{discussion_number}\comments\{comment_number}\reactions /// - public class ReactionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReactionsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.teams.item.discussions.item.comments.item.reactions.item collection /// The unique identifier of the reaction. - /// A - public WithReaction_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions.Item.WithReaction_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("reaction_id", position); - return new WithReaction_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions.Item.WithReaction_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public ReactionsRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,42 +49,42 @@ public ReactionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// List the reactions to a [team discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#get-a-discussion-comment).> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// API method documentation /// - /// A List<Reaction> + /// A List<global::GitHub.Models.Reaction> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Reaction.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Reaction.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a reaction to a [team discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#get-a-discussion-comment).A response with an HTTP `200` status means that you already added the reaction type to this team discussion comment.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ReactionsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions.ReactionsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(ReactionsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions.ReactionsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, Reaction.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Reaction.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// List the reactions to a [team discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#get-a-discussion-comment).> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. @@ -91,11 +93,11 @@ public async Task PostAsync(ReactionsPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -111,11 +113,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ReactionsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions.ReactionsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReactionsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions.ReactionsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,20 +130,21 @@ public RequestInformation ToPostRequestInformation(ReactionsPostRequestBody body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ReactionsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions.ReactionsRequestBuilder WithUrl(string rawUrl) { - return new ReactionsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions.ReactionsRequestBuilder(rawUrl, RequestAdapter); } /// /// List the reactions to a [team discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#get-a-discussion-comment).> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// - public class ReactionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReactionsRequestBuilderGetQueryParameters { /// Returns a single [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion comment. [QueryParameter("content")] - public GetContentQueryParameterType? Content { get; set; } + public global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions.GetContentQueryParameterType? Content { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } diff --git a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/WithComment_numberItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/WithComment_numberItemRequestBuilder.cs index 2185c6e6..c6efab90 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/WithComment_numberItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/WithComment_numberItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item { +namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug}\discussions\{discussion_number}\comments\{comment_number} /// - public class WithComment_numberItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithComment_numberItemRequestBuilder : BaseRequestBuilder { /// The reactions property - public ReactionsRequestBuilder Reactions + public global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions.ReactionsRequestBuilder Reactions { - get => new ReactionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.Reactions.ReactionsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithComment_numberItemRequestBuilder(Dictionary pathParam { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -58,41 +60,41 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, TeamDiscussionComment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.TeamDiscussionComment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Edits the body text of a discussion comment.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}`.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithComment_numberPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.WithComment_numberPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithComment_numberPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.WithComment_numberPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, TeamDiscussionComment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.TeamDiscussionComment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Deletes a comment on a team discussion.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}`.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. @@ -139,11 +141,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithComment_numberPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.WithComment_numberPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithComment_numberPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.WithComment_numberPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -156,11 +158,11 @@ public RequestInformation ToPatchRequestInformation(WithComment_numberPatchReque /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithComment_numberItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.WithComment_numberItemRequestBuilder WithUrl(string rawUrl) { - return new WithComment_numberItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.WithComment_numberItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/WithComment_numberPatchRequestBody.cs b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/WithComment_numberPatchRequestBody.cs index 087b948f..998f3538 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/WithComment_numberPatchRequestBody.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Comments/Item/WithComment_numberPatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item { +namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithComment_numberPatchRequestBody : IAdditionalDataHolder, IParsable + public partial class WithComment_numberPatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class WithComment_numberPatchRequestBody : IAdditionalDataHolder, IParsab public string Body { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithComment_numberPatchRequestBody() { @@ -29,12 +31,12 @@ public WithComment_numberPatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithComment_numberPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.WithComment_numberPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithComment_numberPatchRequestBody(); + return new global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.Item.WithComment_numberPatchRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"body", n => { Body = n.GetStringValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Reactions/GetContentQueryParameterType.cs b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Reactions/GetContentQueryParameterType.cs index ede05ba0..556a3850 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Reactions/GetContentQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Reactions/GetContentQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions { +namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetContentQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Reactions/Item/WithReaction_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Reactions/Item/WithReaction_ItemRequestBuilder.cs index e68cdc54..b47f98ba 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Reactions/Item/WithReaction_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Reactions/Item/WithReaction_ItemRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions.Item { +namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug}\discussions\{discussion_number}\reactions\{reaction_id} /// - public class WithReaction_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithReaction_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public WithReaction_ItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -68,11 +70,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithReaction_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions.Item.WithReaction_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithReaction_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions.Item.WithReaction_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Reactions/ReactionsPostRequestBody.cs b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Reactions/ReactionsPostRequestBody.cs index 7190a0d1..c30e71f1 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Reactions/ReactionsPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Reactions/ReactionsPostRequestBody.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions { +namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ReactionsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ReactionsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion. - public ReactionsPostRequestBody_content? Content { get; set; } + public global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions.ReactionsPostRequestBody_content? Content { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReactionsPostRequestBody() { @@ -23,12 +25,12 @@ public ReactionsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ReactionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions.ReactionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReactionsPostRequestBody(); + return new global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions.ReactionsPostRequestBody(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content", n => { Content = n.GetEnumValue(); } }, + { "content", n => { Content = n.GetEnumValue(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("content", Content); + writer.WriteEnumValue("content", Content); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Reactions/ReactionsPostRequestBody_content.cs b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Reactions/ReactionsPostRequestBody_content.cs index 5944d66d..e5499ee7 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Reactions/ReactionsPostRequestBody_content.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Reactions/ReactionsPostRequestBody_content.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions { +namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions +{ /// The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ReactionsPostRequestBody_content { [EnumMember(Value = "+1")] diff --git a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Reactions/ReactionsRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Reactions/ReactionsRequestBuilder.cs index 65d45ef0..69bca5da 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Reactions/ReactionsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/Reactions/ReactionsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions { +namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug}\discussions\{discussion_number}\reactions /// - public class ReactionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReactionsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.teams.item.discussions.item.reactions.item collection /// The unique identifier of the reaction. - /// A - public WithReaction_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions.Item.WithReaction_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("reaction_id", position); - return new WithReaction_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions.Item.WithReaction_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public ReactionsRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,42 +49,42 @@ public ReactionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// List the reactions to a [team discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion).> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// API method documentation /// - /// A List<Reaction> + /// A List<global::GitHub.Models.Reaction> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Reaction.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Reaction.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a reaction to a [team discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion).A response with an HTTP `200` status means that you already added the reaction type to this team discussion.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ReactionsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions.ReactionsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(ReactionsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions.ReactionsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, Reaction.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Reaction.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// List the reactions to a [team discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion).> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. @@ -91,11 +93,11 @@ public async Task PostAsync(ReactionsPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -111,11 +113,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ReactionsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions.ReactionsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReactionsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions.ReactionsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,20 +130,21 @@ public RequestInformation ToPostRequestInformation(ReactionsPostRequestBody body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ReactionsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions.ReactionsRequestBuilder WithUrl(string rawUrl) { - return new ReactionsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions.ReactionsRequestBuilder(rawUrl, RequestAdapter); } /// /// List the reactions to a [team discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion).> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// - public class ReactionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReactionsRequestBuilderGetQueryParameters { /// Returns a single [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion. [QueryParameter("content")] - public GetContentQueryParameterType? Content { get; set; } + public global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions.GetContentQueryParameterType? Content { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } diff --git a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/WithDiscussion_numberItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/WithDiscussion_numberItemRequestBuilder.cs index b0736ac9..a8bbb100 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/WithDiscussion_numberItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/WithDiscussion_numberItemRequestBuilder.cs @@ -2,32 +2,34 @@ using GitHub.Models; using GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments; using GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item { +namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug}\discussions\{discussion_number} /// - public class WithDiscussion_numberItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithDiscussion_numberItemRequestBuilder : BaseRequestBuilder { /// The comments property - public CommentsRequestBuilder Comments + public global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.CommentsRequestBuilder Comments { - get => new CommentsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Comments.CommentsRequestBuilder(PathParameters, RequestAdapter); } /// The reactions property - public ReactionsRequestBuilder Reactions + public global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions.ReactionsRequestBuilder Reactions { - get => new ReactionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.Reactions.ReactionsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public WithDiscussion_numberItemRequestBuilder(Dictionary pathPa { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -64,41 +66,41 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, TeamDiscussion.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.TeamDiscussion.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Edits the title and body text of a discussion post. Only the parameters you provide are updated.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}`.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithDiscussion_numberPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.WithDiscussion_numberPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithDiscussion_numberPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.WithDiscussion_numberPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, TeamDiscussion.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.TeamDiscussion.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Delete a discussion from a team's page.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}`.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. @@ -145,11 +147,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithDiscussion_numberPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.WithDiscussion_numberPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithDiscussion_numberPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.WithDiscussion_numberPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -162,11 +164,11 @@ public RequestInformation ToPatchRequestInformation(WithDiscussion_numberPatchRe /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithDiscussion_numberItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.WithDiscussion_numberItemRequestBuilder WithUrl(string rawUrl) { - return new WithDiscussion_numberItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.WithDiscussion_numberItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/WithDiscussion_numberPatchRequestBody.cs b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/WithDiscussion_numberPatchRequestBody.cs index 4df3c897..3071749d 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/WithDiscussion_numberPatchRequestBody.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Discussions/Item/WithDiscussion_numberPatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item { +namespace GitHub.Orgs.Item.Teams.Item.Discussions.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithDiscussion_numberPatchRequestBody : IAdditionalDataHolder, IParsable + public partial class WithDiscussion_numberPatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class WithDiscussion_numberPatchRequestBody : IAdditionalDataHolder, IPar public string Title { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithDiscussion_numberPatchRequestBody() { @@ -37,12 +39,12 @@ public WithDiscussion_numberPatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithDiscussion_numberPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.WithDiscussion_numberPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithDiscussion_numberPatchRequestBody(); + return new global::GitHub.Orgs.Item.Teams.Item.Discussions.Item.WithDiscussion_numberPatchRequestBody(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"body", n => { Body = n.GetStringValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "title", n => { Title = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Teams/Item/ExternalGroups/ExternalGroupsPatchRequestBody.cs b/src/GitHub/Orgs/Item/Teams/Item/ExternalGroups/ExternalGroupsPatchRequestBody.cs index 9527f05c..2b7cf831 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/ExternalGroups/ExternalGroupsPatchRequestBody.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/ExternalGroups/ExternalGroupsPatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Teams.Item.ExternalGroups { +namespace GitHub.Orgs.Item.Teams.Item.ExternalGroups +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ExternalGroupsPatchRequestBody : IAdditionalDataHolder, IParsable + public partial class ExternalGroupsPatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class ExternalGroupsPatchRequestBody : IAdditionalDataHolder, IParsable /// External Group Id public int? GroupId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ExternalGroupsPatchRequestBody() { @@ -23,12 +25,12 @@ public ExternalGroupsPatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ExternalGroupsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Teams.Item.ExternalGroups.ExternalGroupsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ExternalGroupsPatchRequestBody(); + return new global::GitHub.Orgs.Item.Teams.Item.ExternalGroups.ExternalGroupsPatchRequestBody(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"group_id", n => { GroupId = n.GetIntValue(); } }, + { "group_id", n => { GroupId = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Teams/Item/ExternalGroups/ExternalGroupsRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/ExternalGroups/ExternalGroupsRequestBuilder.cs index dd60e03b..90eff710 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/ExternalGroups/ExternalGroupsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/ExternalGroups/ExternalGroupsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Teams.Item.ExternalGroups { +namespace GitHub.Orgs.Item.Teams.Item.ExternalGroups +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug}\external-groups /// - public class ExternalGroupsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ExternalGroupsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ExternalGroupsRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,41 +54,41 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.ExternalGroups.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ExternalGroups.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Creates a connection between a team and an external group. Only one external group can be linked to a team.You can manage team membership with your identity provider using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see "[GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products)" in the GitHub Help documentation. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(ExternalGroupsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.Teams.Item.ExternalGroups.ExternalGroupsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(ExternalGroupsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.Teams.Item.ExternalGroups.ExternalGroupsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.ExternalGroup.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ExternalGroup.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Deletes a connection between a team and an external group.You can manage team membership with your IdP using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -133,11 +135,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ExternalGroupsPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Teams.Item.ExternalGroups.ExternalGroupsPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ExternalGroupsPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Teams.Item.ExternalGroups.ExternalGroupsPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -150,11 +152,11 @@ public RequestInformation ToPatchRequestInformation(ExternalGroupsPatchRequestBo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ExternalGroupsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Teams.Item.ExternalGroups.ExternalGroupsRequestBuilder WithUrl(string rawUrl) { - return new ExternalGroupsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.ExternalGroups.ExternalGroupsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Teams/Item/Invitations/InvitationsRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/Invitations/InvitationsRequestBuilder.cs index 128023e0..839a395b 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Invitations/InvitationsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Invitations/InvitationsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Teams.Item.Invitations { +namespace GitHub.Orgs.Item.Teams.Item.Invitations +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug}\invitations /// - public class InvitationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InvitationsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public InvitationsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public InvitationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub Enterprise Cloud member, the `login` field in the return hash will be `null`.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/invitations`. /// API method documentation /// - /// A List<OrganizationInvitation> + /// A List<global::GitHub.Models.OrganizationInvitation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, OrganizationInvitation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.OrganizationInvitation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub Enterprise Cloud member, the `login` field in the return hash will be `null`.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/invitations`. @@ -57,11 +59,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -72,16 +74,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public InvitationsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Teams.Item.Invitations.InvitationsRequestBuilder WithUrl(string rawUrl) { - return new InvitationsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Invitations.InvitationsRequestBuilder(rawUrl, RequestAdapter); } /// /// The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub Enterprise Cloud member, the `login` field in the return hash will be `null`.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/invitations`. /// - public class InvitationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InvitationsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Teams/Item/Members/GetRoleQueryParameterType.cs b/src/GitHub/Orgs/Item/Teams/Item/Members/GetRoleQueryParameterType.cs index 70f591d7..d9a74660 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Members/GetRoleQueryParameterType.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Members/GetRoleQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Teams.Item.Members { +namespace GitHub.Orgs.Item.Teams.Item.Members +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetRoleQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Orgs/Item/Teams/Item/Members/MembersRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/Members/MembersRequestBuilder.cs index 967f7195..94dbb5f5 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Members/MembersRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Members/MembersRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Teams.Item.Members { +namespace GitHub.Orgs.Item.Teams.Item.Members +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug}\members /// - public class MembersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class MembersRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Team members will include the members of child teams.To list members in a team, the team must be visible to the authenticated user. /// API method documentation /// - /// A List<SimpleUser> + /// A List<global::GitHub.Models.SimpleUser> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, SimpleUser.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Team members will include the members of child teams.To list members in a team, the team must be visible to the authenticated user. @@ -57,11 +59,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -72,16 +74,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MembersRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Teams.Item.Members.MembersRequestBuilder WithUrl(string rawUrl) { - return new MembersRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Members.MembersRequestBuilder(rawUrl, RequestAdapter); } /// /// Team members will include the members of child teams.To list members in a team, the team must be visible to the authenticated user. /// - public class MembersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class MembersRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] @@ -91,7 +94,7 @@ public class MembersRequestBuilderGetQueryParameters public int? PerPage { get; set; } /// Filters members returned by their role in the team. [QueryParameter("role")] - public GetRoleQueryParameterType? Role { get; set; } + public global::GitHub.Orgs.Item.Teams.Item.Members.GetRoleQueryParameterType? Role { get; set; } } } } diff --git a/src/GitHub/Orgs/Item/Teams/Item/Memberships/Item/WithUsernameItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/Memberships/Item/WithUsernameItemRequestBuilder.cs index 330eae85..5e44a01b 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Memberships/Item/WithUsernameItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Memberships/Item/WithUsernameItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Teams.Item.Memberships.Item { +namespace GitHub.Orgs.Item.Teams.Item.Memberships.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug}\memberships\{username} /// - public class WithUsernameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithUsernameItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithUsernameItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,41 +54,41 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, TeamMembership.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.TeamMembership.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Adds an organization member to a team. An authenticated organization owner or team maintainer can add organization members to a team.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Cloud team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/)."An organization owner can add someone who is not part of the team's organization to a team. When an organization owner adds someone to a team who is not an organization member, this endpoint will send an invitation to the person via email. This newly-created membership will be in the "pending" state until the person accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team.If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/{org_id}/team/{team_id}/memberships/{username}`. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(WithUsernamePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Teams.Item.Memberships.Item.WithUsernamePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(WithUsernamePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Teams.Item.Memberships.Item.WithUsernamePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, TeamMembership.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.TeamMembership.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Cloud team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/)."> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/memberships/{username}`. @@ -133,11 +135,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(WithUsernamePutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Teams.Item.Memberships.Item.WithUsernamePutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(WithUsernamePutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Teams.Item.Memberships.Item.WithUsernamePutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -150,11 +152,11 @@ public RequestInformation ToPutRequestInformation(WithUsernamePutRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithUsernameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Teams.Item.Memberships.Item.WithUsernameItemRequestBuilder WithUrl(string rawUrl) { - return new WithUsernameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Memberships.Item.WithUsernameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Teams/Item/Memberships/Item/WithUsernamePutRequestBody.cs b/src/GitHub/Orgs/Item/Teams/Item/Memberships/Item/WithUsernamePutRequestBody.cs index fa8dc07f..c9c32a9c 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Memberships/Item/WithUsernamePutRequestBody.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Memberships/Item/WithUsernamePutRequestBody.cs @@ -1,35 +1,37 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Teams.Item.Memberships.Item { +namespace GitHub.Orgs.Item.Teams.Item.Memberships.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithUsernamePutRequestBody : IAdditionalDataHolder, IParsable + public partial class WithUsernamePutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The role that this user should have in the team. - public WithUsernamePutRequestBody_role? Role { get; set; } + public global::GitHub.Orgs.Item.Teams.Item.Memberships.Item.WithUsernamePutRequestBody_role? Role { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithUsernamePutRequestBody() { AdditionalData = new Dictionary(); - Role = WithUsernamePutRequestBody_role.Member; + Role = global::GitHub.Orgs.Item.Teams.Item.Memberships.Item.WithUsernamePutRequestBody_role.Member; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithUsernamePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Teams.Item.Memberships.Item.WithUsernamePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithUsernamePutRequestBody(); + return new global::GitHub.Orgs.Item.Teams.Item.Memberships.Item.WithUsernamePutRequestBody(); } /// /// The deserialization information for the current model @@ -39,7 +41,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"role", n => { Role = n.GetEnumValue(); } }, + { "role", n => { Role = n.GetEnumValue(); } }, }; } /// @@ -49,7 +51,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("role", Role); + writer.WriteEnumValue("role", Role); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Teams/Item/Memberships/Item/WithUsernamePutRequestBody_role.cs b/src/GitHub/Orgs/Item/Teams/Item/Memberships/Item/WithUsernamePutRequestBody_role.cs index 090a0b7c..4abec64d 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Memberships/Item/WithUsernamePutRequestBody_role.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Memberships/Item/WithUsernamePutRequestBody_role.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Teams.Item.Memberships.Item { +namespace GitHub.Orgs.Item.Teams.Item.Memberships.Item +{ /// The role that this user should have in the team. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithUsernamePutRequestBody_role { [EnumMember(Value = "member")] diff --git a/src/GitHub/Orgs/Item/Teams/Item/Memberships/MembershipsRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/Memberships/MembershipsRequestBuilder.cs index 001d1de8..edf73119 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Memberships/MembershipsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Memberships/MembershipsRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Orgs.Item.Teams.Item.Memberships.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Teams.Item.Memberships { +namespace GitHub.Orgs.Item.Teams.Item.Memberships +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug}\memberships /// - public class MembershipsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class MembershipsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.teams.item.memberships.item collection /// The handle for the GitHub user account. - /// A - public WithUsernameItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Teams.Item.Memberships.Item.WithUsernameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("username", position); - return new WithUsernameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Memberships.Item.WithUsernameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public MembershipsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Teams/Item/Projects/Item/WithProject_403Error.cs b/src/GitHub/Orgs/Item/Teams/Item/Projects/Item/WithProject_403Error.cs index 590ce785..39793b72 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Projects/Item/WithProject_403Error.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Projects/Item/WithProject_403Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Teams.Item.Projects.Item { +namespace GitHub.Orgs.Item.Teams.Item.Projects.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithProject_403Error : ApiException, IAdditionalDataHolder, IParsable + public partial class WithProject_403Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,16 +22,10 @@ public class WithProject_403Error : ApiException, IAdditionalDataHolder, IParsab #else public string DocumentationUrl { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithProject_403Error() { @@ -38,12 +34,12 @@ public WithProject_403Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithProject_403Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Teams.Item.Projects.Item.WithProject_403Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithProject_403Error(); + return new global::GitHub.Orgs.Item.Teams.Item.Projects.Item.WithProject_403Error(); } /// /// The deserialization information for the current model @@ -53,8 +49,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, }; } /// @@ -65,7 +60,6 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Teams/Item/Projects/Item/WithProject_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/Projects/Item/WithProject_ItemRequestBuilder.cs index f208c2a2..ea900e56 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Projects/Item/WithProject_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Projects/Item/WithProject_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Teams.Item.Projects.Item { +namespace GitHub.Orgs.Item.Teams.Item.Projects.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug}\projects\{project_id} /// - public class WithProject_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithProject_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithProject_ItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,20 +54,20 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, TeamProject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.TeamProject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/{org_id}/team/{team_id}/projects/{project_id}`. @@ -74,21 +76,21 @@ public async Task GetAsync(ActionThe request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(WithProject_PutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Teams.Item.Projects.Item.WithProject_PutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(WithProject_PutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Teams.Item.Projects.Item.WithProject_PutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", WithProject_403Error.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Orgs.Item.Teams.Item.Projects.Item.WithProject_403Error.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -137,11 +139,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(WithProject_PutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Teams.Item.Projects.Item.WithProject_PutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(WithProject_PutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Teams.Item.Projects.Item.WithProject_PutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -154,11 +156,11 @@ public RequestInformation ToPutRequestInformation(WithProject_PutRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithProject_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Teams.Item.Projects.Item.WithProject_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithProject_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Projects.Item.WithProject_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Teams/Item/Projects/Item/WithProject_PutRequestBody.cs b/src/GitHub/Orgs/Item/Teams/Item/Projects/Item/WithProject_PutRequestBody.cs index 3734550b..2c8603ba 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Projects/Item/WithProject_PutRequestBody.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Projects/Item/WithProject_PutRequestBody.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Teams.Item.Projects.Item { +namespace GitHub.Orgs.Item.Teams.Item.Projects.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithProject_PutRequestBody : IAdditionalDataHolder, IParsable + public partial class WithProject_PutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see "[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method)." - public WithProject_PutRequestBody_permission? Permission { get; set; } + public global::GitHub.Orgs.Item.Teams.Item.Projects.Item.WithProject_PutRequestBody_permission? Permission { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithProject_PutRequestBody() { @@ -23,12 +25,12 @@ public WithProject_PutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithProject_PutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Teams.Item.Projects.Item.WithProject_PutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithProject_PutRequestBody(); + return new global::GitHub.Orgs.Item.Teams.Item.Projects.Item.WithProject_PutRequestBody(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"permission", n => { Permission = n.GetEnumValue(); } }, + { "permission", n => { Permission = n.GetEnumValue(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("permission", Permission); + writer.WriteEnumValue("permission", Permission); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Teams/Item/Projects/Item/WithProject_PutRequestBody_permission.cs b/src/GitHub/Orgs/Item/Teams/Item/Projects/Item/WithProject_PutRequestBody_permission.cs index 34e67d8f..659d8a8d 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Projects/Item/WithProject_PutRequestBody_permission.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Projects/Item/WithProject_PutRequestBody_permission.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Teams.Item.Projects.Item { +namespace GitHub.Orgs.Item.Teams.Item.Projects.Item +{ /// The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see "[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method)." + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithProject_PutRequestBody_permission { [EnumMember(Value = "read")] diff --git a/src/GitHub/Orgs/Item/Teams/Item/Projects/ProjectsRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/Projects/ProjectsRequestBuilder.cs index 8db50a2f..c75efd28 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Projects/ProjectsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Projects/ProjectsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Teams.Item.Projects.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Teams.Item.Projects { +namespace GitHub.Orgs.Item.Teams.Item.Projects +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug}\projects /// - public class ProjectsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProjectsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.teams.item.projects.item collection /// The unique identifier of the project. - /// A - public WithProject_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Orgs.Item.Teams.Item.Projects.Item.WithProject_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("project_id", position); - return new WithProject_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Projects.Item.WithProject_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public ProjectsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public ProjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Lists the organization projects for a team.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/projects`. /// API method documentation /// - /// A List<TeamProject> + /// A List<global::GitHub.Models.TeamProject> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, TeamProject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.TeamProject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists the organization projects for a team.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/projects`. @@ -70,11 +72,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -85,16 +87,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ProjectsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Teams.Item.Projects.ProjectsRequestBuilder WithUrl(string rawUrl) { - return new ProjectsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Projects.ProjectsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the organization projects for a team.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/projects`. /// - public class ProjectsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProjectsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Teams/Item/Repos/Item/Item/WithRepoItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/Repos/Item/Item/WithRepoItemRequestBuilder.cs index 92d498fc..53254eec 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Repos/Item/Item/WithRepoItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Repos/Item/Item/WithRepoItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Teams.Item.Repos.Item.Item { +namespace GitHub.Orgs.Item.Teams.Item.Repos.Item.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug}\repos\{owner}\{repo} /// - public class WithRepoItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRepoItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithRepoItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,20 +54,20 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, TeamRepository.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.TeamRepository.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method)."> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}`.For more information about the permission levels, see "[Repository permission levels for an organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/repository-permission-levels-for-an-organization#permission-levels-for-repositories-owned-by-an-organization)". @@ -76,11 +78,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(WithRepoPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Teams.Item.Repos.Item.Item.WithRepoPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(WithRepoPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Orgs.Item.Teams.Item.Repos.Item.Item.WithRepoPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -132,11 +134,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(WithRepoPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Teams.Item.Repos.Item.Item.WithRepoPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(WithRepoPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Orgs.Item.Teams.Item.Repos.Item.Item.WithRepoPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -148,11 +150,11 @@ public RequestInformation ToPutRequestInformation(WithRepoPutRequestBody body, A /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRepoItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Teams.Item.Repos.Item.Item.WithRepoItemRequestBuilder WithUrl(string rawUrl) { - return new WithRepoItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Repos.Item.Item.WithRepoItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Teams/Item/Repos/Item/Item/WithRepoPutRequestBody.cs b/src/GitHub/Orgs/Item/Teams/Item/Repos/Item/Item/WithRepoPutRequestBody.cs index f8ad5ad9..29e5367b 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Repos/Item/Item/WithRepoPutRequestBody.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Repos/Item/Item/WithRepoPutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Teams.Item.Repos.Item.Item { +namespace GitHub.Orgs.Item.Teams.Item.Repos.Item.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithRepoPutRequestBody : IAdditionalDataHolder, IParsable + public partial class WithRepoPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class WithRepoPutRequestBody : IAdditionalDataHolder, IParsable public string Permission { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithRepoPutRequestBody() { @@ -29,12 +31,12 @@ public WithRepoPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithRepoPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Teams.Item.Repos.Item.Item.WithRepoPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithRepoPutRequestBody(); + return new global::GitHub.Orgs.Item.Teams.Item.Repos.Item.Item.WithRepoPutRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"permission", n => { Permission = n.GetStringValue(); } }, + { "permission", n => { Permission = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Teams/Item/Repos/Item/WithOwnerItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/Repos/Item/WithOwnerItemRequestBuilder.cs index 2e3a281a..7361297f 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Repos/Item/WithOwnerItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Repos/Item/WithOwnerItemRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Orgs.Item.Teams.Item.Repos.Item.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Teams.Item.Repos.Item { +namespace GitHub.Orgs.Item.Teams.Item.Repos.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug}\repos\{owner} /// - public class WithOwnerItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithOwnerItemRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.teams.item.repos.item.item collection /// Unique identifier of the item - /// A - public WithRepoItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Teams.Item.Repos.Item.Item.WithRepoItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("repo", position); - return new WithRepoItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Repos.Item.Item.WithRepoItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public WithOwnerItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Teams/Item/Repos/ReposRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/Repos/ReposRequestBuilder.cs index 53e1818c..31223470 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Repos/ReposRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Repos/ReposRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Teams.Item.Repos.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Teams.Item.Repos { +namespace GitHub.Orgs.Item.Teams.Item.Repos +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug}\repos /// - public class ReposRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReposRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.teams.item.repos.item collection /// Unique identifier of the item - /// A - public WithOwnerItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Teams.Item.Repos.Item.WithOwnerItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("owner", position); - return new WithOwnerItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Repos.Item.WithOwnerItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public ReposRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public ReposRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Lists a team's repositories visible to the authenticated user.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/repos`. /// API method documentation /// - /// A List<MinimalRepository> + /// A List<global::GitHub.Models.MinimalRepository> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, MinimalRepository.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.MinimalRepository.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists a team's repositories visible to the authenticated user.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/repos`. @@ -70,11 +72,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -85,16 +87,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ReposRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Teams.Item.Repos.ReposRequestBuilder WithUrl(string rawUrl) { - return new ReposRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Repos.ReposRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists a team's repositories visible to the authenticated user.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/repos`. /// - public class ReposRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReposRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Teams/Item/TeamSync/GroupMappings/GroupMappingsPatchRequestBody.cs b/src/GitHub/Orgs/Item/Teams/Item/TeamSync/GroupMappings/GroupMappingsPatchRequestBody.cs index 3da67f19..210fbb4f 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/TeamSync/GroupMappings/GroupMappingsPatchRequestBody.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/TeamSync/GroupMappings/GroupMappingsPatchRequestBody.cs @@ -1,31 +1,33 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Teams.Item.TeamSync.GroupMappings { +namespace GitHub.Orgs.Item.Teams.Item.TeamSync.GroupMappings +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GroupMappingsPatchRequestBody : IParsable + public partial class GroupMappingsPatchRequestBody : IParsable #pragma warning restore CS1591 { /// The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Groups { get; set; } + public List? Groups { get; set; } #nullable restore #else - public List Groups { get; set; } + public List Groups { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GroupMappingsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Teams.Item.TeamSync.GroupMappings.GroupMappingsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GroupMappingsPatchRequestBody(); + return new global::GitHub.Orgs.Item.Teams.Item.TeamSync.GroupMappings.GroupMappingsPatchRequestBody(); } /// /// The deserialization information for the current model @@ -35,7 +37,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"groups", n => { Groups = n.GetCollectionOfObjectValues(GroupMappingsPatchRequestBody_groups.CreateFromDiscriminatorValue)?.ToList(); } }, + { "groups", n => { Groups = n.GetCollectionOfObjectValues(global::GitHub.Orgs.Item.Teams.Item.TeamSync.GroupMappings.GroupMappingsPatchRequestBody_groups.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("groups", Groups); + writer.WriteCollectionOfObjectValues("groups", Groups); } } } diff --git a/src/GitHub/Orgs/Item/Teams/Item/TeamSync/GroupMappings/GroupMappingsPatchRequestBody_groups.cs b/src/GitHub/Orgs/Item/Teams/Item/TeamSync/GroupMappings/GroupMappingsPatchRequestBody_groups.cs index ba5c2309..ed02f68d 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/TeamSync/GroupMappings/GroupMappingsPatchRequestBody_groups.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/TeamSync/GroupMappings/GroupMappingsPatchRequestBody_groups.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Teams.Item.TeamSync.GroupMappings { +namespace GitHub.Orgs.Item.Teams.Item.TeamSync.GroupMappings +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GroupMappingsPatchRequestBody_groups : IAdditionalDataHolder, IParsable + public partial class GroupMappingsPatchRequestBody_groups : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class GroupMappingsPatchRequestBody_groups : IAdditionalDataHolder, IPars public string GroupName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GroupMappingsPatchRequestBody_groups() { @@ -45,12 +47,12 @@ public GroupMappingsPatchRequestBody_groups() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GroupMappingsPatchRequestBody_groups CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Teams.Item.TeamSync.GroupMappings.GroupMappingsPatchRequestBody_groups CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GroupMappingsPatchRequestBody_groups(); + return new global::GitHub.Orgs.Item.Teams.Item.TeamSync.GroupMappings.GroupMappingsPatchRequestBody_groups(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"group_description", n => { GroupDescription = n.GetStringValue(); } }, - {"group_id", n => { GroupId = n.GetStringValue(); } }, - {"group_name", n => { GroupName = n.GetStringValue(); } }, + { "group_description", n => { GroupDescription = n.GetStringValue(); } }, + { "group_id", n => { GroupId = n.GetStringValue(); } }, + { "group_name", n => { GroupName = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Orgs/Item/Teams/Item/TeamSync/GroupMappings/GroupMappingsRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/TeamSync/GroupMappings/GroupMappingsRequestBuilder.cs index 92734618..121a1049 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/TeamSync/GroupMappings/GroupMappingsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/TeamSync/GroupMappings/GroupMappingsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Teams.Item.TeamSync.GroupMappings { +namespace GitHub.Orgs.Item.Teams.Item.TeamSync.GroupMappings +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug}\team-sync\group-mappings /// - public class GroupMappingsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GroupMappingsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public GroupMappingsRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,41 +36,41 @@ public GroupMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// List IdP groups connected to a team on GitHub Enterprise Cloud.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/team-sync/group-mappings`. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GroupMapping.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GroupMapping.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Creates, updates, or removes a connection between a team and an IdP group. When adding groups to a team, you must include all new and existing groups to avoid replacing existing groups with the new ones. Specifying an empty `groups` array will remove all connections for a team.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/{org_id}/team/{team_id}/team-sync/group-mappings`. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(GroupMappingsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.Teams.Item.TeamSync.GroupMappings.GroupMappingsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(GroupMappingsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.Teams.Item.TeamSync.GroupMappings.GroupMappingsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GroupMapping.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GroupMapping.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// List IdP groups connected to a team on GitHub Enterprise Cloud.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/team-sync/group-mappings`. @@ -97,11 +99,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(GroupMappingsPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Teams.Item.TeamSync.GroupMappings.GroupMappingsPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(GroupMappingsPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Teams.Item.TeamSync.GroupMappings.GroupMappingsPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -114,11 +116,11 @@ public RequestInformation ToPatchRequestInformation(GroupMappingsPatchRequestBod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public GroupMappingsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Teams.Item.TeamSync.GroupMappings.GroupMappingsRequestBuilder WithUrl(string rawUrl) { - return new GroupMappingsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.TeamSync.GroupMappings.GroupMappingsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Teams/Item/TeamSync/TeamSyncRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/TeamSync/TeamSyncRequestBuilder.cs index e5bc5738..09e5b799 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/TeamSync/TeamSyncRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/TeamSync/TeamSyncRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Orgs.Item.Teams.Item.TeamSync.GroupMappings; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs.Item.Teams.Item.TeamSync { +namespace GitHub.Orgs.Item.Teams.Item.TeamSync +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug}\team-sync /// - public class TeamSyncRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamSyncRequestBuilder : BaseRequestBuilder { /// The groupMappings property - public GroupMappingsRequestBuilder GroupMappings + public global::GitHub.Orgs.Item.Teams.Item.TeamSync.GroupMappings.GroupMappingsRequestBuilder GroupMappings { - get => new GroupMappingsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Teams.Item.TeamSync.GroupMappings.GroupMappingsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public TeamSyncRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Orgs/Item/Teams/Item/Teams/TeamsRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/Teams/TeamsRequestBuilder.cs index 64a0fc49..311943b3 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/Teams/TeamsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/Teams/TeamsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Teams.Item.Teams { +namespace GitHub.Orgs.Item.Teams.Item.Teams +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug}\teams /// - public class TeamsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public TeamsRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public TeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Lists the child teams of the team specified by `{team_slug}`.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/teams`. /// API method documentation /// - /// A List<GitHub.Models.Team> + /// A List<global::GitHub.Models.Team> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GitHub.Models.Team.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Team.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists the child teams of the team specified by `{team_slug}`.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/teams`. @@ -57,11 +59,11 @@ public TeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -72,16 +74,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public TeamsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Teams.Item.Teams.TeamsRequestBuilder WithUrl(string rawUrl) { - return new TeamsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.Teams.TeamsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the child teams of the team specified by `{team_slug}`.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/teams`. /// - public class TeamsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugItemRequestBuilder.cs index 03ad92d6..b67f712c 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugItemRequestBuilder.cs @@ -9,67 +9,69 @@ using GitHub.Orgs.Item.Teams.Item.Repos; using GitHub.Orgs.Item.Teams.Item.TeamSync; using GitHub.Orgs.Item.Teams.Item.Teams; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Teams.Item { +namespace GitHub.Orgs.Item.Teams.Item +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams\{team_slug} /// - public class WithTeam_slugItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithTeam_slugItemRequestBuilder : BaseRequestBuilder { /// The discussions property - public DiscussionsRequestBuilder Discussions + public global::GitHub.Orgs.Item.Teams.Item.Discussions.DiscussionsRequestBuilder Discussions { - get => new DiscussionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Teams.Item.Discussions.DiscussionsRequestBuilder(PathParameters, RequestAdapter); } /// The externalGroups property - public ExternalGroupsRequestBuilder ExternalGroups + public global::GitHub.Orgs.Item.Teams.Item.ExternalGroups.ExternalGroupsRequestBuilder ExternalGroups { - get => new ExternalGroupsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Teams.Item.ExternalGroups.ExternalGroupsRequestBuilder(PathParameters, RequestAdapter); } /// The invitations property - public InvitationsRequestBuilder Invitations + public global::GitHub.Orgs.Item.Teams.Item.Invitations.InvitationsRequestBuilder Invitations { - get => new InvitationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Teams.Item.Invitations.InvitationsRequestBuilder(PathParameters, RequestAdapter); } /// The members property - public MembersRequestBuilder Members + public global::GitHub.Orgs.Item.Teams.Item.Members.MembersRequestBuilder Members { - get => new MembersRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Teams.Item.Members.MembersRequestBuilder(PathParameters, RequestAdapter); } /// The memberships property - public MembershipsRequestBuilder Memberships + public global::GitHub.Orgs.Item.Teams.Item.Memberships.MembershipsRequestBuilder Memberships { - get => new MembershipsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Teams.Item.Memberships.MembershipsRequestBuilder(PathParameters, RequestAdapter); } /// The projects property - public ProjectsRequestBuilder Projects + public global::GitHub.Orgs.Item.Teams.Item.Projects.ProjectsRequestBuilder Projects { - get => new ProjectsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Teams.Item.Projects.ProjectsRequestBuilder(PathParameters, RequestAdapter); } /// The repos property - public ReposRequestBuilder Repos + public global::GitHub.Orgs.Item.Teams.Item.Repos.ReposRequestBuilder Repos { - get => new ReposRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Teams.Item.Repos.ReposRequestBuilder(PathParameters, RequestAdapter); } /// The teams property - public GitHub.Orgs.Item.Teams.Item.Teams.TeamsRequestBuilder Teams + public global::GitHub.Orgs.Item.Teams.Item.Teams.TeamsRequestBuilder Teams { - get => new GitHub.Orgs.Item.Teams.Item.Teams.TeamsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Teams.Item.Teams.TeamsRequestBuilder(PathParameters, RequestAdapter); } /// The teamSync property - public TeamSyncRequestBuilder TeamSync + public global::GitHub.Orgs.Item.Teams.Item.TeamSync.TeamSyncRequestBuilder TeamSync { - get => new TeamSyncRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Teams.Item.TeamSync.TeamSyncRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -77,7 +79,7 @@ public WithTeam_slugItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -106,55 +108,55 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, TeamFull.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.TeamFull.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// To edit a team, the authenticated user must either be an organization owner or a team maintainer.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/{org_id}/team/{team_id}`. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithTeam_slugPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.Teams.Item.WithTeam_slugPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithTeam_slugPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.Teams.Item.WithTeam_slugPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, TeamFull.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.TeamFull.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// To delete a team, the authenticated user must be an organization owner or team maintainer.If you are an organization owner, deleting a parent team will delete all of its child teams as well.> [!NOTE]> You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}`. @@ -201,11 +203,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithTeam_slugPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Teams.Item.WithTeam_slugPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithTeam_slugPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.Teams.Item.WithTeam_slugPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -218,11 +220,11 @@ public RequestInformation ToPatchRequestInformation(WithTeam_slugPatchRequestBod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithTeam_slugItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Teams.Item.WithTeam_slugItemRequestBuilder WithUrl(string rawUrl) { - return new WithTeam_slugItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.WithTeam_slugItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody.cs b/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody.cs index 3716acad..25005452 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Teams.Item { +namespace GitHub.Orgs.Item.Teams.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithTeam_slugPatchRequestBody : IAdditionalDataHolder, IParsable + public partial class WithTeam_slugPatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,30 +30,30 @@ public class WithTeam_slugPatchRequestBody : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: * `notifications_enabled` - team members receive notifications when the team is @mentioned. * `notifications_disabled` - no one receives notifications. - public WithTeam_slugPatchRequestBody_notification_setting? NotificationSetting { get; set; } + public global::GitHub.Orgs.Item.Teams.Item.WithTeam_slugPatchRequestBody_notification_setting? NotificationSetting { get; set; } /// The ID of a team to set as the parent team. public int? ParentTeamId { get; set; } /// **Deprecated**. The permission that new repositories will be added to the team with when none is specified. - public WithTeam_slugPatchRequestBody_permission? Permission { get; set; } + public global::GitHub.Orgs.Item.Teams.Item.WithTeam_slugPatchRequestBody_permission? Permission { get; set; } /// The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: **For a non-nested team:** * `secret` - only visible to organization owners and members of this team. * `closed` - visible to all members of this organization. **For a parent or child team:** * `closed` - visible to all members of this organization. - public WithTeam_slugPatchRequestBody_privacy? Privacy { get; set; } + public global::GitHub.Orgs.Item.Teams.Item.WithTeam_slugPatchRequestBody_privacy? Privacy { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithTeam_slugPatchRequestBody() { AdditionalData = new Dictionary(); - Permission = WithTeam_slugPatchRequestBody_permission.Pull; + Permission = global::GitHub.Orgs.Item.Teams.Item.WithTeam_slugPatchRequestBody_permission.Pull; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithTeam_slugPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Teams.Item.WithTeam_slugPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithTeam_slugPatchRequestBody(); + return new global::GitHub.Orgs.Item.Teams.Item.WithTeam_slugPatchRequestBody(); } /// /// The deserialization information for the current model @@ -61,12 +63,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"notification_setting", n => { NotificationSetting = n.GetEnumValue(); } }, - {"parent_team_id", n => { ParentTeamId = n.GetIntValue(); } }, - {"permission", n => { Permission = n.GetEnumValue(); } }, - {"privacy", n => { Privacy = n.GetEnumValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "notification_setting", n => { NotificationSetting = n.GetEnumValue(); } }, + { "parent_team_id", n => { ParentTeamId = n.GetIntValue(); } }, + { "permission", n => { Permission = n.GetEnumValue(); } }, + { "privacy", n => { Privacy = n.GetEnumValue(); } }, }; } /// @@ -78,10 +80,10 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("description", Description); writer.WriteStringValue("name", Name); - writer.WriteEnumValue("notification_setting", NotificationSetting); + writer.WriteEnumValue("notification_setting", NotificationSetting); writer.WriteIntValue("parent_team_id", ParentTeamId); - writer.WriteEnumValue("permission", Permission); - writer.WriteEnumValue("privacy", Privacy); + writer.WriteEnumValue("permission", Permission); + writer.WriteEnumValue("privacy", Privacy); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody_notification_setting.cs b/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody_notification_setting.cs index 05b81bdd..637f6b02 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody_notification_setting.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody_notification_setting.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Teams.Item { +namespace GitHub.Orgs.Item.Teams.Item +{ /// The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: * `notifications_enabled` - team members receive notifications when the team is @mentioned. * `notifications_disabled` - no one receives notifications. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithTeam_slugPatchRequestBody_notification_setting { [EnumMember(Value = "notifications_enabled")] diff --git a/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody_permission.cs b/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody_permission.cs index a0f424ba..19918931 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody_permission.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody_permission.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Teams.Item { +namespace GitHub.Orgs.Item.Teams.Item +{ /// **Deprecated**. The permission that new repositories will be added to the team with when none is specified. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithTeam_slugPatchRequestBody_permission { [EnumMember(Value = "pull")] diff --git a/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody_privacy.cs b/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody_privacy.cs index cc14606a..2e171738 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody_privacy.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody_privacy.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Teams.Item { +namespace GitHub.Orgs.Item.Teams.Item +{ /// The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: **For a non-nested team:** * `secret` - only visible to organization owners and members of this team. * `closed` - visible to all members of this organization. **For a parent or child team:** * `closed` - visible to all members of this organization. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithTeam_slugPatchRequestBody_privacy { [EnumMember(Value = "secret")] diff --git a/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody.cs b/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody.cs index c8789c7a..81bbf274 100644 --- a/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item.Teams { +namespace GitHub.Orgs.Item.Teams +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TeamsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TeamsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,13 +38,13 @@ public class TeamsPostRequestBody : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// The notification setting the team has chosen. The options are: * `notifications_enabled` - team members receive notifications when the team is @mentioned. * `notifications_disabled` - no one receives notifications. Default: `notifications_enabled` - public TeamsPostRequestBody_notification_setting? NotificationSetting { get; set; } + public global::GitHub.Orgs.Item.Teams.TeamsPostRequestBody_notification_setting? NotificationSetting { get; set; } /// The ID of a team to set as the parent team. public int? ParentTeamId { get; set; } /// **Deprecated**. The permission that new repositories will be added to the team with when none is specified. - public TeamsPostRequestBody_permission? Permission { get; set; } + public global::GitHub.Orgs.Item.Teams.TeamsPostRequestBody_permission? Permission { get; set; } /// The level of privacy this team should have. The options are: **For a non-nested team:** * `secret` - only visible to organization owners and members of this team. * `closed` - visible to all members of this organization. Default: `secret` **For a parent or child team:** * `closed` - visible to all members of this organization. Default for child team: `closed` - public TeamsPostRequestBody_privacy? Privacy { get; set; } + public global::GitHub.Orgs.Item.Teams.TeamsPostRequestBody_privacy? Privacy { get; set; } /// The full name (e.g., "organization-name/repository-name") of repositories to add the team to. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -52,22 +54,22 @@ public class TeamsPostRequestBody : IAdditionalDataHolder, IParsable public List RepoNames { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TeamsPostRequestBody() { AdditionalData = new Dictionary(); - Permission = TeamsPostRequestBody_permission.Pull; + Permission = global::GitHub.Orgs.Item.Teams.TeamsPostRequestBody_permission.Pull; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TeamsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.Teams.TeamsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TeamsPostRequestBody(); + return new global::GitHub.Orgs.Item.Teams.TeamsPostRequestBody(); } /// /// The deserialization information for the current model @@ -77,14 +79,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"maintainers", n => { Maintainers = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"notification_setting", n => { NotificationSetting = n.GetEnumValue(); } }, - {"parent_team_id", n => { ParentTeamId = n.GetIntValue(); } }, - {"permission", n => { Permission = n.GetEnumValue(); } }, - {"privacy", n => { Privacy = n.GetEnumValue(); } }, - {"repo_names", n => { RepoNames = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "maintainers", n => { Maintainers = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "notification_setting", n => { NotificationSetting = n.GetEnumValue(); } }, + { "parent_team_id", n => { ParentTeamId = n.GetIntValue(); } }, + { "permission", n => { Permission = n.GetEnumValue(); } }, + { "privacy", n => { Privacy = n.GetEnumValue(); } }, + { "repo_names", n => { RepoNames = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -97,10 +99,10 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("description", Description); writer.WriteCollectionOfPrimitiveValues("maintainers", Maintainers); writer.WriteStringValue("name", Name); - writer.WriteEnumValue("notification_setting", NotificationSetting); + writer.WriteEnumValue("notification_setting", NotificationSetting); writer.WriteIntValue("parent_team_id", ParentTeamId); - writer.WriteEnumValue("permission", Permission); - writer.WriteEnumValue("privacy", Privacy); + writer.WriteEnumValue("permission", Permission); + writer.WriteEnumValue("privacy", Privacy); writer.WriteCollectionOfPrimitiveValues("repo_names", RepoNames); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody_notification_setting.cs b/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody_notification_setting.cs index 3f12c4ee..5879fc94 100644 --- a/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody_notification_setting.cs +++ b/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody_notification_setting.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Teams { +namespace GitHub.Orgs.Item.Teams +{ /// The notification setting the team has chosen. The options are: * `notifications_enabled` - team members receive notifications when the team is @mentioned. * `notifications_disabled` - no one receives notifications. Default: `notifications_enabled` + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum TeamsPostRequestBody_notification_setting { [EnumMember(Value = "notifications_enabled")] diff --git a/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody_permission.cs b/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody_permission.cs index a3ebffa4..36950458 100644 --- a/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody_permission.cs +++ b/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody_permission.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Teams { +namespace GitHub.Orgs.Item.Teams +{ /// **Deprecated**. The permission that new repositories will be added to the team with when none is specified. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum TeamsPostRequestBody_permission { [EnumMember(Value = "pull")] diff --git a/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody_privacy.cs b/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody_privacy.cs index 4ed9b8d9..bcab3759 100644 --- a/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody_privacy.cs +++ b/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody_privacy.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item.Teams { +namespace GitHub.Orgs.Item.Teams +{ /// The level of privacy this team should have. The options are: **For a non-nested team:** * `secret` - only visible to organization owners and members of this team. * `closed` - visible to all members of this organization. Default: `secret` **For a parent or child team:** * `closed` - visible to all members of this organization. Default for child team: `closed` + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum TeamsPostRequestBody_privacy { [EnumMember(Value = "secret")] diff --git a/src/GitHub/Orgs/Item/Teams/TeamsRequestBuilder.cs b/src/GitHub/Orgs/Item/Teams/TeamsRequestBuilder.cs index b586d6a9..ede5526c 100644 --- a/src/GitHub/Orgs/Item/Teams/TeamsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Teams/TeamsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Orgs.Item.Teams.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item.Teams { +namespace GitHub.Orgs.Item.Teams +{ /// /// Builds and executes requests for operations under \orgs\{org}\teams /// - public class TeamsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item.teams.item collection /// The slug of the team name. - /// A - public WithTeam_slugItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Teams.Item.WithTeam_slugItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("team_slug", position); - return new WithTeam_slugItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.Item.WithTeam_slugItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public TeamsRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,54 +49,54 @@ public TeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Lists all teams in an organization that are visible to the authenticated user. /// API method documentation /// - /// A List<GitHub.Models.Team> + /// A List<global::GitHub.Models.Team> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GitHub.Models.Team.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Team.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// To create a team, the authenticated user must be a member or owner of `{org}`. By default, organization members can create teams. Organization owners can limit team creation to organization owners. For more information, see "[Setting team creation permissions](https://docs.github.com/enterprise-cloud@latest//articles/setting-team-creation-permissions-in-your-organization)."When you create a new team, you automatically become a team maintainer without explicitly adding yourself to the optional array of `maintainers`. For more information, see "[About teams](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/about-teams)". /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(TeamsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Teams.TeamsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(TeamsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Orgs.Item.Teams.TeamsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, TeamFull.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.TeamFull.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists all teams in an organization that are visible to the authenticated user. @@ -103,11 +105,11 @@ public async Task PostAsync(TeamsPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -123,11 +125,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(TeamsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Teams.TeamsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TeamsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Teams.TeamsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -140,16 +142,17 @@ public RequestInformation ToPostRequestInformation(TeamsPostRequestBody body, Ac /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public TeamsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.Teams.TeamsRequestBuilder WithUrl(string rawUrl) { - return new TeamsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.Teams.TeamsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all teams in an organization that are visible to the authenticated user. /// - public class TeamsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Orgs/Item/WithOrgDeleteResponse.cs b/src/GitHub/Orgs/Item/WithOrgDeleteResponse.cs index a243ef82..5c4815d0 100644 --- a/src/GitHub/Orgs/Item/WithOrgDeleteResponse.cs +++ b/src/GitHub/Orgs/Item/WithOrgDeleteResponse.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item { +namespace GitHub.Orgs.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithOrgDeleteResponse : IAdditionalDataHolder, IParsable + public partial class WithOrgDeleteResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithOrgDeleteResponse() { @@ -21,12 +23,12 @@ public WithOrgDeleteResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithOrgDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.WithOrgDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithOrgDeleteResponse(); + return new global::GitHub.Orgs.Item.WithOrgDeleteResponse(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Orgs/Item/WithOrgItemRequestBuilder.cs b/src/GitHub/Orgs/Item/WithOrgItemRequestBuilder.cs index b92241a9..52995212 100644 --- a/src/GitHub/Orgs/Item/WithOrgItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/WithOrgItemRequestBuilder.cs @@ -48,269 +48,271 @@ using GitHub.Orgs.Item.Team; using GitHub.Orgs.Item.TeamSync; using GitHub.Orgs.Item.Teams; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Orgs.Item { +namespace GitHub.Orgs.Item +{ /// /// Builds and executes requests for operations under \orgs\{org} /// - public class WithOrgItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithOrgItemRequestBuilder : BaseRequestBuilder { /// The actions property - public ActionsRequestBuilder Actions + public global::GitHub.Orgs.Item.Actions.ActionsRequestBuilder Actions { - get => new ActionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Actions.ActionsRequestBuilder(PathParameters, RequestAdapter); } /// The announcement property - public AnnouncementRequestBuilder Announcement + public global::GitHub.Orgs.Item.Announcement.AnnouncementRequestBuilder Announcement { - get => new AnnouncementRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Announcement.AnnouncementRequestBuilder(PathParameters, RequestAdapter); } /// The attestations property - public AttestationsRequestBuilder Attestations + public global::GitHub.Orgs.Item.Attestations.AttestationsRequestBuilder Attestations { - get => new AttestationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Attestations.AttestationsRequestBuilder(PathParameters, RequestAdapter); } /// The auditLog property - public AuditLogRequestBuilder AuditLog + public global::GitHub.Orgs.Item.AuditLog.AuditLogRequestBuilder AuditLog { - get => new AuditLogRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.AuditLog.AuditLogRequestBuilder(PathParameters, RequestAdapter); } /// The blocks property - public BlocksRequestBuilder Blocks + public global::GitHub.Orgs.Item.Blocks.BlocksRequestBuilder Blocks { - get => new BlocksRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Blocks.BlocksRequestBuilder(PathParameters, RequestAdapter); } /// The codeScanning property - public CodeScanningRequestBuilder CodeScanning + public global::GitHub.Orgs.Item.CodeScanning.CodeScanningRequestBuilder CodeScanning { - get => new CodeScanningRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.CodeScanning.CodeScanningRequestBuilder(PathParameters, RequestAdapter); } /// The codeSecurity property - public CodeSecurityRequestBuilder CodeSecurity + public global::GitHub.Orgs.Item.CodeSecurity.CodeSecurityRequestBuilder CodeSecurity { - get => new CodeSecurityRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.CodeSecurity.CodeSecurityRequestBuilder(PathParameters, RequestAdapter); } /// The codespaces property - public CodespacesRequestBuilder Codespaces + public global::GitHub.Orgs.Item.Codespaces.CodespacesRequestBuilder Codespaces { - get => new CodespacesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Codespaces.CodespacesRequestBuilder(PathParameters, RequestAdapter); } /// The copilot property - public CopilotRequestBuilder Copilot + public global::GitHub.Orgs.Item.Copilot.CopilotRequestBuilder Copilot { - get => new CopilotRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Copilot.CopilotRequestBuilder(PathParameters, RequestAdapter); } /// The credentialAuthorizations property - public CredentialAuthorizationsRequestBuilder CredentialAuthorizations + public global::GitHub.Orgs.Item.CredentialAuthorizations.CredentialAuthorizationsRequestBuilder CredentialAuthorizations { - get => new CredentialAuthorizationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.CredentialAuthorizations.CredentialAuthorizationsRequestBuilder(PathParameters, RequestAdapter); } /// The custom_roles property - public Custom_rolesRequestBuilder Custom_roles + public global::GitHub.Orgs.Item.Custom_roles.Custom_rolesRequestBuilder Custom_roles { - get => new Custom_rolesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Custom_roles.Custom_rolesRequestBuilder(PathParameters, RequestAdapter); } /// The customRepositoryRoles property - public CustomRepositoryRolesRequestBuilder CustomRepositoryRoles + public global::GitHub.Orgs.Item.CustomRepositoryRoles.CustomRepositoryRolesRequestBuilder CustomRepositoryRoles { - get => new CustomRepositoryRolesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.CustomRepositoryRoles.CustomRepositoryRolesRequestBuilder(PathParameters, RequestAdapter); } /// The dependabot property - public DependabotRequestBuilder Dependabot + public global::GitHub.Orgs.Item.Dependabot.DependabotRequestBuilder Dependabot { - get => new DependabotRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Dependabot.DependabotRequestBuilder(PathParameters, RequestAdapter); } /// The docker property - public DockerRequestBuilder Docker + public global::GitHub.Orgs.Item.Docker.DockerRequestBuilder Docker { - get => new DockerRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Docker.DockerRequestBuilder(PathParameters, RequestAdapter); } /// The events property - public EventsRequestBuilder Events + public global::GitHub.Orgs.Item.Events.EventsRequestBuilder Events { - get => new EventsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Events.EventsRequestBuilder(PathParameters, RequestAdapter); } /// The externalGroup property - public ExternalGroupRequestBuilder ExternalGroup + public global::GitHub.Orgs.Item.ExternalGroup.ExternalGroupRequestBuilder ExternalGroup { - get => new ExternalGroupRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.ExternalGroup.ExternalGroupRequestBuilder(PathParameters, RequestAdapter); } /// The externalGroups property - public ExternalGroupsRequestBuilder ExternalGroups + public global::GitHub.Orgs.Item.ExternalGroups.ExternalGroupsRequestBuilder ExternalGroups { - get => new ExternalGroupsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.ExternalGroups.ExternalGroupsRequestBuilder(PathParameters, RequestAdapter); } /// The failed_invitations property - public Failed_invitationsRequestBuilder Failed_invitations + public global::GitHub.Orgs.Item.Failed_invitations.Failed_invitationsRequestBuilder Failed_invitations { - get => new Failed_invitationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Failed_invitations.Failed_invitationsRequestBuilder(PathParameters, RequestAdapter); } /// The fine_grained_permissions property - public Fine_grained_permissionsRequestBuilder Fine_grained_permissions + public global::GitHub.Orgs.Item.Fine_grained_permissions.Fine_grained_permissionsRequestBuilder Fine_grained_permissions { - get => new Fine_grained_permissionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Fine_grained_permissions.Fine_grained_permissionsRequestBuilder(PathParameters, RequestAdapter); } /// The hooks property - public HooksRequestBuilder Hooks + public global::GitHub.Orgs.Item.Hooks.HooksRequestBuilder Hooks { - get => new HooksRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Hooks.HooksRequestBuilder(PathParameters, RequestAdapter); } /// The installation property - public InstallationRequestBuilder Installation + public global::GitHub.Orgs.Item.Installation.InstallationRequestBuilder Installation { - get => new InstallationRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Installation.InstallationRequestBuilder(PathParameters, RequestAdapter); } /// The installations property - public InstallationsRequestBuilder Installations + public global::GitHub.Orgs.Item.Installations.InstallationsRequestBuilder Installations { - get => new InstallationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Installations.InstallationsRequestBuilder(PathParameters, RequestAdapter); } /// The interactionLimits property - public InteractionLimitsRequestBuilder InteractionLimits + public global::GitHub.Orgs.Item.InteractionLimits.InteractionLimitsRequestBuilder InteractionLimits { - get => new InteractionLimitsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.InteractionLimits.InteractionLimitsRequestBuilder(PathParameters, RequestAdapter); } /// The invitations property - public InvitationsRequestBuilder Invitations + public global::GitHub.Orgs.Item.Invitations.InvitationsRequestBuilder Invitations { - get => new InvitationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Invitations.InvitationsRequestBuilder(PathParameters, RequestAdapter); } /// The issues property - public IssuesRequestBuilder Issues + public global::GitHub.Orgs.Item.Issues.IssuesRequestBuilder Issues { - get => new IssuesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Issues.IssuesRequestBuilder(PathParameters, RequestAdapter); } /// The members property - public MembersRequestBuilder Members + public global::GitHub.Orgs.Item.Members.MembersRequestBuilder Members { - get => new MembersRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Members.MembersRequestBuilder(PathParameters, RequestAdapter); } /// The memberships property - public MembershipsRequestBuilder Memberships + public global::GitHub.Orgs.Item.Memberships.MembershipsRequestBuilder Memberships { - get => new MembershipsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Memberships.MembershipsRequestBuilder(PathParameters, RequestAdapter); } /// The migrations property - public MigrationsRequestBuilder Migrations + public global::GitHub.Orgs.Item.Migrations.MigrationsRequestBuilder Migrations { - get => new MigrationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Migrations.MigrationsRequestBuilder(PathParameters, RequestAdapter); } /// The organizationFineGrainedPermissions property - public OrganizationFineGrainedPermissionsRequestBuilder OrganizationFineGrainedPermissions + public global::GitHub.Orgs.Item.OrganizationFineGrainedPermissions.OrganizationFineGrainedPermissionsRequestBuilder OrganizationFineGrainedPermissions { - get => new OrganizationFineGrainedPermissionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.OrganizationFineGrainedPermissions.OrganizationFineGrainedPermissionsRequestBuilder(PathParameters, RequestAdapter); } /// The organizationRoles property - public OrganizationRolesRequestBuilder OrganizationRoles + public global::GitHub.Orgs.Item.OrganizationRoles.OrganizationRolesRequestBuilder OrganizationRoles { - get => new OrganizationRolesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.OrganizationRoles.OrganizationRolesRequestBuilder(PathParameters, RequestAdapter); } /// The outside_collaborators property - public Outside_collaboratorsRequestBuilder Outside_collaborators + public global::GitHub.Orgs.Item.Outside_collaborators.Outside_collaboratorsRequestBuilder Outside_collaborators { - get => new Outside_collaboratorsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Outside_collaborators.Outside_collaboratorsRequestBuilder(PathParameters, RequestAdapter); } /// The packages property - public PackagesRequestBuilder Packages + public global::GitHub.Orgs.Item.Packages.PackagesRequestBuilder Packages { - get => new PackagesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Packages.PackagesRequestBuilder(PathParameters, RequestAdapter); } /// The personalAccessTokenRequests property - public PersonalAccessTokenRequestsRequestBuilder PersonalAccessTokenRequests + public global::GitHub.Orgs.Item.PersonalAccessTokenRequests.PersonalAccessTokenRequestsRequestBuilder PersonalAccessTokenRequests { - get => new PersonalAccessTokenRequestsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.PersonalAccessTokenRequests.PersonalAccessTokenRequestsRequestBuilder(PathParameters, RequestAdapter); } /// The personalAccessTokens property - public PersonalAccessTokensRequestBuilder PersonalAccessTokens + public global::GitHub.Orgs.Item.PersonalAccessTokens.PersonalAccessTokensRequestBuilder PersonalAccessTokens { - get => new PersonalAccessTokensRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.PersonalAccessTokens.PersonalAccessTokensRequestBuilder(PathParameters, RequestAdapter); } /// The projects property - public ProjectsRequestBuilder Projects + public global::GitHub.Orgs.Item.Projects.ProjectsRequestBuilder Projects { - get => new ProjectsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Projects.ProjectsRequestBuilder(PathParameters, RequestAdapter); } /// The properties property - public PropertiesRequestBuilder Properties + public global::GitHub.Orgs.Item.Properties.PropertiesRequestBuilder Properties { - get => new PropertiesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Properties.PropertiesRequestBuilder(PathParameters, RequestAdapter); } /// The public_members property - public Public_membersRequestBuilder Public_members + public global::GitHub.Orgs.Item.Public_members.Public_membersRequestBuilder Public_members { - get => new Public_membersRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Public_members.Public_membersRequestBuilder(PathParameters, RequestAdapter); } /// The repos property - public ReposRequestBuilder Repos + public global::GitHub.Orgs.Item.Repos.ReposRequestBuilder Repos { - get => new ReposRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Repos.ReposRequestBuilder(PathParameters, RequestAdapter); } /// The repositoryFineGrainedPermissions property - public RepositoryFineGrainedPermissionsRequestBuilder RepositoryFineGrainedPermissions + public global::GitHub.Orgs.Item.RepositoryFineGrainedPermissions.RepositoryFineGrainedPermissionsRequestBuilder RepositoryFineGrainedPermissions { - get => new RepositoryFineGrainedPermissionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.RepositoryFineGrainedPermissions.RepositoryFineGrainedPermissionsRequestBuilder(PathParameters, RequestAdapter); } /// The rulesets property - public RulesetsRequestBuilder Rulesets + public global::GitHub.Orgs.Item.Rulesets.RulesetsRequestBuilder Rulesets { - get => new RulesetsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Rulesets.RulesetsRequestBuilder(PathParameters, RequestAdapter); } /// The secretScanning property - public SecretScanningRequestBuilder SecretScanning + public global::GitHub.Orgs.Item.SecretScanning.SecretScanningRequestBuilder SecretScanning { - get => new SecretScanningRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.SecretScanning.SecretScanningRequestBuilder(PathParameters, RequestAdapter); } /// The securityAdvisories property - public SecurityAdvisoriesRequestBuilder SecurityAdvisories + public global::GitHub.Orgs.Item.SecurityAdvisories.SecurityAdvisoriesRequestBuilder SecurityAdvisories { - get => new SecurityAdvisoriesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.SecurityAdvisories.SecurityAdvisoriesRequestBuilder(PathParameters, RequestAdapter); } /// The securityManagers property - public SecurityManagersRequestBuilder SecurityManagers + public global::GitHub.Orgs.Item.SecurityManagers.SecurityManagersRequestBuilder SecurityManagers { - get => new SecurityManagersRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.SecurityManagers.SecurityManagersRequestBuilder(PathParameters, RequestAdapter); } /// The settings property - public SettingsRequestBuilder Settings + public global::GitHub.Orgs.Item.Settings.SettingsRequestBuilder Settings { - get => new SettingsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Settings.SettingsRequestBuilder(PathParameters, RequestAdapter); } /// The team property - public TeamRequestBuilder Team + public global::GitHub.Orgs.Item.Team.TeamRequestBuilder Team { - get => new TeamRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Team.TeamRequestBuilder(PathParameters, RequestAdapter); } /// The teams property - public TeamsRequestBuilder Teams + public global::GitHub.Orgs.Item.Teams.TeamsRequestBuilder Teams { - get => new TeamsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.Teams.TeamsRequestBuilder(PathParameters, RequestAdapter); } /// The teamSync property - public TeamSyncRequestBuilder TeamSync + public global::GitHub.Orgs.Item.TeamSync.TeamSyncRequestBuilder TeamSync { - get => new TeamSyncRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Orgs.Item.TeamSync.TeamSyncRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.orgs.item.item collection /// The security feature to enable or disable. - /// A - public WithSecurity_productItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.Item.WithSecurity_productItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("security_product", position); - return new WithSecurity_productItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.Item.WithSecurity_productItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -318,7 +320,7 @@ public WithOrgItemRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -329,77 +331,77 @@ public WithOrgItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Deletes an organization and all its repositories.The organization login will be unavailable for 90 days after deletion.Please review the Terms of Service regarding account deletion before using this endpoint:https://docs.github.com/enterprise-cloud@latest//site-policy/github-terms/github-terms-of-service /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, WithOrgDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.WithOrgDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets information about an organization.When the value of `two_factor_requirement_enabled` is `true`, the organization requires all members, billing managers, and outside collaborators to enable [two-factor authentication](https://docs.github.com/enterprise-cloud@latest//articles/securing-your-account-with-two-factor-authentication-2fa/).To see the full details about an organization, the authenticated user must be an organization owner.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to see the full details about an organization.To see information about an organization's GitHub Enterprise Cloud plan, GitHub Apps need the `Organization plan` permission. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationFull.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrganizationFull.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// > [!WARNING]> **Parameter deprecation notice:** GitHub Enterprise Cloud will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes).> [!WARNING]> **Parameter deprecation notice:** Code security product enablement for new repositories through the organization API is deprecated. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-organization) to set defaults instead. For more information on setting a default security configuration, see the [changelog](https://github.blog/changelog/2024-07-09-sunsetting-security-settings-defaults-parameters-in-the-organizations-rest-api/).Updates the organization's profile and member privileges.The authenticated user must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 409 status code + /// When receiving a 409 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithOrgPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.WithOrgPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithOrgPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Orgs.Item.WithOrgPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"409", BasicError.CreateFromDiscriminatorValue}, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationFull.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrganizationFull.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Deletes an organization and all its repositories.The organization login will be unavailable for 90 days after deletion.Please review the Terms of Service regarding account deletion before using this endpoint:https://docs.github.com/enterprise-cloud@latest//site-policy/github-terms/github-terms-of-service @@ -447,11 +449,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithOrgPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.WithOrgPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithOrgPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Orgs.Item.WithOrgPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -464,11 +466,11 @@ public RequestInformation ToPatchRequestInformation(WithOrgPatchRequestBody body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithOrgItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Orgs.Item.WithOrgItemRequestBuilder WithUrl(string rawUrl) { - return new WithOrgItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Orgs.Item.WithOrgItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Orgs/Item/WithOrgPatchRequestBody.cs b/src/GitHub/Orgs/Item/WithOrgPatchRequestBody.cs index e6b484b6..4bef882d 100644 --- a/src/GitHub/Orgs/Item/WithOrgPatchRequestBody.cs +++ b/src/GitHub/Orgs/Item/WithOrgPatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Orgs.Item { +namespace GitHub.Orgs.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithOrgPatchRequestBody : IAdditionalDataHolder, IParsable + public partial class WithOrgPatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -39,7 +41,7 @@ public class WithOrgPatchRequestBody : IAdditionalDataHolder, IParsable public string Company { get; set; } #endif /// Default permission level members have for organization repositories. - public WithOrgPatchRequestBody_default_repository_permission? DefaultRepositoryPermission { get; set; } + public global::GitHub.Orgs.Item.WithOrgPatchRequestBody_default_repository_permission? DefaultRepositoryPermission { get; set; } /// **Deprecated.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.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/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."You can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request. [Obsolete("")] public bool? DependabotAlertsEnabledForNewRepositories { get; set; } @@ -78,7 +80,7 @@ public class WithOrgPatchRequestBody : IAdditionalDataHolder, IParsable public string Location { get; set; } #endif /// Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. **Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details. - public WithOrgPatchRequestBody_members_allowed_repository_creation_type? MembersAllowedRepositoryCreationType { get; set; } + public global::GitHub.Orgs.Item.WithOrgPatchRequestBody_members_allowed_repository_creation_type? MembersAllowedRepositoryCreationType { get; set; } /// Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation. public bool? MembersCanCreateInternalRepositories { get; set; } /// Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted. @@ -133,22 +135,22 @@ public class WithOrgPatchRequestBody : IAdditionalDataHolder, IParsable /// Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface. public bool? WebCommitSignoffRequired { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithOrgPatchRequestBody() { AdditionalData = new Dictionary(); - DefaultRepositoryPermission = WithOrgPatchRequestBody_default_repository_permission.Read; + DefaultRepositoryPermission = global::GitHub.Orgs.Item.WithOrgPatchRequestBody_default_repository_permission.Read; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithOrgPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Orgs.Item.WithOrgPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithOrgPatchRequestBody(); + return new global::GitHub.Orgs.Item.WithOrgPatchRequestBody(); } /// /// The deserialization information for the current model @@ -158,36 +160,36 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"advanced_security_enabled_for_new_repositories", n => { AdvancedSecurityEnabledForNewRepositories = n.GetBoolValue(); } }, - {"billing_email", n => { BillingEmail = n.GetStringValue(); } }, - {"blog", n => { Blog = n.GetStringValue(); } }, - {"company", n => { Company = n.GetStringValue(); } }, - {"default_repository_permission", n => { DefaultRepositoryPermission = n.GetEnumValue(); } }, - {"dependabot_alerts_enabled_for_new_repositories", n => { DependabotAlertsEnabledForNewRepositories = n.GetBoolValue(); } }, - {"dependabot_security_updates_enabled_for_new_repositories", n => { DependabotSecurityUpdatesEnabledForNewRepositories = n.GetBoolValue(); } }, - {"dependency_graph_enabled_for_new_repositories", n => { DependencyGraphEnabledForNewRepositories = n.GetBoolValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"has_organization_projects", n => { HasOrganizationProjects = n.GetBoolValue(); } }, - {"has_repository_projects", n => { HasRepositoryProjects = n.GetBoolValue(); } }, - {"location", n => { Location = n.GetStringValue(); } }, - {"members_allowed_repository_creation_type", n => { MembersAllowedRepositoryCreationType = n.GetEnumValue(); } }, - {"members_can_create_internal_repositories", n => { MembersCanCreateInternalRepositories = n.GetBoolValue(); } }, - {"members_can_create_pages", n => { MembersCanCreatePages = n.GetBoolValue(); } }, - {"members_can_create_private_pages", n => { MembersCanCreatePrivatePages = n.GetBoolValue(); } }, - {"members_can_create_private_repositories", n => { MembersCanCreatePrivateRepositories = n.GetBoolValue(); } }, - {"members_can_create_public_pages", n => { MembersCanCreatePublicPages = n.GetBoolValue(); } }, - {"members_can_create_public_repositories", n => { MembersCanCreatePublicRepositories = n.GetBoolValue(); } }, - {"members_can_create_repositories", n => { MembersCanCreateRepositories = n.GetBoolValue(); } }, - {"members_can_fork_private_repositories", n => { MembersCanForkPrivateRepositories = n.GetBoolValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"secret_scanning_enabled_for_new_repositories", n => { SecretScanningEnabledForNewRepositories = n.GetBoolValue(); } }, - {"secret_scanning_push_protection_custom_link", n => { SecretScanningPushProtectionCustomLink = n.GetStringValue(); } }, - {"secret_scanning_push_protection_custom_link_enabled", n => { SecretScanningPushProtectionCustomLinkEnabled = n.GetBoolValue(); } }, - {"secret_scanning_push_protection_enabled_for_new_repositories", n => { SecretScanningPushProtectionEnabledForNewRepositories = n.GetBoolValue(); } }, - {"secret_scanning_validity_checks_enabled", n => { SecretScanningValidityChecksEnabled = n.GetBoolValue(); } }, - {"twitter_username", n => { TwitterUsername = n.GetStringValue(); } }, - {"web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, + { "advanced_security_enabled_for_new_repositories", n => { AdvancedSecurityEnabledForNewRepositories = n.GetBoolValue(); } }, + { "billing_email", n => { BillingEmail = n.GetStringValue(); } }, + { "blog", n => { Blog = n.GetStringValue(); } }, + { "company", n => { Company = n.GetStringValue(); } }, + { "default_repository_permission", n => { DefaultRepositoryPermission = n.GetEnumValue(); } }, + { "dependabot_alerts_enabled_for_new_repositories", n => { DependabotAlertsEnabledForNewRepositories = n.GetBoolValue(); } }, + { "dependabot_security_updates_enabled_for_new_repositories", n => { DependabotSecurityUpdatesEnabledForNewRepositories = n.GetBoolValue(); } }, + { "dependency_graph_enabled_for_new_repositories", n => { DependencyGraphEnabledForNewRepositories = n.GetBoolValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "has_organization_projects", n => { HasOrganizationProjects = n.GetBoolValue(); } }, + { "has_repository_projects", n => { HasRepositoryProjects = n.GetBoolValue(); } }, + { "location", n => { Location = n.GetStringValue(); } }, + { "members_allowed_repository_creation_type", n => { MembersAllowedRepositoryCreationType = n.GetEnumValue(); } }, + { "members_can_create_internal_repositories", n => { MembersCanCreateInternalRepositories = n.GetBoolValue(); } }, + { "members_can_create_pages", n => { MembersCanCreatePages = n.GetBoolValue(); } }, + { "members_can_create_private_pages", n => { MembersCanCreatePrivatePages = n.GetBoolValue(); } }, + { "members_can_create_private_repositories", n => { MembersCanCreatePrivateRepositories = n.GetBoolValue(); } }, + { "members_can_create_public_pages", n => { MembersCanCreatePublicPages = n.GetBoolValue(); } }, + { "members_can_create_public_repositories", n => { MembersCanCreatePublicRepositories = n.GetBoolValue(); } }, + { "members_can_create_repositories", n => { MembersCanCreateRepositories = n.GetBoolValue(); } }, + { "members_can_fork_private_repositories", n => { MembersCanForkPrivateRepositories = n.GetBoolValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "secret_scanning_enabled_for_new_repositories", n => { SecretScanningEnabledForNewRepositories = n.GetBoolValue(); } }, + { "secret_scanning_push_protection_custom_link", n => { SecretScanningPushProtectionCustomLink = n.GetStringValue(); } }, + { "secret_scanning_push_protection_custom_link_enabled", n => { SecretScanningPushProtectionCustomLinkEnabled = n.GetBoolValue(); } }, + { "secret_scanning_push_protection_enabled_for_new_repositories", n => { SecretScanningPushProtectionEnabledForNewRepositories = n.GetBoolValue(); } }, + { "secret_scanning_validity_checks_enabled", n => { SecretScanningValidityChecksEnabled = n.GetBoolValue(); } }, + { "twitter_username", n => { TwitterUsername = n.GetStringValue(); } }, + { "web_commit_signoff_required", n => { WebCommitSignoffRequired = n.GetBoolValue(); } }, }; } /// @@ -201,7 +203,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("billing_email", BillingEmail); writer.WriteStringValue("blog", Blog); writer.WriteStringValue("company", Company); - writer.WriteEnumValue("default_repository_permission", DefaultRepositoryPermission); + writer.WriteEnumValue("default_repository_permission", DefaultRepositoryPermission); writer.WriteBoolValue("dependabot_alerts_enabled_for_new_repositories", DependabotAlertsEnabledForNewRepositories); writer.WriteBoolValue("dependabot_security_updates_enabled_for_new_repositories", DependabotSecurityUpdatesEnabledForNewRepositories); writer.WriteBoolValue("dependency_graph_enabled_for_new_repositories", DependencyGraphEnabledForNewRepositories); @@ -210,7 +212,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("has_organization_projects", HasOrganizationProjects); writer.WriteBoolValue("has_repository_projects", HasRepositoryProjects); writer.WriteStringValue("location", Location); - writer.WriteEnumValue("members_allowed_repository_creation_type", MembersAllowedRepositoryCreationType); + writer.WriteEnumValue("members_allowed_repository_creation_type", MembersAllowedRepositoryCreationType); writer.WriteBoolValue("members_can_create_internal_repositories", MembersCanCreateInternalRepositories); writer.WriteBoolValue("members_can_create_pages", MembersCanCreatePages); writer.WriteBoolValue("members_can_create_private_pages", MembersCanCreatePrivatePages); diff --git a/src/GitHub/Orgs/Item/WithOrgPatchRequestBody_default_repository_permission.cs b/src/GitHub/Orgs/Item/WithOrgPatchRequestBody_default_repository_permission.cs index fce4f6c7..2aa31e56 100644 --- a/src/GitHub/Orgs/Item/WithOrgPatchRequestBody_default_repository_permission.cs +++ b/src/GitHub/Orgs/Item/WithOrgPatchRequestBody_default_repository_permission.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item { +namespace GitHub.Orgs.Item +{ /// Default permission level members have for organization repositories. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithOrgPatchRequestBody_default_repository_permission { [EnumMember(Value = "read")] diff --git a/src/GitHub/Orgs/Item/WithOrgPatchRequestBody_members_allowed_repository_creation_type.cs b/src/GitHub/Orgs/Item/WithOrgPatchRequestBody_members_allowed_repository_creation_type.cs index 26530d10..412c344b 100644 --- a/src/GitHub/Orgs/Item/WithOrgPatchRequestBody_members_allowed_repository_creation_type.cs +++ b/src/GitHub/Orgs/Item/WithOrgPatchRequestBody_members_allowed_repository_creation_type.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Orgs.Item { +namespace GitHub.Orgs.Item +{ /// Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. **Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithOrgPatchRequestBody_members_allowed_repository_creation_type { [EnumMember(Value = "all")] diff --git a/src/GitHub/Orgs/OrgsRequestBuilder.cs b/src/GitHub/Orgs/OrgsRequestBuilder.cs index fa2f20fc..ac168459 100644 --- a/src/GitHub/Orgs/OrgsRequestBuilder.cs +++ b/src/GitHub/Orgs/OrgsRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Orgs.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Orgs { +namespace GitHub.Orgs +{ /// /// Builds and executes requests for operations under \orgs /// - public class OrgsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrgsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.orgs.item collection /// The organization name. The name is not case sensitive. - /// A - public WithOrgItemRequestBuilder this[string position] + /// A + public global::GitHub.Orgs.Item.WithOrgItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("org", position); - return new WithOrgItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Orgs.Item.WithOrgItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public OrgsRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Projects/Columns/Cards/CardsRequestBuilder.cs b/src/GitHub/Projects/Columns/Cards/CardsRequestBuilder.cs index f1234f77..177c3463 100644 --- a/src/GitHub/Projects/Columns/Cards/CardsRequestBuilder.cs +++ b/src/GitHub/Projects/Columns/Cards/CardsRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Projects.Columns.Cards.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Projects.Columns.Cards { +namespace GitHub.Projects.Columns.Cards +{ /// /// Builds and executes requests for operations under \projects\columns\cards /// - public class CardsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CardsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.projects.columns.cards.item collection /// The unique identifier of the card. - /// A - public WithCard_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Projects.Columns.Cards.Item.WithCard_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("card_id", position); - return new WithCard_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Projects.Columns.Cards.Item.WithCard_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public CardsRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Projects/Columns/Cards/Item/Moves/Moves403Error.cs b/src/GitHub/Projects/Columns/Cards/Item/Moves/Moves403Error.cs index 299bbde8..9a27f2f0 100644 --- a/src/GitHub/Projects/Columns/Cards/Item/Moves/Moves403Error.cs +++ b/src/GitHub/Projects/Columns/Cards/Item/Moves/Moves403Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Projects.Columns.Cards.Item.Moves { +namespace GitHub.Projects.Columns.Cards.Item.Moves +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Moves403Error : ApiException, IAdditionalDataHolder, IParsable + public partial class Moves403Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -23,21 +25,15 @@ public class Moves403Error : ApiException, IAdditionalDataHolder, IParsable /// The errors property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Errors { get; set; } + public List? Errors { get; set; } #nullable restore #else - public List Errors { get; set; } -#endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } + public List Errors { get; set; } #endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Moves403Error() { @@ -46,12 +42,12 @@ public Moves403Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Moves403Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Projects.Columns.Cards.Item.Moves.Moves403Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Moves403Error(); + return new global::GitHub.Projects.Columns.Cards.Item.Moves.Moves403Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"errors", n => { Errors = n.GetCollectionOfObjectValues(Moves403Error_errors.CreateFromDiscriminatorValue)?.ToList(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, + { "errors", n => { Errors = n.GetCollectionOfObjectValues(global::GitHub.Projects.Columns.Cards.Item.Moves.Moves403Error_errors.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -74,8 +69,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteCollectionOfObjectValues("errors", Errors); - writer.WriteStringValue("message", MessageEscaped); + writer.WriteCollectionOfObjectValues("errors", Errors); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Projects/Columns/Cards/Item/Moves/Moves403Error_errors.cs b/src/GitHub/Projects/Columns/Cards/Item/Moves/Moves403Error_errors.cs index 61684851..60f34e9c 100644 --- a/src/GitHub/Projects/Columns/Cards/Item/Moves/Moves403Error_errors.cs +++ b/src/GitHub/Projects/Columns/Cards/Item/Moves/Moves403Error_errors.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Projects.Columns.Cards.Item.Moves { +namespace GitHub.Projects.Columns.Cards.Item.Moves +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Moves403Error_errors : IAdditionalDataHolder, IParsable + public partial class Moves403Error_errors : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -44,7 +46,7 @@ public class Moves403Error_errors : IAdditionalDataHolder, IParsable public string Resource { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Moves403Error_errors() { @@ -53,12 +55,12 @@ public Moves403Error_errors() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Moves403Error_errors CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Projects.Columns.Cards.Item.Moves.Moves403Error_errors CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Moves403Error_errors(); + return new global::GitHub.Projects.Columns.Cards.Item.Moves.Moves403Error_errors(); } /// /// The deserialization information for the current model @@ -68,10 +70,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"field", n => { Field = n.GetStringValue(); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"resource", n => { Resource = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "field", n => { Field = n.GetStringValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "resource", n => { Resource = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Projects/Columns/Cards/Item/Moves/Moves503Error.cs b/src/GitHub/Projects/Columns/Cards/Item/Moves/Moves503Error.cs index 7db078e4..be9c6e79 100644 --- a/src/GitHub/Projects/Columns/Cards/Item/Moves/Moves503Error.cs +++ b/src/GitHub/Projects/Columns/Cards/Item/Moves/Moves503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Projects.Columns.Cards.Item.Moves { +namespace GitHub.Projects.Columns.Cards.Item.Moves +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Moves503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class Moves503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -31,21 +33,15 @@ public class Moves503Error : ApiException, IAdditionalDataHolder, IParsable /// The errors property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Errors { get; set; } + public List? Errors { get; set; } #nullable restore #else - public List Errors { get; set; } -#endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } + public List Errors { get; set; } #endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Moves503Error() { @@ -54,12 +50,12 @@ public Moves503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Moves503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Projects.Columns.Cards.Item.Moves.Moves503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Moves503Error(); + return new global::GitHub.Projects.Columns.Cards.Item.Moves.Moves503Error(); } /// /// The deserialization information for the current model @@ -69,10 +65,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"errors", n => { Errors = n.GetCollectionOfObjectValues(Moves503Error_errors.CreateFromDiscriminatorValue)?.ToList(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, + { "errors", n => { Errors = n.GetCollectionOfObjectValues(global::GitHub.Projects.Columns.Cards.Item.Moves.Moves503Error_errors.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -84,8 +79,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteCollectionOfObjectValues("errors", Errors); - writer.WriteStringValue("message", MessageEscaped); + writer.WriteCollectionOfObjectValues("errors", Errors); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Projects/Columns/Cards/Item/Moves/Moves503Error_errors.cs b/src/GitHub/Projects/Columns/Cards/Item/Moves/Moves503Error_errors.cs index 8dd0d301..c99ebbb4 100644 --- a/src/GitHub/Projects/Columns/Cards/Item/Moves/Moves503Error_errors.cs +++ b/src/GitHub/Projects/Columns/Cards/Item/Moves/Moves503Error_errors.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Projects.Columns.Cards.Item.Moves { +namespace GitHub.Projects.Columns.Cards.Item.Moves +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Moves503Error_errors : IAdditionalDataHolder, IParsable + public partial class Moves503Error_errors : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class Moves503Error_errors : IAdditionalDataHolder, IParsable public string Message { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Moves503Error_errors() { @@ -37,12 +39,12 @@ public Moves503Error_errors() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Moves503Error_errors CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Projects.Columns.Cards.Item.Moves.Moves503Error_errors CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Moves503Error_errors(); + return new global::GitHub.Projects.Columns.Cards.Item.Moves.Moves503Error_errors(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"message", n => { Message = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Projects/Columns/Cards/Item/Moves/MovesPostRequestBody.cs b/src/GitHub/Projects/Columns/Cards/Item/Moves/MovesPostRequestBody.cs index 6274f45e..2e16eaa0 100644 --- a/src/GitHub/Projects/Columns/Cards/Item/Moves/MovesPostRequestBody.cs +++ b/src/GitHub/Projects/Columns/Cards/Item/Moves/MovesPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Projects.Columns.Cards.Item.Moves { +namespace GitHub.Projects.Columns.Cards.Item.Moves +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class MovesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class MovesPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class MovesPostRequestBody : IAdditionalDataHolder, IParsable public string Position { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MovesPostRequestBody() { @@ -31,12 +33,12 @@ public MovesPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MovesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Projects.Columns.Cards.Item.Moves.MovesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MovesPostRequestBody(); + return new global::GitHub.Projects.Columns.Cards.Item.Moves.MovesPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"column_id", n => { ColumnId = n.GetIntValue(); } }, - {"position", n => { Position = n.GetStringValue(); } }, + { "column_id", n => { ColumnId = n.GetIntValue(); } }, + { "position", n => { Position = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Projects/Columns/Cards/Item/Moves/MovesPostResponse.cs b/src/GitHub/Projects/Columns/Cards/Item/Moves/MovesPostResponse.cs index 21884551..a1bdb4cb 100644 --- a/src/GitHub/Projects/Columns/Cards/Item/Moves/MovesPostResponse.cs +++ b/src/GitHub/Projects/Columns/Cards/Item/Moves/MovesPostResponse.cs @@ -1,23 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Projects.Columns.Cards.Item.Moves { +namespace GitHub.Projects.Columns.Cards.Item.Moves +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class MovesPostResponse : IParsable + public partial class MovesPostResponse : IParsable #pragma warning restore CS1591 { /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MovesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Projects.Columns.Cards.Item.Moves.MovesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MovesPostResponse(); + return new global::GitHub.Projects.Columns.Cards.Item.Moves.MovesPostResponse(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Projects/Columns/Cards/Item/Moves/MovesRequestBuilder.cs b/src/GitHub/Projects/Columns/Cards/Item/Moves/MovesRequestBuilder.cs index 28506f90..1a115a6f 100644 --- a/src/GitHub/Projects/Columns/Cards/Item/Moves/MovesRequestBuilder.cs +++ b/src/GitHub/Projects/Columns/Cards/Item/Moves/MovesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Projects.Columns.Cards.Item.Moves { +namespace GitHub.Projects.Columns.Cards.Item.Moves +{ /// /// Builds and executes requests for operations under \projects\columns\cards\{card_id}\moves /// - public class MovesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class MovesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public MovesRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,44 +36,44 @@ public MovesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Move a project card /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 422 status code - /// When receiving a 503 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 422 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(MovesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Projects.Columns.Cards.Item.Moves.MovesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(MovesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Projects.Columns.Cards.Item.Moves.MovesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", Moves403Error.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, - {"503", Moves503Error.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Projects.Columns.Cards.Item.Moves.Moves403Error.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Projects.Columns.Cards.Item.Moves.Moves503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MovesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Projects.Columns.Cards.Item.Moves.MovesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(MovesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Projects.Columns.Cards.Item.Moves.MovesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MovesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Projects.Columns.Cards.Item.Moves.MovesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -84,11 +86,11 @@ public RequestInformation ToPostRequestInformation(MovesPostRequestBody body, Ac /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MovesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Projects.Columns.Cards.Item.Moves.MovesRequestBuilder WithUrl(string rawUrl) { - return new MovesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Projects.Columns.Cards.Item.Moves.MovesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Projects/Columns/Cards/Item/WithCard_403Error.cs b/src/GitHub/Projects/Columns/Cards/Item/WithCard_403Error.cs index c4b0178c..b337d00f 100644 --- a/src/GitHub/Projects/Columns/Cards/Item/WithCard_403Error.cs +++ b/src/GitHub/Projects/Columns/Cards/Item/WithCard_403Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Projects.Columns.Cards.Item { +namespace GitHub.Projects.Columns.Cards.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithCard_403Error : ApiException, IAdditionalDataHolder, IParsable + public partial class WithCard_403Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class WithCard_403Error : ApiException, IAdditionalDataHolder, IParsable #else public List Errors { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithCard_403Error() { @@ -46,12 +42,12 @@ public WithCard_403Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithCard_403Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Projects.Columns.Cards.Item.WithCard_403Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithCard_403Error(); + return new global::GitHub.Projects.Columns.Cards.Item.WithCard_403Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"errors", n => { Errors = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, + { "errors", n => { Errors = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("documentation_url", DocumentationUrl); writer.WriteCollectionOfPrimitiveValues("errors", Errors); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Projects/Columns/Cards/Item/WithCard_ItemRequestBuilder.cs b/src/GitHub/Projects/Columns/Cards/Item/WithCard_ItemRequestBuilder.cs index 164bb0f4..0008ccff 100644 --- a/src/GitHub/Projects/Columns/Cards/Item/WithCard_ItemRequestBuilder.cs +++ b/src/GitHub/Projects/Columns/Cards/Item/WithCard_ItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Projects.Columns.Cards.Item.Moves; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Projects.Columns.Cards.Item { +namespace GitHub.Projects.Columns.Cards.Item +{ /// /// Builds and executes requests for operations under \projects\columns\cards\{card_id} /// - public class WithCard_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithCard_ItemRequestBuilder : BaseRequestBuilder { /// The moves property - public MovesRequestBuilder Moves + public global::GitHub.Projects.Columns.Cards.Item.Moves.MovesRequestBuilder Moves { - get => new MovesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Projects.Columns.Cards.Item.Moves.MovesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithCard_ItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -42,9 +44,9 @@ public WithCard_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -57,9 +59,9 @@ public async Task DeleteAsync(Action> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", WithCard_403Error.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Projects.Columns.Cards.Item.WithCard_403Error.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -67,61 +69,61 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ProjectCard.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ProjectCard.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update an existing project card /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithCard_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Projects.Columns.Cards.Item.WithCard_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithCard_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Projects.Columns.Cards.Item.WithCard_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ProjectCard.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ProjectCard.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Deletes a project card @@ -166,11 +168,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithCard_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Projects.Columns.Cards.Item.WithCard_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithCard_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Projects.Columns.Cards.Item.WithCard_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -183,11 +185,11 @@ public RequestInformation ToPatchRequestInformation(WithCard_PatchRequestBody bo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithCard_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Projects.Columns.Cards.Item.WithCard_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithCard_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Projects.Columns.Cards.Item.WithCard_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Projects/Columns/Cards/Item/WithCard_PatchRequestBody.cs b/src/GitHub/Projects/Columns/Cards/Item/WithCard_PatchRequestBody.cs index afcdf182..799629fa 100644 --- a/src/GitHub/Projects/Columns/Cards/Item/WithCard_PatchRequestBody.cs +++ b/src/GitHub/Projects/Columns/Cards/Item/WithCard_PatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Projects.Columns.Cards.Item { +namespace GitHub.Projects.Columns.Cards.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithCard_PatchRequestBody : IAdditionalDataHolder, IParsable + public partial class WithCard_PatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class WithCard_PatchRequestBody : IAdditionalDataHolder, IParsable public string Note { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithCard_PatchRequestBody() { @@ -31,12 +33,12 @@ public WithCard_PatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithCard_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Projects.Columns.Cards.Item.WithCard_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithCard_PatchRequestBody(); + return new global::GitHub.Projects.Columns.Cards.Item.WithCard_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"archived", n => { Archived = n.GetBoolValue(); } }, - {"note", n => { Note = n.GetStringValue(); } }, + { "archived", n => { Archived = n.GetBoolValue(); } }, + { "note", n => { Note = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Projects/Columns/ColumnsRequestBuilder.cs b/src/GitHub/Projects/Columns/ColumnsRequestBuilder.cs index a5a06ce4..59ee6285 100644 --- a/src/GitHub/Projects/Columns/ColumnsRequestBuilder.cs +++ b/src/GitHub/Projects/Columns/ColumnsRequestBuilder.cs @@ -1,37 +1,39 @@ // using GitHub.Projects.Columns.Cards; using GitHub.Projects.Columns.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Projects.Columns { +namespace GitHub.Projects.Columns +{ /// /// Builds and executes requests for operations under \projects\columns /// - public class ColumnsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ColumnsRequestBuilder : BaseRequestBuilder { /// The cards property - public CardsRequestBuilder Cards + public global::GitHub.Projects.Columns.Cards.CardsRequestBuilder Cards { - get => new CardsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Projects.Columns.Cards.CardsRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.projects.columns.item collection /// The unique identifier of the column. - /// A - public WithColumn_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Projects.Columns.Item.WithColumn_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("column_id", position); - return new WithColumn_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Projects.Columns.Item.WithColumn_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -39,7 +41,7 @@ public ColumnsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Projects/Columns/Item/Cards/CardsPostRequestBodyMember1.cs b/src/GitHub/Projects/Columns/Item/Cards/CardsPostRequestBodyMember1.cs index a2d71bc8..f478b9db 100644 --- a/src/GitHub/Projects/Columns/Item/Cards/CardsPostRequestBodyMember1.cs +++ b/src/GitHub/Projects/Columns/Item/Cards/CardsPostRequestBodyMember1.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Projects.Columns.Item.Cards { +namespace GitHub.Projects.Columns.Item.Cards +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CardsPostRequestBodyMember1 : IAdditionalDataHolder, IParsable + public partial class CardsPostRequestBodyMember1 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class CardsPostRequestBodyMember1 : IAdditionalDataHolder, IParsable public string Note { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CardsPostRequestBodyMember1() { @@ -29,12 +31,12 @@ public CardsPostRequestBodyMember1() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CardsPostRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CardsPostRequestBodyMember1(); + return new global::GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember1(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"note", n => { Note = n.GetStringValue(); } }, + { "note", n => { Note = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Projects/Columns/Item/Cards/CardsPostRequestBodyMember2.cs b/src/GitHub/Projects/Columns/Item/Cards/CardsPostRequestBodyMember2.cs index f94b94b1..d6a9893c 100644 --- a/src/GitHub/Projects/Columns/Item/Cards/CardsPostRequestBodyMember2.cs +++ b/src/GitHub/Projects/Columns/Item/Cards/CardsPostRequestBodyMember2.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Projects.Columns.Item.Cards { +namespace GitHub.Projects.Columns.Item.Cards +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CardsPostRequestBodyMember2 : IAdditionalDataHolder, IParsable + public partial class CardsPostRequestBodyMember2 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class CardsPostRequestBodyMember2 : IAdditionalDataHolder, IParsable public string ContentType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CardsPostRequestBodyMember2() { @@ -31,12 +33,12 @@ public CardsPostRequestBodyMember2() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CardsPostRequestBodyMember2 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember2 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CardsPostRequestBodyMember2(); + return new global::GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember2(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content_id", n => { ContentId = n.GetIntValue(); } }, - {"content_type", n => { ContentType = n.GetStringValue(); } }, + { "content_id", n => { ContentId = n.GetIntValue(); } }, + { "content_type", n => { ContentType = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Projects/Columns/Item/Cards/CardsRequestBuilder.cs b/src/GitHub/Projects/Columns/Item/Cards/CardsRequestBuilder.cs index 3a92f010..e22768f5 100644 --- a/src/GitHub/Projects/Columns/Item/Cards/CardsRequestBuilder.cs +++ b/src/GitHub/Projects/Columns/Item/Cards/CardsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Projects.Columns.Item.Cards { +namespace GitHub.Projects.Columns.Item.Cards +{ /// /// Builds and executes requests for operations under \projects\columns\{column_id}\cards /// - public class CardsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CardsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public CardsRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,58 +36,58 @@ public CardsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Lists the project cards in a project. /// API method documentation /// - /// A List<ProjectCard> + /// A List<global::GitHub.Models.ProjectCard> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code + /// When receiving a 401 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ProjectCard.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.ProjectCard.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a project card /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 503 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(CardsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Projects.Columns.Item.Cards.CardsRequestBuilder.CardsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(CardsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Projects.Columns.Item.Cards.CardsRequestBuilder.CardsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"503", ProjectCard503Error.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Projects.Columns.Item.Cards.ProjectCard503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ProjectCard.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ProjectCard.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists the project cards in a project. @@ -94,11 +96,11 @@ public async Task PostAsync(CardsPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -111,11 +113,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(CardsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Projects.Columns.Item.Cards.CardsRequestBuilder.CardsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CardsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Projects.Columns.Item.Cards.CardsRequestBuilder.CardsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,74 +130,75 @@ public RequestInformation ToPostRequestInformation(CardsPostRequestBody body, Ac /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CardsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Projects.Columns.Item.Cards.CardsRequestBuilder WithUrl(string rawUrl) { - return new CardsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Projects.Columns.Item.Cards.CardsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class CardsPostRequestBody : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CardsPostRequestBody : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember1? CardsPostRequestBodyCardsPostRequestBodyMember1 { get; set; } + public global::GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember1? CardsPostRequestBodyCardsPostRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember1 CardsPostRequestBodyCardsPostRequestBodyMember1 { get; set; } + public global::GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember1 CardsPostRequestBodyCardsPostRequestBodyMember1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember2? CardsPostRequestBodyCardsPostRequestBodyMember2 { get; set; } + public global::GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember2? CardsPostRequestBodyCardsPostRequestBodyMember2 { get; set; } #nullable restore #else - public GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember2 CardsPostRequestBodyCardsPostRequestBodyMember2 { get; set; } + public global::GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember2 CardsPostRequestBodyCardsPostRequestBodyMember2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember1? CardsPostRequestBodyMember1 { get; set; } + public global::GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember1? CardsPostRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember1 CardsPostRequestBodyMember1 { get; set; } + public global::GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember1 CardsPostRequestBodyMember1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember2? CardsPostRequestBodyMember2 { get; set; } + public global::GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember2? CardsPostRequestBodyMember2 { get; set; } #nullable restore #else - public GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember2 CardsPostRequestBodyMember2 { get; set; } + public global::GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember2 CardsPostRequestBodyMember2 { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CardsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Projects.Columns.Item.Cards.CardsRequestBuilder.CardsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new CardsPostRequestBody(); + var result = new global::GitHub.Projects.Columns.Item.Cards.CardsRequestBuilder.CardsPostRequestBody(); if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.CardsPostRequestBodyCardsPostRequestBodyMember1 = new GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember1(); + result.CardsPostRequestBodyCardsPostRequestBodyMember1 = new global::GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember1(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.CardsPostRequestBodyCardsPostRequestBodyMember2 = new GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember2(); + result.CardsPostRequestBodyCardsPostRequestBodyMember2 = new global::GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember2(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.CardsPostRequestBodyMember1 = new GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember1(); + result.CardsPostRequestBodyMember1 = new global::GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember1(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.CardsPostRequestBodyMember2 = new GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember2(); + result.CardsPostRequestBodyMember2 = new global::GitHub.Projects.Columns.Item.Cards.CardsPostRequestBodyMember2(); } return result; } @@ -232,30 +235,31 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(CardsPostRequestBodyCardsPostRequestBodyMember1 != null) { - writer.WriteObjectValue(null, CardsPostRequestBodyCardsPostRequestBodyMember1); + writer.WriteObjectValue(null, CardsPostRequestBodyCardsPostRequestBodyMember1); } else if(CardsPostRequestBodyCardsPostRequestBodyMember2 != null) { - writer.WriteObjectValue(null, CardsPostRequestBodyCardsPostRequestBodyMember2); + writer.WriteObjectValue(null, CardsPostRequestBodyCardsPostRequestBodyMember2); } else if(CardsPostRequestBodyMember1 != null) { - writer.WriteObjectValue(null, CardsPostRequestBodyMember1); + writer.WriteObjectValue(null, CardsPostRequestBodyMember1); } else if(CardsPostRequestBodyMember2 != null) { - writer.WriteObjectValue(null, CardsPostRequestBodyMember2); + writer.WriteObjectValue(null, CardsPostRequestBodyMember2); } } } /// /// Lists the project cards in a project. /// - public class CardsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CardsRequestBuilderGetQueryParameters { /// Filters the project cards that are returned by the card's state. [QueryParameter("archived_state")] - public GetArchived_stateQueryParameterType? ArchivedState { get; set; } + public global::GitHub.Projects.Columns.Item.Cards.GetArchived_stateQueryParameterType? ArchivedState { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } diff --git a/src/GitHub/Projects/Columns/Item/Cards/GetArchived_stateQueryParameterType.cs b/src/GitHub/Projects/Columns/Item/Cards/GetArchived_stateQueryParameterType.cs index d60a47a7..de4ddcf0 100644 --- a/src/GitHub/Projects/Columns/Item/Cards/GetArchived_stateQueryParameterType.cs +++ b/src/GitHub/Projects/Columns/Item/Cards/GetArchived_stateQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Projects.Columns.Item.Cards { +namespace GitHub.Projects.Columns.Item.Cards +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetArchived_stateQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Projects/Columns/Item/Cards/ProjectCard503Error.cs b/src/GitHub/Projects/Columns/Item/Cards/ProjectCard503Error.cs index fe41fdef..e02079c8 100644 --- a/src/GitHub/Projects/Columns/Item/Cards/ProjectCard503Error.cs +++ b/src/GitHub/Projects/Columns/Item/Cards/ProjectCard503Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Projects.Columns.Item.Cards { +namespace GitHub.Projects.Columns.Item.Cards +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ProjectCard503Error : ApiException, IAdditionalDataHolder, IParsable + public partial class ProjectCard503Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -31,21 +33,15 @@ public class ProjectCard503Error : ApiException, IAdditionalDataHolder, IParsabl /// The errors property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Errors { get; set; } + public List? Errors { get; set; } #nullable restore #else - public List Errors { get; set; } -#endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } + public List Errors { get; set; } #endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProjectCard503Error() { @@ -54,12 +50,12 @@ public ProjectCard503Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProjectCard503Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Projects.Columns.Item.Cards.ProjectCard503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProjectCard503Error(); + return new global::GitHub.Projects.Columns.Item.Cards.ProjectCard503Error(); } /// /// The deserialization information for the current model @@ -69,10 +65,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"errors", n => { Errors = n.GetCollectionOfObjectValues(ProjectCard503Error_errors.CreateFromDiscriminatorValue)?.ToList(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, + { "errors", n => { Errors = n.GetCollectionOfObjectValues(global::GitHub.Projects.Columns.Item.Cards.ProjectCard503Error_errors.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -84,8 +79,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); - writer.WriteCollectionOfObjectValues("errors", Errors); - writer.WriteStringValue("message", MessageEscaped); + writer.WriteCollectionOfObjectValues("errors", Errors); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Projects/Columns/Item/Cards/ProjectCard503Error_errors.cs b/src/GitHub/Projects/Columns/Item/Cards/ProjectCard503Error_errors.cs index 04e88140..d75e11af 100644 --- a/src/GitHub/Projects/Columns/Item/Cards/ProjectCard503Error_errors.cs +++ b/src/GitHub/Projects/Columns/Item/Cards/ProjectCard503Error_errors.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Projects.Columns.Item.Cards { +namespace GitHub.Projects.Columns.Item.Cards +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ProjectCard503Error_errors : IAdditionalDataHolder, IParsable + public partial class ProjectCard503Error_errors : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class ProjectCard503Error_errors : IAdditionalDataHolder, IParsable public string Message { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProjectCard503Error_errors() { @@ -37,12 +39,12 @@ public ProjectCard503Error_errors() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProjectCard503Error_errors CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Projects.Columns.Item.Cards.ProjectCard503Error_errors CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProjectCard503Error_errors(); + return new global::GitHub.Projects.Columns.Item.Cards.ProjectCard503Error_errors(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"message", n => { Message = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Projects/Columns/Item/Moves/MovesPostRequestBody.cs b/src/GitHub/Projects/Columns/Item/Moves/MovesPostRequestBody.cs index bc882fc9..10d913ff 100644 --- a/src/GitHub/Projects/Columns/Item/Moves/MovesPostRequestBody.cs +++ b/src/GitHub/Projects/Columns/Item/Moves/MovesPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Projects.Columns.Item.Moves { +namespace GitHub.Projects.Columns.Item.Moves +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class MovesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class MovesPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class MovesPostRequestBody : IAdditionalDataHolder, IParsable public string Position { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MovesPostRequestBody() { @@ -29,12 +31,12 @@ public MovesPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MovesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Projects.Columns.Item.Moves.MovesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MovesPostRequestBody(); + return new global::GitHub.Projects.Columns.Item.Moves.MovesPostRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"position", n => { Position = n.GetStringValue(); } }, + { "position", n => { Position = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Projects/Columns/Item/Moves/MovesPostResponse.cs b/src/GitHub/Projects/Columns/Item/Moves/MovesPostResponse.cs index 30e1ffd0..4c1529fd 100644 --- a/src/GitHub/Projects/Columns/Item/Moves/MovesPostResponse.cs +++ b/src/GitHub/Projects/Columns/Item/Moves/MovesPostResponse.cs @@ -1,23 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Projects.Columns.Item.Moves { +namespace GitHub.Projects.Columns.Item.Moves +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class MovesPostResponse : IParsable + public partial class MovesPostResponse : IParsable #pragma warning restore CS1591 { /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MovesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Projects.Columns.Item.Moves.MovesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MovesPostResponse(); + return new global::GitHub.Projects.Columns.Item.Moves.MovesPostResponse(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Projects/Columns/Item/Moves/MovesRequestBuilder.cs b/src/GitHub/Projects/Columns/Item/Moves/MovesRequestBuilder.cs index af252586..af0cba3f 100644 --- a/src/GitHub/Projects/Columns/Item/Moves/MovesRequestBuilder.cs +++ b/src/GitHub/Projects/Columns/Item/Moves/MovesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Projects.Columns.Item.Moves { +namespace GitHub.Projects.Columns.Item.Moves +{ /// /// Builds and executes requests for operations under \projects\columns\{column_id}\moves /// - public class MovesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class MovesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public MovesRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,42 +36,42 @@ public MovesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Move a project column /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 422 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(MovesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Projects.Columns.Item.Moves.MovesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(MovesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Projects.Columns.Item.Moves.MovesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MovesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Projects.Columns.Item.Moves.MovesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(MovesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Projects.Columns.Item.Moves.MovesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MovesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Projects.Columns.Item.Moves.MovesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -82,11 +84,11 @@ public RequestInformation ToPostRequestInformation(MovesPostRequestBody body, Ac /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MovesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Projects.Columns.Item.Moves.MovesRequestBuilder WithUrl(string rawUrl) { - return new MovesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Projects.Columns.Item.Moves.MovesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Projects/Columns/Item/WithColumn_ItemRequestBuilder.cs b/src/GitHub/Projects/Columns/Item/WithColumn_ItemRequestBuilder.cs index 05ef9dad..5f071c10 100644 --- a/src/GitHub/Projects/Columns/Item/WithColumn_ItemRequestBuilder.cs +++ b/src/GitHub/Projects/Columns/Item/WithColumn_ItemRequestBuilder.cs @@ -2,32 +2,34 @@ using GitHub.Models; using GitHub.Projects.Columns.Item.Cards; using GitHub.Projects.Columns.Item.Moves; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Projects.Columns.Item { +namespace GitHub.Projects.Columns.Item +{ /// /// Builds and executes requests for operations under \projects\columns\{column_id} /// - public class WithColumn_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithColumn_ItemRequestBuilder : BaseRequestBuilder { /// The cards property - public CardsRequestBuilder Cards + public global::GitHub.Projects.Columns.Item.Cards.CardsRequestBuilder Cards { - get => new CardsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Projects.Columns.Item.Cards.CardsRequestBuilder(PathParameters, RequestAdapter); } /// The moves property - public MovesRequestBuilder Moves + public global::GitHub.Projects.Columns.Item.Moves.MovesRequestBuilder Moves { - get => new MovesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Projects.Columns.Item.Moves.MovesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public WithColumn_ItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -48,8 +50,8 @@ public WithColumn_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code + /// When receiving a 401 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -62,8 +64,8 @@ public async Task DeleteAsync(Action> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -71,57 +73,57 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ProjectColumn.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ProjectColumn.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update an existing project column /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code + /// When receiving a 401 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithColumn_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Projects.Columns.Item.WithColumn_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithColumn_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Projects.Columns.Item.WithColumn_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ProjectColumn.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ProjectColumn.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Deletes a project column. @@ -166,11 +168,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithColumn_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Projects.Columns.Item.WithColumn_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithColumn_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Projects.Columns.Item.WithColumn_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -183,11 +185,11 @@ public RequestInformation ToPatchRequestInformation(WithColumn_PatchRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithColumn_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Projects.Columns.Item.WithColumn_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithColumn_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Projects.Columns.Item.WithColumn_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Projects/Columns/Item/WithColumn_PatchRequestBody.cs b/src/GitHub/Projects/Columns/Item/WithColumn_PatchRequestBody.cs index 52f85013..54b20ab3 100644 --- a/src/GitHub/Projects/Columns/Item/WithColumn_PatchRequestBody.cs +++ b/src/GitHub/Projects/Columns/Item/WithColumn_PatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Projects.Columns.Item { +namespace GitHub.Projects.Columns.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithColumn_PatchRequestBody : IAdditionalDataHolder, IParsable + public partial class WithColumn_PatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class WithColumn_PatchRequestBody : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithColumn_PatchRequestBody() { @@ -29,12 +31,12 @@ public WithColumn_PatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithColumn_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Projects.Columns.Item.WithColumn_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithColumn_PatchRequestBody(); + return new global::GitHub.Projects.Columns.Item.WithColumn_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Projects/Item/Collaborators/CollaboratorsRequestBuilder.cs b/src/GitHub/Projects/Item/Collaborators/CollaboratorsRequestBuilder.cs index ec1930e7..bdd43ffb 100644 --- a/src/GitHub/Projects/Item/Collaborators/CollaboratorsRequestBuilder.cs +++ b/src/GitHub/Projects/Item/Collaborators/CollaboratorsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Projects.Item.Collaborators.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Projects.Item.Collaborators { +namespace GitHub.Projects.Item.Collaborators +{ /// /// Builds and executes requests for operations under \projects\{project_id}\collaborators /// - public class CollaboratorsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CollaboratorsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.projects.item.collaborators.item collection /// The handle for the GitHub user account. - /// A - public WithUsernameItemRequestBuilder this[string position] + /// A + public global::GitHub.Projects.Item.Collaborators.Item.WithUsernameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("username", position); - return new WithUsernameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Projects.Item.Collaborators.Item.WithUsernameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public CollaboratorsRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,32 +49,32 @@ public CollaboratorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Lists the collaborators for an organization project. For a project, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. You must be an organization owner or a project `admin` to list collaborators. /// API method documentation /// - /// A List<SimpleUser> + /// A List<global::GitHub.Models.SimpleUser> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, SimpleUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists the collaborators for an organization project. For a project, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. You must be an organization owner or a project `admin` to list collaborators. @@ -81,11 +83,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -96,20 +98,21 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CollaboratorsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Projects.Item.Collaborators.CollaboratorsRequestBuilder WithUrl(string rawUrl) { - return new CollaboratorsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Projects.Item.Collaborators.CollaboratorsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the collaborators for an organization project. For a project, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. You must be an organization owner or a project `admin` to list collaborators. /// - public class CollaboratorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CollaboratorsRequestBuilderGetQueryParameters { /// Filters the collaborators by their affiliation. `outside` means outside collaborators of a project that are not a member of the project's organization. `direct` means collaborators with permissions to a project, regardless of organization membership status. `all` means all collaborators the authenticated user can see. [QueryParameter("affiliation")] - public GetAffiliationQueryParameterType? Affiliation { get; set; } + public global::GitHub.Projects.Item.Collaborators.GetAffiliationQueryParameterType? Affiliation { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } diff --git a/src/GitHub/Projects/Item/Collaborators/GetAffiliationQueryParameterType.cs b/src/GitHub/Projects/Item/Collaborators/GetAffiliationQueryParameterType.cs index 2556313d..263243b8 100644 --- a/src/GitHub/Projects/Item/Collaborators/GetAffiliationQueryParameterType.cs +++ b/src/GitHub/Projects/Item/Collaborators/GetAffiliationQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Projects.Item.Collaborators { +namespace GitHub.Projects.Item.Collaborators +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetAffiliationQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Projects/Item/Collaborators/Item/Permission/PermissionRequestBuilder.cs b/src/GitHub/Projects/Item/Collaborators/Item/Permission/PermissionRequestBuilder.cs index de2feaa2..aa6dec44 100644 --- a/src/GitHub/Projects/Item/Collaborators/Item/Permission/PermissionRequestBuilder.cs +++ b/src/GitHub/Projects/Item/Collaborators/Item/Permission/PermissionRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Projects.Item.Collaborators.Item.Permission { +namespace GitHub.Projects.Item.Collaborators.Item.Permission +{ /// /// Builds and executes requests for operations under \projects\{project_id}\collaborators\{username}\permission /// - public class PermissionRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PermissionRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public PermissionRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,31 +36,31 @@ public PermissionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Returns the collaborator's permission level for an organization project. Possible values for the `permission` key: `admin`, `write`, `read`, `none`. You must be an organization owner or a project `admin` to review a user's permission level. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ProjectCollaboratorPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ProjectCollaboratorPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Returns the collaborator's permission level for an organization project. Possible values for the `permission` key: `admin`, `write`, `read`, `none`. You must be an organization owner or a project `admin` to review a user's permission level. @@ -82,11 +84,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PermissionRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Projects.Item.Collaborators.Item.Permission.PermissionRequestBuilder WithUrl(string rawUrl) { - return new PermissionRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Projects.Item.Collaborators.Item.Permission.PermissionRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Projects/Item/Collaborators/Item/WithUsernameItemRequestBuilder.cs b/src/GitHub/Projects/Item/Collaborators/Item/WithUsernameItemRequestBuilder.cs index 7c33ed1b..4aefc0cc 100644 --- a/src/GitHub/Projects/Item/Collaborators/Item/WithUsernameItemRequestBuilder.cs +++ b/src/GitHub/Projects/Item/Collaborators/Item/WithUsernameItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Projects.Item.Collaborators.Item.Permission; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Projects.Item.Collaborators.Item { +namespace GitHub.Projects.Item.Collaborators.Item +{ /// /// Builds and executes requests for operations under \projects\{project_id}\collaborators\{username} /// - public class WithUsernameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithUsernameItemRequestBuilder : BaseRequestBuilder { /// The permission property - public PermissionRequestBuilder Permission + public global::GitHub.Projects.Item.Collaborators.Item.Permission.PermissionRequestBuilder Permission { - get => new PermissionRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Projects.Item.Collaborators.Item.Permission.PermissionRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithUsernameItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -42,10 +44,10 @@ public WithUsernameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -58,10 +60,10 @@ public async Task DeleteAsync(Action> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -72,27 +74,27 @@ public async Task DeleteAsync(ActionThe request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(WithUsernamePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Projects.Item.Collaborators.Item.WithUsernamePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(WithUsernamePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Projects.Item.Collaborators.Item.WithUsernamePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -123,11 +125,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(WithUsernamePutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Projects.Item.Collaborators.Item.WithUsernamePutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(WithUsernamePutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Projects.Item.Collaborators.Item.WithUsernamePutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -140,11 +142,11 @@ public RequestInformation ToPutRequestInformation(WithUsernamePutRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithUsernameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Projects.Item.Collaborators.Item.WithUsernameItemRequestBuilder WithUrl(string rawUrl) { - return new WithUsernameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Projects.Item.Collaborators.Item.WithUsernameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Projects/Item/Collaborators/Item/WithUsernamePutRequestBody.cs b/src/GitHub/Projects/Item/Collaborators/Item/WithUsernamePutRequestBody.cs index 94712222..76662338 100644 --- a/src/GitHub/Projects/Item/Collaborators/Item/WithUsernamePutRequestBody.cs +++ b/src/GitHub/Projects/Item/Collaborators/Item/WithUsernamePutRequestBody.cs @@ -1,35 +1,37 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Projects.Item.Collaborators.Item { +namespace GitHub.Projects.Item.Collaborators.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithUsernamePutRequestBody : IAdditionalDataHolder, IParsable + public partial class WithUsernamePutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The permission to grant the collaborator. - public WithUsernamePutRequestBody_permission? Permission { get; set; } + public global::GitHub.Projects.Item.Collaborators.Item.WithUsernamePutRequestBody_permission? Permission { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithUsernamePutRequestBody() { AdditionalData = new Dictionary(); - Permission = WithUsernamePutRequestBody_permission.Write; + Permission = global::GitHub.Projects.Item.Collaborators.Item.WithUsernamePutRequestBody_permission.Write; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithUsernamePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Projects.Item.Collaborators.Item.WithUsernamePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithUsernamePutRequestBody(); + return new global::GitHub.Projects.Item.Collaborators.Item.WithUsernamePutRequestBody(); } /// /// The deserialization information for the current model @@ -39,7 +41,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"permission", n => { Permission = n.GetEnumValue(); } }, + { "permission", n => { Permission = n.GetEnumValue(); } }, }; } /// @@ -49,7 +51,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("permission", Permission); + writer.WriteEnumValue("permission", Permission); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Projects/Item/Collaborators/Item/WithUsernamePutRequestBody_permission.cs b/src/GitHub/Projects/Item/Collaborators/Item/WithUsernamePutRequestBody_permission.cs index b4b1eb4f..ef7b2ea8 100644 --- a/src/GitHub/Projects/Item/Collaborators/Item/WithUsernamePutRequestBody_permission.cs +++ b/src/GitHub/Projects/Item/Collaborators/Item/WithUsernamePutRequestBody_permission.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Projects.Item.Collaborators.Item { +namespace GitHub.Projects.Item.Collaborators.Item +{ /// The permission to grant the collaborator. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithUsernamePutRequestBody_permission { [EnumMember(Value = "read")] diff --git a/src/GitHub/Projects/Item/Columns/ColumnsPostRequestBody.cs b/src/GitHub/Projects/Item/Columns/ColumnsPostRequestBody.cs index f40ee8fa..030f9d62 100644 --- a/src/GitHub/Projects/Item/Columns/ColumnsPostRequestBody.cs +++ b/src/GitHub/Projects/Item/Columns/ColumnsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Projects.Item.Columns { +namespace GitHub.Projects.Item.Columns +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ColumnsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ColumnsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class ColumnsPostRequestBody : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ColumnsPostRequestBody() { @@ -29,12 +31,12 @@ public ColumnsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ColumnsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Projects.Item.Columns.ColumnsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ColumnsPostRequestBody(); + return new global::GitHub.Projects.Item.Columns.ColumnsPostRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Projects/Item/Columns/ColumnsRequestBuilder.cs b/src/GitHub/Projects/Item/Columns/ColumnsRequestBuilder.cs index bfe15b75..38a18fb0 100644 --- a/src/GitHub/Projects/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/GitHub/Projects/Item/Columns/ColumnsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Projects.Item.Columns { +namespace GitHub.Projects.Item.Columns +{ /// /// Builds and executes requests for operations under \projects\{project_id}\columns /// - public class ColumnsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ColumnsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ColumnsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,58 +36,58 @@ public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Lists the project columns in a project. /// API method documentation /// - /// A List<ProjectColumn> + /// A List<global::GitHub.Models.ProjectColumn> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code + /// When receiving a 401 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ProjectColumn.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.ProjectColumn.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Creates a new project column. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 422 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ColumnsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Projects.Item.Columns.ColumnsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(ColumnsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Projects.Item.Columns.ColumnsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ProjectColumn.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ProjectColumn.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists the project columns in a project. @@ -94,11 +96,11 @@ public async Task PostAsync(ColumnsPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -114,11 +116,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ColumnsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Projects.Item.Columns.ColumnsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ColumnsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Projects.Item.Columns.ColumnsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -131,16 +133,17 @@ public RequestInformation ToPostRequestInformation(ColumnsPostRequestBody body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ColumnsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Projects.Item.Columns.ColumnsRequestBuilder WithUrl(string rawUrl) { - return new ColumnsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Projects.Item.Columns.ColumnsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the project columns in a project. /// - public class ColumnsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ColumnsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Projects/Item/Project403Error.cs b/src/GitHub/Projects/Item/Project403Error.cs index 039d4f9c..acdf8399 100644 --- a/src/GitHub/Projects/Item/Project403Error.cs +++ b/src/GitHub/Projects/Item/Project403Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Projects.Item { +namespace GitHub.Projects.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Project403Error : ApiException, IAdditionalDataHolder, IParsable + public partial class Project403Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class Project403Error : ApiException, IAdditionalDataHolder, IParsable #else public List Errors { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Project403Error() { @@ -46,12 +42,12 @@ public Project403Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Project403Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Projects.Item.Project403Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Project403Error(); + return new global::GitHub.Projects.Item.Project403Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"errors", n => { Errors = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, + { "errors", n => { Errors = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("documentation_url", DocumentationUrl); writer.WriteCollectionOfPrimitiveValues("errors", Errors); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Projects/Item/WithProject_403Error.cs b/src/GitHub/Projects/Item/WithProject_403Error.cs index 9bc97d05..aea42d23 100644 --- a/src/GitHub/Projects/Item/WithProject_403Error.cs +++ b/src/GitHub/Projects/Item/WithProject_403Error.cs @@ -1,13 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Projects.Item { +namespace GitHub.Projects.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithProject_403Error : ApiException, IAdditionalDataHolder, IParsable + public partial class WithProject_403Error : ApiException, IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,16 +30,10 @@ public class WithProject_403Error : ApiException, IAdditionalDataHolder, IParsab #else public List Errors { get; set; } #endif - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MessageEscaped { get; set; } -#nullable restore -#else - public string MessageEscaped { get; set; } -#endif + /// The primary error message. + public override string Message { get => base.Message; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithProject_403Error() { @@ -46,12 +42,12 @@ public WithProject_403Error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithProject_403Error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Projects.Item.WithProject_403Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithProject_403Error(); + return new global::GitHub.Projects.Item.WithProject_403Error(); } /// /// The deserialization information for the current model @@ -61,9 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, - {"errors", n => { Errors = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"message", n => { MessageEscaped = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, + { "errors", n => { Errors = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -75,7 +70,6 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("documentation_url", DocumentationUrl); writer.WriteCollectionOfPrimitiveValues("errors", Errors); - writer.WriteStringValue("message", MessageEscaped); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Projects/Item/WithProject_ItemRequestBuilder.cs b/src/GitHub/Projects/Item/WithProject_ItemRequestBuilder.cs index 8f06fafd..92b304f7 100644 --- a/src/GitHub/Projects/Item/WithProject_ItemRequestBuilder.cs +++ b/src/GitHub/Projects/Item/WithProject_ItemRequestBuilder.cs @@ -2,32 +2,34 @@ using GitHub.Models; using GitHub.Projects.Item.Collaborators; using GitHub.Projects.Item.Columns; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Projects.Item { +namespace GitHub.Projects.Item +{ /// /// Builds and executes requests for operations under \projects\{project_id} /// - public class WithProject_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithProject_ItemRequestBuilder : BaseRequestBuilder { /// The collaborators property - public CollaboratorsRequestBuilder Collaborators + public global::GitHub.Projects.Item.Collaborators.CollaboratorsRequestBuilder Collaborators { - get => new CollaboratorsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Projects.Item.Collaborators.CollaboratorsRequestBuilder(PathParameters, RequestAdapter); } /// The columns property - public ColumnsRequestBuilder Columns + public global::GitHub.Projects.Item.Columns.ColumnsRequestBuilder Columns { - get => new ColumnsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Projects.Item.Columns.ColumnsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public WithProject_ItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -48,10 +50,10 @@ public WithProject_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 410 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 410 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -64,10 +66,10 @@ public async Task DeleteAsync(Action> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", WithProject_403Error.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"410", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Projects.Item.WithProject_403Error.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "410", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -75,59 +77,59 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code + /// When receiving a 401 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Project.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Project.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Updates a project board's information. Returns a `404 Not Found` status if projects are disabled. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 410 status code - /// When receiving a 422 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 410 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithProject_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Projects.Item.WithProject_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithProject_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Projects.Item.WithProject_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", Project403Error.CreateFromDiscriminatorValue}, - {"410", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Projects.Item.Project403Error.CreateFromDiscriminatorValue }, + { "410", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Project.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Project.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Deletes a project board. Returns a `404 Not Found` status if projects are disabled. @@ -175,11 +177,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithProject_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Projects.Item.WithProject_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithProject_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Projects.Item.WithProject_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -192,11 +194,11 @@ public RequestInformation ToPatchRequestInformation(WithProject_PatchRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithProject_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Projects.Item.WithProject_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithProject_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Projects.Item.WithProject_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Projects/Item/WithProject_PatchRequestBody.cs b/src/GitHub/Projects/Item/WithProject_PatchRequestBody.cs index 114d6836..ffcd9356 100644 --- a/src/GitHub/Projects/Item/WithProject_PatchRequestBody.cs +++ b/src/GitHub/Projects/Item/WithProject_PatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Projects.Item { +namespace GitHub.Projects.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithProject_PatchRequestBody : IAdditionalDataHolder, IParsable + public partial class WithProject_PatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class WithProject_PatchRequestBody : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// The baseline permission that all organization members have on this project - public WithProject_PatchRequestBody_organization_permission? OrganizationPermission { get; set; } + public global::GitHub.Projects.Item.WithProject_PatchRequestBody_organization_permission? OrganizationPermission { get; set; } /// Whether or not this project can be seen by everyone. public bool? Private { get; set; } /// State of the project; either 'open' or 'closed' @@ -40,7 +42,7 @@ public class WithProject_PatchRequestBody : IAdditionalDataHolder, IParsable public string State { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithProject_PatchRequestBody() { @@ -49,12 +51,12 @@ public WithProject_PatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithProject_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Projects.Item.WithProject_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithProject_PatchRequestBody(); + return new global::GitHub.Projects.Item.WithProject_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -64,11 +66,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"body", n => { Body = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"organization_permission", n => { OrganizationPermission = n.GetEnumValue(); } }, - {"private", n => { Private = n.GetBoolValue(); } }, - {"state", n => { State = n.GetStringValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "organization_permission", n => { OrganizationPermission = n.GetEnumValue(); } }, + { "private", n => { Private = n.GetBoolValue(); } }, + { "state", n => { State = n.GetStringValue(); } }, }; } /// @@ -80,7 +82,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("body", Body); writer.WriteStringValue("name", Name); - writer.WriteEnumValue("organization_permission", OrganizationPermission); + writer.WriteEnumValue("organization_permission", OrganizationPermission); writer.WriteBoolValue("private", Private); writer.WriteStringValue("state", State); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Projects/Item/WithProject_PatchRequestBody_organization_permission.cs b/src/GitHub/Projects/Item/WithProject_PatchRequestBody_organization_permission.cs index d915933c..bcf06ca2 100644 --- a/src/GitHub/Projects/Item/WithProject_PatchRequestBody_organization_permission.cs +++ b/src/GitHub/Projects/Item/WithProject_PatchRequestBody_organization_permission.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Projects.Item { +namespace GitHub.Projects.Item +{ /// The baseline permission that all organization members have on this project + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithProject_PatchRequestBody_organization_permission { [EnumMember(Value = "read")] diff --git a/src/GitHub/Projects/ProjectsRequestBuilder.cs b/src/GitHub/Projects/ProjectsRequestBuilder.cs index b77789b5..37a7b57e 100644 --- a/src/GitHub/Projects/ProjectsRequestBuilder.cs +++ b/src/GitHub/Projects/ProjectsRequestBuilder.cs @@ -1,37 +1,39 @@ // using GitHub.Projects.Columns; using GitHub.Projects.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Projects { +namespace GitHub.Projects +{ /// /// Builds and executes requests for operations under \projects /// - public class ProjectsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProjectsRequestBuilder : BaseRequestBuilder { /// The columns property - public ColumnsRequestBuilder Columns + public global::GitHub.Projects.Columns.ColumnsRequestBuilder Columns { - get => new ColumnsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Projects.Columns.ColumnsRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.projects.item collection /// The unique identifier of the project. - /// A - public WithProject_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Projects.Item.WithProject_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("project_id", position); - return new WithProject_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Projects.Item.WithProject_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -39,7 +41,7 @@ public ProjectsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Rate_limit/Rate_limitRequestBuilder.cs b/src/GitHub/Rate_limit/Rate_limitRequestBuilder.cs index 7c3b857f..280c87b3 100644 --- a/src/GitHub/Rate_limit/Rate_limitRequestBuilder.cs +++ b/src/GitHub/Rate_limit/Rate_limitRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Rate_limit { +namespace GitHub.Rate_limit +{ /// /// Builds and executes requests for operations under \rate_limit /// - public class Rate_limitRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Rate_limitRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Rate_limitRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,25 +36,25 @@ public Rate_limitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// > [!NOTE]> Accessing this endpoint does not count against your REST API rate limit.Some categories of endpoints have custom rate limits that are separate from the rate limit governing the other REST API endpoints. For this reason, the API response categorizes your rate limit. Under `resources`, you'll see objects relating to different categories:* The `core` object provides your rate limit status for all non-search-related resources in the REST API.* The `search` object provides your rate limit status for the REST API for searching (excluding code searches). For more information, see "[Search](https://docs.github.com/enterprise-cloud@latest//rest/search/search)."* The `code_search` object provides your rate limit status for the REST API for searching code. For more information, see "[Search code](https://docs.github.com/enterprise-cloud@latest//rest/search/search#search-code)."* The `graphql` object provides your rate limit status for the GraphQL API. For more information, see "[Resource limitations](https://docs.github.com/enterprise-cloud@latest//graphql/overview/resource-limitations#rate-limit)."* The `integration_manifest` object provides your rate limit status for the `POST /app-manifests/{code}/conversions` operation. For more information, see "[Creating a GitHub App from a manifest](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/setting-up-a-github-app/creating-a-github-app-from-a-manifest#3-you-exchange-the-temporary-code-to-retrieve-the-app-configuration)."* The `dependency_snapshots` object provides your rate limit status for submitting snapshots to the dependency graph. For more information, see "[Dependency graph](https://docs.github.com/enterprise-cloud@latest//rest/dependency-graph)."* The `code_scanning_upload` object provides your rate limit status for uploading SARIF results to code scanning. For more information, see "[Uploading a SARIF file to GitHub](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github)."* The `actions_runner_registration` object provides your rate limit status for registering self-hosted runners in GitHub Actions. For more information, see "[Self-hosted runners](https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners)."* The `source_import` object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see "[API Versions](https://docs.github.com/enterprise-cloud@latest//rest/about-the-rest-api/api-versions)."> [!NOTE]> The `rate` object is deprecated. If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, RateLimitOverview.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.RateLimitOverview.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// > [!NOTE]> Accessing this endpoint does not count against your REST API rate limit.Some categories of endpoints have custom rate limits that are separate from the rate limit governing the other REST API endpoints. For this reason, the API response categorizes your rate limit. Under `resources`, you'll see objects relating to different categories:* The `core` object provides your rate limit status for all non-search-related resources in the REST API.* The `search` object provides your rate limit status for the REST API for searching (excluding code searches). For more information, see "[Search](https://docs.github.com/enterprise-cloud@latest//rest/search/search)."* The `code_search` object provides your rate limit status for the REST API for searching code. For more information, see "[Search code](https://docs.github.com/enterprise-cloud@latest//rest/search/search#search-code)."* The `graphql` object provides your rate limit status for the GraphQL API. For more information, see "[Resource limitations](https://docs.github.com/enterprise-cloud@latest//graphql/overview/resource-limitations#rate-limit)."* The `integration_manifest` object provides your rate limit status for the `POST /app-manifests/{code}/conversions` operation. For more information, see "[Creating a GitHub App from a manifest](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/setting-up-a-github-app/creating-a-github-app-from-a-manifest#3-you-exchange-the-temporary-code-to-retrieve-the-app-configuration)."* The `dependency_snapshots` object provides your rate limit status for submitting snapshots to the dependency graph. For more information, see "[Dependency graph](https://docs.github.com/enterprise-cloud@latest//rest/dependency-graph)."* The `code_scanning_upload` object provides your rate limit status for uploading SARIF results to code scanning. For more information, see "[Uploading a SARIF file to GitHub](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github)."* The `actions_runner_registration` object provides your rate limit status for registering self-hosted runners in GitHub Actions. For more information, see "[Self-hosted runners](https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners)."* The `source_import` object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see "[API Versions](https://docs.github.com/enterprise-cloud@latest//rest/about-the-rest-api/api-versions)."> [!NOTE]> The `rate` object is deprecated. If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object. @@ -76,11 +78,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Rate_limitRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Rate_limit.Rate_limitRequestBuilder WithUrl(string rawUrl) { - return new Rate_limitRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Rate_limit.Rate_limitRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/ActionsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/ActionsRequestBuilder.cs index cb17af0d..d62919fb 100644 --- a/src/GitHub/Repos/Item/Item/Actions/ActionsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/ActionsRequestBuilder.cs @@ -12,85 +12,87 @@ using GitHub.Repos.Item.Item.Actions.Secrets; using GitHub.Repos.Item.Item.Actions.Variables; using GitHub.Repos.Item.Item.Actions.Workflows; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Repos.Item.Item.Actions { +namespace GitHub.Repos.Item.Item.Actions +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions /// - public class ActionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ActionsRequestBuilder : BaseRequestBuilder { /// The artifacts property - public ArtifactsRequestBuilder Artifacts + public global::GitHub.Repos.Item.Item.Actions.Artifacts.ArtifactsRequestBuilder Artifacts { - get => new ArtifactsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Artifacts.ArtifactsRequestBuilder(PathParameters, RequestAdapter); } /// The cache property - public CacheRequestBuilder Cache + public global::GitHub.Repos.Item.Item.Actions.Cache.CacheRequestBuilder Cache { - get => new CacheRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Cache.CacheRequestBuilder(PathParameters, RequestAdapter); } /// The caches property - public CachesRequestBuilder Caches + public global::GitHub.Repos.Item.Item.Actions.Caches.CachesRequestBuilder Caches { - get => new CachesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Caches.CachesRequestBuilder(PathParameters, RequestAdapter); } /// The jobs property - public JobsRequestBuilder Jobs + public global::GitHub.Repos.Item.Item.Actions.Jobs.JobsRequestBuilder Jobs { - get => new JobsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Jobs.JobsRequestBuilder(PathParameters, RequestAdapter); } /// The oidc property - public OidcRequestBuilder Oidc + public global::GitHub.Repos.Item.Item.Actions.Oidc.OidcRequestBuilder Oidc { - get => new OidcRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Oidc.OidcRequestBuilder(PathParameters, RequestAdapter); } /// The organizationSecrets property - public OrganizationSecretsRequestBuilder OrganizationSecrets + public global::GitHub.Repos.Item.Item.Actions.OrganizationSecrets.OrganizationSecretsRequestBuilder OrganizationSecrets { - get => new OrganizationSecretsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.OrganizationSecrets.OrganizationSecretsRequestBuilder(PathParameters, RequestAdapter); } /// The organizationVariables property - public OrganizationVariablesRequestBuilder OrganizationVariables + public global::GitHub.Repos.Item.Item.Actions.OrganizationVariables.OrganizationVariablesRequestBuilder OrganizationVariables { - get => new OrganizationVariablesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.OrganizationVariables.OrganizationVariablesRequestBuilder(PathParameters, RequestAdapter); } /// The permissions property - public PermissionsRequestBuilder Permissions + public global::GitHub.Repos.Item.Item.Actions.Permissions.PermissionsRequestBuilder Permissions { - get => new PermissionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Permissions.PermissionsRequestBuilder(PathParameters, RequestAdapter); } /// The runners property - public RunnersRequestBuilder Runners + public global::GitHub.Repos.Item.Item.Actions.Runners.RunnersRequestBuilder Runners { - get => new RunnersRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runners.RunnersRequestBuilder(PathParameters, RequestAdapter); } /// The runs property - public RunsRequestBuilder Runs + public global::GitHub.Repos.Item.Item.Actions.Runs.RunsRequestBuilder Runs { - get => new RunsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runs.RunsRequestBuilder(PathParameters, RequestAdapter); } /// The secrets property - public SecretsRequestBuilder Secrets + public global::GitHub.Repos.Item.Item.Actions.Secrets.SecretsRequestBuilder Secrets { - get => new SecretsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Secrets.SecretsRequestBuilder(PathParameters, RequestAdapter); } /// The variables property - public VariablesRequestBuilder Variables + public global::GitHub.Repos.Item.Item.Actions.Variables.VariablesRequestBuilder Variables { - get => new VariablesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Variables.VariablesRequestBuilder(PathParameters, RequestAdapter); } /// The workflows property - public WorkflowsRequestBuilder Workflows + public global::GitHub.Repos.Item.Item.Actions.Workflows.WorkflowsRequestBuilder Workflows { - get => new WorkflowsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Workflows.WorkflowsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -98,7 +100,7 @@ public ActionsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Repos/Item/Item/Actions/Artifacts/ArtifactsGetResponse.cs b/src/GitHub/Repos/Item/Item/Actions/Artifacts/ArtifactsGetResponse.cs index 80eccdb6..5ba08a1d 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Artifacts/ArtifactsGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Artifacts/ArtifactsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Artifacts { +namespace GitHub.Repos.Item.Item.Actions.Artifacts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ArtifactsGetResponse : IAdditionalDataHolder, IParsable + public partial class ArtifactsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class ArtifactsGetResponse : IAdditionalDataHolder, IParsable /// The artifacts property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Artifacts { get; set; } + public List? Artifacts { get; set; } #nullable restore #else - public List Artifacts { get; set; } + public List Artifacts { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ArtifactsGetResponse() { @@ -32,12 +34,12 @@ public ArtifactsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ArtifactsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Artifacts.ArtifactsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ArtifactsGetResponse(); + return new global::GitHub.Repos.Item.Item.Actions.Artifacts.ArtifactsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"artifacts", n => { Artifacts = n.GetCollectionOfObjectValues(Artifact.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "artifacts", n => { Artifacts = n.GetCollectionOfObjectValues(global::GitHub.Models.Artifact.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("artifacts", Artifacts); + writer.WriteCollectionOfObjectValues("artifacts", Artifacts); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Actions/Artifacts/ArtifactsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Artifacts/ArtifactsRequestBuilder.cs index 7d6fc9fc..44756b93 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Artifacts/ArtifactsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Artifacts/ArtifactsRequestBuilder.cs @@ -1,33 +1,35 @@ // using GitHub.Repos.Item.Item.Actions.Artifacts.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Artifacts { +namespace GitHub.Repos.Item.Item.Actions.Artifacts +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\artifacts /// - public class ArtifactsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ArtifactsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.actions.artifacts.item collection /// The unique identifier of the artifact. - /// A - public WithArtifact_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Actions.Artifacts.Item.WithArtifact_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("artifact_id", position); - return new WithArtifact_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Artifacts.Item.WithArtifact_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public ArtifactsRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,20 +48,20 @@ public ArtifactsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Lists all artifacts for a repository.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ArtifactsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Actions.Artifacts.ArtifactsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists all artifacts for a repository.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. @@ -68,11 +70,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -83,16 +85,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ArtifactsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Artifacts.ArtifactsRequestBuilder WithUrl(string rawUrl) { - return new ArtifactsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Artifacts.ArtifactsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all artifacts for a repository.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// - public class ArtifactsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ArtifactsRequestBuilderGetQueryParameters { /// The name field of an artifact. When specified, only artifacts with this name will be returned. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Repos/Item/Item/Actions/Artifacts/Item/Item/WithArchive_formatItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Artifacts/Item/Item/WithArchive_formatItemRequestBuilder.cs index 7aa04dec..cb1bd0e0 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Artifacts/Item/Item/WithArchive_formatItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Artifacts/Item/Item/WithArchive_formatItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Artifacts.Item.Item { +namespace GitHub.Repos.Item.Item.Actions.Artifacts.Item.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\artifacts\{artifact_id}\{archive_format} /// - public class WithArchive_formatItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithArchive_formatItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithArchive_formatItemRequestBuilder(Dictionary pathParam { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public WithArchive_formatItemRequestBuilder(string rawUrl, IRequestAdapter reque /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 410 status code + /// When receiving a 410 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -49,7 +51,7 @@ public async Task GetAsync(Action> var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"410", BasicError.CreateFromDiscriminatorValue}, + { "410", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -75,11 +77,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithArchive_formatItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Artifacts.Item.Item.WithArchive_formatItemRequestBuilder WithUrl(string rawUrl) { - return new WithArchive_formatItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Artifacts.Item.Item.WithArchive_formatItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Artifacts/Item/WithArtifact_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Artifacts/Item/WithArtifact_ItemRequestBuilder.cs index 62dfdfe5..b3d0fcdb 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Artifacts/Item/WithArtifact_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Artifacts/Item/WithArtifact_ItemRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Actions.Artifacts.Item.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Artifacts.Item { +namespace GitHub.Repos.Item.Item.Actions.Artifacts.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\artifacts\{artifact_id} /// - public class WithArtifact_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithArtifact_ItemRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.actions.artifacts.item.item collection /// Unique identifier of the item - /// A - public WithArchive_formatItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Actions.Artifacts.Item.Item.WithArchive_formatItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("archive_format", position); - return new WithArchive_formatItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Artifacts.Item.Item.WithArchive_formatItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public WithArtifact_ItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -65,20 +67,20 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, Artifact.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Artifact.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Deletes an artifact for a workflow run.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -120,11 +122,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithArtifact_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Artifacts.Item.WithArtifact_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithArtifact_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Artifacts.Item.WithArtifact_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Cache/CacheRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Cache/CacheRequestBuilder.cs index e7c3f973..e97c9915 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Cache/CacheRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Cache/CacheRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Repos.Item.Item.Actions.Cache.Usage; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Repos.Item.Item.Actions.Cache { +namespace GitHub.Repos.Item.Item.Actions.Cache +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\cache /// - public class CacheRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CacheRequestBuilder : BaseRequestBuilder { /// The usage property - public UsageRequestBuilder Usage + public global::GitHub.Repos.Item.Item.Actions.Cache.Usage.UsageRequestBuilder Usage { - get => new UsageRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Cache.Usage.UsageRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public CacheRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Repos/Item/Item/Actions/Cache/Usage/UsageRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Cache/Usage/UsageRequestBuilder.cs index 0fb56a1d..25f1699e 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Cache/Usage/UsageRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Cache/Usage/UsageRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Cache.Usage { +namespace GitHub.Repos.Item.Item.Actions.Cache.Usage +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\cache\usage /// - public class UsageRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsageRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public UsageRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public UsageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Gets GitHub Actions cache usage for a repository.The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated.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. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ActionsCacheUsageByRepository.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsCacheUsageByRepository.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets GitHub Actions cache usage for a repository.The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated.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. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UsageRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Cache.Usage.UsageRequestBuilder WithUrl(string rawUrl) { - return new UsageRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Cache.Usage.UsageRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Caches/CachesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Caches/CachesRequestBuilder.cs index fb4df854..e20bd11d 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Caches/CachesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Caches/CachesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Actions.Caches.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Caches { +namespace GitHub.Repos.Item.Item.Actions.Caches +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\caches /// - public class CachesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CachesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.actions.caches.item collection /// The unique identifier of the GitHub Actions cache. - /// A - public WithCache_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Actions.Caches.Item.WithCache_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("cache_id", position); - return new WithCache_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Caches.Item.WithCache_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public CachesRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,39 +49,39 @@ public CachesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Deletes one or more GitHub Actions caches for a repository, using a complete cache key. By default, all caches that match the provided key are deleted, but you can optionally provide a Git ref to restrict deletions to caches that match both the provided key and the Git ref.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ActionsCacheList.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsCacheList.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists the GitHub Actions caches for a repository.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ActionsCacheList.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsCacheList.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Deletes one or more GitHub Actions caches for a repository, using a complete cache key. By default, all caches that match the provided key are deleted, but you can optionally provide a Git ref to restrict deletions to caches that match both the provided key and the Git ref.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -88,11 +90,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/caches?key={key}{&ref*}", PathParameters); @@ -107,11 +109,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -122,16 +124,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CachesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Caches.CachesRequestBuilder WithUrl(string rawUrl) { - return new CachesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Caches.CachesRequestBuilder(rawUrl, RequestAdapter); } /// /// Deletes one or more GitHub Actions caches for a repository, using a complete cache key. By default, all caches that match the provided key are deleted, but you can optionally provide a Git ref to restrict deletions to caches that match both the provided key and the Git ref.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// - public class CachesRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CachesRequestBuilderDeleteQueryParameters { /// A key for identifying the cache. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -157,11 +160,12 @@ public class CachesRequestBuilderDeleteQueryParameters /// /// Lists the GitHub Actions caches for a repository.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// - public class CachesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CachesRequestBuilderGetQueryParameters { /// The direction to sort the results by. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Repos.Item.Item.Actions.Caches.GetDirectionQueryParameterType? Direction { get; set; } /// An explicit key or prefix for identifying the cache #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -190,7 +194,7 @@ public class CachesRequestBuilderGetQueryParameters #endif /// The property to sort the results by. `created_at` means when the cache was created. `last_accessed_at` means when the cache was last accessed. `size_in_bytes` is the size of the cache in bytes. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Repos.Item.Item.Actions.Caches.GetSortQueryParameterType? Sort { get; set; } } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Caches/GetDirectionQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Actions/Caches/GetDirectionQueryParameterType.cs index a45ff281..d0309eac 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Caches/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Caches/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Actions.Caches { +namespace GitHub.Repos.Item.Item.Actions.Caches +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Actions/Caches/GetSortQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Actions/Caches/GetSortQueryParameterType.cs index ecfcdf64..67e4f114 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Caches/GetSortQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Caches/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Actions.Caches { +namespace GitHub.Repos.Item.Item.Actions.Caches +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Actions/Caches/Item/WithCache_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Caches/Item/WithCache_ItemRequestBuilder.cs index 527bb67d..7a0fb03d 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Caches/Item/WithCache_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Caches/Item/WithCache_ItemRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Caches.Item { +namespace GitHub.Repos.Item.Item.Actions.Caches.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\caches\{cache_id} /// - public class WithCache_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithCache_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public WithCache_ItemRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -68,11 +70,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithCache_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Caches.Item.WithCache_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithCache_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Caches.Item.WithCache_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Jobs/Item/Logs/LogsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Jobs/Item/Logs/LogsRequestBuilder.cs index 405498f1..a67ed13c 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Jobs/Item/Logs/LogsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Jobs/Item/Logs/LogsRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Jobs.Item.Logs { +namespace GitHub.Repos.Item.Item.Actions.Jobs.Item.Logs +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\jobs\{job_id}\logs /// - public class LogsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class LogsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public LogsRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -68,11 +70,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public LogsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Jobs.Item.Logs.LogsRequestBuilder WithUrl(string rawUrl) { - return new LogsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Jobs.Item.Logs.LogsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Jobs/Item/Rerun/RerunPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Actions/Jobs/Item/Rerun/RerunPostRequestBody.cs index a7e4cfa0..f3a282b1 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Jobs/Item/Rerun/RerunPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Jobs/Item/Rerun/RerunPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Jobs.Item.Rerun { +namespace GitHub.Repos.Item.Item.Actions.Jobs.Item.Rerun +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RerunPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RerunPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class RerunPostRequestBody : IAdditionalDataHolder, IParsable /// Whether to enable debug logging for the re-run. public bool? EnableDebugLogging { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RerunPostRequestBody() { @@ -23,12 +25,12 @@ public RerunPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RerunPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Jobs.Item.Rerun.RerunPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RerunPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Actions.Jobs.Item.Rerun.RerunPostRequestBody(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enable_debug_logging", n => { EnableDebugLogging = n.GetBoolValue(); } }, + { "enable_debug_logging", n => { EnableDebugLogging = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Actions/Jobs/Item/Rerun/RerunRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Jobs/Item/Rerun/RerunRequestBuilder.cs index c68b2f0f..d4e447ae 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Jobs/Item/Rerun/RerunRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Jobs/Item/Rerun/RerunRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Jobs.Item.Rerun { +namespace GitHub.Repos.Item.Item.Actions.Jobs.Item.Rerun +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\jobs\{job_id}\rerun /// - public class RerunRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RerunRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RerunRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public RerunRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Re-run a job and its dependent jobs in a workflow run.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(RerunPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Actions.Jobs.Item.Rerun.RerunPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(RerunPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Actions.Jobs.Item.Rerun.RerunPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, EmptyObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EmptyObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Re-run a job and its dependent jobs in a workflow run.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -64,11 +66,11 @@ public async Task PostAsync(RerunPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(RerunPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Actions.Jobs.Item.Rerun.RerunPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RerunPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Actions.Jobs.Item.Rerun.RerunPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -81,11 +83,11 @@ public RequestInformation ToPostRequestInformation(RerunPostRequestBody body, Ac /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RerunRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Jobs.Item.Rerun.RerunRequestBuilder WithUrl(string rawUrl) { - return new RerunRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Jobs.Item.Rerun.RerunRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Jobs/Item/WithJob_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Jobs/Item/WithJob_ItemRequestBuilder.cs index 66b50da8..2b4afb61 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Jobs/Item/WithJob_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Jobs/Item/WithJob_ItemRequestBuilder.cs @@ -2,32 +2,34 @@ using GitHub.Models; using GitHub.Repos.Item.Item.Actions.Jobs.Item.Logs; using GitHub.Repos.Item.Item.Actions.Jobs.Item.Rerun; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Jobs.Item { +namespace GitHub.Repos.Item.Item.Actions.Jobs.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\jobs\{job_id} /// - public class WithJob_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithJob_ItemRequestBuilder : BaseRequestBuilder { /// The logs property - public LogsRequestBuilder Logs + public global::GitHub.Repos.Item.Item.Actions.Jobs.Item.Logs.LogsRequestBuilder Logs { - get => new LogsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Jobs.Item.Logs.LogsRequestBuilder(PathParameters, RequestAdapter); } /// The rerun property - public RerunRequestBuilder Rerun + public global::GitHub.Repos.Item.Item.Actions.Jobs.Item.Rerun.RerunRequestBuilder Rerun { - get => new RerunRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Jobs.Item.Rerun.RerunRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public WithJob_ItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,20 +48,20 @@ public WithJob_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Gets a specific job in a workflow run.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. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, Job.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Job.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets a specific job in a workflow run.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. @@ -83,11 +85,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithJob_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Jobs.Item.WithJob_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithJob_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Jobs.Item.WithJob_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Jobs/JobsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Jobs/JobsRequestBuilder.cs index f540dc38..76d443f5 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Jobs/JobsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Jobs/JobsRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Repos.Item.Item.Actions.Jobs.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Repos.Item.Item.Actions.Jobs { +namespace GitHub.Repos.Item.Item.Actions.Jobs +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\jobs /// - public class JobsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class JobsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.actions.jobs.item collection /// The unique identifier of the job. - /// A - public WithJob_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Actions.Jobs.Item.WithJob_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("job_id", position); - return new WithJob_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Jobs.Item.WithJob_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public JobsRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Repos/Item/Item/Actions/Oidc/Customization/CustomizationRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Oidc/Customization/CustomizationRequestBuilder.cs index 3f5081d6..370e49e4 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Oidc/Customization/CustomizationRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Oidc/Customization/CustomizationRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Repos.Item.Item.Actions.Oidc.Customization.Sub; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Repos.Item.Item.Actions.Oidc.Customization { +namespace GitHub.Repos.Item.Item.Actions.Oidc.Customization +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\oidc\customization /// - public class CustomizationRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CustomizationRequestBuilder : BaseRequestBuilder { /// The sub property - public SubRequestBuilder Sub + public global::GitHub.Repos.Item.Item.Actions.Oidc.Customization.Sub.SubRequestBuilder Sub { - get => new SubRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Oidc.Customization.Sub.SubRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public CustomizationRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Repos/Item/Item/Actions/Oidc/Customization/Sub/SubPutRequestBody.cs b/src/GitHub/Repos/Item/Item/Actions/Oidc/Customization/Sub/SubPutRequestBody.cs index 430b0009..1536cb44 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Oidc/Customization/Sub/SubPutRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Oidc/Customization/Sub/SubPutRequestBody.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Oidc.Customization.Sub { +namespace GitHub.Repos.Item.Item.Actions.Oidc.Customization.Sub +{ /// /// Actions OIDC subject customization for a repository /// - public class SubPutRequestBody : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SubPutRequestBody : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,7 +25,7 @@ public class SubPutRequestBody : IAdditionalDataHolder, IParsable /// Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored. public bool? UseDefault { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SubPutRequestBody() { @@ -32,12 +34,12 @@ public SubPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SubPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Oidc.Customization.Sub.SubPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SubPutRequestBody(); + return new global::GitHub.Repos.Item.Item.Actions.Oidc.Customization.Sub.SubPutRequestBody(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"include_claim_keys", n => { IncludeClaimKeys = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"use_default", n => { UseDefault = n.GetBoolValue(); } }, + { "include_claim_keys", n => { IncludeClaimKeys = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "use_default", n => { UseDefault = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Actions/Oidc/Customization/Sub/SubRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Oidc/Customization/Sub/SubRequestBuilder.cs index 96b0bc8d..75f5a2e3 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Oidc/Customization/Sub/SubRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Oidc/Customization/Sub/SubRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Oidc.Customization.Sub { +namespace GitHub.Repos.Item.Item.Actions.Oidc.Customization.Sub +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\oidc\customization\sub /// - public class SubRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SubRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public SubRequestBuilder(Dictionary pathParameters, IRequestAdap { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,57 +36,57 @@ public SubRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Gets the customization template for an OpenID Connect (OIDC) subject claim.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 404 status code + /// When receiving a 400 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OidcCustomSubRepo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OidcCustomSubRepo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Sets the customization template and `opt-in` or `opt-out` flag for an OpenID Connect (OIDC) subject claim for a repository.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Actions OIDC subject customization for a repository /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(SubPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Actions.Oidc.Customization.Sub.SubPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(SubPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Actions.Oidc.Customization.Sub.SubPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, EmptyObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EmptyObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets the customization template for an OpenID Connect (OIDC) subject claim.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -113,11 +115,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(SubPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Actions.Oidc.Customization.Sub.SubPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(SubPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Actions.Oidc.Customization.Sub.SubPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -130,11 +132,11 @@ public RequestInformation ToPutRequestInformation(SubPutRequestBody body, Action /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SubRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Oidc.Customization.Sub.SubRequestBuilder WithUrl(string rawUrl) { - return new SubRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Oidc.Customization.Sub.SubRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Oidc/OidcRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Oidc/OidcRequestBuilder.cs index 2a66be68..9453f67f 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Oidc/OidcRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Oidc/OidcRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Repos.Item.Item.Actions.Oidc.Customization; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Repos.Item.Item.Actions.Oidc { +namespace GitHub.Repos.Item.Item.Actions.Oidc +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\oidc /// - public class OidcRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OidcRequestBuilder : BaseRequestBuilder { /// The customization property - public CustomizationRequestBuilder Customization + public global::GitHub.Repos.Item.Item.Actions.Oidc.Customization.CustomizationRequestBuilder Customization { - get => new CustomizationRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Oidc.Customization.CustomizationRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public OidcRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Repos/Item/Item/Actions/OrganizationSecrets/OrganizationSecretsGetResponse.cs b/src/GitHub/Repos/Item/Item/Actions/OrganizationSecrets/OrganizationSecretsGetResponse.cs index c2d1701b..44e1b0ef 100644 --- a/src/GitHub/Repos/Item/Item/Actions/OrganizationSecrets/OrganizationSecretsGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Actions/OrganizationSecrets/OrganizationSecretsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.OrganizationSecrets { +namespace GitHub.Repos.Item.Item.Actions.OrganizationSecrets +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class OrganizationSecretsGetResponse : IAdditionalDataHolder, IParsable + public partial class OrganizationSecretsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class OrganizationSecretsGetResponse : IAdditionalDataHolder, IParsable /// The secrets property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Secrets { get; set; } + public List? Secrets { get; set; } #nullable restore #else - public List Secrets { get; set; } + public List Secrets { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationSecretsGetResponse() { @@ -32,12 +34,12 @@ public OrganizationSecretsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationSecretsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.OrganizationSecrets.OrganizationSecretsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationSecretsGetResponse(); + return new global::GitHub.Repos.Item.Item.Actions.OrganizationSecrets.OrganizationSecretsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"secrets", n => { Secrets = n.GetCollectionOfObjectValues(ActionsSecret.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "secrets", n => { Secrets = n.GetCollectionOfObjectValues(global::GitHub.Models.ActionsSecret.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("secrets", Secrets); + writer.WriteCollectionOfObjectValues("secrets", Secrets); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Actions/OrganizationSecrets/OrganizationSecretsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/OrganizationSecrets/OrganizationSecretsRequestBuilder.cs index c4d3f8d6..b1cfb90a 100644 --- a/src/GitHub/Repos/Item/Item/Actions/OrganizationSecrets/OrganizationSecretsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/OrganizationSecrets/OrganizationSecretsRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.OrganizationSecrets { +namespace GitHub.Repos.Item.Item.Actions.OrganizationSecrets +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\organization-secrets /// - public class OrganizationSecretsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationSecretsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public OrganizationSecretsRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,20 +35,20 @@ public OrganizationSecretsRequestBuilder(string rawUrl, IRequestAdapter requestA /// Lists all organization secrets shared with a repository without revealing their encryptedvalues.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. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, OrganizationSecretsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Actions.OrganizationSecrets.OrganizationSecretsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists all organization secrets shared with a repository without revealing their encryptedvalues.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. @@ -55,11 +57,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -70,16 +72,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public OrganizationSecretsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.OrganizationSecrets.OrganizationSecretsRequestBuilder WithUrl(string rawUrl) { - return new OrganizationSecretsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.OrganizationSecrets.OrganizationSecretsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all organization secrets shared with a repository without revealing their encryptedvalues.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. /// - public class OrganizationSecretsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationSecretsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Actions/OrganizationVariables/OrganizationVariablesGetResponse.cs b/src/GitHub/Repos/Item/Item/Actions/OrganizationVariables/OrganizationVariablesGetResponse.cs index 6b04c60e..119aa285 100644 --- a/src/GitHub/Repos/Item/Item/Actions/OrganizationVariables/OrganizationVariablesGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Actions/OrganizationVariables/OrganizationVariablesGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.OrganizationVariables { +namespace GitHub.Repos.Item.Item.Actions.OrganizationVariables +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class OrganizationVariablesGetResponse : IAdditionalDataHolder, IParsable + public partial class OrganizationVariablesGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -17,13 +19,13 @@ public class OrganizationVariablesGetResponse : IAdditionalDataHolder, IParsable /// The variables property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Variables { get; set; } + public List? Variables { get; set; } #nullable restore #else - public List Variables { get; set; } + public List Variables { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationVariablesGetResponse() { @@ -32,12 +34,12 @@ public OrganizationVariablesGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationVariablesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.OrganizationVariables.OrganizationVariablesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationVariablesGetResponse(); + return new global::GitHub.Repos.Item.Item.Actions.OrganizationVariables.OrganizationVariablesGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"total_count", n => { TotalCount = n.GetIntValue(); } }, - {"variables", n => { Variables = n.GetCollectionOfObjectValues(ActionsVariable.CreateFromDiscriminatorValue)?.ToList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, + { "variables", n => { Variables = n.GetCollectionOfObjectValues(global::GitHub.Models.ActionsVariable.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -59,7 +61,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("total_count", TotalCount); - writer.WriteCollectionOfObjectValues("variables", Variables); + writer.WriteCollectionOfObjectValues("variables", Variables); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Actions/OrganizationVariables/OrganizationVariablesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/OrganizationVariables/OrganizationVariablesRequestBuilder.cs index 5a38c275..c4253279 100644 --- a/src/GitHub/Repos/Item/Item/Actions/OrganizationVariables/OrganizationVariablesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/OrganizationVariables/OrganizationVariablesRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.OrganizationVariables { +namespace GitHub.Repos.Item.Item.Actions.OrganizationVariables +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\organization-variables /// - public class OrganizationVariablesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationVariablesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public OrganizationVariablesRequestBuilder(Dictionary pathParame { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,20 +35,20 @@ public OrganizationVariablesRequestBuilder(string rawUrl, IRequestAdapter reques /// Lists all organization variables shared with a repository.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 /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, OrganizationVariablesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Actions.OrganizationVariables.OrganizationVariablesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists all organization variables shared with a repository.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. @@ -55,11 +57,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -70,16 +72,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public OrganizationVariablesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.OrganizationVariables.OrganizationVariablesRequestBuilder WithUrl(string rawUrl) { - return new OrganizationVariablesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.OrganizationVariables.OrganizationVariablesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all organization variables shared with a repository.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. /// - public class OrganizationVariablesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class OrganizationVariablesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Actions/Permissions/Access/AccessRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Permissions/Access/AccessRequestBuilder.cs index fc714325..5beeea6d 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Permissions/Access/AccessRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Permissions/Access/AccessRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Permissions.Access { +namespace GitHub.Repos.Item.Item.Actions.Permissions.Access +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\permissions\access /// - public class AccessRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AccessRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AccessRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public AccessRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Gets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository.This endpoint only applies to internal and private repositories.For more information, see "[Allowing access to components in a private repository](https://docs.github.com/enterprise-cloud@latest//repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-a-private-repository)" and"[Allowing access to components in an internal repository](https://docs.github.com/enterprise-cloud@latest//repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-an-internal-repository)."OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ActionsWorkflowAccessToRepository.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsWorkflowAccessToRepository.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Sets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository.This endpoint only applies to internal and private repositories.For more information, see "[Allowing access to components in a private repository](https://docs.github.com/enterprise-cloud@latest//repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-a-private-repository)" and"[Allowing access to components in an internal repository](https://docs.github.com/enterprise-cloud@latest//repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-an-internal-repository)."OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -58,11 +60,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ActionsWorkflowAccessToRepository body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.ActionsWorkflowAccessToRepository body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(ActionsWorkflowAccessToRepository body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.ActionsWorkflowAccessToRepository body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -96,11 +98,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ActionsWorkflowAccessToRepository body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.ActionsWorkflowAccessToRepository body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(ActionsWorkflowAccessToRepository body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.ActionsWorkflowAccessToRepository body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -112,11 +114,11 @@ public RequestInformation ToPutRequestInformation(ActionsWorkflowAccessToReposit /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AccessRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Permissions.Access.AccessRequestBuilder WithUrl(string rawUrl) { - return new AccessRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Permissions.Access.AccessRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Permissions/PermissionsPutRequestBody.cs b/src/GitHub/Repos/Item/Item/Actions/Permissions/PermissionsPutRequestBody.cs index 2478a0a7..b1cdc2fc 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Permissions/PermissionsPutRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Permissions/PermissionsPutRequestBody.cs @@ -1,23 +1,25 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Permissions { +namespace GitHub.Repos.Item.Item.Actions.Permissions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PermissionsPutRequestBody : IAdditionalDataHolder, IParsable + public partial class PermissionsPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The permissions policy that controls the actions and reusable workflows that are allowed to run. - public GitHub.Models.AllowedActions? AllowedActions { get; set; } + public global::GitHub.Models.AllowedActions? AllowedActions { get; set; } /// Whether GitHub Actions is enabled on the repository. public bool? Enabled { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PermissionsPutRequestBody() { @@ -26,12 +28,12 @@ public PermissionsPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PermissionsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Permissions.PermissionsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PermissionsPutRequestBody(); + return new global::GitHub.Repos.Item.Item.Actions.Permissions.PermissionsPutRequestBody(); } /// /// The deserialization information for the current model @@ -41,8 +43,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allowed_actions", n => { AllowedActions = n.GetEnumValue(); } }, - {"enabled", n => { Enabled = n.GetBoolValue(); } }, + { "allowed_actions", n => { AllowedActions = n.GetEnumValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, }; } /// @@ -52,7 +54,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("allowed_actions", AllowedActions); + writer.WriteEnumValue("allowed_actions", AllowedActions); writer.WriteBoolValue("enabled", Enabled); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Actions/Permissions/PermissionsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Permissions/PermissionsRequestBuilder.cs index 5d7aec5b..83a60f7e 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Permissions/PermissionsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Permissions/PermissionsRequestBuilder.cs @@ -3,37 +3,39 @@ using GitHub.Repos.Item.Item.Actions.Permissions.Access; using GitHub.Repos.Item.Item.Actions.Permissions.SelectedActions; using GitHub.Repos.Item.Item.Actions.Permissions.Workflow; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Permissions { +namespace GitHub.Repos.Item.Item.Actions.Permissions +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\permissions /// - public class PermissionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PermissionsRequestBuilder : BaseRequestBuilder { /// The access property - public AccessRequestBuilder Access + public global::GitHub.Repos.Item.Item.Actions.Permissions.Access.AccessRequestBuilder Access { - get => new AccessRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Permissions.Access.AccessRequestBuilder(PathParameters, RequestAdapter); } /// The selectedActions property - public SelectedActionsRequestBuilder SelectedActions + public global::GitHub.Repos.Item.Item.Actions.Permissions.SelectedActions.SelectedActionsRequestBuilder SelectedActions { - get => new SelectedActionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Permissions.SelectedActions.SelectedActionsRequestBuilder(PathParameters, RequestAdapter); } /// The workflow property - public WorkflowRequestBuilder Workflow + public global::GitHub.Repos.Item.Item.Actions.Permissions.Workflow.WorkflowRequestBuilder Workflow { - get => new WorkflowRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Permissions.Workflow.WorkflowRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -41,7 +43,7 @@ public PermissionsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,20 +54,20 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Gets the GitHub Actions permissions policy for a repository, including whether GitHub Actions is enabled and the actions and reusable workflows allowed to run in the repository.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ActionsRepositoryPermissions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsRepositoryPermissions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Sets the GitHub Actions permissions policy for enabling GitHub Actions and allowed actions in the repository.If the repository belongs to an organization or enterprise that has set restrictive permissions at the organization or enterprise levels, such as `allowed_actions` to `selected` actions, then you cannot override them for the repository.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -76,11 +78,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(PermissionsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Actions.Permissions.PermissionsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(PermissionsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Actions.Permissions.PermissionsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -114,11 +116,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(PermissionsPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Actions.Permissions.PermissionsPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(PermissionsPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Actions.Permissions.PermissionsPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -130,11 +132,11 @@ public RequestInformation ToPutRequestInformation(PermissionsPutRequestBody body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PermissionsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) { - return new PermissionsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Permissions/SelectedActions/SelectedActionsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Permissions/SelectedActions/SelectedActionsRequestBuilder.cs index 96d3d059..d2639b1d 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Permissions/SelectedActions/SelectedActionsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Permissions/SelectedActions/SelectedActionsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Permissions.SelectedActions { +namespace GitHub.Repos.Item.Item.Actions.Permissions.SelectedActions +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\permissions\selected-actions /// - public class SelectedActionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SelectedActionsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public SelectedActionsRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public SelectedActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Gets the settings for selected actions and reusable workflows that are allowed in a repository. To use this endpoint, the repository policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for a repository](#set-github-actions-permissions-for-a-repository)."OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.SelectedActions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.SelectedActions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Sets the actions that are allowed in a repository. To use this endpoint, the repository permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for a repository](#set-github-actions-permissions-for-a-repository)."If the repository belongs to an organization or enterprise that has `selected` actions set at the organization or enterprise levels, then you cannot override any of the allowed actions settings and reusable workflows settings.To use the `patterns_allowed` setting for private repositories, the repository must belong to an enterprise. If the repository does not belong to an enterprise, then the `patterns_allowed` setting only applies to public repositories.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -58,11 +60,11 @@ public SelectedActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(GitHub.Models.SelectedActions body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.SelectedActions body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(GitHub.Models.SelectedActions body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.SelectedActions body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -96,11 +98,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(GitHub.Models.SelectedActions body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.SelectedActions body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(GitHub.Models.SelectedActions body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.SelectedActions body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -112,11 +114,11 @@ public RequestInformation ToPutRequestInformation(GitHub.Models.SelectedActions /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SelectedActionsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Permissions.SelectedActions.SelectedActionsRequestBuilder WithUrl(string rawUrl) { - return new SelectedActionsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Permissions.SelectedActions.SelectedActionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Permissions/Workflow/WorkflowRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Permissions/Workflow/WorkflowRequestBuilder.cs index 9aba123c..0f93eee1 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Permissions/Workflow/WorkflowRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Permissions/Workflow/WorkflowRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Permissions.Workflow { +namespace GitHub.Repos.Item.Item.Actions.Permissions.Workflow +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\permissions\workflow /// - public class WorkflowRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WorkflowRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WorkflowRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public WorkflowRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Gets the default workflow permissions granted to the `GITHUB_TOKEN` when running workflows in a repository,as well as if GitHub Actions can submit approving pull request reviews.For more information, see "[Setting the permissions of the GITHUB_TOKEN for your repository](https://docs.github.com/enterprise-cloud@latest//repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#setting-the-permissions-of-the-github_token-for-your-repository)."OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ActionsGetDefaultWorkflowPermissions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsGetDefaultWorkflowPermissions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Sets the default workflow permissions granted to the `GITHUB_TOKEN` when running workflows in a repository, and sets if GitHub Actionscan submit approving pull request reviews.For more information, see "[Setting the permissions of the GITHUB_TOKEN for your repository](https://docs.github.com/enterprise-cloud@latest//repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#setting-the-permissions-of-the-github_token-for-your-repository)."OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -58,11 +60,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ActionsSetDefaultWorkflowPermissions body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.ActionsSetDefaultWorkflowPermissions body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(ActionsSetDefaultWorkflowPermissions body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.ActionsSetDefaultWorkflowPermissions body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -96,11 +98,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ActionsSetDefaultWorkflowPermissions body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.ActionsSetDefaultWorkflowPermissions body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(ActionsSetDefaultWorkflowPermissions body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.ActionsSetDefaultWorkflowPermissions body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -112,11 +114,11 @@ public RequestInformation ToPutRequestInformation(ActionsSetDefaultWorkflowPermi /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WorkflowRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Permissions.Workflow.WorkflowRequestBuilder WithUrl(string rawUrl) { - return new WorkflowRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Permissions.Workflow.WorkflowRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runners/Downloads/DownloadsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runners/Downloads/DownloadsRequestBuilder.cs index 53c4fa14..53cbdaf2 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runners/Downloads/DownloadsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runners/Downloads/DownloadsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runners.Downloads { +namespace GitHub.Repos.Item.Item.Actions.Runners.Downloads +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runners\downloads /// - public class DownloadsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DownloadsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public DownloadsRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public DownloadsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Lists binaries for the runner application that you can download and run.Authenticated users must have admin access to the repository to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A List<RunnerApplication> + /// A List<global::GitHub.Models.RunnerApplication> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RunnerApplication.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.RunnerApplication.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists binaries for the runner application that you can download and run.Authenticated users must have admin access to the repository to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -72,11 +74,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DownloadsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runners.Downloads.DownloadsRequestBuilder WithUrl(string rawUrl) { - return new DownloadsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runners.Downloads.DownloadsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostRequestBody.cs index d0548d2e..07f9ee11 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Runners.GenerateJitconfig { +namespace GitHub.Repos.Item.Item.Actions.Runners.GenerateJitconfig +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GenerateJitconfigPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GenerateJitconfigPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -38,7 +40,7 @@ public class GenerateJitconfigPostRequestBody : IAdditionalDataHolder, IParsable public string WorkFolder { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GenerateJitconfigPostRequestBody() { @@ -48,12 +50,12 @@ public GenerateJitconfigPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GenerateJitconfigPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GenerateJitconfigPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostRequestBody(); } /// /// The deserialization information for the current model @@ -63,10 +65,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"runner_group_id", n => { RunnerGroupId = n.GetIntValue(); } }, - {"work_folder", n => { WorkFolder = n.GetStringValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "runner_group_id", n => { RunnerGroupId = n.GetIntValue(); } }, + { "work_folder", n => { WorkFolder = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostResponse.cs b/src/GitHub/Repos/Item/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostResponse.cs index af3168d8..f8c7859b 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostResponse.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigPostResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Runners.GenerateJitconfig { +namespace GitHub.Repos.Item.Item.Actions.Runners.GenerateJitconfig +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GenerateJitconfigPostResponse : IAdditionalDataHolder, IParsable + public partial class GenerateJitconfigPostResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -23,13 +25,13 @@ public class GenerateJitconfigPostResponse : IAdditionalDataHolder, IParsable /// A self hosted runner #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.Runner? Runner { get; set; } + public global::GitHub.Models.Runner? Runner { get; set; } #nullable restore #else - public GitHub.Models.Runner Runner { get; set; } + public global::GitHub.Models.Runner Runner { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GenerateJitconfigPostResponse() { @@ -38,12 +40,12 @@ public GenerateJitconfigPostResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GenerateJitconfigPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GenerateJitconfigPostResponse(); + return new global::GitHub.Repos.Item.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostResponse(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"encoded_jit_config", n => { EncodedJitConfig = n.GetStringValue(); } }, - {"runner", n => { Runner = n.GetObjectValue(GitHub.Models.Runner.CreateFromDiscriminatorValue); } }, + { "encoded_jit_config", n => { EncodedJitConfig = n.GetStringValue(); } }, + { "runner", n => { Runner = n.GetObjectValue(global::GitHub.Models.Runner.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,7 +67,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("encoded_jit_config", EncodedJitConfig); - writer.WriteObjectValue("runner", Runner); + writer.WriteObjectValue("runner", Runner); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigRequestBuilder.cs index e8b7c644..ba86d343 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runners/GenerateJitconfig/GenerateJitconfigRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runners.GenerateJitconfig { +namespace GitHub.Repos.Item.Item.Actions.Runners.GenerateJitconfig +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runners\generate-jitconfig /// - public class GenerateJitconfigRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GenerateJitconfigRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public GenerateJitconfigRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,29 +36,29 @@ public GenerateJitconfigRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Generates a configuration that can be passed to the runner application at startup.The authenticated user must have admin access to the repository.OAuth tokens and personal access tokens (classic) need the`repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(GenerateJitconfigPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(GenerateJitconfigPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GenerateJitconfigPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Generates a configuration that can be passed to the runner application at startup.The authenticated user must have admin access to the repository.OAuth tokens and personal access tokens (classic) need the`repo` scope to use this endpoint. @@ -66,11 +68,11 @@ public async Task PostAsync(GenerateJitconfigPost /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(GenerateJitconfigPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GenerateJitconfigPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -83,11 +85,11 @@ public RequestInformation ToPostRequestInformation(GenerateJitconfigPostRequestB /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public GenerateJitconfigRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigRequestBuilder WithUrl(string rawUrl) { - return new GenerateJitconfigRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/Item/WithNameDeleteResponse.cs b/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/Item/WithNameDeleteResponse.cs index 2bd1d860..18020c55 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/Item/WithNameDeleteResponse.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/Item/WithNameDeleteResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.Item { +namespace GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithNameDeleteResponse : IAdditionalDataHolder, IParsable + public partial class WithNameDeleteResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class WithNameDeleteResponse : IAdditionalDataHolder, IParsable /// The labels property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Labels { get; set; } + public List? Labels { get; set; } #nullable restore #else - public List Labels { get; set; } + public List Labels { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithNameDeleteResponse() { @@ -32,12 +34,12 @@ public WithNameDeleteResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithNameDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.Item.WithNameDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithNameDeleteResponse(); + return new global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.Item.WithNameDeleteResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfObjectValues(RunnerLabel.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfObjectValues(global::GitHub.Models.RunnerLabel.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("labels", Labels); + writer.WriteCollectionOfObjectValues("labels", Labels); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/Item/WithNameItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/Item/WithNameItemRequestBuilder.cs index 1c1bef2a..cb32adbe 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/Item/WithNameItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/Item/WithNameItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.Item { +namespace GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runners\{runner_id}\labels\{name} /// - public class WithNameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithNameItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithNameItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public WithNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Remove a custom label from a self-hosted runner configuredin a repository. Returns the remaining labels from the runner.This endpoint returns a `404 Not Found` status if the custom label is notpresent on the runner.Authenticated users must have admin access to the repository to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, WithNameDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.Item.WithNameDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Remove a custom label from a self-hosted runner configuredin a repository. Returns the remaining labels from the runner.This endpoint returns a `404 Not Found` status if the custom label is notpresent on the runner.Authenticated users must have admin access to the repository to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -78,11 +80,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithNameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.Item.WithNameItemRequestBuilder WithUrl(string rawUrl) { - return new WithNameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.Item.WithNameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsDeleteResponse.cs b/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsDeleteResponse.cs index f1636724..297fa323 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsDeleteResponse.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsDeleteResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Runners.Item.Labels { +namespace GitHub.Repos.Item.Item.Actions.Runners.Item.Labels +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class LabelsDeleteResponse : IAdditionalDataHolder, IParsable + public partial class LabelsDeleteResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class LabelsDeleteResponse : IAdditionalDataHolder, IParsable /// The labels property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Labels { get; set; } + public List? Labels { get; set; } #nullable restore #else - public List Labels { get; set; } + public List Labels { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LabelsDeleteResponse() { @@ -32,12 +34,12 @@ public LabelsDeleteResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LabelsDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsDeleteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LabelsDeleteResponse(); + return new global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsDeleteResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfObjectValues(RunnerLabel.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfObjectValues(global::GitHub.Models.RunnerLabel.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("labels", Labels); + writer.WriteCollectionOfObjectValues("labels", Labels); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsGetResponse.cs b/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsGetResponse.cs index 9d800b17..2a6f6cc8 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Runners.Item.Labels { +namespace GitHub.Repos.Item.Item.Actions.Runners.Item.Labels +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class LabelsGetResponse : IAdditionalDataHolder, IParsable + public partial class LabelsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class LabelsGetResponse : IAdditionalDataHolder, IParsable /// The labels property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Labels { get; set; } + public List? Labels { get; set; } #nullable restore #else - public List Labels { get; set; } + public List Labels { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LabelsGetResponse() { @@ -32,12 +34,12 @@ public LabelsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LabelsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LabelsGetResponse(); + return new global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfObjectValues(RunnerLabel.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfObjectValues(global::GitHub.Models.RunnerLabel.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("labels", Labels); + writer.WriteCollectionOfObjectValues("labels", Labels); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsPostRequestBody.cs index becda010..d24a1d87 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Runners.Item.Labels { +namespace GitHub.Repos.Item.Item.Actions.Runners.Item.Labels +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class LabelsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class LabelsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class LabelsPostRequestBody : IAdditionalDataHolder, IParsable public List Labels { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LabelsPostRequestBody() { @@ -29,12 +31,12 @@ public LabelsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LabelsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LabelsPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsPostRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsPostResponse.cs b/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsPostResponse.cs index 5a12beb5..b046ab22 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsPostResponse.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsPostResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Runners.Item.Labels { +namespace GitHub.Repos.Item.Item.Actions.Runners.Item.Labels +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class LabelsPostResponse : IAdditionalDataHolder, IParsable + public partial class LabelsPostResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class LabelsPostResponse : IAdditionalDataHolder, IParsable /// The labels property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Labels { get; set; } + public List? Labels { get; set; } #nullable restore #else - public List Labels { get; set; } + public List Labels { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LabelsPostResponse() { @@ -32,12 +34,12 @@ public LabelsPostResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LabelsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LabelsPostResponse(); + return new global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsPostResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfObjectValues(RunnerLabel.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfObjectValues(global::GitHub.Models.RunnerLabel.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("labels", Labels); + writer.WriteCollectionOfObjectValues("labels", Labels); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsPutRequestBody.cs b/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsPutRequestBody.cs index e656c833..8265582d 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsPutRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsPutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Runners.Item.Labels { +namespace GitHub.Repos.Item.Item.Actions.Runners.Item.Labels +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class LabelsPutRequestBody : IAdditionalDataHolder, IParsable + public partial class LabelsPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class LabelsPutRequestBody : IAdditionalDataHolder, IParsable public List Labels { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LabelsPutRequestBody() { @@ -29,12 +31,12 @@ public LabelsPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LabelsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LabelsPutRequestBody(); + return new global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsPutRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsPutResponse.cs b/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsPutResponse.cs index cfd14428..2c3f1e30 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsPutResponse.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsPutResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Runners.Item.Labels { +namespace GitHub.Repos.Item.Item.Actions.Runners.Item.Labels +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class LabelsPutResponse : IAdditionalDataHolder, IParsable + public partial class LabelsPutResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class LabelsPutResponse : IAdditionalDataHolder, IParsable /// The labels property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Labels { get; set; } + public List? Labels { get; set; } #nullable restore #else - public List Labels { get; set; } + public List Labels { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LabelsPutResponse() { @@ -32,12 +34,12 @@ public LabelsPutResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LabelsPutResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsPutResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LabelsPutResponse(); + return new global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsPutResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"labels", n => { Labels = n.GetCollectionOfObjectValues(RunnerLabel.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfObjectValues(global::GitHub.Models.RunnerLabel.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("labels", Labels); + writer.WriteCollectionOfObjectValues("labels", Labels); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsRequestBuilder.cs index 5b5fe39a..4f8d5ccd 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runners/Item/Labels/LabelsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runners.Item.Labels { +namespace GitHub.Repos.Item.Item.Actions.Runners.Item.Labels +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runners\{runner_id}\labels /// - public class LabelsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class LabelsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.actions.runners.item.labels.item collection /// The name of a self-hosted runner's custom label. - /// A - public WithNameItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.Item.WithNameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("name", position); - return new WithNameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.Item.WithNameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public LabelsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,105 +49,105 @@ public LabelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Remove all custom labels from a self-hosted runner configured in arepository. Returns the remaining read-only labels from the runner.Authenticated users must have admin access to the repository to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, LabelsDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists all labels for a self-hosted runner configured in a repository.Authenticated users must have admin access to the repository to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, LabelsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Adds custom labels to a self-hosted runner configured in a repository.Authenticated users must have admin access to the organization to use this endpoint.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(LabelsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(LabelsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, LabelsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Remove all previous custom labels and set the new custom labels for a specificself-hosted runner configured in a repository.Authenticated users must have admin access to the repository to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(LabelsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(LabelsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, LabelsPutResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsPutResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Remove all custom labels from a self-hosted runner configured in arepository. Returns the remaining read-only labels from the runner.Authenticated users must have admin access to the repository to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -193,11 +195,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(LabelsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(LabelsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -215,11 +217,11 @@ public RequestInformation ToPostRequestInformation(LabelsPostRequestBody body, A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(LabelsPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(LabelsPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -232,11 +234,11 @@ public RequestInformation ToPutRequestInformation(LabelsPutRequestBody body, Act /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public LabelsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsRequestBuilder WithUrl(string rawUrl) { - return new LabelsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runners/Item/WithRunner_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runners/Item/WithRunner_ItemRequestBuilder.cs index 9d76ae4c..cba4728b 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runners/Item/WithRunner_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runners/Item/WithRunner_ItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Actions.Runners.Item.Labels; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runners.Item { +namespace GitHub.Repos.Item.Item.Actions.Runners.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runners\{runner_id} /// - public class WithRunner_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRunner_ItemRequestBuilder : BaseRequestBuilder { /// The labels property - public LabelsRequestBuilder Labels + public global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsRequestBuilder Labels { - get => new LabelsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runners.Item.Labels.LabelsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithRunner_ItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -58,20 +60,20 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, Runner.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Runner.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Forces the removal of a self-hosted runner from a repository. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.Authenticated users must have admin access to the repository to use this endpoint.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -113,11 +115,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRunner_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runners.Item.WithRunner_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithRunner_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runners.Item.WithRunner_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runners/RegistrationToken/RegistrationTokenRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runners/RegistrationToken/RegistrationTokenRequestBuilder.cs index 27292b96..a2e9f68f 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runners/RegistrationToken/RegistrationTokenRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runners/RegistrationToken/RegistrationTokenRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runners.RegistrationToken { +namespace GitHub.Repos.Item.Item.Actions.Runners.RegistrationToken +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runners\registration-token /// - public class RegistrationTokenRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RegistrationTokenRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RegistrationTokenRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public RegistrationTokenRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Returns a token that you can pass to the `config` script. The token expires after one hour.For example, you can replace `TOKEN` in the following example with the registration token provided by this endpoint to configure your self-hosted runner:```./config.sh --url https://github.com/octo-org --token TOKEN```Authenticated users must have admin access to the repository to use this endpoint.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, AuthenticationToken.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.AuthenticationToken.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Returns a token that you can pass to the `config` script. The token expires after one hour.For example, you can replace `TOKEN` in the following example with the registration token provided by this endpoint to configure your self-hosted runner:```./config.sh --url https://github.com/octo-org --token TOKEN```Authenticated users must have admin access to the repository to use this endpoint.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -71,11 +73,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RegistrationTokenRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runners.RegistrationToken.RegistrationTokenRequestBuilder WithUrl(string rawUrl) { - return new RegistrationTokenRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runners.RegistrationToken.RegistrationTokenRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runners/RemoveToken/RemoveTokenRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runners/RemoveToken/RemoveTokenRequestBuilder.cs index 15f392c2..48283fff 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runners/RemoveToken/RemoveTokenRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runners/RemoveToken/RemoveTokenRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runners.RemoveToken { +namespace GitHub.Repos.Item.Item.Actions.Runners.RemoveToken +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runners\remove-token /// - public class RemoveTokenRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RemoveTokenRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RemoveTokenRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public RemoveTokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Returns a token that you can pass to the `config` script to remove a self-hosted runner from an repository. The token expires after one hour.For example, you can replace `TOKEN` in the following example with the registration token provided by this endpoint to remove your self-hosted runner from an organization:```./config.sh remove --token TOKEN```Authenticated users must have admin access to the repository to use this endpoint.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, AuthenticationToken.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.AuthenticationToken.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Returns a token that you can pass to the `config` script to remove a self-hosted runner from an repository. The token expires after one hour.For example, you can replace `TOKEN` in the following example with the registration token provided by this endpoint to remove your self-hosted runner from an organization:```./config.sh remove --token TOKEN```Authenticated users must have admin access to the repository to use this endpoint.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -71,11 +73,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RemoveTokenRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runners.RemoveToken.RemoveTokenRequestBuilder WithUrl(string rawUrl) { - return new RemoveTokenRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runners.RemoveToken.RemoveTokenRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runners/RunnersGetResponse.cs b/src/GitHub/Repos/Item/Item/Actions/Runners/RunnersGetResponse.cs index a2e49753..8c78aa98 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runners/RunnersGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runners/RunnersGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Runners { +namespace GitHub.Repos.Item.Item.Actions.Runners +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RunnersGetResponse : IAdditionalDataHolder, IParsable + public partial class RunnersGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class RunnersGetResponse : IAdditionalDataHolder, IParsable /// The runners property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Runners { get; set; } + public List? Runners { get; set; } #nullable restore #else - public List Runners { get; set; } + public List Runners { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RunnersGetResponse() { @@ -32,12 +34,12 @@ public RunnersGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RunnersGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Runners.RunnersGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RunnersGetResponse(); + return new global::GitHub.Repos.Item.Item.Actions.Runners.RunnersGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"runners", n => { Runners = n.GetCollectionOfObjectValues(Runner.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "runners", n => { Runners = n.GetCollectionOfObjectValues(global::GitHub.Models.Runner.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("runners", Runners); + writer.WriteCollectionOfObjectValues("runners", Runners); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runners/RunnersRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runners/RunnersRequestBuilder.cs index 61a159a5..95c6b278 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runners/RunnersRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runners/RunnersRequestBuilder.cs @@ -4,54 +4,56 @@ using GitHub.Repos.Item.Item.Actions.Runners.Item; using GitHub.Repos.Item.Item.Actions.Runners.RegistrationToken; using GitHub.Repos.Item.Item.Actions.Runners.RemoveToken; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runners { +namespace GitHub.Repos.Item.Item.Actions.Runners +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runners /// - public class RunnersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RunnersRequestBuilder : BaseRequestBuilder { /// The downloads property - public DownloadsRequestBuilder Downloads + public global::GitHub.Repos.Item.Item.Actions.Runners.Downloads.DownloadsRequestBuilder Downloads { - get => new DownloadsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runners.Downloads.DownloadsRequestBuilder(PathParameters, RequestAdapter); } /// The generateJitconfig property - public GenerateJitconfigRequestBuilder GenerateJitconfig + public global::GitHub.Repos.Item.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigRequestBuilder GenerateJitconfig { - get => new GenerateJitconfigRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runners.GenerateJitconfig.GenerateJitconfigRequestBuilder(PathParameters, RequestAdapter); } /// The registrationToken property - public RegistrationTokenRequestBuilder RegistrationToken + public global::GitHub.Repos.Item.Item.Actions.Runners.RegistrationToken.RegistrationTokenRequestBuilder RegistrationToken { - get => new RegistrationTokenRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runners.RegistrationToken.RegistrationTokenRequestBuilder(PathParameters, RequestAdapter); } /// The removeToken property - public RemoveTokenRequestBuilder RemoveToken + public global::GitHub.Repos.Item.Item.Actions.Runners.RemoveToken.RemoveTokenRequestBuilder RemoveToken { - get => new RemoveTokenRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runners.RemoveToken.RemoveTokenRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.repos.item.item.actions.runners.item collection /// Unique identifier of the self-hosted runner. - /// A - public WithRunner_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Actions.Runners.Item.WithRunner_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("runner_id", position); - return new WithRunner_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runners.Item.WithRunner_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -59,7 +61,7 @@ public RunnersRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -70,20 +72,20 @@ public RunnersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Lists all self-hosted runners configured in a repository.Authenticated users must have admin access to the repository to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RunnersGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Actions.Runners.RunnersGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists all self-hosted runners configured in a repository.Authenticated users must have admin access to the repository to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -92,11 +94,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -107,16 +109,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RunnersRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runners.RunnersRequestBuilder WithUrl(string rawUrl) { - return new RunnersRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runners.RunnersRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all self-hosted runners configured in a repository.Authenticated users must have admin access to the repository to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// - public class RunnersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RunnersRequestBuilderGetQueryParameters { /// The name of a self-hosted runner. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/GetStatusQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/GetStatusQueryParameterType.cs index 06e888a6..388df098 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/GetStatusQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/GetStatusQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs { +namespace GitHub.Repos.Item.Item.Actions.Runs +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetStatusQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Approvals/ApprovalsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Approvals/ApprovalsRequestBuilder.cs index 1d33598e..1043252c 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Approvals/ApprovalsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Approvals/ApprovalsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Approvals { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Approvals +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\approvals /// - public class ApprovalsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ApprovalsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ApprovalsRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public ApprovalsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// API method documentation /// - /// A List<EnvironmentApprovals> + /// A List<global::GitHub.Models.EnvironmentApprovals> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, EnvironmentApprovals.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.EnvironmentApprovals.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. @@ -72,11 +74,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ApprovalsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Approvals.ApprovalsRequestBuilder WithUrl(string rawUrl) { - return new ApprovalsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Approvals.ApprovalsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Approve/ApproveRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Approve/ApproveRequestBuilder.cs index 022fad7b..28c831d8 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Approve/ApproveRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Approve/ApproveRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Approve { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Approve +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\approve /// - public class ApproveRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ApproveRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ApproveRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public ApproveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Approves a workflow run for a pull request from a public fork of a first time contributor. For more information, see ["Approving workflow runs from public forks](https://docs.github.com/enterprise-cloud@latest//actions/managing-workflow-runs/approving-workflow-runs-from-public-forks)."OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, EmptyObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EmptyObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Approves a workflow run for a pull request from a public fork of a first time contributor. For more information, see ["Approving workflow runs from public forks](https://docs.github.com/enterprise-cloud@latest//actions/managing-workflow-runs/approving-workflow-runs-from-public-forks)."OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -78,11 +80,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ApproveRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Approve.ApproveRequestBuilder WithUrl(string rawUrl) { - return new ApproveRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Approve.ApproveRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Artifacts/ArtifactsGetResponse.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Artifacts/ArtifactsGetResponse.cs index 44ec18e4..a77dfb0c 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Artifacts/ArtifactsGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Artifacts/ArtifactsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Artifacts { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Artifacts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ArtifactsGetResponse : IAdditionalDataHolder, IParsable + public partial class ArtifactsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class ArtifactsGetResponse : IAdditionalDataHolder, IParsable /// The artifacts property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Artifacts { get; set; } + public List? Artifacts { get; set; } #nullable restore #else - public List Artifacts { get; set; } + public List Artifacts { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ArtifactsGetResponse() { @@ -32,12 +34,12 @@ public ArtifactsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ArtifactsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Runs.Item.Artifacts.ArtifactsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ArtifactsGetResponse(); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Artifacts.ArtifactsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"artifacts", n => { Artifacts = n.GetCollectionOfObjectValues(Artifact.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "artifacts", n => { Artifacts = n.GetCollectionOfObjectValues(global::GitHub.Models.Artifact.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("artifacts", Artifacts); + writer.WriteCollectionOfObjectValues("artifacts", Artifacts); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Artifacts/ArtifactsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Artifacts/ArtifactsRequestBuilder.cs index 3a157bee..ab99fe1e 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Artifacts/ArtifactsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Artifacts/ArtifactsRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Artifacts { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Artifacts +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\artifacts /// - public class ArtifactsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ArtifactsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public ArtifactsRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,20 +35,20 @@ public ArtifactsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Lists artifacts for a workflow run.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ArtifactsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Actions.Runs.Item.Artifacts.ArtifactsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists artifacts for a workflow run.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. @@ -55,11 +57,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -70,16 +72,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ArtifactsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Artifacts.ArtifactsRequestBuilder WithUrl(string rawUrl) { - return new ArtifactsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Artifacts.ArtifactsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists artifacts for a workflow run.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// - public class ArtifactsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ArtifactsRequestBuilderGetQueryParameters { /// The name field of an artifact. When specified, only artifacts with this name will be returned. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Attempts/AttemptsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Attempts/AttemptsRequestBuilder.cs index 89e38c5f..b21d92be 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Attempts/AttemptsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Attempts/AttemptsRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\attempts /// - public class AttemptsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AttemptsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.actions.runs.item.attempts.item collection /// The attempt number of the workflow run. - /// A - public WithAttempt_numberItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.WithAttempt_numberItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("attempt_number", position); - return new WithAttempt_numberItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.WithAttempt_numberItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public AttemptsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Attempts/Item/Jobs/JobsGetResponse.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Attempts/Item/Jobs/JobsGetResponse.cs index 90cb7e78..40c2c918 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Attempts/Item/Jobs/JobsGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Attempts/Item/Jobs/JobsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.Jobs { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.Jobs +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class JobsGetResponse : IAdditionalDataHolder, IParsable + public partial class JobsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class JobsGetResponse : IAdditionalDataHolder, IParsable /// The jobs property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Jobs { get; set; } + public List? Jobs { get; set; } #nullable restore #else - public List Jobs { get; set; } + public List Jobs { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public JobsGetResponse() { @@ -32,12 +34,12 @@ public JobsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static JobsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.Jobs.JobsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new JobsGetResponse(); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.Jobs.JobsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"jobs", n => { Jobs = n.GetCollectionOfObjectValues(Job.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "jobs", n => { Jobs = n.GetCollectionOfObjectValues(global::GitHub.Models.Job.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("jobs", Jobs); + writer.WriteCollectionOfObjectValues("jobs", Jobs); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Attempts/Item/Jobs/JobsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Attempts/Item/Jobs/JobsRequestBuilder.cs index ac1573f2..0f65039c 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Attempts/Item/Jobs/JobsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Attempts/Item/Jobs/JobsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.Jobs { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.Jobs +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\attempts\{attempt_number}\jobs /// - public class JobsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class JobsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public JobsRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,25 +36,25 @@ public JobsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// Lists jobs for a specific workflow run attempt. You can use parameters to narrow the list of results. For more informationabout using parameters, see [Parameters](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, JobsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.Jobs.JobsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists jobs for a specific workflow run attempt. You can use parameters to narrow the list of results. For more informationabout using parameters, see [Parameters](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. @@ -61,11 +63,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -76,16 +78,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public JobsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.Jobs.JobsRequestBuilder WithUrl(string rawUrl) { - return new JobsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.Jobs.JobsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists jobs for a specific workflow run attempt. You can use parameters to narrow the list of results. For more informationabout using parameters, see [Parameters](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// - public class JobsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class JobsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Attempts/Item/Logs/LogsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Attempts/Item/Logs/LogsRequestBuilder.cs index ab66bc88..0bb34de6 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Attempts/Item/Logs/LogsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Attempts/Item/Logs/LogsRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.Logs { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.Logs +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\attempts\{attempt_number}\logs /// - public class LogsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class LogsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public LogsRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -68,11 +70,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public LogsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.Logs.LogsRequestBuilder WithUrl(string rawUrl) { - return new LogsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.Logs.LogsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Attempts/Item/WithAttempt_numberItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Attempts/Item/WithAttempt_numberItemRequestBuilder.cs index f53e74e8..bde99a31 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Attempts/Item/WithAttempt_numberItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Attempts/Item/WithAttempt_numberItemRequestBuilder.cs @@ -2,32 +2,34 @@ using GitHub.Models; using GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.Jobs; using GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.Logs; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\attempts\{attempt_number} /// - public class WithAttempt_numberItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithAttempt_numberItemRequestBuilder : BaseRequestBuilder { /// The jobs property - public JobsRequestBuilder Jobs + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.Jobs.JobsRequestBuilder Jobs { - get => new JobsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.Jobs.JobsRequestBuilder(PathParameters, RequestAdapter); } /// The logs property - public LogsRequestBuilder Logs + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.Logs.LogsRequestBuilder Logs { - get => new LogsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.Logs.LogsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public WithAttempt_numberItemRequestBuilder(Dictionary pathParam { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,20 +48,20 @@ public WithAttempt_numberItemRequestBuilder(string rawUrl, IRequestAdapter reque /// Gets a specific workflow run attempt.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, WorkflowRun.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.WorkflowRun.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets a specific workflow run attempt.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. @@ -68,11 +70,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -83,16 +85,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithAttempt_numberItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.WithAttempt_numberItemRequestBuilder WithUrl(string rawUrl) { - return new WithAttempt_numberItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.Item.WithAttempt_numberItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Gets a specific workflow run attempt.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// - public class WithAttempt_numberItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithAttempt_numberItemRequestBuilderGetQueryParameters { /// If `true` pull requests are omitted from the response (empty array). [QueryParameter("exclude_pull_requests")] diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Cancel/CancelRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Cancel/CancelRequestBuilder.cs index c37b7c06..6314ffb3 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Cancel/CancelRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Cancel/CancelRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Cancel { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Cancel +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\cancel /// - public class CancelRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CancelRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,25 +36,25 @@ public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Cancels a workflow run using its `id`.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 409 status code + /// When receiving a 409 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"409", BasicError.CreateFromDiscriminatorValue}, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, EmptyObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EmptyObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Cancels a workflow run using its `id`.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -76,11 +78,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CancelRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Cancel.CancelRequestBuilder WithUrl(string rawUrl) { - return new CancelRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Cancel.CancelRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Deployment_protection_rule/Deployment_protection_ruleRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Deployment_protection_rule/Deployment_protection_ruleRequestBuilder.cs index 7231ce22..793c23c1 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Deployment_protection_rule/Deployment_protection_ruleRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Deployment_protection_rule/Deployment_protection_ruleRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Deployment_protection_rule { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Deployment_protection_rule +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\deployment_protection_rule /// - public class Deployment_protection_ruleRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Deployment_protection_ruleRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Deployment_protection_ruleRequestBuilder(Dictionary pathP { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -39,11 +41,11 @@ public Deployment_protection_ruleRequestBuilder(string rawUrl, IRequestAdapter r /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Deployment_protection_rulePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Actions.Runs.Item.Deployment_protection_rule.Deployment_protection_ruleRequestBuilder.Deployment_protection_rulePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Deployment_protection_rulePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Actions.Runs.Item.Deployment_protection_rule.Deployment_protection_ruleRequestBuilder.Deployment_protection_rulePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -58,11 +60,11 @@ public async Task PostAsync(Deployment_protection_rulePostRequestBody body, Acti /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Deployment_protection_rulePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Actions.Runs.Item.Deployment_protection_rule.Deployment_protection_ruleRequestBuilder.Deployment_protection_rulePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Deployment_protection_rulePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Actions.Runs.Item.Deployment_protection_rule.Deployment_protection_ruleRequestBuilder.Deployment_protection_rulePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -74,62 +76,63 @@ public RequestInformation ToPostRequestInformation(Deployment_protection_rulePos /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Deployment_protection_ruleRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Deployment_protection_rule.Deployment_protection_ruleRequestBuilder WithUrl(string rawUrl) { - return new Deployment_protection_ruleRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Deployment_protection_rule.Deployment_protection_ruleRequestBuilder(rawUrl, RequestAdapter); } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class Deployment_protection_rulePostRequestBody : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Deployment_protection_rulePostRequestBody : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.ReviewCustomGatesCommentRequired? DeploymentProtectionRulePostRequestBodyReviewCustomGatesCommentRequired { get; set; } + public global::GitHub.Models.ReviewCustomGatesCommentRequired? DeploymentProtectionRulePostRequestBodyReviewCustomGatesCommentRequired { get; set; } #nullable restore #else - public GitHub.Models.ReviewCustomGatesCommentRequired DeploymentProtectionRulePostRequestBodyReviewCustomGatesCommentRequired { get; set; } + public global::GitHub.Models.ReviewCustomGatesCommentRequired DeploymentProtectionRulePostRequestBodyReviewCustomGatesCommentRequired { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.ReviewCustomGatesStateRequired? DeploymentProtectionRulePostRequestBodyReviewCustomGatesStateRequired { get; set; } + public global::GitHub.Models.ReviewCustomGatesStateRequired? DeploymentProtectionRulePostRequestBodyReviewCustomGatesStateRequired { get; set; } #nullable restore #else - public GitHub.Models.ReviewCustomGatesStateRequired DeploymentProtectionRulePostRequestBodyReviewCustomGatesStateRequired { get; set; } + public global::GitHub.Models.ReviewCustomGatesStateRequired DeploymentProtectionRulePostRequestBodyReviewCustomGatesStateRequired { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.ReviewCustomGatesCommentRequired? ReviewCustomGatesCommentRequired { get; set; } + public global::GitHub.Models.ReviewCustomGatesCommentRequired? ReviewCustomGatesCommentRequired { get; set; } #nullable restore #else - public GitHub.Models.ReviewCustomGatesCommentRequired ReviewCustomGatesCommentRequired { get; set; } + public global::GitHub.Models.ReviewCustomGatesCommentRequired ReviewCustomGatesCommentRequired { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.ReviewCustomGatesStateRequired? ReviewCustomGatesStateRequired { get; set; } + public global::GitHub.Models.ReviewCustomGatesStateRequired? ReviewCustomGatesStateRequired { get; set; } #nullable restore #else - public GitHub.Models.ReviewCustomGatesStateRequired ReviewCustomGatesStateRequired { get; set; } + public global::GitHub.Models.ReviewCustomGatesStateRequired ReviewCustomGatesStateRequired { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Deployment_protection_rulePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Runs.Item.Deployment_protection_rule.Deployment_protection_ruleRequestBuilder.Deployment_protection_rulePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - var result = new Deployment_protection_rulePostRequestBody(); - result.DeploymentProtectionRulePostRequestBodyReviewCustomGatesCommentRequired = new GitHub.Models.ReviewCustomGatesCommentRequired(); - result.DeploymentProtectionRulePostRequestBodyReviewCustomGatesStateRequired = new GitHub.Models.ReviewCustomGatesStateRequired(); - result.ReviewCustomGatesCommentRequired = new GitHub.Models.ReviewCustomGatesCommentRequired(); - result.ReviewCustomGatesStateRequired = new GitHub.Models.ReviewCustomGatesStateRequired(); + var result = new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Deployment_protection_rule.Deployment_protection_ruleRequestBuilder.Deployment_protection_rulePostRequestBody(); + result.DeploymentProtectionRulePostRequestBodyReviewCustomGatesCommentRequired = new global::GitHub.Models.ReviewCustomGatesCommentRequired(); + result.DeploymentProtectionRulePostRequestBodyReviewCustomGatesStateRequired = new global::GitHub.Models.ReviewCustomGatesStateRequired(); + result.ReviewCustomGatesCommentRequired = new global::GitHub.Models.ReviewCustomGatesCommentRequired(); + result.ReviewCustomGatesStateRequired = new global::GitHub.Models.ReviewCustomGatesStateRequired(); return result; } /// @@ -151,7 +154,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue(null, DeploymentProtectionRulePostRequestBodyReviewCustomGatesCommentRequired, DeploymentProtectionRulePostRequestBodyReviewCustomGatesStateRequired, ReviewCustomGatesCommentRequired, ReviewCustomGatesStateRequired); + writer.WriteObjectValue(null, DeploymentProtectionRulePostRequestBodyReviewCustomGatesCommentRequired, DeploymentProtectionRulePostRequestBodyReviewCustomGatesStateRequired, ReviewCustomGatesCommentRequired, ReviewCustomGatesStateRequired); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/ForceCancel/ForceCancelRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/ForceCancel/ForceCancelRequestBuilder.cs index 6606835b..9d9e7d31 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/ForceCancel/ForceCancelRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/ForceCancel/ForceCancelRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.ForceCancel { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.ForceCancel +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\force-cancel /// - public class ForceCancelRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ForceCancelRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ForceCancelRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,25 +36,25 @@ public ForceCancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Cancels a workflow run and bypasses conditions that would otherwise cause a workflow execution to continue, such as an `always()` condition on a job.You should only use this endpoint to cancel a workflow run when the workflow run is not responding to [`POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel`](/rest/actions/workflow-runs#cancel-a-workflow-run).OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 409 status code + /// When receiving a 409 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"409", BasicError.CreateFromDiscriminatorValue}, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, EmptyObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EmptyObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Cancels a workflow run and bypasses conditions that would otherwise cause a workflow execution to continue, such as an `always()` condition on a job.You should only use this endpoint to cancel a workflow run when the workflow run is not responding to [`POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel`](/rest/actions/workflow-runs#cancel-a-workflow-run).OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -76,11 +78,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ForceCancelRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.ForceCancel.ForceCancelRequestBuilder WithUrl(string rawUrl) { - return new ForceCancelRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.ForceCancel.ForceCancelRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Jobs/GetFilterQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Jobs/GetFilterQueryParameterType.cs index f9e25c47..c75c588a 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Jobs/GetFilterQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Jobs/GetFilterQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Jobs { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Jobs +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetFilterQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Jobs/JobsGetResponse.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Jobs/JobsGetResponse.cs index 04913b27..50dc3633 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Jobs/JobsGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Jobs/JobsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Jobs { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Jobs +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class JobsGetResponse : IAdditionalDataHolder, IParsable + public partial class JobsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class JobsGetResponse : IAdditionalDataHolder, IParsable /// The jobs property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Jobs { get; set; } + public List? Jobs { get; set; } #nullable restore #else - public List Jobs { get; set; } + public List Jobs { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public JobsGetResponse() { @@ -32,12 +34,12 @@ public JobsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static JobsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Runs.Item.Jobs.JobsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new JobsGetResponse(); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Jobs.JobsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"jobs", n => { Jobs = n.GetCollectionOfObjectValues(Job.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "jobs", n => { Jobs = n.GetCollectionOfObjectValues(global::GitHub.Models.Job.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("jobs", Jobs); + writer.WriteCollectionOfObjectValues("jobs", Jobs); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Jobs/JobsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Jobs/JobsRequestBuilder.cs index 02c00d47..16d26320 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Jobs/JobsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Jobs/JobsRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Jobs { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Jobs +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\jobs /// - public class JobsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class JobsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public JobsRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,20 +35,20 @@ public JobsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// Lists jobs for a workflow run. You can use parameters to narrow the list of results. For more informationabout using parameters, see [Parameters](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, JobsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Actions.Runs.Item.Jobs.JobsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists jobs for a workflow run. You can use parameters to narrow the list of results. For more informationabout using parameters, see [Parameters](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. @@ -55,11 +57,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -70,20 +72,21 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public JobsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Jobs.JobsRequestBuilder WithUrl(string rawUrl) { - return new JobsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Jobs.JobsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists jobs for a workflow run. You can use parameters to narrow the list of results. For more informationabout using parameters, see [Parameters](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// - public class JobsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class JobsRequestBuilderGetQueryParameters { /// Filters jobs by their `completed_at` timestamp. `latest` returns jobs from the most recent execution of the workflow run. `all` returns all jobs for a workflow run, including from old executions of the workflow run. [QueryParameter("filter")] - public GetFilterQueryParameterType? Filter { get; set; } + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Jobs.GetFilterQueryParameterType? Filter { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Logs/LogsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Logs/LogsRequestBuilder.cs index 509ebe6b..e515c482 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Logs/LogsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Logs/LogsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Logs { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Logs +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\logs /// - public class LogsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class LogsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public LogsRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,8 +38,8 @@ public LogsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 500 status code + /// When receiving a 403 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -50,8 +52,8 @@ public async Task DeleteAsync(Action> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -113,11 +115,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public LogsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Logs.LogsRequestBuilder WithUrl(string rawUrl) { - return new LogsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Logs.LogsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Pending_deployments/Pending_deploymentsPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Pending_deployments/Pending_deploymentsPostRequestBody.cs index 1a46204a..6e4604f5 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Pending_deployments/Pending_deploymentsPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Pending_deployments/Pending_deploymentsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Pending_deployments { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Pending_deployments +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Pending_deploymentsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Pending_deploymentsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,9 +30,9 @@ public class Pending_deploymentsPostRequestBody : IAdditionalDataHolder, IParsab public List EnvironmentIds { get; set; } #endif /// Whether to approve or reject deployment to the specified environments. - public Pending_deploymentsPostRequestBody_state? State { get; set; } + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Pending_deployments.Pending_deploymentsPostRequestBody_state? State { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Pending_deploymentsPostRequestBody() { @@ -39,12 +41,12 @@ public Pending_deploymentsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Pending_deploymentsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Runs.Item.Pending_deployments.Pending_deploymentsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Pending_deploymentsPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Pending_deployments.Pending_deploymentsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"comment", n => { Comment = n.GetStringValue(); } }, - {"environment_ids", n => { EnvironmentIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"state", n => { State = n.GetEnumValue(); } }, + { "comment", n => { Comment = n.GetStringValue(); } }, + { "environment_ids", n => { EnvironmentIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "state", n => { State = n.GetEnumValue(); } }, }; } /// @@ -68,7 +70,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("comment", Comment); writer.WriteCollectionOfPrimitiveValues("environment_ids", EnvironmentIds); - writer.WriteEnumValue("state", State); + writer.WriteEnumValue("state", State); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Pending_deployments/Pending_deploymentsPostRequestBody_state.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Pending_deployments/Pending_deploymentsPostRequestBody_state.cs index d8c40cc7..13c7744c 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Pending_deployments/Pending_deploymentsPostRequestBody_state.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Pending_deployments/Pending_deploymentsPostRequestBody_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Pending_deployments { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Pending_deployments +{ /// Whether to approve or reject deployment to the specified environments. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum Pending_deploymentsPostRequestBody_state { [EnumMember(Value = "approved")] diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Pending_deployments/Pending_deploymentsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Pending_deployments/Pending_deploymentsRequestBuilder.cs index e4ebbcc2..f53589b4 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Pending_deployments/Pending_deploymentsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Pending_deployments/Pending_deploymentsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Pending_deployments { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Pending_deployments +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\pending_deployments /// - public class Pending_deploymentsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Pending_deploymentsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Pending_deploymentsRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,43 +36,43 @@ public Pending_deploymentsRequestBuilder(string rawUrl, IRequestAdapter requestA /// Get all deployment environments for a workflow run that are waiting for protection rules to pass.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. /// API method documentation /// - /// A List<PendingDeployment> + /// A List<global::GitHub.Models.PendingDeployment> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, PendingDeployment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.PendingDeployment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Approve or reject pending deployments that are waiting on approval by a required reviewer.Required reviewers with read access to the repository contents and deployments can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A List<Deployment> + /// A List<global::GitHub.Models.Deployment> /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> PostAsync(Pending_deploymentsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> PostAsync(global::GitHub.Repos.Item.Item.Actions.Runs.Item.Pending_deployments.Pending_deploymentsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> PostAsync(Pending_deploymentsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> PostAsync(global::GitHub.Repos.Item.Item.Actions.Runs.Item.Pending_deployments.Pending_deploymentsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Deployment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Deployment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get all deployment environments for a workflow run that are waiting for protection rules to pass.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. @@ -99,11 +101,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Pending_deploymentsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Actions.Runs.Item.Pending_deployments.Pending_deploymentsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Pending_deploymentsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Actions.Runs.Item.Pending_deployments.Pending_deploymentsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,11 +118,11 @@ public RequestInformation ToPostRequestInformation(Pending_deploymentsPostReques /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Pending_deploymentsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Pending_deployments.Pending_deploymentsRequestBuilder WithUrl(string rawUrl) { - return new Pending_deploymentsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Pending_deployments.Pending_deploymentsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Rerun/RerunPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Rerun/RerunPostRequestBody.cs index aaa35b9c..4c122099 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Rerun/RerunPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Rerun/RerunPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Rerun { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Rerun +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RerunPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RerunPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class RerunPostRequestBody : IAdditionalDataHolder, IParsable /// Whether to enable debug logging for the re-run. public bool? EnableDebugLogging { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RerunPostRequestBody() { @@ -23,12 +25,12 @@ public RerunPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RerunPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Runs.Item.Rerun.RerunPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RerunPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Rerun.RerunPostRequestBody(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enable_debug_logging", n => { EnableDebugLogging = n.GetBoolValue(); } }, + { "enable_debug_logging", n => { EnableDebugLogging = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Rerun/RerunRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Rerun/RerunRequestBuilder.cs index 47c9b5a2..d819e5a2 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Rerun/RerunRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Rerun/RerunRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Rerun { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Rerun +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\rerun /// - public class RerunRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RerunRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RerunRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,22 +36,22 @@ public RerunRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Re-runs your workflow run using its `id`.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(RerunPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Actions.Runs.Item.Rerun.RerunPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(RerunPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Actions.Runs.Item.Rerun.RerunPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Re-runs your workflow run using its `id`.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -59,11 +61,11 @@ public async Task PostAsync(RerunPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(RerunPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Actions.Runs.Item.Rerun.RerunPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RerunPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Actions.Runs.Item.Rerun.RerunPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -76,11 +78,11 @@ public RequestInformation ToPostRequestInformation(RerunPostRequestBody body, Ac /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RerunRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Rerun.RerunRequestBuilder WithUrl(string rawUrl) { - return new RerunRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Rerun.RerunRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/RerunFailedJobs/RerunFailedJobsPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/RerunFailedJobs/RerunFailedJobsPostRequestBody.cs index f7fa32e2..16e043e6 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/RerunFailedJobs/RerunFailedJobsPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/RerunFailedJobs/RerunFailedJobsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.RerunFailedJobs { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.RerunFailedJobs +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RerunFailedJobsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RerunFailedJobsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class RerunFailedJobsPostRequestBody : IAdditionalDataHolder, IParsable /// Whether to enable debug logging for the re-run. public bool? EnableDebugLogging { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RerunFailedJobsPostRequestBody() { @@ -23,12 +25,12 @@ public RerunFailedJobsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RerunFailedJobsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Runs.Item.RerunFailedJobs.RerunFailedJobsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RerunFailedJobsPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.RerunFailedJobs.RerunFailedJobsPostRequestBody(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enable_debug_logging", n => { EnableDebugLogging = n.GetBoolValue(); } }, + { "enable_debug_logging", n => { EnableDebugLogging = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/RerunFailedJobs/RerunFailedJobsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/RerunFailedJobs/RerunFailedJobsRequestBuilder.cs index c0e2d908..51ae52c4 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/RerunFailedJobs/RerunFailedJobsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/RerunFailedJobs/RerunFailedJobsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.RerunFailedJobs { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.RerunFailedJobs +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\rerun-failed-jobs /// - public class RerunFailedJobsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RerunFailedJobsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RerunFailedJobsRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,22 +36,22 @@ public RerunFailedJobsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Re-run all of the failed jobs and their dependent jobs in a workflow run using the `id` of the workflow run.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(RerunFailedJobsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Actions.Runs.Item.RerunFailedJobs.RerunFailedJobsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(RerunFailedJobsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Actions.Runs.Item.RerunFailedJobs.RerunFailedJobsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Re-run all of the failed jobs and their dependent jobs in a workflow run using the `id` of the workflow run.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -59,11 +61,11 @@ public async Task PostAsync(RerunFailedJobsPostRequestBody body, Ac /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(RerunFailedJobsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Actions.Runs.Item.RerunFailedJobs.RerunFailedJobsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RerunFailedJobsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Actions.Runs.Item.RerunFailedJobs.RerunFailedJobsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -76,11 +78,11 @@ public RequestInformation ToPostRequestInformation(RerunFailedJobsPostRequestBod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RerunFailedJobsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.RerunFailedJobs.RerunFailedJobsRequestBuilder WithUrl(string rawUrl) { - return new RerunFailedJobsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.RerunFailedJobs.RerunFailedJobsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Timing/TimingRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Timing/TimingRequestBuilder.cs index 74240ceb..d9876b8d 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Timing/TimingRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/Timing/TimingRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Timing { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item.Timing +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\timing /// - public class TimingRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TimingRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public TimingRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public TimingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Gets the number of billable minutes and total run time for a specific workflow run. Billable minutes only apply to workflows in private repositories that use GitHub Enterprise Cloud-hosted runners. Usage is listed for each GitHub Enterprise Cloud-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)".Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, WorkflowRunUsage.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.WorkflowRunUsage.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets the number of billable minutes and total run time for a specific workflow run. Billable minutes only apply to workflows in private repositories that use GitHub Enterprise Cloud-hosted runners. Usage is listed for each GitHub Enterprise Cloud-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)".Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public TimingRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Timing.TimingRequestBuilder WithUrl(string rawUrl) { - return new TimingRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Timing.TimingRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/WithRun_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/WithRun_ItemRequestBuilder.cs index 42afa6eb..fc97b745 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/Item/WithRun_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/Item/WithRun_ItemRequestBuilder.cs @@ -13,87 +13,89 @@ using GitHub.Repos.Item.Item.Actions.Runs.Item.Rerun; using GitHub.Repos.Item.Item.Actions.Runs.Item.RerunFailedJobs; using GitHub.Repos.Item.Item.Actions.Runs.Item.Timing; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs.Item { +namespace GitHub.Repos.Item.Item.Actions.Runs.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id} /// - public class WithRun_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRun_ItemRequestBuilder : BaseRequestBuilder { /// The approvals property - public ApprovalsRequestBuilder Approvals + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Approvals.ApprovalsRequestBuilder Approvals { - get => new ApprovalsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Approvals.ApprovalsRequestBuilder(PathParameters, RequestAdapter); } /// The approve property - public ApproveRequestBuilder Approve + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Approve.ApproveRequestBuilder Approve { - get => new ApproveRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Approve.ApproveRequestBuilder(PathParameters, RequestAdapter); } /// The artifacts property - public ArtifactsRequestBuilder Artifacts + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Artifacts.ArtifactsRequestBuilder Artifacts { - get => new ArtifactsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Artifacts.ArtifactsRequestBuilder(PathParameters, RequestAdapter); } /// The attempts property - public AttemptsRequestBuilder Attempts + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.AttemptsRequestBuilder Attempts { - get => new AttemptsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Attempts.AttemptsRequestBuilder(PathParameters, RequestAdapter); } /// The cancel property - public CancelRequestBuilder Cancel + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Cancel.CancelRequestBuilder Cancel { - get => new CancelRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Cancel.CancelRequestBuilder(PathParameters, RequestAdapter); } /// The deployment_protection_rule property - public Deployment_protection_ruleRequestBuilder Deployment_protection_rule + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Deployment_protection_rule.Deployment_protection_ruleRequestBuilder Deployment_protection_rule { - get => new Deployment_protection_ruleRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Deployment_protection_rule.Deployment_protection_ruleRequestBuilder(PathParameters, RequestAdapter); } /// The forceCancel property - public ForceCancelRequestBuilder ForceCancel + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.ForceCancel.ForceCancelRequestBuilder ForceCancel { - get => new ForceCancelRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runs.Item.ForceCancel.ForceCancelRequestBuilder(PathParameters, RequestAdapter); } /// The jobs property - public JobsRequestBuilder Jobs + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Jobs.JobsRequestBuilder Jobs { - get => new JobsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Jobs.JobsRequestBuilder(PathParameters, RequestAdapter); } /// The logs property - public LogsRequestBuilder Logs + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Logs.LogsRequestBuilder Logs { - get => new LogsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Logs.LogsRequestBuilder(PathParameters, RequestAdapter); } /// The pending_deployments property - public Pending_deploymentsRequestBuilder Pending_deployments + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Pending_deployments.Pending_deploymentsRequestBuilder Pending_deployments { - get => new Pending_deploymentsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Pending_deployments.Pending_deploymentsRequestBuilder(PathParameters, RequestAdapter); } /// The rerun property - public RerunRequestBuilder Rerun + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Rerun.RerunRequestBuilder Rerun { - get => new RerunRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Rerun.RerunRequestBuilder(PathParameters, RequestAdapter); } /// The rerunFailedJobs property - public RerunFailedJobsRequestBuilder RerunFailedJobs + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.RerunFailedJobs.RerunFailedJobsRequestBuilder RerunFailedJobs { - get => new RerunFailedJobsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runs.Item.RerunFailedJobs.RerunFailedJobsRequestBuilder(PathParameters, RequestAdapter); } /// The timing property - public TimingRequestBuilder Timing + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.Timing.TimingRequestBuilder Timing { - get => new TimingRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Runs.Item.Timing.TimingRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -101,7 +103,7 @@ public WithRun_ItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -130,20 +132,20 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, WorkflowRun.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.WorkflowRun.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Deletes a specific workflow run.Anyone with write 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. @@ -170,11 +172,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -185,16 +187,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRun_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.WithRun_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithRun_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.WithRun_ItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Gets a specific workflow run.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// - public class WithRun_ItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRun_ItemRequestBuilderGetQueryParameters { /// If `true` pull requests are omitted from the response (empty array). [QueryParameter("exclude_pull_requests")] diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/RunsGetResponse.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/RunsGetResponse.cs index da9e3336..4abb62ac 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/RunsGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/RunsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs { +namespace GitHub.Repos.Item.Item.Actions.Runs +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RunsGetResponse : IAdditionalDataHolder, IParsable + public partial class RunsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -17,13 +19,13 @@ public class RunsGetResponse : IAdditionalDataHolder, IParsable /// The workflow_runs property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? WorkflowRuns { get; set; } + public List? WorkflowRuns { get; set; } #nullable restore #else - public List WorkflowRuns { get; set; } + public List WorkflowRuns { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RunsGetResponse() { @@ -32,12 +34,12 @@ public RunsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RunsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Runs.RunsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RunsGetResponse(); + return new global::GitHub.Repos.Item.Item.Actions.Runs.RunsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"total_count", n => { TotalCount = n.GetIntValue(); } }, - {"workflow_runs", n => { WorkflowRuns = n.GetCollectionOfObjectValues(WorkflowRun.CreateFromDiscriminatorValue)?.ToList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, + { "workflow_runs", n => { WorkflowRuns = n.GetCollectionOfObjectValues(global::GitHub.Models.WorkflowRun.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -59,7 +61,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("total_count", TotalCount); - writer.WriteCollectionOfObjectValues("workflow_runs", WorkflowRuns); + writer.WriteCollectionOfObjectValues("workflow_runs", WorkflowRuns); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/RunsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/RunsRequestBuilder.cs index a4f65960..7a6a6bf9 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/RunsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/RunsRequestBuilder.cs @@ -1,33 +1,35 @@ // using GitHub.Repos.Item.Item.Actions.Runs.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Runs { +namespace GitHub.Repos.Item.Item.Actions.Runs +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs /// - public class RunsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RunsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.actions.runs.item collection /// The unique identifier of the workflow run. - /// A - public WithRun_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Actions.Runs.Item.WithRun_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("run_id", position); - return new WithRun_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runs.Item.WithRun_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public RunsRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,20 +48,20 @@ public RunsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// Lists all workflow runs for a repository. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.This API will return up to 1,000 results for each search when using the following parameters: `actor`, `branch`, `check_suite_id`, `created`, `event`, `head_sha`, `status`. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RunsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Actions.Runs.RunsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists all workflow runs for a repository. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.This API will return up to 1,000 results for each search when using the following parameters: `actor`, `branch`, `check_suite_id`, `created`, `event`, `head_sha`, `status`. @@ -68,11 +70,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -83,16 +85,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RunsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Runs.RunsRequestBuilder WithUrl(string rawUrl) { - return new RunsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Runs.RunsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all workflow runs for a repository. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.This API will return up to 1,000 results for each search when using the following parameters: `actor`, `branch`, `check_suite_id`, `created`, `event`, `head_sha`, `status`. /// - public class RunsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RunsRequestBuilderGetQueryParameters { /// Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -151,7 +154,7 @@ public class RunsRequestBuilderGetQueryParameters public int? PerPage { get; set; } /// Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub Actions can set a status of `waiting`, `pending`, or `requested`. [QueryParameter("status")] - public GetStatusQueryParameterType? Status { get; set; } + public global::GitHub.Repos.Item.Item.Actions.Runs.GetStatusQueryParameterType? Status { get; set; } } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Secrets/Item/WithSecret_nameItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Secrets/Item/WithSecret_nameItemRequestBuilder.cs index dbdf5f9e..8cbee688 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Secrets/Item/WithSecret_nameItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Secrets/Item/WithSecret_nameItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Secrets.Item { +namespace GitHub.Repos.Item.Item.Actions.Secrets.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\secrets\{secret_name} /// - public class WithSecret_nameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithSecret_nameItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithSecret_nameItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,41 +54,41 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ActionsSecret.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsSecret.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Creates or updates a repository 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/enterprise-cloud@latest//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. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(WithSecret_namePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Actions.Secrets.Item.WithSecret_namePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(WithSecret_namePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Actions.Secrets.Item.WithSecret_namePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Deletes a secret in a repository 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. @@ -133,11 +135,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(WithSecret_namePutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Actions.Secrets.Item.WithSecret_namePutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(WithSecret_namePutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Actions.Secrets.Item.WithSecret_namePutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -150,11 +152,11 @@ public RequestInformation ToPutRequestInformation(WithSecret_namePutRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithSecret_nameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Secrets.Item.WithSecret_nameItemRequestBuilder WithUrl(string rawUrl) { - return new WithSecret_nameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Secrets.Item.WithSecret_nameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Secrets/Item/WithSecret_namePutRequestBody.cs b/src/GitHub/Repos/Item/Item/Actions/Secrets/Item/WithSecret_namePutRequestBody.cs index eb376864..888a4fe8 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Secrets/Item/WithSecret_namePutRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Secrets/Item/WithSecret_namePutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Secrets.Item { +namespace GitHub.Repos.Item.Item.Actions.Secrets.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithSecret_namePutRequestBody : IAdditionalDataHolder, IParsable + public partial class WithSecret_namePutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class WithSecret_namePutRequestBody : IAdditionalDataHolder, IParsable public string KeyId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithSecret_namePutRequestBody() { @@ -37,12 +39,12 @@ public WithSecret_namePutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithSecret_namePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Secrets.Item.WithSecret_namePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithSecret_namePutRequestBody(); + return new global::GitHub.Repos.Item.Item.Actions.Secrets.Item.WithSecret_namePutRequestBody(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"encrypted_value", n => { EncryptedValue = n.GetStringValue(); } }, - {"key_id", n => { KeyId = n.GetStringValue(); } }, + { "encrypted_value", n => { EncryptedValue = n.GetStringValue(); } }, + { "key_id", n => { KeyId = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Actions/Secrets/PublicKey/PublicKeyRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Secrets/PublicKey/PublicKeyRequestBuilder.cs index e0e6fc86..2c868948 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Secrets/PublicKey/PublicKeyRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Secrets/PublicKey/PublicKeyRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Secrets.PublicKey { +namespace GitHub.Repos.Item.Item.Actions.Secrets.PublicKey +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\secrets\public-key /// - public class PublicKeyRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PublicKeyRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public PublicKeyRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public PublicKeyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Gets your public key, which you need to encrypt secrets. You need toencrypt 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. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ActionsPublicKey.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsPublicKey.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets your public key, which you need to encrypt secrets. You need toencrypt 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. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PublicKeyRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Secrets.PublicKey.PublicKeyRequestBuilder WithUrl(string rawUrl) { - return new PublicKeyRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Secrets.PublicKey.PublicKeyRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Secrets/SecretsGetResponse.cs b/src/GitHub/Repos/Item/Item/Actions/Secrets/SecretsGetResponse.cs index d3f76dcd..62832d4d 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Secrets/SecretsGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Secrets/SecretsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Secrets { +namespace GitHub.Repos.Item.Item.Actions.Secrets +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SecretsGetResponse : IAdditionalDataHolder, IParsable + public partial class SecretsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class SecretsGetResponse : IAdditionalDataHolder, IParsable /// The secrets property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Secrets { get; set; } + public List? Secrets { get; set; } #nullable restore #else - public List Secrets { get; set; } + public List Secrets { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretsGetResponse() { @@ -32,12 +34,12 @@ public SecretsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Secrets.SecretsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretsGetResponse(); + return new global::GitHub.Repos.Item.Item.Actions.Secrets.SecretsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"secrets", n => { Secrets = n.GetCollectionOfObjectValues(ActionsSecret.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "secrets", n => { Secrets = n.GetCollectionOfObjectValues(global::GitHub.Models.ActionsSecret.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("secrets", Secrets); + writer.WriteCollectionOfObjectValues("secrets", Secrets); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Actions/Secrets/SecretsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Secrets/SecretsRequestBuilder.cs index 8d370106..d9b167ca 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Secrets/SecretsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Secrets/SecretsRequestBuilder.cs @@ -1,39 +1,41 @@ // using GitHub.Repos.Item.Item.Actions.Secrets.Item; using GitHub.Repos.Item.Item.Actions.Secrets.PublicKey; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Secrets { +namespace GitHub.Repos.Item.Item.Actions.Secrets +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\secrets /// - public class SecretsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretsRequestBuilder : BaseRequestBuilder { /// The publicKey property - public PublicKeyRequestBuilder PublicKey + public global::GitHub.Repos.Item.Item.Actions.Secrets.PublicKey.PublicKeyRequestBuilder PublicKey { - get => new PublicKeyRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Secrets.PublicKey.PublicKeyRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.repos.item.item.actions.secrets.item collection /// The name of the secret. - /// A - public WithSecret_nameItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Actions.Secrets.Item.WithSecret_nameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("secret_name", position); - return new WithSecret_nameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Secrets.Item.WithSecret_nameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -41,7 +43,7 @@ public SecretsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,20 +54,20 @@ public SecretsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Lists all secrets available in a repository without revealing their encryptedvalues.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. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, SecretsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Actions.Secrets.SecretsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists all secrets available in a repository without revealing their encryptedvalues.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. @@ -74,11 +76,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -89,16 +91,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SecretsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Secrets.SecretsRequestBuilder WithUrl(string rawUrl) { - return new SecretsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Secrets.SecretsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all secrets available in a repository without revealing their encryptedvalues.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. /// - public class SecretsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Actions/Variables/Item/WithNameItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Variables/Item/WithNameItemRequestBuilder.cs index e55f62a2..0eaa7182 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Variables/Item/WithNameItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Variables/Item/WithNameItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Variables.Item { +namespace GitHub.Repos.Item.Item.Actions.Variables.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\variables\{name} /// - public class WithNameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithNameItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithNameItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,20 +54,20 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ActionsVariable.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsVariable.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Updates a repository 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. @@ -76,11 +78,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithNamePatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Actions.Variables.Item.WithNamePatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithNamePatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Actions.Variables.Item.WithNamePatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -132,11 +134,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithNamePatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Actions.Variables.Item.WithNamePatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithNamePatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Actions.Variables.Item.WithNamePatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -148,11 +150,11 @@ public RequestInformation ToPatchRequestInformation(WithNamePatchRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithNameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Variables.Item.WithNameItemRequestBuilder WithUrl(string rawUrl) { - return new WithNameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Variables.Item.WithNameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Variables/Item/WithNamePatchRequestBody.cs b/src/GitHub/Repos/Item/Item/Actions/Variables/Item/WithNamePatchRequestBody.cs index 481894d9..beb60f3e 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Variables/Item/WithNamePatchRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Variables/Item/WithNamePatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Variables.Item { +namespace GitHub.Repos.Item.Item.Actions.Variables.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithNamePatchRequestBody : IAdditionalDataHolder, IParsable + public partial class WithNamePatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class WithNamePatchRequestBody : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithNamePatchRequestBody() { @@ -37,12 +39,12 @@ public WithNamePatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithNamePatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Variables.Item.WithNamePatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithNamePatchRequestBody(); + return new global::GitHub.Repos.Item.Item.Actions.Variables.Item.WithNamePatchRequestBody(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Actions/Variables/VariablesGetResponse.cs b/src/GitHub/Repos/Item/Item/Actions/Variables/VariablesGetResponse.cs index 573a9dc3..1d6735b4 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Variables/VariablesGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Variables/VariablesGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Variables { +namespace GitHub.Repos.Item.Item.Actions.Variables +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class VariablesGetResponse : IAdditionalDataHolder, IParsable + public partial class VariablesGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -17,13 +19,13 @@ public class VariablesGetResponse : IAdditionalDataHolder, IParsable /// The variables property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Variables { get; set; } + public List? Variables { get; set; } #nullable restore #else - public List Variables { get; set; } + public List Variables { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public VariablesGetResponse() { @@ -32,12 +34,12 @@ public VariablesGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static VariablesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Variables.VariablesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new VariablesGetResponse(); + return new global::GitHub.Repos.Item.Item.Actions.Variables.VariablesGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"total_count", n => { TotalCount = n.GetIntValue(); } }, - {"variables", n => { Variables = n.GetCollectionOfObjectValues(ActionsVariable.CreateFromDiscriminatorValue)?.ToList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, + { "variables", n => { Variables = n.GetCollectionOfObjectValues(global::GitHub.Models.ActionsVariable.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -59,7 +61,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("total_count", TotalCount); - writer.WriteCollectionOfObjectValues("variables", Variables); + writer.WriteCollectionOfObjectValues("variables", Variables); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Variables/VariablesPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Actions/Variables/VariablesPostRequestBody.cs index e7ad5182..ee646313 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Variables/VariablesPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Variables/VariablesPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Variables { +namespace GitHub.Repos.Item.Item.Actions.Variables +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class VariablesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class VariablesPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class VariablesPostRequestBody : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public VariablesPostRequestBody() { @@ -37,12 +39,12 @@ public VariablesPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static VariablesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Variables.VariablesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new VariablesPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Actions.Variables.VariablesPostRequestBody(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Actions/Variables/VariablesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Variables/VariablesRequestBuilder.cs index 5992e036..40f6a491 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Variables/VariablesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Variables/VariablesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Actions.Variables.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Variables { +namespace GitHub.Repos.Item.Item.Actions.Variables +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\variables /// - public class VariablesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class VariablesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.actions.variables.item collection /// The name of the variable. - /// A - public WithNameItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Actions.Variables.Item.WithNameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("name", position); - return new WithNameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Variables.Item.WithNameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public VariablesRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,41 +49,41 @@ public VariablesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Lists all repository 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. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, VariablesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Actions.Variables.VariablesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Creates a repository 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. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(VariablesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Actions.Variables.VariablesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(VariablesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Actions.Variables.VariablesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists all repository 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. @@ -90,11 +92,11 @@ public async Task PostAsync(VariablesPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -110,11 +112,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(VariablesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Actions.Variables.VariablesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(VariablesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Actions.Variables.VariablesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -127,16 +129,17 @@ public RequestInformation ToPostRequestInformation(VariablesPostRequestBody body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public VariablesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Variables.VariablesRequestBuilder WithUrl(string rawUrl) { - return new VariablesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Variables.VariablesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all repository 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. /// - public class VariablesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class VariablesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Disable/DisableRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Disable/DisableRequestBuilder.cs index fde16106..4aab8bc7 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Disable/DisableRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Disable/DisableRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Workflows.Item.Disable { +namespace GitHub.Repos.Item.Item.Actions.Workflows.Item.Disable +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\workflows\{workflow_id}\disable /// - public class DisableRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DisableRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public DisableRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -68,11 +70,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DisableRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Disable.DisableRequestBuilder WithUrl(string rawUrl) { - return new DisableRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Disable.DisableRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Dispatches/DispatchesPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Dispatches/DispatchesPostRequestBody.cs index 9effa231..86c1386f 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Dispatches/DispatchesPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Dispatches/DispatchesPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Workflows.Item.Dispatches { +namespace GitHub.Repos.Item.Item.Actions.Workflows.Item.Dispatches +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class DispatchesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DispatchesPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,10 +16,10 @@ public class DispatchesPostRequestBody : IAdditionalDataHolder, IParsable /// Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DispatchesPostRequestBody_inputs? Inputs { get; set; } + public global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Dispatches.DispatchesPostRequestBody_inputs? Inputs { get; set; } #nullable restore #else - public DispatchesPostRequestBody_inputs Inputs { get; set; } + public global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Dispatches.DispatchesPostRequestBody_inputs Inputs { get; set; } #endif /// The git reference for the workflow. The reference can be a branch or tag name. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -28,7 +30,7 @@ public class DispatchesPostRequestBody : IAdditionalDataHolder, IParsable public string Ref { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DispatchesPostRequestBody() { @@ -37,12 +39,12 @@ public DispatchesPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DispatchesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Dispatches.DispatchesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DispatchesPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Dispatches.DispatchesPostRequestBody(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"inputs", n => { Inputs = n.GetObjectValue(DispatchesPostRequestBody_inputs.CreateFromDiscriminatorValue); } }, - {"ref", n => { Ref = n.GetStringValue(); } }, + { "inputs", n => { Inputs = n.GetObjectValue(global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Dispatches.DispatchesPostRequestBody_inputs.CreateFromDiscriminatorValue); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, }; } /// @@ -63,7 +65,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inputs", Inputs); + writer.WriteObjectValue("inputs", Inputs); writer.WriteStringValue("ref", Ref); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Dispatches/DispatchesPostRequestBody_inputs.cs b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Dispatches/DispatchesPostRequestBody_inputs.cs index f40c2b42..2caf8221 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Dispatches/DispatchesPostRequestBody_inputs.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Dispatches/DispatchesPostRequestBody_inputs.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Workflows.Item.Dispatches { +namespace GitHub.Repos.Item.Item.Actions.Workflows.Item.Dispatches +{ /// /// Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted. /// - public class DispatchesPostRequestBody_inputs : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DispatchesPostRequestBody_inputs : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DispatchesPostRequestBody_inputs() { @@ -22,12 +24,12 @@ public DispatchesPostRequestBody_inputs() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DispatchesPostRequestBody_inputs CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Dispatches.DispatchesPostRequestBody_inputs CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DispatchesPostRequestBody_inputs(); + return new global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Dispatches.DispatchesPostRequestBody_inputs(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Dispatches/DispatchesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Dispatches/DispatchesRequestBuilder.cs index 3f4f23c1..e7ef83dc 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Dispatches/DispatchesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Dispatches/DispatchesRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Workflows.Item.Dispatches { +namespace GitHub.Repos.Item.Item.Actions.Workflows.Item.Dispatches +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\workflows\{workflow_id}\dispatches /// - public class DispatchesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DispatchesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public DispatchesRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -38,11 +40,11 @@ public DispatchesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(DispatchesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Dispatches.DispatchesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(DispatchesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Dispatches.DispatchesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -57,11 +59,11 @@ public async Task PostAsync(DispatchesPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(DispatchesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Dispatches.DispatchesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DispatchesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Dispatches.DispatchesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -73,11 +75,11 @@ public RequestInformation ToPostRequestInformation(DispatchesPostRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DispatchesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Dispatches.DispatchesRequestBuilder WithUrl(string rawUrl) { - return new DispatchesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Dispatches.DispatchesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Enable/EnableRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Enable/EnableRequestBuilder.cs index 8980eefd..797e827a 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Enable/EnableRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Enable/EnableRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Workflows.Item.Enable { +namespace GitHub.Repos.Item.Item.Actions.Workflows.Item.Enable +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\workflows\{workflow_id}\enable /// - public class EnableRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EnableRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public EnableRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -68,11 +70,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public EnableRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Enable.EnableRequestBuilder WithUrl(string rawUrl) { - return new EnableRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Enable.EnableRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Runs/GetStatusQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Runs/GetStatusQueryParameterType.cs index afbea4dc..28b89fe4 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Runs/GetStatusQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Runs/GetStatusQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Actions.Workflows.Item.Runs { +namespace GitHub.Repos.Item.Item.Actions.Workflows.Item.Runs +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetStatusQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Runs/RunsGetResponse.cs b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Runs/RunsGetResponse.cs index a221edd9..5ec512ab 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Runs/RunsGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Runs/RunsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Workflows.Item.Runs { +namespace GitHub.Repos.Item.Item.Actions.Workflows.Item.Runs +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RunsGetResponse : IAdditionalDataHolder, IParsable + public partial class RunsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -17,13 +19,13 @@ public class RunsGetResponse : IAdditionalDataHolder, IParsable /// The workflow_runs property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? WorkflowRuns { get; set; } + public List? WorkflowRuns { get; set; } #nullable restore #else - public List WorkflowRuns { get; set; } + public List WorkflowRuns { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RunsGetResponse() { @@ -32,12 +34,12 @@ public RunsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RunsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Runs.RunsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RunsGetResponse(); + return new global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Runs.RunsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"total_count", n => { TotalCount = n.GetIntValue(); } }, - {"workflow_runs", n => { WorkflowRuns = n.GetCollectionOfObjectValues(WorkflowRun.CreateFromDiscriminatorValue)?.ToList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, + { "workflow_runs", n => { WorkflowRuns = n.GetCollectionOfObjectValues(global::GitHub.Models.WorkflowRun.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -59,7 +61,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("total_count", TotalCount); - writer.WriteCollectionOfObjectValues("workflow_runs", WorkflowRuns); + writer.WriteCollectionOfObjectValues("workflow_runs", WorkflowRuns); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Runs/RunsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Runs/RunsRequestBuilder.cs index 8295675f..2a08999a 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Runs/RunsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Runs/RunsRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Workflows.Item.Runs { +namespace GitHub.Repos.Item.Item.Actions.Workflows.Item.Runs +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\workflows\{workflow_id}\runs /// - public class RunsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RunsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public RunsRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,20 +35,20 @@ public RunsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpointOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RunsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Runs.RunsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpointOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. @@ -55,11 +57,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -70,16 +72,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RunsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Runs.RunsRequestBuilder WithUrl(string rawUrl) { - return new RunsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Runs.RunsRequestBuilder(rawUrl, RequestAdapter); } /// /// List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpointOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// - public class RunsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RunsRequestBuilderGetQueryParameters { /// Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -138,7 +141,7 @@ public class RunsRequestBuilderGetQueryParameters public int? PerPage { get; set; } /// Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub Actions can set a status of `waiting`, `pending`, or `requested`. [QueryParameter("status")] - public GetStatusQueryParameterType? Status { get; set; } + public global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Runs.GetStatusQueryParameterType? Status { get; set; } } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Timing/TimingRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Timing/TimingRequestBuilder.cs index a5878a1c..5565a212 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Timing/TimingRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Timing/TimingRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Workflows.Item.Timing { +namespace GitHub.Repos.Item.Item.Actions.Workflows.Item.Timing +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\workflows\{workflow_id}\timing /// - public class TimingRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TimingRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public TimingRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public TimingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Gets the number of billable minutes used by a specific workflow during the current billing cycle. Billable minutes only apply to workflows in private repositories that use GitHub Enterprise Cloud-hosted runners. Usage is listed for each GitHub Enterprise Cloud-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)".You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, WorkflowUsage.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.WorkflowUsage.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets the number of billable minutes used by a specific workflow during the current billing cycle. Billable minutes only apply to workflows in private repositories that use GitHub Enterprise Cloud-hosted runners. Usage is listed for each GitHub Enterprise Cloud-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)".You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public TimingRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Timing.TimingRequestBuilder WithUrl(string rawUrl) { - return new TimingRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Timing.TimingRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/WithWorkflow_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/WithWorkflow_ItemRequestBuilder.cs index 9d8949f7..54e9c82e 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/WithWorkflow_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/WithWorkflow_ItemRequestBuilder.cs @@ -5,47 +5,49 @@ using GitHub.Repos.Item.Item.Actions.Workflows.Item.Enable; using GitHub.Repos.Item.Item.Actions.Workflows.Item.Runs; using GitHub.Repos.Item.Item.Actions.Workflows.Item.Timing; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Workflows.Item { +namespace GitHub.Repos.Item.Item.Actions.Workflows.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\workflows\{workflow_id} /// - public class WithWorkflow_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithWorkflow_ItemRequestBuilder : BaseRequestBuilder { /// The disable property - public DisableRequestBuilder Disable + public global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Disable.DisableRequestBuilder Disable { - get => new DisableRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Disable.DisableRequestBuilder(PathParameters, RequestAdapter); } /// The dispatches property - public DispatchesRequestBuilder Dispatches + public global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Dispatches.DispatchesRequestBuilder Dispatches { - get => new DispatchesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Dispatches.DispatchesRequestBuilder(PathParameters, RequestAdapter); } /// The enable property - public EnableRequestBuilder Enable + public global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Enable.EnableRequestBuilder Enable { - get => new EnableRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Enable.EnableRequestBuilder(PathParameters, RequestAdapter); } /// The runs property - public RunsRequestBuilder Runs + public global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Runs.RunsRequestBuilder Runs { - get => new RunsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Runs.RunsRequestBuilder(PathParameters, RequestAdapter); } /// The timing property - public TimingRequestBuilder Timing + public global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Timing.TimingRequestBuilder Timing { - get => new TimingRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Timing.TimingRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -53,7 +55,7 @@ public WithWorkflow_ItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -64,20 +66,20 @@ public WithWorkflow_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Gets a specific workflow. You can replace `workflow_id` with the workflowfile name. For example, you could use `main.yaml`.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.Workflow.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Workflow.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets a specific workflow. You can replace `workflow_id` with the workflowfile name. For example, you could use `main.yaml`.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. @@ -101,11 +103,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithWorkflow_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Workflows.Item.WithWorkflow_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithWorkflow_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Workflows.Item.WithWorkflow_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Workflows/WorkflowsGetResponse.cs b/src/GitHub/Repos/Item/Item/Actions/Workflows/WorkflowsGetResponse.cs index b065a789..26a32b15 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Workflows/WorkflowsGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Workflows/WorkflowsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Actions.Workflows { +namespace GitHub.Repos.Item.Item.Actions.Workflows +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WorkflowsGetResponse : IAdditionalDataHolder, IParsable + public partial class WorkflowsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -17,13 +19,13 @@ public class WorkflowsGetResponse : IAdditionalDataHolder, IParsable /// The workflows property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Workflows { get; set; } + public List? Workflows { get; set; } #nullable restore #else - public List Workflows { get; set; } + public List Workflows { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WorkflowsGetResponse() { @@ -32,12 +34,12 @@ public WorkflowsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WorkflowsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Actions.Workflows.WorkflowsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WorkflowsGetResponse(); + return new global::GitHub.Repos.Item.Item.Actions.Workflows.WorkflowsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"total_count", n => { TotalCount = n.GetIntValue(); } }, - {"workflows", n => { Workflows = n.GetCollectionOfObjectValues(GitHub.Models.Workflow.CreateFromDiscriminatorValue)?.ToList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, + { "workflows", n => { Workflows = n.GetCollectionOfObjectValues(global::GitHub.Models.Workflow.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -59,7 +61,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("total_count", TotalCount); - writer.WriteCollectionOfObjectValues("workflows", Workflows); + writer.WriteCollectionOfObjectValues("workflows", Workflows); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Workflows/WorkflowsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Workflows/WorkflowsRequestBuilder.cs index 89fb6332..6550610d 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Workflows/WorkflowsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Workflows/WorkflowsRequestBuilder.cs @@ -1,33 +1,35 @@ // using GitHub.Repos.Item.Item.Actions.Workflows.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Actions.Workflows { +namespace GitHub.Repos.Item.Item.Actions.Workflows +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\workflows /// - public class WorkflowsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WorkflowsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.actions.workflows.item collection /// The ID of the workflow. You can also pass the workflow file name as a string. - /// A - public WithWorkflow_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Actions.Workflows.Item.WithWorkflow_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("workflow_id", position); - return new WithWorkflow_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Workflows.Item.WithWorkflow_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public WorkflowsRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,20 +48,20 @@ public WorkflowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Lists the workflows in a repository.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, WorkflowsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Actions.Workflows.WorkflowsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists the workflows in a repository.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. @@ -68,11 +70,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -83,16 +85,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WorkflowsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Actions.Workflows.WorkflowsRequestBuilder WithUrl(string rawUrl) { - return new WorkflowsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Actions.Workflows.WorkflowsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the workflows in a repository.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// - public class WorkflowsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WorkflowsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Activity/ActivityRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Activity/ActivityRequestBuilder.cs index c8d31051..d97e2981 100644 --- a/src/GitHub/Repos/Item/Item/Activity/ActivityRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Activity/ActivityRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Activity { +namespace GitHub.Repos.Item.Item.Activity +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\activity /// - public class ActivityRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ActivityRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ActivityRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,26 +36,26 @@ public ActivityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Lists a detailed history of changes to a repository, such as pushes, merges, force pushes, and branch changes, and associates these changes with commits and users.For more information about viewing repository activity,see "[Viewing activity and data for your repository](https://docs.github.com/enterprise-cloud@latest//repositories/viewing-activity-and-data-for-your-repository)." /// API method documentation /// - /// A List<GitHub.Models.Activity> + /// A List<global::GitHub.Models.Activity> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GitHub.Models.Activity.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Activity.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists a detailed history of changes to a repository, such as pushes, merges, force pushes, and branch changes, and associates these changes with commits and users.For more information about viewing repository activity,see "[Viewing activity and data for your repository](https://docs.github.com/enterprise-cloud@latest//repositories/viewing-activity-and-data-for-your-repository)." @@ -62,11 +64,11 @@ public ActivityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -77,20 +79,21 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ActivityRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Activity.ActivityRequestBuilder WithUrl(string rawUrl) { - return new ActivityRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Activity.ActivityRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists a detailed history of changes to a repository, such as pushes, merges, force pushes, and branch changes, and associates these changes with commits and users.For more information about viewing repository activity,see "[Viewing activity and data for your repository](https://docs.github.com/enterprise-cloud@latest//repositories/viewing-activity-and-data-for-your-repository)." /// - public class ActivityRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ActivityRequestBuilderGetQueryParameters { /// The activity type to filter by.For example, you can choose to filter by "force_push", to see all force pushes to the repository. [QueryParameter("activity_type")] - public GetActivity_typeQueryParameterType? ActivityType { get; set; } + public global::GitHub.Repos.Item.Item.Activity.GetActivity_typeQueryParameterType? ActivityType { get; set; } /// The GitHub username to use to filter by the actor who performed the activity. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -123,7 +126,7 @@ public class ActivityRequestBuilderGetQueryParameters #endif /// The direction to sort the results by. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Repos.Item.Item.Activity.GetDirectionQueryParameterType? Direction { get; set; } /// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("per_page")] public int? PerPage { get; set; } @@ -139,7 +142,7 @@ public class ActivityRequestBuilderGetQueryParameters #endif /// The time period to filter by.For example, `day` will filter for activity that occurred in the past 24 hours, and `week` will filter for activity that occurred in the past 7 days (168 hours). [QueryParameter("time_period")] - public GetTime_periodQueryParameterType? TimePeriod { get; set; } + public global::GitHub.Repos.Item.Item.Activity.GetTime_periodQueryParameterType? TimePeriod { get; set; } } } } diff --git a/src/GitHub/Repos/Item/Item/Activity/GetActivity_typeQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Activity/GetActivity_typeQueryParameterType.cs index 09acc11e..ad92a7e8 100644 --- a/src/GitHub/Repos/Item/Item/Activity/GetActivity_typeQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Activity/GetActivity_typeQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Activity { +namespace GitHub.Repos.Item.Item.Activity +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetActivity_typeQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Activity/GetDirectionQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Activity/GetDirectionQueryParameterType.cs index 9c9a7313..6c02213b 100644 --- a/src/GitHub/Repos/Item/Item/Activity/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Activity/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Activity { +namespace GitHub.Repos.Item.Item.Activity +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Activity/GetTime_periodQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Activity/GetTime_periodQueryParameterType.cs index ec583e03..4d4f0c2b 100644 --- a/src/GitHub/Repos/Item/Item/Activity/GetTime_periodQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Activity/GetTime_periodQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Activity { +namespace GitHub.Repos.Item.Item.Activity +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetTime_periodQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Assignees/AssigneesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Assignees/AssigneesRequestBuilder.cs index 4137384c..10a753f4 100644 --- a/src/GitHub/Repos/Item/Item/Assignees/AssigneesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Assignees/AssigneesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Assignees.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Assignees { +namespace GitHub.Repos.Item.Item.Assignees +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\assignees /// - public class AssigneesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AssigneesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.assignees.item collection /// Unique identifier of the item - /// A - public WithAssigneeItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Assignees.Item.WithAssigneeItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("assignee", position); - return new WithAssigneeItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Assignees.Item.WithAssigneeItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public AssigneesRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,26 +49,26 @@ public AssigneesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Lists the [available assignees](https://docs.github.com/enterprise-cloud@latest//articles/assigning-issues-and-pull-requests-to-other-github-users/) for issues in a repository. /// API method documentation /// - /// A List<SimpleUser> + /// A List<global::GitHub.Models.SimpleUser> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, SimpleUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists the [available assignees](https://docs.github.com/enterprise-cloud@latest//articles/assigning-issues-and-pull-requests-to-other-github-users/) for issues in a repository. @@ -75,11 +77,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -90,16 +92,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AssigneesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Assignees.AssigneesRequestBuilder WithUrl(string rawUrl) { - return new AssigneesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Assignees.AssigneesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the [available assignees](https://docs.github.com/enterprise-cloud@latest//articles/assigning-issues-and-pull-requests-to-other-github-users/) for issues in a repository. /// - public class AssigneesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AssigneesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Assignees/Item/WithAssigneeItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Assignees/Item/WithAssigneeItemRequestBuilder.cs index f58725b8..437eec52 100644 --- a/src/GitHub/Repos/Item/Item/Assignees/Item/WithAssigneeItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Assignees/Item/WithAssigneeItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Assignees.Item { +namespace GitHub.Repos.Item.Item.Assignees.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\assignees\{assignee} /// - public class WithAssigneeItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithAssigneeItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithAssigneeItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public WithAssigneeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -49,7 +51,7 @@ public async Task GetAsync(Action> var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -75,11 +77,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithAssigneeItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Assignees.Item.WithAssigneeItemRequestBuilder WithUrl(string rawUrl) { - return new WithAssigneeItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Assignees.Item.WithAssigneeItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Attestations/AttestationsPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Attestations/AttestationsPostRequestBody.cs index b63cd35b..1f034b84 100644 --- a/src/GitHub/Repos/Item/Item/Attestations/AttestationsPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Attestations/AttestationsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Attestations { +namespace GitHub.Repos.Item.Item.Attestations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AttestationsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AttestationsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,13 +16,13 @@ public class AttestationsPostRequestBody : IAdditionalDataHolder, IParsable /// The attestation's Sigstore Bundle.Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public AttestationsPostRequestBody_bundle? Bundle { get; set; } + public global::GitHub.Repos.Item.Item.Attestations.AttestationsPostRequestBody_bundle? Bundle { get; set; } #nullable restore #else - public AttestationsPostRequestBody_bundle Bundle { get; set; } + public global::GitHub.Repos.Item.Item.Attestations.AttestationsPostRequestBody_bundle Bundle { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AttestationsPostRequestBody() { @@ -29,12 +31,12 @@ public AttestationsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AttestationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Attestations.AttestationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AttestationsPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Attestations.AttestationsPostRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"bundle", n => { Bundle = n.GetObjectValue(AttestationsPostRequestBody_bundle.CreateFromDiscriminatorValue); } }, + { "bundle", n => { Bundle = n.GetObjectValue(global::GitHub.Repos.Item.Item.Attestations.AttestationsPostRequestBody_bundle.CreateFromDiscriminatorValue); } }, }; } /// @@ -54,7 +56,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("bundle", Bundle); + writer.WriteObjectValue("bundle", Bundle); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Attestations/AttestationsPostRequestBody_bundle.cs b/src/GitHub/Repos/Item/Item/Attestations/AttestationsPostRequestBody_bundle.cs index fc1b9305..6c8e675b 100644 --- a/src/GitHub/Repos/Item/Item/Attestations/AttestationsPostRequestBody_bundle.cs +++ b/src/GitHub/Repos/Item/Item/Attestations/AttestationsPostRequestBody_bundle.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Attestations { +namespace GitHub.Repos.Item.Item.Attestations +{ /// /// The attestation's Sigstore Bundle.Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. /// - public class AttestationsPostRequestBody_bundle : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AttestationsPostRequestBody_bundle : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The dsseEnvelope property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public AttestationsPostRequestBody_bundle_dsseEnvelope? DsseEnvelope { get; set; } + public global::GitHub.Repos.Item.Item.Attestations.AttestationsPostRequestBody_bundle_dsseEnvelope? DsseEnvelope { get; set; } #nullable restore #else - public AttestationsPostRequestBody_bundle_dsseEnvelope DsseEnvelope { get; set; } + public global::GitHub.Repos.Item.Item.Attestations.AttestationsPostRequestBody_bundle_dsseEnvelope DsseEnvelope { get; set; } #endif /// The mediaType property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -31,13 +33,13 @@ public class AttestationsPostRequestBody_bundle : IAdditionalDataHolder, IParsab /// The verificationMaterial property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public AttestationsPostRequestBody_bundle_verificationMaterial? VerificationMaterial { get; set; } + public global::GitHub.Repos.Item.Item.Attestations.AttestationsPostRequestBody_bundle_verificationMaterial? VerificationMaterial { get; set; } #nullable restore #else - public AttestationsPostRequestBody_bundle_verificationMaterial VerificationMaterial { get; set; } + public global::GitHub.Repos.Item.Item.Attestations.AttestationsPostRequestBody_bundle_verificationMaterial VerificationMaterial { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AttestationsPostRequestBody_bundle() { @@ -46,12 +48,12 @@ public AttestationsPostRequestBody_bundle() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AttestationsPostRequestBody_bundle CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Attestations.AttestationsPostRequestBody_bundle CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AttestationsPostRequestBody_bundle(); + return new global::GitHub.Repos.Item.Item.Attestations.AttestationsPostRequestBody_bundle(); } /// /// The deserialization information for the current model @@ -61,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"dsseEnvelope", n => { DsseEnvelope = n.GetObjectValue(AttestationsPostRequestBody_bundle_dsseEnvelope.CreateFromDiscriminatorValue); } }, - {"mediaType", n => { MediaType = n.GetStringValue(); } }, - {"verificationMaterial", n => { VerificationMaterial = n.GetObjectValue(AttestationsPostRequestBody_bundle_verificationMaterial.CreateFromDiscriminatorValue); } }, + { "dsseEnvelope", n => { DsseEnvelope = n.GetObjectValue(global::GitHub.Repos.Item.Item.Attestations.AttestationsPostRequestBody_bundle_dsseEnvelope.CreateFromDiscriminatorValue); } }, + { "mediaType", n => { MediaType = n.GetStringValue(); } }, + { "verificationMaterial", n => { VerificationMaterial = n.GetObjectValue(global::GitHub.Repos.Item.Item.Attestations.AttestationsPostRequestBody_bundle_verificationMaterial.CreateFromDiscriminatorValue); } }, }; } /// @@ -73,9 +75,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("dsseEnvelope", DsseEnvelope); + writer.WriteObjectValue("dsseEnvelope", DsseEnvelope); writer.WriteStringValue("mediaType", MediaType); - writer.WriteObjectValue("verificationMaterial", VerificationMaterial); + writer.WriteObjectValue("verificationMaterial", VerificationMaterial); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Attestations/AttestationsPostRequestBody_bundle_dsseEnvelope.cs b/src/GitHub/Repos/Item/Item/Attestations/AttestationsPostRequestBody_bundle_dsseEnvelope.cs index 184e80f2..0e0dc10d 100644 --- a/src/GitHub/Repos/Item/Item/Attestations/AttestationsPostRequestBody_bundle_dsseEnvelope.cs +++ b/src/GitHub/Repos/Item/Item/Attestations/AttestationsPostRequestBody_bundle_dsseEnvelope.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Attestations { +namespace GitHub.Repos.Item.Item.Attestations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AttestationsPostRequestBody_bundle_dsseEnvelope : IAdditionalDataHolder, IParsable + public partial class AttestationsPostRequestBody_bundle_dsseEnvelope : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AttestationsPostRequestBody_bundle_dsseEnvelope() { @@ -21,12 +23,12 @@ public AttestationsPostRequestBody_bundle_dsseEnvelope() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AttestationsPostRequestBody_bundle_dsseEnvelope CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Attestations.AttestationsPostRequestBody_bundle_dsseEnvelope CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AttestationsPostRequestBody_bundle_dsseEnvelope(); + return new global::GitHub.Repos.Item.Item.Attestations.AttestationsPostRequestBody_bundle_dsseEnvelope(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Repos/Item/Item/Attestations/AttestationsPostRequestBody_bundle_verificationMaterial.cs b/src/GitHub/Repos/Item/Item/Attestations/AttestationsPostRequestBody_bundle_verificationMaterial.cs index 24d96e33..592fd6ce 100644 --- a/src/GitHub/Repos/Item/Item/Attestations/AttestationsPostRequestBody_bundle_verificationMaterial.cs +++ b/src/GitHub/Repos/Item/Item/Attestations/AttestationsPostRequestBody_bundle_verificationMaterial.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Attestations { +namespace GitHub.Repos.Item.Item.Attestations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AttestationsPostRequestBody_bundle_verificationMaterial : IAdditionalDataHolder, IParsable + public partial class AttestationsPostRequestBody_bundle_verificationMaterial : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AttestationsPostRequestBody_bundle_verificationMaterial() { @@ -21,12 +23,12 @@ public AttestationsPostRequestBody_bundle_verificationMaterial() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AttestationsPostRequestBody_bundle_verificationMaterial CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Attestations.AttestationsPostRequestBody_bundle_verificationMaterial CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AttestationsPostRequestBody_bundle_verificationMaterial(); + return new global::GitHub.Repos.Item.Item.Attestations.AttestationsPostRequestBody_bundle_verificationMaterial(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Repos/Item/Item/Attestations/AttestationsPostResponse.cs b/src/GitHub/Repos/Item/Item/Attestations/AttestationsPostResponse.cs index d7c5ec46..34eadbb1 100644 --- a/src/GitHub/Repos/Item/Item/Attestations/AttestationsPostResponse.cs +++ b/src/GitHub/Repos/Item/Item/Attestations/AttestationsPostResponse.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Attestations { +namespace GitHub.Repos.Item.Item.Attestations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AttestationsPostResponse : IAdditionalDataHolder, IParsable + public partial class AttestationsPostResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class AttestationsPostResponse : IAdditionalDataHolder, IParsable /// The ID of the attestation. public int? Id { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AttestationsPostResponse() { @@ -23,12 +25,12 @@ public AttestationsPostResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AttestationsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Attestations.AttestationsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AttestationsPostResponse(); + return new global::GitHub.Repos.Item.Item.Attestations.AttestationsPostResponse(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetIntValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Attestations/AttestationsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Attestations/AttestationsRequestBuilder.cs index 3e962a1d..c45fd925 100644 --- a/src/GitHub/Repos/Item/Item/Attestations/AttestationsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Attestations/AttestationsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Attestations.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Attestations { +namespace GitHub.Repos.Item.Item.Attestations +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\attestations /// - public class AttestationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AttestationsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.attestations.item collection /// The parameter should be set to the attestation's subject's SHA256 digest, in the form `sha256:HEX_DIGEST`. - /// A - public WithSubject_digestItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("subject_digest", position); - return new WithSubject_digestItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public AttestationsRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,29 +49,29 @@ public AttestationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Store an artifact attestation and associate it with a repository.The authenticated user must have write permission to the repository and, if using a fine-grained access token the `attestations:write` permission is required.Artifact attestations are meant to be created using the [attest action](https://github.com/actions/attest). For amore information, see our guide on [using artifact attestations to establish a build's provenance](https://docs.github.com/enterprise-cloud@latest//actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(AttestationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Attestations.AttestationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(AttestationsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Attestations.AttestationsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, AttestationsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Attestations.AttestationsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Store an artifact attestation and associate it with a repository.The authenticated user must have write permission to the repository and, if using a fine-grained access token the `attestations:write` permission is required.Artifact attestations are meant to be created using the [attest action](https://github.com/actions/attest). For amore information, see our guide on [using artifact attestations to establish a build's provenance](https://docs.github.com/enterprise-cloud@latest//actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). @@ -79,11 +81,11 @@ public async Task PostAsync(AttestationsPostRequestBod /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(AttestationsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Attestations.AttestationsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AttestationsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Attestations.AttestationsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -96,11 +98,11 @@ public RequestInformation ToPostRequestInformation(AttestationsPostRequestBody b /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AttestationsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Attestations.AttestationsRequestBuilder WithUrl(string rawUrl) { - return new AttestationsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Attestations.AttestationsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestGetResponse.cs b/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestGetResponse.cs index 81b03778..05fe1333 100644 --- a/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestGetResponse.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Attestations.Item { +namespace GitHub.Repos.Item.Item.Attestations.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithSubject_digestGetResponse : IAdditionalDataHolder, IParsable + public partial class WithSubject_digestGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,13 +16,13 @@ public class WithSubject_digestGetResponse : IAdditionalDataHolder, IParsable /// The attestations property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Attestations { get; set; } + public List? Attestations { get; set; } #nullable restore #else - public List Attestations { get; set; } + public List Attestations { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithSubject_digestGetResponse() { @@ -29,12 +31,12 @@ public WithSubject_digestGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithSubject_digestGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithSubject_digestGetResponse(); + return new global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestGetResponse(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"attestations", n => { Attestations = n.GetCollectionOfObjectValues(WithSubject_digestGetResponse_attestations.CreateFromDiscriminatorValue)?.ToList(); } }, + { "attestations", n => { Attestations = n.GetCollectionOfObjectValues(global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestGetResponse_attestations.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -54,7 +56,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("attestations", Attestations); + writer.WriteCollectionOfObjectValues("attestations", Attestations); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestGetResponse_attestations.cs b/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestGetResponse_attestations.cs index ae6ae8f0..e2776531 100644 --- a/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestGetResponse_attestations.cs +++ b/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestGetResponse_attestations.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Attestations.Item { +namespace GitHub.Repos.Item.Item.Attestations.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithSubject_digestGetResponse_attestations : IAdditionalDataHolder, IParsable + public partial class WithSubject_digestGetResponse_attestations : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,15 +16,15 @@ public class WithSubject_digestGetResponse_attestations : IAdditionalDataHolder, /// The attestation's Sigstore Bundle.Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithSubject_digestGetResponse_attestations_bundle? Bundle { get; set; } + public global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle? Bundle { get; set; } #nullable restore #else - public WithSubject_digestGetResponse_attestations_bundle Bundle { get; set; } + public global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle Bundle { get; set; } #endif /// The repository_id property public int? RepositoryId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithSubject_digestGetResponse_attestations() { @@ -31,12 +33,12 @@ public WithSubject_digestGetResponse_attestations() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithSubject_digestGetResponse_attestations CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestGetResponse_attestations CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithSubject_digestGetResponse_attestations(); + return new global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestGetResponse_attestations(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"bundle", n => { Bundle = n.GetObjectValue(WithSubject_digestGetResponse_attestations_bundle.CreateFromDiscriminatorValue); } }, - {"repository_id", n => { RepositoryId = n.GetIntValue(); } }, + { "bundle", n => { Bundle = n.GetObjectValue(global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle.CreateFromDiscriminatorValue); } }, + { "repository_id", n => { RepositoryId = n.GetIntValue(); } }, }; } /// @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("bundle", Bundle); + writer.WriteObjectValue("bundle", Bundle); writer.WriteIntValue("repository_id", RepositoryId); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle.cs b/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle.cs index d16f440b..fe4c4e24 100644 --- a/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle.cs +++ b/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Attestations.Item { +namespace GitHub.Repos.Item.Item.Attestations.Item +{ /// /// The attestation's Sigstore Bundle.Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. /// - public class WithSubject_digestGetResponse_attestations_bundle : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithSubject_digestGetResponse_attestations_bundle : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The dsseEnvelope property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope? DsseEnvelope { get; set; } + public global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope? DsseEnvelope { get; set; } #nullable restore #else - public WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope DsseEnvelope { get; set; } + public global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope DsseEnvelope { get; set; } #endif /// The mediaType property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -31,13 +33,13 @@ public class WithSubject_digestGetResponse_attestations_bundle : IAdditionalData /// The verificationMaterial property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithSubject_digestGetResponse_attestations_bundle_verificationMaterial? VerificationMaterial { get; set; } + public global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle_verificationMaterial? VerificationMaterial { get; set; } #nullable restore #else - public WithSubject_digestGetResponse_attestations_bundle_verificationMaterial VerificationMaterial { get; set; } + public global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle_verificationMaterial VerificationMaterial { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithSubject_digestGetResponse_attestations_bundle() { @@ -46,12 +48,12 @@ public WithSubject_digestGetResponse_attestations_bundle() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithSubject_digestGetResponse_attestations_bundle CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithSubject_digestGetResponse_attestations_bundle(); + return new global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle(); } /// /// The deserialization information for the current model @@ -61,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"dsseEnvelope", n => { DsseEnvelope = n.GetObjectValue(WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope.CreateFromDiscriminatorValue); } }, - {"mediaType", n => { MediaType = n.GetStringValue(); } }, - {"verificationMaterial", n => { VerificationMaterial = n.GetObjectValue(WithSubject_digestGetResponse_attestations_bundle_verificationMaterial.CreateFromDiscriminatorValue); } }, + { "dsseEnvelope", n => { DsseEnvelope = n.GetObjectValue(global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope.CreateFromDiscriminatorValue); } }, + { "mediaType", n => { MediaType = n.GetStringValue(); } }, + { "verificationMaterial", n => { VerificationMaterial = n.GetObjectValue(global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle_verificationMaterial.CreateFromDiscriminatorValue); } }, }; } /// @@ -73,9 +75,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("dsseEnvelope", DsseEnvelope); + writer.WriteObjectValue("dsseEnvelope", DsseEnvelope); writer.WriteStringValue("mediaType", MediaType); - writer.WriteObjectValue("verificationMaterial", VerificationMaterial); + writer.WriteObjectValue("verificationMaterial", VerificationMaterial); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope.cs b/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope.cs index e9febd9a..6da97ee3 100644 --- a/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope.cs +++ b/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Attestations.Item { +namespace GitHub.Repos.Item.Item.Attestations.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope : IAdditionalDataHolder, IParsable + public partial class WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope() { @@ -21,12 +23,12 @@ public WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope(); + return new global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle_dsseEnvelope(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle_verificationMaterial.cs b/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle_verificationMaterial.cs index 5cdac767..6c9783cc 100644 --- a/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle_verificationMaterial.cs +++ b/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestGetResponse_attestations_bundle_verificationMaterial.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Attestations.Item { +namespace GitHub.Repos.Item.Item.Attestations.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithSubject_digestGetResponse_attestations_bundle_verificationMaterial : IAdditionalDataHolder, IParsable + public partial class WithSubject_digestGetResponse_attestations_bundle_verificationMaterial : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithSubject_digestGetResponse_attestations_bundle_verificationMaterial() { @@ -21,12 +23,12 @@ public WithSubject_digestGetResponse_attestations_bundle_verificationMaterial() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithSubject_digestGetResponse_attestations_bundle_verificationMaterial CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle_verificationMaterial CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithSubject_digestGetResponse_attestations_bundle_verificationMaterial(); + return new global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestGetResponse_attestations_bundle_verificationMaterial(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestItemRequestBuilder.cs index b5a2ae44..fbbc286a 100644 --- a/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Attestations/Item/WithSubject_digestItemRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Attestations.Item { +namespace GitHub.Repos.Item.Item.Attestations.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\attestations\{subject_digest} /// - public class WithSubject_digestItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithSubject_digestItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public WithSubject_digestItemRequestBuilder(Dictionary pathParam { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,20 +35,20 @@ public WithSubject_digestItemRequestBuilder(string rawUrl, IRequestAdapter reque /// List a collection of artifact attestations with a given subject digest that are associated with a repository.The authenticated user making the request must have read access to the repository. In addition, when using a fine-grained access token the `attestations:read` permission is required.**Please note:** in order to offer meaningful security benefits, an attestation's signature and timestamps **must** be cryptographically verified, and the identity of the attestation signer **must** be validated. Attestations can be verified using the [GitHub CLI `attestation verify` command](https://cli.github.com/manual/gh_attestation_verify). For more information, see [our guide on how to use artifact attestations to establish a build's provenance](https://docs.github.com/enterprise-cloud@latest//actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, WithSubject_digestGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// List a collection of artifact attestations with a given subject digest that are associated with a repository.The authenticated user making the request must have read access to the repository. In addition, when using a fine-grained access token the `attestations:read` permission is required.**Please note:** in order to offer meaningful security benefits, an attestation's signature and timestamps **must** be cryptographically verified, and the identity of the attestation signer **must** be validated. Attestations can be verified using the [GitHub CLI `attestation verify` command](https://cli.github.com/manual/gh_attestation_verify). For more information, see [our guide on how to use artifact attestations to establish a build's provenance](https://docs.github.com/enterprise-cloud@latest//actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). @@ -55,11 +57,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -70,16 +72,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithSubject_digestItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestItemRequestBuilder WithUrl(string rawUrl) { - return new WithSubject_digestItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Attestations.Item.WithSubject_digestItemRequestBuilder(rawUrl, RequestAdapter); } /// /// List a collection of artifact attestations with a given subject digest that are associated with a repository.The authenticated user making the request must have read access to the repository. In addition, when using a fine-grained access token the `attestations:read` permission is required.**Please note:** in order to offer meaningful security benefits, an attestation's signature and timestamps **must** be cryptographically verified, and the identity of the attestation signer **must** be validated. Attestations can be verified using the [GitHub CLI `attestation verify` command](https://cli.github.com/manual/gh_attestation_verify). For more information, see [our guide on how to use artifact attestations to establish a build's provenance](https://docs.github.com/enterprise-cloud@latest//actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). /// - public class WithSubject_digestItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithSubject_digestItemRequestBuilderGetQueryParameters { /// A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Repos/Item/Item/Autolinks/AutolinksPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Autolinks/AutolinksPostRequestBody.cs index a9a056b1..883cd35e 100644 --- a/src/GitHub/Repos/Item/Item/Autolinks/AutolinksPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Autolinks/AutolinksPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Autolinks { +namespace GitHub.Repos.Item.Item.Autolinks +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AutolinksPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AutolinksPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,7 +32,7 @@ public class AutolinksPostRequestBody : IAdditionalDataHolder, IParsable public string UrlTemplate { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AutolinksPostRequestBody() { @@ -39,12 +41,12 @@ public AutolinksPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AutolinksPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Autolinks.AutolinksPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AutolinksPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Autolinks.AutolinksPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"is_alphanumeric", n => { IsAlphanumeric = n.GetBoolValue(); } }, - {"key_prefix", n => { KeyPrefix = n.GetStringValue(); } }, - {"url_template", n => { UrlTemplate = n.GetStringValue(); } }, + { "is_alphanumeric", n => { IsAlphanumeric = n.GetBoolValue(); } }, + { "key_prefix", n => { KeyPrefix = n.GetStringValue(); } }, + { "url_template", n => { UrlTemplate = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Autolinks/AutolinksRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Autolinks/AutolinksRequestBuilder.cs index 33e519f5..246c61be 100644 --- a/src/GitHub/Repos/Item/Item/Autolinks/AutolinksRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Autolinks/AutolinksRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Autolinks.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Autolinks { +namespace GitHub.Repos.Item.Item.Autolinks +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\autolinks /// - public class AutolinksRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AutolinksRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.autolinks.item collection /// The unique identifier of the autolink. - /// A - public WithAutolink_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Autolinks.Item.WithAutolink_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("autolink_id", position); - return new WithAutolink_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Autolinks.Item.WithAutolink_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public AutolinksRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,47 +49,47 @@ public AutolinksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Gets all autolinks that are configured for a repository.Information about autolinks are only available to repository administrators. /// API method documentation /// - /// A List<Autolink> + /// A List<global::GitHub.Models.Autolink> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Autolink.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Autolink.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Users with admin access to the repository can create an autolink. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(AutolinksPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Autolinks.AutolinksPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(AutolinksPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Autolinks.AutolinksPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Autolink.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Autolink.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets all autolinks that are configured for a repository.Information about autolinks are only available to repository administrators. @@ -116,11 +118,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(AutolinksPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Autolinks.AutolinksPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AutolinksPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Autolinks.AutolinksPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -133,11 +135,11 @@ public RequestInformation ToPostRequestInformation(AutolinksPostRequestBody body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AutolinksRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Autolinks.AutolinksRequestBuilder WithUrl(string rawUrl) { - return new AutolinksRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Autolinks.AutolinksRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Autolinks/Item/WithAutolink_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Autolinks/Item/WithAutolink_ItemRequestBuilder.cs index 3abf7797..33875c14 100644 --- a/src/GitHub/Repos/Item/Item/Autolinks/Item/WithAutolink_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Autolinks/Item/WithAutolink_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Autolinks.Item { +namespace GitHub.Repos.Item.Item.Autolinks.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\autolinks\{autolink_id} /// - public class WithAutolink_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithAutolink_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithAutolink_ItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public WithAutolink_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAda /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -49,7 +51,7 @@ public async Task DeleteAsync(Action> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -57,25 +59,25 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Autolink.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Autolink.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// This deletes a single autolink reference by ID that was configured for the given repository.Information about autolinks are only available to repository administrators. @@ -118,11 +120,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithAutolink_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Autolinks.Item.WithAutolink_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithAutolink_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Autolinks.Item.WithAutolink_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/AutomatedSecurityFixes/AutomatedSecurityFixesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/AutomatedSecurityFixes/AutomatedSecurityFixesRequestBuilder.cs index 45b53580..282754af 100644 --- a/src/GitHub/Repos/Item/Item/AutomatedSecurityFixes/AutomatedSecurityFixesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/AutomatedSecurityFixes/AutomatedSecurityFixesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.AutomatedSecurityFixes { +namespace GitHub.Repos.Item.Item.AutomatedSecurityFixes +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\automated-security-fixes /// - public class AutomatedSecurityFixesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AutomatedSecurityFixesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AutomatedSecurityFixesRequestBuilder(Dictionary pathParam { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,20 +54,20 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CheckAutomatedSecurityFixes.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CheckAutomatedSecurityFixes.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Enables automated security fixes for a repository. The authenticated user must have admin access to the repository. For more information, see "[Configuring automated security fixes](https://docs.github.com/enterprise-cloud@latest//articles/configuring-automated-security-fixes)". @@ -143,11 +145,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AutomatedSecurityFixesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.AutomatedSecurityFixes.AutomatedSecurityFixesRequestBuilder WithUrl(string rawUrl) { - return new AutomatedSecurityFixesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.AutomatedSecurityFixes.AutomatedSecurityFixesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Branches/BranchesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Branches/BranchesRequestBuilder.cs index 7ae20b3c..bae31d22 100644 --- a/src/GitHub/Repos/Item/Item/Branches/BranchesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Branches/BranchesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Branches.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Branches { +namespace GitHub.Repos.Item.Item.Branches +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches /// - public class BranchesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class BranchesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.branches.item collection /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-cloud@latest//graphql). - /// A - public WithBranchItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Branches.Item.WithBranchItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("branch", position); - return new WithBranchItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Branches.Item.WithBranchItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public BranchesRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,36 +49,36 @@ public BranchesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// List branches /// API method documentation /// - /// A List<ShortBranch> + /// A List<global::GitHub.Models.ShortBranch> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ShortBranch.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.ShortBranch.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -87,16 +89,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public BranchesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Branches.BranchesRequestBuilder WithUrl(string rawUrl) { - return new BranchesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Branches.BranchesRequestBuilder(rawUrl, RequestAdapter); } /// /// List branches /// - public class BranchesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class BranchesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Enforce_admins/Enforce_adminsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Enforce_admins/Enforce_adminsRequestBuilder.cs index b690ad75..f5c475e0 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Enforce_admins/Enforce_adminsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Enforce_admins/Enforce_adminsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Enforce_admins { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Enforce_admins +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\protection\enforce_admins /// - public class Enforce_adminsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Enforce_adminsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Enforce_adminsRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public Enforce_adminsRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -49,7 +51,7 @@ public async Task DeleteAsync(Action> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -57,39 +59,39 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ProtectedBranchAdminEnforced.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ProtectedBranchAdminEnforced.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Adding admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ProtectedBranchAdminEnforced.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ProtectedBranchAdminEnforced.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Removing admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled. @@ -151,11 +153,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Enforce_adminsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Enforce_admins.Enforce_adminsRequestBuilder WithUrl(string rawUrl) { - return new Enforce_adminsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Enforce_admins.Enforce_adminsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody.cs index 3131e30e..6b98d8d7 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ProtectionPutRequestBody : IAdditionalDataHolder, IParsable + public partial class ProtectionPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,29 +32,29 @@ public class ProtectionPutRequestBody : IAdditionalDataHolder, IParsable /// Require at least one approving review on a pull request, before merging. Set to `null` to disable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectionPutRequestBody_required_pull_request_reviews? RequiredPullRequestReviews { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_pull_request_reviews? RequiredPullRequestReviews { get; set; } #nullable restore #else - public ProtectionPutRequestBody_required_pull_request_reviews RequiredPullRequestReviews { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_pull_request_reviews RequiredPullRequestReviews { get; set; } #endif /// Require status checks to pass before merging. Set to `null` to disable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectionPutRequestBody_required_status_checks? RequiredStatusChecks { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_status_checks? RequiredStatusChecks { get; set; } #nullable restore #else - public ProtectionPutRequestBody_required_status_checks RequiredStatusChecks { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_status_checks RequiredStatusChecks { get; set; } #endif /// Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectionPutRequestBody_restrictions? Restrictions { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_restrictions? Restrictions { get; set; } #nullable restore #else - public ProtectionPutRequestBody_restrictions Restrictions { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_restrictions Restrictions { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProtectionPutRequestBody() { @@ -61,12 +63,12 @@ public ProtectionPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectionPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectionPutRequestBody(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody(); } /// /// The deserialization information for the current model @@ -76,17 +78,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allow_deletions", n => { AllowDeletions = n.GetBoolValue(); } }, - {"allow_force_pushes", n => { AllowForcePushes = n.GetBoolValue(); } }, - {"allow_fork_syncing", n => { AllowForkSyncing = n.GetBoolValue(); } }, - {"block_creations", n => { BlockCreations = n.GetBoolValue(); } }, - {"enforce_admins", n => { EnforceAdmins = n.GetBoolValue(); } }, - {"lock_branch", n => { LockBranch = n.GetBoolValue(); } }, - {"required_conversation_resolution", n => { RequiredConversationResolution = n.GetBoolValue(); } }, - {"required_linear_history", n => { RequiredLinearHistory = n.GetBoolValue(); } }, - {"required_pull_request_reviews", n => { RequiredPullRequestReviews = n.GetObjectValue(ProtectionPutRequestBody_required_pull_request_reviews.CreateFromDiscriminatorValue); } }, - {"required_status_checks", n => { RequiredStatusChecks = n.GetObjectValue(ProtectionPutRequestBody_required_status_checks.CreateFromDiscriminatorValue); } }, - {"restrictions", n => { Restrictions = n.GetObjectValue(ProtectionPutRequestBody_restrictions.CreateFromDiscriminatorValue); } }, + { "allow_deletions", n => { AllowDeletions = n.GetBoolValue(); } }, + { "allow_force_pushes", n => { AllowForcePushes = n.GetBoolValue(); } }, + { "allow_fork_syncing", n => { AllowForkSyncing = n.GetBoolValue(); } }, + { "block_creations", n => { BlockCreations = n.GetBoolValue(); } }, + { "enforce_admins", n => { EnforceAdmins = n.GetBoolValue(); } }, + { "lock_branch", n => { LockBranch = n.GetBoolValue(); } }, + { "required_conversation_resolution", n => { RequiredConversationResolution = n.GetBoolValue(); } }, + { "required_linear_history", n => { RequiredLinearHistory = n.GetBoolValue(); } }, + { "required_pull_request_reviews", n => { RequiredPullRequestReviews = n.GetObjectValue(global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_pull_request_reviews.CreateFromDiscriminatorValue); } }, + { "required_status_checks", n => { RequiredStatusChecks = n.GetObjectValue(global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_status_checks.CreateFromDiscriminatorValue); } }, + { "restrictions", n => { Restrictions = n.GetObjectValue(global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_restrictions.CreateFromDiscriminatorValue); } }, }; } /// @@ -104,9 +106,9 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("lock_branch", LockBranch); writer.WriteBoolValue("required_conversation_resolution", RequiredConversationResolution); writer.WriteBoolValue("required_linear_history", RequiredLinearHistory); - writer.WriteObjectValue("required_pull_request_reviews", RequiredPullRequestReviews); - writer.WriteObjectValue("required_status_checks", RequiredStatusChecks); - writer.WriteObjectValue("restrictions", Restrictions); + writer.WriteObjectValue("required_pull_request_reviews", RequiredPullRequestReviews); + writer.WriteObjectValue("required_status_checks", RequiredStatusChecks); + writer.WriteObjectValue("restrictions", Restrictions); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_pull_request_reviews.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_pull_request_reviews.cs index f0deefb1..27b2e5e3 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_pull_request_reviews.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_pull_request_reviews.cs @@ -1,32 +1,34 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection +{ /// /// Require at least one approving review on a pull request, before merging. Set to `null` to disable. /// - public class ProtectionPutRequestBody_required_pull_request_reviews : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProtectionPutRequestBody_required_pull_request_reviews : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// Allow specific users, teams, or apps to bypass pull request requirements. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectionPutRequestBody_required_pull_request_reviews_bypass_pull_request_allowances? BypassPullRequestAllowances { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_pull_request_reviews_bypass_pull_request_allowances? BypassPullRequestAllowances { get; set; } #nullable restore #else - public ProtectionPutRequestBody_required_pull_request_reviews_bypass_pull_request_allowances BypassPullRequestAllowances { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_pull_request_reviews_bypass_pull_request_allowances BypassPullRequestAllowances { get; set; } #endif /// Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtectionPutRequestBody_required_pull_request_reviews_dismissal_restrictions? DismissalRestrictions { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_pull_request_reviews_dismissal_restrictions? DismissalRestrictions { get; set; } #nullable restore #else - public ProtectionPutRequestBody_required_pull_request_reviews_dismissal_restrictions DismissalRestrictions { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_pull_request_reviews_dismissal_restrictions DismissalRestrictions { get; set; } #endif /// Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit. public bool? DismissStaleReviews { get; set; } @@ -37,7 +39,7 @@ public class ProtectionPutRequestBody_required_pull_request_reviews : IAdditiona /// Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`. public bool? RequireLastPushApproval { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProtectionPutRequestBody_required_pull_request_reviews() { @@ -46,12 +48,12 @@ public ProtectionPutRequestBody_required_pull_request_reviews() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectionPutRequestBody_required_pull_request_reviews CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_pull_request_reviews CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectionPutRequestBody_required_pull_request_reviews(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_pull_request_reviews(); } /// /// The deserialization information for the current model @@ -61,12 +63,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"bypass_pull_request_allowances", n => { BypassPullRequestAllowances = n.GetObjectValue(ProtectionPutRequestBody_required_pull_request_reviews_bypass_pull_request_allowances.CreateFromDiscriminatorValue); } }, - {"dismiss_stale_reviews", n => { DismissStaleReviews = n.GetBoolValue(); } }, - {"dismissal_restrictions", n => { DismissalRestrictions = n.GetObjectValue(ProtectionPutRequestBody_required_pull_request_reviews_dismissal_restrictions.CreateFromDiscriminatorValue); } }, - {"require_code_owner_reviews", n => { RequireCodeOwnerReviews = n.GetBoolValue(); } }, - {"require_last_push_approval", n => { RequireLastPushApproval = n.GetBoolValue(); } }, - {"required_approving_review_count", n => { RequiredApprovingReviewCount = n.GetIntValue(); } }, + { "bypass_pull_request_allowances", n => { BypassPullRequestAllowances = n.GetObjectValue(global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_pull_request_reviews_bypass_pull_request_allowances.CreateFromDiscriminatorValue); } }, + { "dismiss_stale_reviews", n => { DismissStaleReviews = n.GetBoolValue(); } }, + { "dismissal_restrictions", n => { DismissalRestrictions = n.GetObjectValue(global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_pull_request_reviews_dismissal_restrictions.CreateFromDiscriminatorValue); } }, + { "require_code_owner_reviews", n => { RequireCodeOwnerReviews = n.GetBoolValue(); } }, + { "require_last_push_approval", n => { RequireLastPushApproval = n.GetBoolValue(); } }, + { "required_approving_review_count", n => { RequiredApprovingReviewCount = n.GetIntValue(); } }, }; } /// @@ -76,8 +78,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("bypass_pull_request_allowances", BypassPullRequestAllowances); - writer.WriteObjectValue("dismissal_restrictions", DismissalRestrictions); + writer.WriteObjectValue("bypass_pull_request_allowances", BypassPullRequestAllowances); + writer.WriteObjectValue("dismissal_restrictions", DismissalRestrictions); writer.WriteBoolValue("dismiss_stale_reviews", DismissStaleReviews); writer.WriteBoolValue("require_code_owner_reviews", RequireCodeOwnerReviews); writer.WriteIntValue("required_approving_review_count", RequiredApprovingReviewCount); diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_pull_request_reviews_bypass_pull_request_allowances.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_pull_request_reviews_bypass_pull_request_allowances.cs index 72ee1bf9..8032c94b 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_pull_request_reviews_bypass_pull_request_allowances.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_pull_request_reviews_bypass_pull_request_allowances.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection +{ /// /// Allow specific users, teams, or apps to bypass pull request requirements. /// - public class ProtectionPutRequestBody_required_pull_request_reviews_bypass_pull_request_allowances : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProtectionPutRequestBody_required_pull_request_reviews_bypass_pull_request_allowances : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -37,7 +39,7 @@ public class ProtectionPutRequestBody_required_pull_request_reviews_bypass_pull_ public List Users { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProtectionPutRequestBody_required_pull_request_reviews_bypass_pull_request_allowances() { @@ -46,12 +48,12 @@ public ProtectionPutRequestBody_required_pull_request_reviews_bypass_pull_reques /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectionPutRequestBody_required_pull_request_reviews_bypass_pull_request_allowances CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_pull_request_reviews_bypass_pull_request_allowances CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectionPutRequestBody_required_pull_request_reviews_bypass_pull_request_allowances(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_pull_request_reviews_bypass_pull_request_allowances(); } /// /// The deserialization information for the current model @@ -61,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"apps", n => { Apps = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"teams", n => { Teams = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"users", n => { Users = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "apps", n => { Apps = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "teams", n => { Teams = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "users", n => { Users = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_pull_request_reviews_dismissal_restrictions.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_pull_request_reviews_dismissal_restrictions.cs index 991a8b74..e0880688 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_pull_request_reviews_dismissal_restrictions.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_pull_request_reviews_dismissal_restrictions.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection +{ /// /// Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories. /// - public class ProtectionPutRequestBody_required_pull_request_reviews_dismissal_restrictions : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProtectionPutRequestBody_required_pull_request_reviews_dismissal_restrictions : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -37,7 +39,7 @@ public class ProtectionPutRequestBody_required_pull_request_reviews_dismissal_re public List Users { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProtectionPutRequestBody_required_pull_request_reviews_dismissal_restrictions() { @@ -46,12 +48,12 @@ public ProtectionPutRequestBody_required_pull_request_reviews_dismissal_restrict /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectionPutRequestBody_required_pull_request_reviews_dismissal_restrictions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_pull_request_reviews_dismissal_restrictions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectionPutRequestBody_required_pull_request_reviews_dismissal_restrictions(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_pull_request_reviews_dismissal_restrictions(); } /// /// The deserialization information for the current model @@ -61,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"apps", n => { Apps = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"teams", n => { Teams = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"users", n => { Users = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "apps", n => { Apps = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "teams", n => { Teams = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "users", n => { Users = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_status_checks.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_status_checks.cs index cb3a84c5..ba5b7043 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_status_checks.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_status_checks.cs @@ -1,24 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection +{ /// /// Require status checks to pass before merging. Set to `null` to disable. /// - public class ProtectionPutRequestBody_required_status_checks : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProtectionPutRequestBody_required_status_checks : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The list of status checks to require in order to merge into this branch. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Checks { get; set; } + public List? Checks { get; set; } #nullable restore #else - public List Checks { get; set; } + public List Checks { get; set; } #endif /// **Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control. [Obsolete("")] @@ -32,7 +34,7 @@ public class ProtectionPutRequestBody_required_status_checks : IAdditionalDataHo /// Require branches to be up to date before merging. public bool? Strict { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProtectionPutRequestBody_required_status_checks() { @@ -41,12 +43,12 @@ public ProtectionPutRequestBody_required_status_checks() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectionPutRequestBody_required_status_checks CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_status_checks CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectionPutRequestBody_required_status_checks(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_status_checks(); } /// /// The deserialization information for the current model @@ -56,9 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"checks", n => { Checks = n.GetCollectionOfObjectValues(ProtectionPutRequestBody_required_status_checks_checks.CreateFromDiscriminatorValue)?.ToList(); } }, - {"contexts", n => { Contexts = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"strict", n => { Strict = n.GetBoolValue(); } }, + { "checks", n => { Checks = n.GetCollectionOfObjectValues(global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_status_checks_checks.CreateFromDiscriminatorValue)?.AsList(); } }, + { "contexts", n => { Contexts = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "strict", n => { Strict = n.GetBoolValue(); } }, }; } /// @@ -68,7 +70,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("checks", Checks); + writer.WriteCollectionOfObjectValues("checks", Checks); writer.WriteCollectionOfPrimitiveValues("contexts", Contexts); writer.WriteBoolValue("strict", Strict); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_status_checks_checks.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_status_checks_checks.cs index aba161cd..a92e49f3 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_status_checks_checks.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_status_checks_checks.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ProtectionPutRequestBody_required_status_checks_checks : IAdditionalDataHolder, IParsable + public partial class ProtectionPutRequestBody_required_status_checks_checks : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class ProtectionPutRequestBody_required_status_checks_checks : IAdditiona public string Context { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProtectionPutRequestBody_required_status_checks_checks() { @@ -31,12 +33,12 @@ public ProtectionPutRequestBody_required_status_checks_checks() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectionPutRequestBody_required_status_checks_checks CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_status_checks_checks CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectionPutRequestBody_required_status_checks_checks(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_required_status_checks_checks(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"app_id", n => { AppId = n.GetIntValue(); } }, - {"context", n => { Context = n.GetStringValue(); } }, + { "app_id", n => { AppId = n.GetIntValue(); } }, + { "context", n => { Context = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_restrictions.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_restrictions.cs index fd69936d..fdbd885d 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_restrictions.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_restrictions.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection +{ /// /// Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable. /// - public class ProtectionPutRequestBody_restrictions : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProtectionPutRequestBody_restrictions : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -37,7 +39,7 @@ public class ProtectionPutRequestBody_restrictions : IAdditionalDataHolder, IPar public List Users { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProtectionPutRequestBody_restrictions() { @@ -46,12 +48,12 @@ public ProtectionPutRequestBody_restrictions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtectionPutRequestBody_restrictions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_restrictions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectionPutRequestBody_restrictions(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody_restrictions(); } /// /// The deserialization information for the current model @@ -61,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"apps", n => { Apps = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"teams", n => { Teams = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"users", n => { Users = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "apps", n => { Apps = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "teams", n => { Teams = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "users", n => { Users = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionRequestBuilder.cs index ba2607ea..f7124978 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionRequestBuilder.cs @@ -5,47 +5,49 @@ using GitHub.Repos.Item.Item.Branches.Item.Protection.Required_signatures; using GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks; using GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\protection /// - public class ProtectionRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProtectionRequestBuilder : BaseRequestBuilder { /// The enforce_admins property - public Enforce_adminsRequestBuilder Enforce_admins + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Enforce_admins.Enforce_adminsRequestBuilder Enforce_admins { - get => new Enforce_adminsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Enforce_admins.Enforce_adminsRequestBuilder(PathParameters, RequestAdapter); } /// The required_pull_request_reviews property - public Required_pull_request_reviewsRequestBuilder Required_pull_request_reviews + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews.Required_pull_request_reviewsRequestBuilder Required_pull_request_reviews { - get => new Required_pull_request_reviewsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews.Required_pull_request_reviewsRequestBuilder(PathParameters, RequestAdapter); } /// The required_signatures property - public Required_signaturesRequestBuilder Required_signatures + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_signatures.Required_signaturesRequestBuilder Required_signatures { - get => new Required_signaturesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_signatures.Required_signaturesRequestBuilder(PathParameters, RequestAdapter); } /// The required_status_checks property - public Required_status_checksRequestBuilder Required_status_checks + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Required_status_checksRequestBuilder Required_status_checks { - get => new Required_status_checksRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Required_status_checksRequestBuilder(PathParameters, RequestAdapter); } /// The restrictions property - public RestrictionsRequestBuilder Restrictions + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.RestrictionsRequestBuilder Restrictions { - get => new RestrictionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.RestrictionsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -53,7 +55,7 @@ public ProtectionRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -66,7 +68,7 @@ public ProtectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -79,7 +81,7 @@ public async Task DeleteAsync(Action> { - {"403", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -87,55 +89,55 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, BranchProtection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.BranchProtection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Protecting a branch requires admin or owner permissions to the repository.> [!NOTE]> Passing new arrays of `users` and `teams` replaces their previous values.> [!NOTE]> The list of users, apps, and teams in total is limited to 100 items. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ProtectionPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(ProtectionPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ProtectedBranch.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ProtectedBranch.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -183,11 +185,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ProtectionPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(ProtectionPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -200,11 +202,11 @@ public RequestInformation ToPutRequestInformation(ProtectionPutRequestBody body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ProtectionRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionRequestBuilder WithUrl(string rawUrl) { - return new ProtectionRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_pull_request_reviews/Required_pull_request_reviewsPatchRequestBody.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_pull_request_reviews/Required_pull_request_reviewsPatchRequestBody.cs index 6cb6f70d..c2117a2f 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_pull_request_reviews/Required_pull_request_reviewsPatchRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_pull_request_reviews/Required_pull_request_reviewsPatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Required_pull_request_reviewsPatchRequestBody : IAdditionalDataHolder, IParsable + public partial class Required_pull_request_reviewsPatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,18 +16,18 @@ public class Required_pull_request_reviewsPatchRequestBody : IAdditionalDataHold /// Allow specific users, teams, or apps to bypass pull request requirements. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Required_pull_request_reviewsPatchRequestBody_bypass_pull_request_allowances? BypassPullRequestAllowances { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews.Required_pull_request_reviewsPatchRequestBody_bypass_pull_request_allowances? BypassPullRequestAllowances { get; set; } #nullable restore #else - public Required_pull_request_reviewsPatchRequestBody_bypass_pull_request_allowances BypassPullRequestAllowances { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews.Required_pull_request_reviewsPatchRequestBody_bypass_pull_request_allowances BypassPullRequestAllowances { get; set; } #endif /// Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Required_pull_request_reviewsPatchRequestBody_dismissal_restrictions? DismissalRestrictions { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews.Required_pull_request_reviewsPatchRequestBody_dismissal_restrictions? DismissalRestrictions { get; set; } #nullable restore #else - public Required_pull_request_reviewsPatchRequestBody_dismissal_restrictions DismissalRestrictions { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews.Required_pull_request_reviewsPatchRequestBody_dismissal_restrictions DismissalRestrictions { get; set; } #endif /// Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit. public bool? DismissStaleReviews { get; set; } @@ -36,7 +38,7 @@ public class Required_pull_request_reviewsPatchRequestBody : IAdditionalDataHold /// Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false` public bool? RequireLastPushApproval { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Required_pull_request_reviewsPatchRequestBody() { @@ -45,12 +47,12 @@ public Required_pull_request_reviewsPatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Required_pull_request_reviewsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews.Required_pull_request_reviewsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Required_pull_request_reviewsPatchRequestBody(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews.Required_pull_request_reviewsPatchRequestBody(); } /// /// The deserialization information for the current model @@ -60,12 +62,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"bypass_pull_request_allowances", n => { BypassPullRequestAllowances = n.GetObjectValue(Required_pull_request_reviewsPatchRequestBody_bypass_pull_request_allowances.CreateFromDiscriminatorValue); } }, - {"dismiss_stale_reviews", n => { DismissStaleReviews = n.GetBoolValue(); } }, - {"dismissal_restrictions", n => { DismissalRestrictions = n.GetObjectValue(Required_pull_request_reviewsPatchRequestBody_dismissal_restrictions.CreateFromDiscriminatorValue); } }, - {"require_code_owner_reviews", n => { RequireCodeOwnerReviews = n.GetBoolValue(); } }, - {"require_last_push_approval", n => { RequireLastPushApproval = n.GetBoolValue(); } }, - {"required_approving_review_count", n => { RequiredApprovingReviewCount = n.GetIntValue(); } }, + { "bypass_pull_request_allowances", n => { BypassPullRequestAllowances = n.GetObjectValue(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews.Required_pull_request_reviewsPatchRequestBody_bypass_pull_request_allowances.CreateFromDiscriminatorValue); } }, + { "dismiss_stale_reviews", n => { DismissStaleReviews = n.GetBoolValue(); } }, + { "dismissal_restrictions", n => { DismissalRestrictions = n.GetObjectValue(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews.Required_pull_request_reviewsPatchRequestBody_dismissal_restrictions.CreateFromDiscriminatorValue); } }, + { "require_code_owner_reviews", n => { RequireCodeOwnerReviews = n.GetBoolValue(); } }, + { "require_last_push_approval", n => { RequireLastPushApproval = n.GetBoolValue(); } }, + { "required_approving_review_count", n => { RequiredApprovingReviewCount = n.GetIntValue(); } }, }; } /// @@ -75,8 +77,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("bypass_pull_request_allowances", BypassPullRequestAllowances); - writer.WriteObjectValue("dismissal_restrictions", DismissalRestrictions); + writer.WriteObjectValue("bypass_pull_request_allowances", BypassPullRequestAllowances); + writer.WriteObjectValue("dismissal_restrictions", DismissalRestrictions); writer.WriteBoolValue("dismiss_stale_reviews", DismissStaleReviews); writer.WriteBoolValue("require_code_owner_reviews", RequireCodeOwnerReviews); writer.WriteIntValue("required_approving_review_count", RequiredApprovingReviewCount); diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_pull_request_reviews/Required_pull_request_reviewsPatchRequestBody_bypass_pull_request_allowances.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_pull_request_reviews/Required_pull_request_reviewsPatchRequestBody_bypass_pull_request_allowances.cs index 8971c430..14fdf4ff 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_pull_request_reviews/Required_pull_request_reviewsPatchRequestBody_bypass_pull_request_allowances.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_pull_request_reviews/Required_pull_request_reviewsPatchRequestBody_bypass_pull_request_allowances.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews +{ /// /// Allow specific users, teams, or apps to bypass pull request requirements. /// - public class Required_pull_request_reviewsPatchRequestBody_bypass_pull_request_allowances : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Required_pull_request_reviewsPatchRequestBody_bypass_pull_request_allowances : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -37,7 +39,7 @@ public class Required_pull_request_reviewsPatchRequestBody_bypass_pull_request_a public List Users { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Required_pull_request_reviewsPatchRequestBody_bypass_pull_request_allowances() { @@ -46,12 +48,12 @@ public Required_pull_request_reviewsPatchRequestBody_bypass_pull_request_allowan /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Required_pull_request_reviewsPatchRequestBody_bypass_pull_request_allowances CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews.Required_pull_request_reviewsPatchRequestBody_bypass_pull_request_allowances CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Required_pull_request_reviewsPatchRequestBody_bypass_pull_request_allowances(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews.Required_pull_request_reviewsPatchRequestBody_bypass_pull_request_allowances(); } /// /// The deserialization information for the current model @@ -61,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"apps", n => { Apps = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"teams", n => { Teams = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"users", n => { Users = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "apps", n => { Apps = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "teams", n => { Teams = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "users", n => { Users = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_pull_request_reviews/Required_pull_request_reviewsPatchRequestBody_dismissal_restrictions.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_pull_request_reviews/Required_pull_request_reviewsPatchRequestBody_dismissal_restrictions.cs index 6979bfbc..675a35be 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_pull_request_reviews/Required_pull_request_reviewsPatchRequestBody_dismissal_restrictions.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_pull_request_reviews/Required_pull_request_reviewsPatchRequestBody_dismissal_restrictions.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews +{ /// /// Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories. /// - public class Required_pull_request_reviewsPatchRequestBody_dismissal_restrictions : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Required_pull_request_reviewsPatchRequestBody_dismissal_restrictions : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -37,7 +39,7 @@ public class Required_pull_request_reviewsPatchRequestBody_dismissal_restriction public List Users { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Required_pull_request_reviewsPatchRequestBody_dismissal_restrictions() { @@ -46,12 +48,12 @@ public Required_pull_request_reviewsPatchRequestBody_dismissal_restrictions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Required_pull_request_reviewsPatchRequestBody_dismissal_restrictions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews.Required_pull_request_reviewsPatchRequestBody_dismissal_restrictions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Required_pull_request_reviewsPatchRequestBody_dismissal_restrictions(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews.Required_pull_request_reviewsPatchRequestBody_dismissal_restrictions(); } /// /// The deserialization information for the current model @@ -61,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"apps", n => { Apps = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"teams", n => { Teams = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"users", n => { Users = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "apps", n => { Apps = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "teams", n => { Teams = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "users", n => { Users = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_pull_request_reviews/Required_pull_request_reviewsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_pull_request_reviews/Required_pull_request_reviewsRequestBuilder.cs index f520aea4..9e4179ec 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_pull_request_reviews/Required_pull_request_reviewsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_pull_request_reviews/Required_pull_request_reviewsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\protection\required_pull_request_reviews /// - public class Required_pull_request_reviewsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Required_pull_request_reviewsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Required_pull_request_reviewsRequestBuilder(Dictionary pa { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public Required_pull_request_reviewsRequestBuilder(string rawUrl, IRequestAdapte /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -49,7 +51,7 @@ public async Task DeleteAsync(Action> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -57,46 +59,46 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ProtectedBranchPullRequestReview.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ProtectedBranchPullRequestReview.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Updating pull request review enforcement requires admin or owner permissions to the repository and branch protection to be enabled.> [!NOTE]> Passing new arrays of `users` and `teams` replaces their previous values. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(Required_pull_request_reviewsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews.Required_pull_request_reviewsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Required_pull_request_reviewsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews.Required_pull_request_reviewsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ProtectedBranchPullRequestReview.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ProtectedBranchPullRequestReview.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -144,11 +146,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Required_pull_request_reviewsPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews.Required_pull_request_reviewsPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Required_pull_request_reviewsPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews.Required_pull_request_reviewsPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -161,11 +163,11 @@ public RequestInformation ToPatchRequestInformation(Required_pull_request_review /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Required_pull_request_reviewsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews.Required_pull_request_reviewsRequestBuilder WithUrl(string rawUrl) { - return new Required_pull_request_reviewsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_pull_request_reviews.Required_pull_request_reviewsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_signatures/Required_signaturesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_signatures/Required_signaturesRequestBuilder.cs index 83a8bd66..986ced4f 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_signatures/Required_signaturesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_signatures/Required_signaturesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_signatures { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_signatures +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\protection\required_signatures /// - public class Required_signaturesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Required_signaturesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Required_signaturesRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public Required_signaturesRequestBuilder(string rawUrl, IRequestAdapter requestA /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -49,7 +51,7 @@ public async Task DeleteAsync(Action> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -57,49 +59,49 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ProtectedBranchAdminEnforced.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ProtectedBranchAdminEnforced.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.When authenticated with admin or owner permissions to the repository, you can use this endpoint to require signed commits on a branch. You must enable branch protection to require signed commits. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ProtectedBranchAdminEnforced.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ProtectedBranchAdminEnforced.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.When authenticated with admin or owner permissions to the repository, you can use this endpoint to disable required signed commits on a branch. You must enable branch protection to require signed commits. @@ -161,11 +163,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Required_signaturesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_signatures.Required_signaturesRequestBuilder WithUrl(string rawUrl) { - return new Required_signaturesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_signatures.Required_signaturesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Contexts/ContextsDeleteRequestBodyMember1.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Contexts/ContextsDeleteRequestBodyMember1.cs index d7788880..2d88dc75 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Contexts/ContextsDeleteRequestBodyMember1.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Contexts/ContextsDeleteRequestBodyMember1.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ContextsDeleteRequestBodyMember1 : IAdditionalDataHolder, IParsable + public partial class ContextsDeleteRequestBodyMember1 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class ContextsDeleteRequestBodyMember1 : IAdditionalDataHolder, IParsable public List Contexts { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ContextsDeleteRequestBodyMember1() { @@ -29,12 +31,12 @@ public ContextsDeleteRequestBodyMember1() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ContextsDeleteRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsDeleteRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ContextsDeleteRequestBodyMember1(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsDeleteRequestBodyMember1(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"contexts", n => { Contexts = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "contexts", n => { Contexts = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Contexts/ContextsPostRequestBodyMember1.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Contexts/ContextsPostRequestBodyMember1.cs index aabd75c4..1ec4ef70 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Contexts/ContextsPostRequestBodyMember1.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Contexts/ContextsPostRequestBodyMember1.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ContextsPostRequestBodyMember1 : IAdditionalDataHolder, IParsable + public partial class ContextsPostRequestBodyMember1 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class ContextsPostRequestBodyMember1 : IAdditionalDataHolder, IParsable public List Contexts { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ContextsPostRequestBodyMember1() { @@ -29,12 +31,12 @@ public ContextsPostRequestBodyMember1() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ContextsPostRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPostRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ContextsPostRequestBodyMember1(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPostRequestBodyMember1(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"contexts", n => { Contexts = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "contexts", n => { Contexts = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Contexts/ContextsPutRequestBodyMember1.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Contexts/ContextsPutRequestBodyMember1.cs index daddf1c7..06cc0e95 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Contexts/ContextsPutRequestBodyMember1.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Contexts/ContextsPutRequestBodyMember1.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ContextsPutRequestBodyMember1 : IAdditionalDataHolder, IParsable + public partial class ContextsPutRequestBodyMember1 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class ContextsPutRequestBodyMember1 : IAdditionalDataHolder, IParsable public List Contexts { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ContextsPutRequestBodyMember1() { @@ -29,12 +31,12 @@ public ContextsPutRequestBodyMember1() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ContextsPutRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPutRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ContextsPutRequestBodyMember1(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPutRequestBodyMember1(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"contexts", n => { Contexts = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "contexts", n => { Contexts = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Contexts/ContextsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Contexts/ContextsRequestBuilder.cs index b8f5e4f5..1ed9a133 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Contexts/ContextsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Contexts/ContextsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\protection\required_status_checks\contexts /// - public class ContextsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ContextsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ContextsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -38,26 +40,26 @@ public ContextsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> DeleteAsync(ContextsDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> DeleteAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder.ContextsDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> DeleteAsync(ContextsDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> DeleteAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder.ContextsDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; var collectionResult = await RequestAdapter.SendPrimitiveCollectionAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + return collectionResult?.AsList(); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -66,7 +68,7 @@ public async Task> DeleteAsync(ContextsDeleteRequestBody body, Acti /// A List<string> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -79,10 +81,10 @@ public async Task> GetAsync(Action> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; var collectionResult = await RequestAdapter.SendPrimitiveCollectionAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + return collectionResult?.AsList(); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -92,28 +94,28 @@ public async Task> GetAsync(ActionThe request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> PostAsync(ContextsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> PostAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder.ContextsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> PostAsync(ContextsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> PostAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder.ContextsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; var collectionResult = await RequestAdapter.SendPrimitiveCollectionAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + return collectionResult?.AsList(); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -123,26 +125,26 @@ public async Task> PostAsync(ContextsPostRequestBody body, ActionThe request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> PutAsync(ContextsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> PutAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder.ContextsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> PutAsync(ContextsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> PutAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder.ContextsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; var collectionResult = await RequestAdapter.SendPrimitiveCollectionAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + return collectionResult?.AsList(); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -152,11 +154,11 @@ public async Task> PutAsync(ContextsPutRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(ContextsDeleteRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder.ContextsDeleteRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(ContextsDeleteRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder.ContextsDeleteRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -193,11 +195,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ContextsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder.ContextsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ContextsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder.ContextsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -215,11 +217,11 @@ public RequestInformation ToPostRequestInformation(ContextsPostRequestBody body, /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ContextsPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder.ContextsPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(ContextsPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder.ContextsPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -232,32 +234,33 @@ public RequestInformation ToPutRequestInformation(ContextsPutRequestBody body, A /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ContextsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder WithUrl(string rawUrl) { - return new ContextsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class ContextsDeleteRequestBody : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ContextsDeleteRequestBody : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsDeleteRequestBodyMember1? ContextsDeleteRequestBodyContextsDeleteRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsDeleteRequestBodyMember1? ContextsDeleteRequestBodyContextsDeleteRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsDeleteRequestBodyMember1 ContextsDeleteRequestBodyContextsDeleteRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsDeleteRequestBodyMember1 ContextsDeleteRequestBodyContextsDeleteRequestBodyMember1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsDeleteRequestBodyMember1? ContextsDeleteRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsDeleteRequestBodyMember1? ContextsDeleteRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsDeleteRequestBodyMember1 ContextsDeleteRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsDeleteRequestBodyMember1 ContextsDeleteRequestBodyMember1 { get; set; } #endif /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,20 +281,20 @@ public class ContextsDeleteRequestBody : IComposedTypeWrapper, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ContextsDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder.ContextsDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new ContextsDeleteRequestBody(); + var result = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder.ContextsDeleteRequestBody(); if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.ContextsDeleteRequestBodyContextsDeleteRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsDeleteRequestBodyMember1(); + result.ContextsDeleteRequestBodyContextsDeleteRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsDeleteRequestBodyMember1(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.ContextsDeleteRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsDeleteRequestBodyMember1(); + result.ContextsDeleteRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsDeleteRequestBodyMember1(); } else if(parseNode.GetStringValue() is string contextsDeleteRequestBodyStringValue) { @@ -328,11 +331,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(ContextsDeleteRequestBodyContextsDeleteRequestBodyMember1 != null) { - writer.WriteObjectValue(null, ContextsDeleteRequestBodyContextsDeleteRequestBodyMember1); + writer.WriteObjectValue(null, ContextsDeleteRequestBodyContextsDeleteRequestBodyMember1); } else if(ContextsDeleteRequestBodyMember1 != null) { - writer.WriteObjectValue(null, ContextsDeleteRequestBodyMember1); + writer.WriteObjectValue(null, ContextsDeleteRequestBodyMember1); } else if(ContextsDeleteRequestBodyString != null) { @@ -345,25 +348,26 @@ public virtual void Serialize(ISerializationWriter writer) } } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class ContextsPostRequestBody : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ContextsPostRequestBody : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPostRequestBodyMember1? ContextsPostRequestBodyContextsPostRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPostRequestBodyMember1? ContextsPostRequestBodyContextsPostRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPostRequestBodyMember1 ContextsPostRequestBodyContextsPostRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPostRequestBodyMember1 ContextsPostRequestBodyContextsPostRequestBodyMember1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPostRequestBodyMember1? ContextsPostRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPostRequestBodyMember1? ContextsPostRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPostRequestBodyMember1 ContextsPostRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPostRequestBodyMember1 ContextsPostRequestBodyMember1 { get; set; } #endif /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -384,20 +388,20 @@ public class ContextsPostRequestBody : IComposedTypeWrapper, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ContextsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder.ContextsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new ContextsPostRequestBody(); + var result = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder.ContextsPostRequestBody(); if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.ContextsPostRequestBodyContextsPostRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPostRequestBodyMember1(); + result.ContextsPostRequestBodyContextsPostRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPostRequestBodyMember1(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.ContextsPostRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPostRequestBodyMember1(); + result.ContextsPostRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPostRequestBodyMember1(); } else if(parseNode.GetStringValue() is string contextsPostRequestBodyStringValue) { @@ -434,11 +438,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(ContextsPostRequestBodyContextsPostRequestBodyMember1 != null) { - writer.WriteObjectValue(null, ContextsPostRequestBodyContextsPostRequestBodyMember1); + writer.WriteObjectValue(null, ContextsPostRequestBodyContextsPostRequestBodyMember1); } else if(ContextsPostRequestBodyMember1 != null) { - writer.WriteObjectValue(null, ContextsPostRequestBodyMember1); + writer.WriteObjectValue(null, ContextsPostRequestBodyMember1); } else if(ContextsPostRequestBodyString != null) { @@ -451,25 +455,26 @@ public virtual void Serialize(ISerializationWriter writer) } } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class ContextsPutRequestBody : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ContextsPutRequestBody : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPutRequestBodyMember1? ContextsPutRequestBodyContextsPutRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPutRequestBodyMember1? ContextsPutRequestBodyContextsPutRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPutRequestBodyMember1 ContextsPutRequestBodyContextsPutRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPutRequestBodyMember1 ContextsPutRequestBodyContextsPutRequestBodyMember1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPutRequestBodyMember1? ContextsPutRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPutRequestBodyMember1? ContextsPutRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPutRequestBodyMember1 ContextsPutRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPutRequestBodyMember1 ContextsPutRequestBodyMember1 { get; set; } #endif /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -490,20 +495,20 @@ public class ContextsPutRequestBody : IComposedTypeWrapper, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ContextsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder.ContextsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new ContextsPutRequestBody(); + var result = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder.ContextsPutRequestBody(); if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.ContextsPutRequestBodyContextsPutRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPutRequestBodyMember1(); + result.ContextsPutRequestBodyContextsPutRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPutRequestBodyMember1(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.ContextsPutRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPutRequestBodyMember1(); + result.ContextsPutRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsPutRequestBodyMember1(); } else if(parseNode.GetStringValue() is string contextsPutRequestBodyStringValue) { @@ -540,11 +545,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(ContextsPutRequestBodyContextsPutRequestBodyMember1 != null) { - writer.WriteObjectValue(null, ContextsPutRequestBodyContextsPutRequestBodyMember1); + writer.WriteObjectValue(null, ContextsPutRequestBodyContextsPutRequestBodyMember1); } else if(ContextsPutRequestBodyMember1 != null) { - writer.WriteObjectValue(null, ContextsPutRequestBodyMember1); + writer.WriteObjectValue(null, ContextsPutRequestBodyMember1); } else if(ContextsPutRequestBodyString != null) { diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Required_status_checksPatchRequestBody.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Required_status_checksPatchRequestBody.cs index 4c04ca01..51b9b750 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Required_status_checksPatchRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Required_status_checksPatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Required_status_checksPatchRequestBody : IAdditionalDataHolder, IParsable + public partial class Required_status_checksPatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,10 +16,10 @@ public class Required_status_checksPatchRequestBody : IAdditionalDataHolder, IPa /// The list of status checks to require in order to merge into this branch. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Checks { get; set; } + public List? Checks { get; set; } #nullable restore #else - public List Checks { get; set; } + public List Checks { get; set; } #endif /// **Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control. [Obsolete("")] @@ -31,7 +33,7 @@ public class Required_status_checksPatchRequestBody : IAdditionalDataHolder, IPa /// Require branches to be up to date before merging. public bool? Strict { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Required_status_checksPatchRequestBody() { @@ -40,12 +42,12 @@ public Required_status_checksPatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Required_status_checksPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Required_status_checksPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Required_status_checksPatchRequestBody(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Required_status_checksPatchRequestBody(); } /// /// The deserialization information for the current model @@ -55,9 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"checks", n => { Checks = n.GetCollectionOfObjectValues(Required_status_checksPatchRequestBody_checks.CreateFromDiscriminatorValue)?.ToList(); } }, - {"contexts", n => { Contexts = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"strict", n => { Strict = n.GetBoolValue(); } }, + { "checks", n => { Checks = n.GetCollectionOfObjectValues(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Required_status_checksPatchRequestBody_checks.CreateFromDiscriminatorValue)?.AsList(); } }, + { "contexts", n => { Contexts = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "strict", n => { Strict = n.GetBoolValue(); } }, }; } /// @@ -67,7 +69,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("checks", Checks); + writer.WriteCollectionOfObjectValues("checks", Checks); writer.WriteCollectionOfPrimitiveValues("contexts", Contexts); writer.WriteBoolValue("strict", Strict); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Required_status_checksPatchRequestBody_checks.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Required_status_checksPatchRequestBody_checks.cs index 0a719124..e87e47e7 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Required_status_checksPatchRequestBody_checks.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Required_status_checksPatchRequestBody_checks.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Required_status_checksPatchRequestBody_checks : IAdditionalDataHolder, IParsable + public partial class Required_status_checksPatchRequestBody_checks : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class Required_status_checksPatchRequestBody_checks : IAdditionalDataHold public string Context { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Required_status_checksPatchRequestBody_checks() { @@ -31,12 +33,12 @@ public Required_status_checksPatchRequestBody_checks() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Required_status_checksPatchRequestBody_checks CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Required_status_checksPatchRequestBody_checks CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Required_status_checksPatchRequestBody_checks(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Required_status_checksPatchRequestBody_checks(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"app_id", n => { AppId = n.GetIntValue(); } }, - {"context", n => { Context = n.GetStringValue(); } }, + { "app_id", n => { AppId = n.GetIntValue(); } }, + { "context", n => { Context = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Required_status_checksRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Required_status_checksRequestBuilder.cs index 328711a7..77b63eb9 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Required_status_checksRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Required_status_checksRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\protection\required_status_checks /// - public class Required_status_checksRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Required_status_checksRequestBuilder : BaseRequestBuilder { /// The contexts property - public ContextsRequestBuilder Contexts + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder Contexts { - get => new ContextsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Contexts.ContextsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public Required_status_checksRequestBuilder(Dictionary pathParam { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -58,53 +60,53 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, StatusCheckPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.StatusCheckPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Updating required status checks requires admin or owner permissions to the repository and branch protection to be enabled. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(Required_status_checksPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Required_status_checksPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Required_status_checksPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Required_status_checksPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, StatusCheckPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.StatusCheckPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -151,11 +153,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Required_status_checksPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Required_status_checksPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Required_status_checksPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Required_status_checksPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -168,11 +170,11 @@ public RequestInformation ToPatchRequestInformation(Required_status_checksPatchR /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Required_status_checksRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Required_status_checksRequestBuilder WithUrl(string rawUrl) { - return new Required_status_checksRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Required_status_checks.Required_status_checksRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Apps/AppsDeleteRequestBodyMember1.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Apps/AppsDeleteRequestBodyMember1.cs index e2adb079..b2b1eefe 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Apps/AppsDeleteRequestBodyMember1.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Apps/AppsDeleteRequestBodyMember1.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AppsDeleteRequestBodyMember1 : IAdditionalDataHolder, IParsable + public partial class AppsDeleteRequestBodyMember1 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class AppsDeleteRequestBodyMember1 : IAdditionalDataHolder, IParsable public List Apps { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AppsDeleteRequestBodyMember1() { @@ -29,12 +31,12 @@ public AppsDeleteRequestBodyMember1() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AppsDeleteRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsDeleteRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AppsDeleteRequestBodyMember1(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsDeleteRequestBodyMember1(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"apps", n => { Apps = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "apps", n => { Apps = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Apps/AppsPostRequestBodyMember1.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Apps/AppsPostRequestBodyMember1.cs index d9b1c0fe..322c51e2 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Apps/AppsPostRequestBodyMember1.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Apps/AppsPostRequestBodyMember1.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AppsPostRequestBodyMember1 : IAdditionalDataHolder, IParsable + public partial class AppsPostRequestBodyMember1 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class AppsPostRequestBodyMember1 : IAdditionalDataHolder, IParsable public List Apps { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AppsPostRequestBodyMember1() { @@ -29,12 +31,12 @@ public AppsPostRequestBodyMember1() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AppsPostRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPostRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AppsPostRequestBodyMember1(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPostRequestBodyMember1(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"apps", n => { Apps = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "apps", n => { Apps = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Apps/AppsPutRequestBodyMember1.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Apps/AppsPutRequestBodyMember1.cs index 4d7914e5..f485681e 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Apps/AppsPutRequestBodyMember1.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Apps/AppsPutRequestBodyMember1.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AppsPutRequestBodyMember1 : IAdditionalDataHolder, IParsable + public partial class AppsPutRequestBodyMember1 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class AppsPutRequestBodyMember1 : IAdditionalDataHolder, IParsable public List Apps { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AppsPutRequestBodyMember1() { @@ -29,12 +31,12 @@ public AppsPutRequestBodyMember1() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AppsPutRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPutRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AppsPutRequestBodyMember1(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPutRequestBodyMember1(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"apps", n => { Apps = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "apps", n => { Apps = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Apps/AppsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Apps/AppsRequestBuilder.cs index 292294c0..b71408a0 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Apps/AppsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Apps/AppsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\protection\restrictions\apps /// - public class AppsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AppsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AppsRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,107 +36,107 @@ public AppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Removes the ability of an app to push to this branch. Only GitHub Apps that are installed on the repository and that have been granted write access to the repository contents can be added as authorized actors on a protected branch. /// API method documentation /// - /// A List<Integration> + /// A List<global::GitHub.Models.Integration> /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> DeleteAsync(AppsDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> DeleteAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder.AppsDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> DeleteAsync(AppsDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> DeleteAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder.AppsDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Integration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Integration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Lists the GitHub Apps that have push access to this branch. Only GitHub Apps that are installed on the repository and that have been granted write access to the repository contents can be added as authorized actors on a protected branch. /// API method documentation /// - /// A List<Integration> + /// A List<global::GitHub.Models.Integration> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Integration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Integration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Grants the specified apps push access for this branch. Only GitHub Apps that are installed on the repository and that have been granted write access to the repository contents can be added as authorized actors on a protected branch. /// API method documentation /// - /// A List<Integration> + /// A List<global::GitHub.Models.Integration> /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> PostAsync(AppsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> PostAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder.AppsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> PostAsync(AppsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> PostAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder.AppsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Integration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Integration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Replaces the list of apps that have push access to this branch. This removes all apps that previously had push access and grants push access to the new list of apps. Only GitHub Apps that are installed on the repository and that have been granted write access to the repository contents can be added as authorized actors on a protected branch. /// API method documentation /// - /// A List<Integration> + /// A List<global::GitHub.Models.Integration> /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> PutAsync(AppsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> PutAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder.AppsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> PutAsync(AppsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> PutAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder.AppsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Integration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Integration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Removes the ability of an app to push to this branch. Only GitHub Apps that are installed on the repository and that have been granted write access to the repository contents can be added as authorized actors on a protected branch. @@ -144,11 +146,11 @@ public async Task> PutAsync(AppsPutRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(AppsDeleteRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder.AppsDeleteRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(AppsDeleteRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder.AppsDeleteRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -185,11 +187,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(AppsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder.AppsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AppsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder.AppsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -207,11 +209,11 @@ public RequestInformation ToPostRequestInformation(AppsPostRequestBody body, Act /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(AppsPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder.AppsPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(AppsPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder.AppsPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -224,32 +226,33 @@ public RequestInformation ToPutRequestInformation(AppsPutRequestBody body, Actio /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AppsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder WithUrl(string rawUrl) { - return new AppsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class AppsDeleteRequestBody : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AppsDeleteRequestBody : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsDeleteRequestBodyMember1? AppsDeleteRequestBodyAppsDeleteRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsDeleteRequestBodyMember1? AppsDeleteRequestBodyAppsDeleteRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsDeleteRequestBodyMember1 AppsDeleteRequestBodyAppsDeleteRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsDeleteRequestBodyMember1 AppsDeleteRequestBodyAppsDeleteRequestBodyMember1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsDeleteRequestBodyMember1? AppsDeleteRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsDeleteRequestBodyMember1? AppsDeleteRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsDeleteRequestBodyMember1 AppsDeleteRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsDeleteRequestBodyMember1 AppsDeleteRequestBodyMember1 { get; set; } #endif /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -270,20 +273,20 @@ public class AppsDeleteRequestBody : IComposedTypeWrapper, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AppsDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder.AppsDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new AppsDeleteRequestBody(); + var result = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder.AppsDeleteRequestBody(); if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.AppsDeleteRequestBodyAppsDeleteRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsDeleteRequestBodyMember1(); + result.AppsDeleteRequestBodyAppsDeleteRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsDeleteRequestBodyMember1(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.AppsDeleteRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsDeleteRequestBodyMember1(); + result.AppsDeleteRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsDeleteRequestBodyMember1(); } else if(parseNode.GetStringValue() is string appsDeleteRequestBodyStringValue) { @@ -320,11 +323,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(AppsDeleteRequestBodyAppsDeleteRequestBodyMember1 != null) { - writer.WriteObjectValue(null, AppsDeleteRequestBodyAppsDeleteRequestBodyMember1); + writer.WriteObjectValue(null, AppsDeleteRequestBodyAppsDeleteRequestBodyMember1); } else if(AppsDeleteRequestBodyMember1 != null) { - writer.WriteObjectValue(null, AppsDeleteRequestBodyMember1); + writer.WriteObjectValue(null, AppsDeleteRequestBodyMember1); } else if(AppsDeleteRequestBodyString != null) { @@ -337,25 +340,26 @@ public virtual void Serialize(ISerializationWriter writer) } } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class AppsPostRequestBody : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AppsPostRequestBody : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPostRequestBodyMember1? AppsPostRequestBodyAppsPostRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPostRequestBodyMember1? AppsPostRequestBodyAppsPostRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPostRequestBodyMember1 AppsPostRequestBodyAppsPostRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPostRequestBodyMember1 AppsPostRequestBodyAppsPostRequestBodyMember1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPostRequestBodyMember1? AppsPostRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPostRequestBodyMember1? AppsPostRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPostRequestBodyMember1 AppsPostRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPostRequestBodyMember1 AppsPostRequestBodyMember1 { get; set; } #endif /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -376,20 +380,20 @@ public class AppsPostRequestBody : IComposedTypeWrapper, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AppsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder.AppsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new AppsPostRequestBody(); + var result = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder.AppsPostRequestBody(); if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.AppsPostRequestBodyAppsPostRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPostRequestBodyMember1(); + result.AppsPostRequestBodyAppsPostRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPostRequestBodyMember1(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.AppsPostRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPostRequestBodyMember1(); + result.AppsPostRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPostRequestBodyMember1(); } else if(parseNode.GetStringValue() is string appsPostRequestBodyStringValue) { @@ -426,11 +430,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(AppsPostRequestBodyAppsPostRequestBodyMember1 != null) { - writer.WriteObjectValue(null, AppsPostRequestBodyAppsPostRequestBodyMember1); + writer.WriteObjectValue(null, AppsPostRequestBodyAppsPostRequestBodyMember1); } else if(AppsPostRequestBodyMember1 != null) { - writer.WriteObjectValue(null, AppsPostRequestBodyMember1); + writer.WriteObjectValue(null, AppsPostRequestBodyMember1); } else if(AppsPostRequestBodyString != null) { @@ -443,25 +447,26 @@ public virtual void Serialize(ISerializationWriter writer) } } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class AppsPutRequestBody : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AppsPutRequestBody : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPutRequestBodyMember1? AppsPutRequestBodyAppsPutRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPutRequestBodyMember1? AppsPutRequestBodyAppsPutRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPutRequestBodyMember1 AppsPutRequestBodyAppsPutRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPutRequestBodyMember1 AppsPutRequestBodyAppsPutRequestBodyMember1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPutRequestBodyMember1? AppsPutRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPutRequestBodyMember1? AppsPutRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPutRequestBodyMember1 AppsPutRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPutRequestBodyMember1 AppsPutRequestBodyMember1 { get; set; } #endif /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -482,20 +487,20 @@ public class AppsPutRequestBody : IComposedTypeWrapper, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AppsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder.AppsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new AppsPutRequestBody(); + var result = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder.AppsPutRequestBody(); if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.AppsPutRequestBodyAppsPutRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPutRequestBodyMember1(); + result.AppsPutRequestBodyAppsPutRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPutRequestBodyMember1(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.AppsPutRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPutRequestBodyMember1(); + result.AppsPutRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsPutRequestBodyMember1(); } else if(parseNode.GetStringValue() is string appsPutRequestBodyStringValue) { @@ -532,11 +537,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(AppsPutRequestBodyAppsPutRequestBodyMember1 != null) { - writer.WriteObjectValue(null, AppsPutRequestBodyAppsPutRequestBodyMember1); + writer.WriteObjectValue(null, AppsPutRequestBodyAppsPutRequestBodyMember1); } else if(AppsPutRequestBodyMember1 != null) { - writer.WriteObjectValue(null, AppsPutRequestBodyMember1); + writer.WriteObjectValue(null, AppsPutRequestBodyMember1); } else if(AppsPutRequestBodyString != null) { diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/RestrictionsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/RestrictionsRequestBuilder.cs index f5779d50..5e3c6a1b 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/RestrictionsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/RestrictionsRequestBuilder.cs @@ -3,37 +3,39 @@ using GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps; using GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams; using GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\protection\restrictions /// - public class RestrictionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RestrictionsRequestBuilder : BaseRequestBuilder { /// The apps property - public AppsRequestBuilder Apps + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder Apps { - get => new AppsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Apps.AppsRequestBuilder(PathParameters, RequestAdapter); } /// The teams property - public TeamsRequestBuilder Teams + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder Teams { - get => new TeamsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder(PathParameters, RequestAdapter); } /// The users property - public UsersRequestBuilder Users + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder Users { - get => new UsersRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -41,7 +43,7 @@ public RestrictionsRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -70,25 +72,25 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, BranchRestrictionPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.BranchRestrictionPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Disables the ability to restrict who can push to this branch. @@ -130,11 +132,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RestrictionsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.RestrictionsRequestBuilder WithUrl(string rawUrl) { - return new RestrictionsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.RestrictionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Teams/TeamsDeleteRequestBodyMember1.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Teams/TeamsDeleteRequestBodyMember1.cs index a072a733..557c4740 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Teams/TeamsDeleteRequestBodyMember1.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Teams/TeamsDeleteRequestBodyMember1.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TeamsDeleteRequestBodyMember1 : IAdditionalDataHolder, IParsable + public partial class TeamsDeleteRequestBodyMember1 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class TeamsDeleteRequestBodyMember1 : IAdditionalDataHolder, IParsable public List Teams { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TeamsDeleteRequestBodyMember1() { @@ -29,12 +31,12 @@ public TeamsDeleteRequestBodyMember1() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TeamsDeleteRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsDeleteRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TeamsDeleteRequestBodyMember1(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsDeleteRequestBodyMember1(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"teams", n => { Teams = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "teams", n => { Teams = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Teams/TeamsPostRequestBodyMember1.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Teams/TeamsPostRequestBodyMember1.cs index 014e073a..e6241550 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Teams/TeamsPostRequestBodyMember1.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Teams/TeamsPostRequestBodyMember1.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TeamsPostRequestBodyMember1 : IAdditionalDataHolder, IParsable + public partial class TeamsPostRequestBodyMember1 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class TeamsPostRequestBodyMember1 : IAdditionalDataHolder, IParsable public List Teams { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TeamsPostRequestBodyMember1() { @@ -29,12 +31,12 @@ public TeamsPostRequestBodyMember1() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TeamsPostRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPostRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TeamsPostRequestBodyMember1(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPostRequestBodyMember1(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"teams", n => { Teams = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "teams", n => { Teams = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Teams/TeamsPutRequestBodyMember1.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Teams/TeamsPutRequestBodyMember1.cs index 007fb066..b1f9a178 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Teams/TeamsPutRequestBodyMember1.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Teams/TeamsPutRequestBodyMember1.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TeamsPutRequestBodyMember1 : IAdditionalDataHolder, IParsable + public partial class TeamsPutRequestBodyMember1 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class TeamsPutRequestBodyMember1 : IAdditionalDataHolder, IParsable public List Teams { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TeamsPutRequestBodyMember1() { @@ -29,12 +31,12 @@ public TeamsPutRequestBodyMember1() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TeamsPutRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPutRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TeamsPutRequestBodyMember1(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPutRequestBodyMember1(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"teams", n => { Teams = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "teams", n => { Teams = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Teams/TeamsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Teams/TeamsRequestBuilder.cs index 601332d5..447cd4d2 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Teams/TeamsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Teams/TeamsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\protection\restrictions\teams /// - public class TeamsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public TeamsRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,107 +36,107 @@ public TeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Removes the ability of a team to push to this branch. You can also remove push access for child teams. /// API method documentation /// - /// A List<GitHub.Models.Team> + /// A List<global::GitHub.Models.Team> /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> DeleteAsync(TeamsDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> DeleteAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder.TeamsDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> DeleteAsync(TeamsDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> DeleteAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder.TeamsDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GitHub.Models.Team.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Team.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Lists the teams who have push access to this branch. The list includes child teams. /// API method documentation /// - /// A List<GitHub.Models.Team> + /// A List<global::GitHub.Models.Team> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GitHub.Models.Team.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Team.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Grants the specified teams push access for this branch. You can also give push access to child teams. /// API method documentation /// - /// A List<GitHub.Models.Team> + /// A List<global::GitHub.Models.Team> /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> PostAsync(TeamsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> PostAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder.TeamsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> PostAsync(TeamsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> PostAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder.TeamsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GitHub.Models.Team.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Team.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Replaces the list of teams that have push access to this branch. This removes all teams that previously had push access and grants push access to the new list of teams. Team restrictions include child teams. /// API method documentation /// - /// A List<GitHub.Models.Team> + /// A List<global::GitHub.Models.Team> /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> PutAsync(TeamsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> PutAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder.TeamsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> PutAsync(TeamsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> PutAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder.TeamsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GitHub.Models.Team.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Team.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Removes the ability of a team to push to this branch. You can also remove push access for child teams. @@ -144,11 +146,11 @@ public TeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(TeamsDeleteRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder.TeamsDeleteRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(TeamsDeleteRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder.TeamsDeleteRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -185,11 +187,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(TeamsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder.TeamsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TeamsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder.TeamsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -207,11 +209,11 @@ public RequestInformation ToPostRequestInformation(TeamsPostRequestBody body, Ac /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(TeamsPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder.TeamsPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(TeamsPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder.TeamsPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -224,16 +226,17 @@ public RequestInformation ToPutRequestInformation(TeamsPutRequestBody body, Acti /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public TeamsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder WithUrl(string rawUrl) { - return new TeamsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class TeamsDeleteRequestBody : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamsDeleteRequestBody : IComposedTypeWrapper, IParsable { /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -243,13 +246,13 @@ public class TeamsDeleteRequestBody : IComposedTypeWrapper, IParsable #else public string String { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsDeleteRequestBodyMember1? TeamsDeleteRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsDeleteRequestBodyMember1? TeamsDeleteRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsDeleteRequestBodyMember1 TeamsDeleteRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsDeleteRequestBodyMember1 TeamsDeleteRequestBodyMember1 { get; set; } #endif /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -259,31 +262,31 @@ public class TeamsDeleteRequestBody : IComposedTypeWrapper, IParsable #else public string TeamsDeleteRequestBodyString { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsDeleteRequestBodyMember1? TeamsDeleteRequestBodyTeamsDeleteRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsDeleteRequestBodyMember1? TeamsDeleteRequestBodyTeamsDeleteRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsDeleteRequestBodyMember1 TeamsDeleteRequestBodyTeamsDeleteRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsDeleteRequestBodyMember1 TeamsDeleteRequestBodyTeamsDeleteRequestBodyMember1 { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TeamsDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder.TeamsDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new TeamsDeleteRequestBody(); + var result = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder.TeamsDeleteRequestBody(); if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.TeamsDeleteRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsDeleteRequestBodyMember1(); + result.TeamsDeleteRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsDeleteRequestBodyMember1(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.TeamsDeleteRequestBodyTeamsDeleteRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsDeleteRequestBodyMember1(); + result.TeamsDeleteRequestBodyTeamsDeleteRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsDeleteRequestBodyMember1(); } else if(parseNode.GetStringValue() is string stringValue) { @@ -320,11 +323,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(TeamsDeleteRequestBodyMember1 != null) { - writer.WriteObjectValue(null, TeamsDeleteRequestBodyMember1); + writer.WriteObjectValue(null, TeamsDeleteRequestBodyMember1); } else if(TeamsDeleteRequestBodyTeamsDeleteRequestBodyMember1 != null) { - writer.WriteObjectValue(null, TeamsDeleteRequestBodyTeamsDeleteRequestBodyMember1); + writer.WriteObjectValue(null, TeamsDeleteRequestBodyTeamsDeleteRequestBodyMember1); } else if(String != null) { @@ -337,9 +340,10 @@ public virtual void Serialize(ISerializationWriter writer) } } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class TeamsPostRequestBody : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamsPostRequestBody : IComposedTypeWrapper, IParsable { /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -349,13 +353,13 @@ public class TeamsPostRequestBody : IComposedTypeWrapper, IParsable #else public string String { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPostRequestBodyMember1? TeamsPostRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPostRequestBodyMember1? TeamsPostRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPostRequestBodyMember1 TeamsPostRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPostRequestBodyMember1 TeamsPostRequestBodyMember1 { get; set; } #endif /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -365,31 +369,31 @@ public class TeamsPostRequestBody : IComposedTypeWrapper, IParsable #else public string TeamsPostRequestBodyString { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPostRequestBodyMember1? TeamsPostRequestBodyTeamsPostRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPostRequestBodyMember1? TeamsPostRequestBodyTeamsPostRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPostRequestBodyMember1 TeamsPostRequestBodyTeamsPostRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPostRequestBodyMember1 TeamsPostRequestBodyTeamsPostRequestBodyMember1 { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TeamsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder.TeamsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new TeamsPostRequestBody(); + var result = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder.TeamsPostRequestBody(); if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.TeamsPostRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPostRequestBodyMember1(); + result.TeamsPostRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPostRequestBodyMember1(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.TeamsPostRequestBodyTeamsPostRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPostRequestBodyMember1(); + result.TeamsPostRequestBodyTeamsPostRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPostRequestBodyMember1(); } else if(parseNode.GetStringValue() is string stringValue) { @@ -426,11 +430,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(TeamsPostRequestBodyMember1 != null) { - writer.WriteObjectValue(null, TeamsPostRequestBodyMember1); + writer.WriteObjectValue(null, TeamsPostRequestBodyMember1); } else if(TeamsPostRequestBodyTeamsPostRequestBodyMember1 != null) { - writer.WriteObjectValue(null, TeamsPostRequestBodyTeamsPostRequestBodyMember1); + writer.WriteObjectValue(null, TeamsPostRequestBodyTeamsPostRequestBodyMember1); } else if(String != null) { @@ -443,9 +447,10 @@ public virtual void Serialize(ISerializationWriter writer) } } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class TeamsPutRequestBody : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TeamsPutRequestBody : IComposedTypeWrapper, IParsable { /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -455,13 +460,13 @@ public class TeamsPutRequestBody : IComposedTypeWrapper, IParsable #else public string String { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPutRequestBodyMember1? TeamsPutRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPutRequestBodyMember1? TeamsPutRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPutRequestBodyMember1 TeamsPutRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPutRequestBodyMember1 TeamsPutRequestBodyMember1 { get; set; } #endif /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -471,31 +476,31 @@ public class TeamsPutRequestBody : IComposedTypeWrapper, IParsable #else public string TeamsPutRequestBodyString { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPutRequestBodyMember1? TeamsPutRequestBodyTeamsPutRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPutRequestBodyMember1? TeamsPutRequestBodyTeamsPutRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPutRequestBodyMember1 TeamsPutRequestBodyTeamsPutRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPutRequestBodyMember1 TeamsPutRequestBodyTeamsPutRequestBodyMember1 { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TeamsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder.TeamsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new TeamsPutRequestBody(); + var result = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsRequestBuilder.TeamsPutRequestBody(); if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.TeamsPutRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPutRequestBodyMember1(); + result.TeamsPutRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPutRequestBodyMember1(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.TeamsPutRequestBodyTeamsPutRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPutRequestBodyMember1(); + result.TeamsPutRequestBodyTeamsPutRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Teams.TeamsPutRequestBodyMember1(); } else if(parseNode.GetStringValue() is string stringValue) { @@ -532,11 +537,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(TeamsPutRequestBodyMember1 != null) { - writer.WriteObjectValue(null, TeamsPutRequestBodyMember1); + writer.WriteObjectValue(null, TeamsPutRequestBodyMember1); } else if(TeamsPutRequestBodyTeamsPutRequestBodyMember1 != null) { - writer.WriteObjectValue(null, TeamsPutRequestBodyTeamsPutRequestBodyMember1); + writer.WriteObjectValue(null, TeamsPutRequestBodyTeamsPutRequestBodyMember1); } else if(String != null) { diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Users/UsersDeleteRequestBodyMember1.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Users/UsersDeleteRequestBodyMember1.cs index b9e8f4f6..a40963cd 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Users/UsersDeleteRequestBodyMember1.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Users/UsersDeleteRequestBodyMember1.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class UsersDeleteRequestBodyMember1 : IAdditionalDataHolder, IParsable + public partial class UsersDeleteRequestBodyMember1 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class UsersDeleteRequestBodyMember1 : IAdditionalDataHolder, IParsable public List Users { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UsersDeleteRequestBodyMember1() { @@ -29,12 +31,12 @@ public UsersDeleteRequestBodyMember1() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UsersDeleteRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersDeleteRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UsersDeleteRequestBodyMember1(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersDeleteRequestBodyMember1(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"users", n => { Users = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "users", n => { Users = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Users/UsersPostRequestBodyMember1.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Users/UsersPostRequestBodyMember1.cs index da5ac235..f2a93f9e 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Users/UsersPostRequestBodyMember1.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Users/UsersPostRequestBodyMember1.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class UsersPostRequestBodyMember1 : IAdditionalDataHolder, IParsable + public partial class UsersPostRequestBodyMember1 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class UsersPostRequestBodyMember1 : IAdditionalDataHolder, IParsable public List Users { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UsersPostRequestBodyMember1() { @@ -29,12 +31,12 @@ public UsersPostRequestBodyMember1() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UsersPostRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPostRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UsersPostRequestBodyMember1(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPostRequestBodyMember1(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"users", n => { Users = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "users", n => { Users = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Users/UsersPutRequestBodyMember1.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Users/UsersPutRequestBodyMember1.cs index cc9c7566..b3a3e184 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Users/UsersPutRequestBodyMember1.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Users/UsersPutRequestBodyMember1.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class UsersPutRequestBodyMember1 : IAdditionalDataHolder, IParsable + public partial class UsersPutRequestBodyMember1 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class UsersPutRequestBodyMember1 : IAdditionalDataHolder, IParsable public List Users { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UsersPutRequestBodyMember1() { @@ -29,12 +31,12 @@ public UsersPutRequestBodyMember1() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UsersPutRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPutRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UsersPutRequestBodyMember1(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPutRequestBodyMember1(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"users", n => { Users = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "users", n => { Users = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Users/UsersRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Users/UsersRequestBuilder.cs index dbaab6ed..e88f78f3 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Users/UsersRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Restrictions/Users/UsersRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users { +namespace GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\protection\restrictions\users /// - public class UsersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsersRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public UsersRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,107 +36,107 @@ public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Removes the ability of a user to push to this branch.| Type | Description || ------- | --------------------------------------------------------------------------------------------------------------------------------------------- || `array` | Usernames of the people who should no longer have push access. **Note**: The list of users, apps, and teams in total is limited to 100 items. | /// API method documentation /// - /// A List<SimpleUser> + /// A List<global::GitHub.Models.SimpleUser> /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> DeleteAsync(UsersDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> DeleteAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder.UsersDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> DeleteAsync(UsersDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> DeleteAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder.UsersDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, SimpleUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Lists the people who have push access to this branch. /// API method documentation /// - /// A List<SimpleUser> + /// A List<global::GitHub.Models.SimpleUser> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, SimpleUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Grants the specified people push access for this branch.| Type | Description || ------- | ----------------------------------------------------------------------------------------------------------------------------- || `array` | Usernames for people who can have push access. **Note**: The list of users, apps, and teams in total is limited to 100 items. | /// API method documentation /// - /// A List<SimpleUser> + /// A List<global::GitHub.Models.SimpleUser> /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> PostAsync(UsersPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> PostAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder.UsersPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> PostAsync(UsersPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> PostAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder.UsersPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, SimpleUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Replaces the list of people that have push access to this branch. This removes all people that previously had push access and grants push access to the new list of people.| Type | Description || ------- | ----------------------------------------------------------------------------------------------------------------------------- || `array` | Usernames for people who can have push access. **Note**: The list of users, apps, and teams in total is limited to 100 items. | /// API method documentation /// - /// A List<SimpleUser> + /// A List<global::GitHub.Models.SimpleUser> /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> PutAsync(UsersPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> PutAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder.UsersPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> PutAsync(UsersPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> PutAsync(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder.UsersPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, SimpleUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Removes the ability of a user to push to this branch.| Type | Description || ------- | --------------------------------------------------------------------------------------------------------------------------------------------- || `array` | Usernames of the people who should no longer have push access. **Note**: The list of users, apps, and teams in total is limited to 100 items. | @@ -144,11 +146,11 @@ public async Task> PutAsync(UsersPutRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(UsersDeleteRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder.UsersDeleteRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(UsersDeleteRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder.UsersDeleteRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -185,11 +187,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(UsersPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder.UsersPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UsersPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder.UsersPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -207,11 +209,11 @@ public RequestInformation ToPostRequestInformation(UsersPostRequestBody body, Ac /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(UsersPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder.UsersPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(UsersPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder.UsersPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -224,16 +226,17 @@ public RequestInformation ToPutRequestInformation(UsersPutRequestBody body, Acti /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UsersRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder WithUrl(string rawUrl) { - return new UsersRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class UsersDeleteRequestBody : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsersDeleteRequestBody : IComposedTypeWrapper, IParsable { /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -243,13 +246,13 @@ public class UsersDeleteRequestBody : IComposedTypeWrapper, IParsable #else public string String { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersDeleteRequestBodyMember1? UsersDeleteRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersDeleteRequestBodyMember1? UsersDeleteRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersDeleteRequestBodyMember1 UsersDeleteRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersDeleteRequestBodyMember1 UsersDeleteRequestBodyMember1 { get; set; } #endif /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -259,31 +262,31 @@ public class UsersDeleteRequestBody : IComposedTypeWrapper, IParsable #else public string UsersDeleteRequestBodyString { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersDeleteRequestBodyMember1? UsersDeleteRequestBodyUsersDeleteRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersDeleteRequestBodyMember1? UsersDeleteRequestBodyUsersDeleteRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersDeleteRequestBodyMember1 UsersDeleteRequestBodyUsersDeleteRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersDeleteRequestBodyMember1 UsersDeleteRequestBodyUsersDeleteRequestBodyMember1 { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UsersDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder.UsersDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new UsersDeleteRequestBody(); + var result = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder.UsersDeleteRequestBody(); if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.UsersDeleteRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersDeleteRequestBodyMember1(); + result.UsersDeleteRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersDeleteRequestBodyMember1(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.UsersDeleteRequestBodyUsersDeleteRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersDeleteRequestBodyMember1(); + result.UsersDeleteRequestBodyUsersDeleteRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersDeleteRequestBodyMember1(); } else if(parseNode.GetStringValue() is string stringValue) { @@ -320,11 +323,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(UsersDeleteRequestBodyMember1 != null) { - writer.WriteObjectValue(null, UsersDeleteRequestBodyMember1); + writer.WriteObjectValue(null, UsersDeleteRequestBodyMember1); } else if(UsersDeleteRequestBodyUsersDeleteRequestBodyMember1 != null) { - writer.WriteObjectValue(null, UsersDeleteRequestBodyUsersDeleteRequestBodyMember1); + writer.WriteObjectValue(null, UsersDeleteRequestBodyUsersDeleteRequestBodyMember1); } else if(String != null) { @@ -337,9 +340,10 @@ public virtual void Serialize(ISerializationWriter writer) } } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class UsersPostRequestBody : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsersPostRequestBody : IComposedTypeWrapper, IParsable { /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -349,13 +353,13 @@ public class UsersPostRequestBody : IComposedTypeWrapper, IParsable #else public string String { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPostRequestBodyMember1? UsersPostRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPostRequestBodyMember1? UsersPostRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPostRequestBodyMember1 UsersPostRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPostRequestBodyMember1 UsersPostRequestBodyMember1 { get; set; } #endif /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -365,31 +369,31 @@ public class UsersPostRequestBody : IComposedTypeWrapper, IParsable #else public string UsersPostRequestBodyString { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPostRequestBodyMember1? UsersPostRequestBodyUsersPostRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPostRequestBodyMember1? UsersPostRequestBodyUsersPostRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPostRequestBodyMember1 UsersPostRequestBodyUsersPostRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPostRequestBodyMember1 UsersPostRequestBodyUsersPostRequestBodyMember1 { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UsersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder.UsersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new UsersPostRequestBody(); + var result = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder.UsersPostRequestBody(); if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.UsersPostRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPostRequestBodyMember1(); + result.UsersPostRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPostRequestBodyMember1(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.UsersPostRequestBodyUsersPostRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPostRequestBodyMember1(); + result.UsersPostRequestBodyUsersPostRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPostRequestBodyMember1(); } else if(parseNode.GetStringValue() is string stringValue) { @@ -426,11 +430,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(UsersPostRequestBodyMember1 != null) { - writer.WriteObjectValue(null, UsersPostRequestBodyMember1); + writer.WriteObjectValue(null, UsersPostRequestBodyMember1); } else if(UsersPostRequestBodyUsersPostRequestBodyMember1 != null) { - writer.WriteObjectValue(null, UsersPostRequestBodyUsersPostRequestBodyMember1); + writer.WriteObjectValue(null, UsersPostRequestBodyUsersPostRequestBodyMember1); } else if(String != null) { @@ -443,9 +447,10 @@ public virtual void Serialize(ISerializationWriter writer) } } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class UsersPutRequestBody : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class UsersPutRequestBody : IComposedTypeWrapper, IParsable { /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -455,13 +460,13 @@ public class UsersPutRequestBody : IComposedTypeWrapper, IParsable #else public string String { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPutRequestBodyMember1? UsersPutRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPutRequestBodyMember1? UsersPutRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPutRequestBodyMember1 UsersPutRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPutRequestBodyMember1 UsersPutRequestBodyMember1 { get; set; } #endif /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -471,31 +476,31 @@ public class UsersPutRequestBody : IComposedTypeWrapper, IParsable #else public string UsersPutRequestBodyString { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPutRequestBodyMember1? UsersPutRequestBodyUsersPutRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPutRequestBodyMember1? UsersPutRequestBodyUsersPutRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPutRequestBodyMember1 UsersPutRequestBodyUsersPutRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPutRequestBodyMember1 UsersPutRequestBodyUsersPutRequestBodyMember1 { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UsersPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder.UsersPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new UsersPutRequestBody(); + var result = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersRequestBuilder.UsersPutRequestBody(); if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.UsersPutRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPutRequestBodyMember1(); + result.UsersPutRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPutRequestBodyMember1(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.UsersPutRequestBodyUsersPutRequestBodyMember1 = new GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPutRequestBodyMember1(); + result.UsersPutRequestBodyUsersPutRequestBodyMember1 = new global::GitHub.Repos.Item.Item.Branches.Item.Protection.Restrictions.Users.UsersPutRequestBodyMember1(); } else if(parseNode.GetStringValue() is string stringValue) { @@ -532,11 +537,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(UsersPutRequestBodyMember1 != null) { - writer.WriteObjectValue(null, UsersPutRequestBodyMember1); + writer.WriteObjectValue(null, UsersPutRequestBodyMember1); } else if(UsersPutRequestBodyUsersPutRequestBodyMember1 != null) { - writer.WriteObjectValue(null, UsersPutRequestBodyUsersPutRequestBodyMember1); + writer.WriteObjectValue(null, UsersPutRequestBodyUsersPutRequestBodyMember1); } else if(String != null) { diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Rename/RenamePostRequestBody.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Rename/RenamePostRequestBody.cs index 50e8c52e..c176eabd 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Rename/RenamePostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Rename/RenamePostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Rename { +namespace GitHub.Repos.Item.Item.Branches.Item.Rename +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RenamePostRequestBody : IAdditionalDataHolder, IParsable + public partial class RenamePostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class RenamePostRequestBody : IAdditionalDataHolder, IParsable public string NewName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RenamePostRequestBody() { @@ -29,12 +31,12 @@ public RenamePostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RenamePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Branches.Item.Rename.RenamePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RenamePostRequestBody(); + return new global::GitHub.Repos.Item.Item.Branches.Item.Rename.RenamePostRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"new_name", n => { NewName = n.GetStringValue(); } }, + { "new_name", n => { NewName = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Rename/RenameRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Rename/RenameRequestBuilder.cs index fbf9986b..2da6e5c4 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Rename/RenameRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Rename/RenameRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Branches.Item.Rename { +namespace GitHub.Repos.Item.Item.Branches.Item.Rename +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\rename /// - public class RenameRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RenameRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RenameRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,31 +36,31 @@ public RenameRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Renames a branch in a repository.> [!NOTE]> Although the API responds immediately, the branch rename process might take some extra time to complete in the background. You won't be able to push to the old branch name while the rename process is in progress. For more information, see "[Renaming a branch](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/renaming-a-branch)".The authenticated user must have push access to the branch. If the branch is the default branch, the authenticated user must also have admin or owner permissions.In order to rename the default branch, fine-grained access tokens also need the `administration:write` repository permission. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(RenamePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Branches.Item.Rename.RenamePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(RenamePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Branches.Item.Rename.RenamePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, BranchWithProtection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.BranchWithProtection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Renames a branch in a repository.> [!NOTE]> Although the API responds immediately, the branch rename process might take some extra time to complete in the background. You won't be able to push to the old branch name while the rename process is in progress. For more information, see "[Renaming a branch](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/renaming-a-branch)".The authenticated user must have push access to the branch. If the branch is the default branch, the authenticated user must also have admin or owner permissions.In order to rename the default branch, fine-grained access tokens also need the `administration:write` repository permission. @@ -68,11 +70,11 @@ public async Task PostAsync(RenamePostRequestBody body, Ac /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(RenamePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Rename.RenamePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RenamePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Branches.Item.Rename.RenamePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -85,11 +87,11 @@ public RequestInformation ToPostRequestInformation(RenamePostRequestBody body, A /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RenameRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Branches.Item.Rename.RenameRequestBuilder WithUrl(string rawUrl) { - return new RenameRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Branches.Item.Rename.RenameRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/WithBranchItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Branches/Item/WithBranchItemRequestBuilder.cs index 22e86b3b..9f95b1fd 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/WithBranchItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/WithBranchItemRequestBuilder.cs @@ -2,32 +2,34 @@ using GitHub.Models; using GitHub.Repos.Item.Item.Branches.Item.Protection; using GitHub.Repos.Item.Item.Branches.Item.Rename; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Branches.Item { +namespace GitHub.Repos.Item.Item.Branches.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch} /// - public class WithBranchItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithBranchItemRequestBuilder : BaseRequestBuilder { /// The protection property - public ProtectionRequestBuilder Protection + public global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionRequestBuilder Protection { - get => new ProtectionRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Branches.Item.Protection.ProtectionRequestBuilder(PathParameters, RequestAdapter); } /// The rename property - public RenameRequestBuilder Rename + public global::GitHub.Repos.Item.Item.Branches.Item.Rename.RenameRequestBuilder Rename { - get => new RenameRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Branches.Item.Rename.RenameRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public WithBranchItemRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,25 +48,25 @@ public WithBranchItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Get a branch /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, BranchWithProtection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.BranchWithProtection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -85,11 +87,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithBranchItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Branches.Item.WithBranchItemRequestBuilder WithUrl(string rawUrl) { - return new WithBranchItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Branches.Item.WithBranchItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/CheckRuns/CheckRunsPostRequestBodyMember1.cs b/src/GitHub/Repos/Item/Item/CheckRuns/CheckRunsPostRequestBodyMember1.cs index d854f836..ae4c50d7 100644 --- a/src/GitHub/Repos/Item/Item/CheckRuns/CheckRunsPostRequestBodyMember1.cs +++ b/src/GitHub/Repos/Item/Item/CheckRuns/CheckRunsPostRequestBodyMember1.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.CheckRuns { +namespace GitHub.Repos.Item.Item.CheckRuns +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CheckRunsPostRequestBodyMember1 : IAdditionalDataHolder, IParsable + public partial class CheckRunsPostRequestBodyMember1 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The status property - public CheckRunsPostRequestBodyMember1_status? Status { get; set; } + public global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember1_status? Status { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckRunsPostRequestBodyMember1() { @@ -23,12 +25,12 @@ public CheckRunsPostRequestBodyMember1() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CheckRunsPostRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckRunsPostRequestBodyMember1(); + return new global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember1(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"status", n => { Status = n.GetEnumValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("status", Status); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/CheckRuns/CheckRunsPostRequestBodyMember1_status.cs b/src/GitHub/Repos/Item/Item/CheckRuns/CheckRunsPostRequestBodyMember1_status.cs index e53dd59c..68b5be62 100644 --- a/src/GitHub/Repos/Item/Item/CheckRuns/CheckRunsPostRequestBodyMember1_status.cs +++ b/src/GitHub/Repos/Item/Item/CheckRuns/CheckRunsPostRequestBodyMember1_status.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.CheckRuns { +namespace GitHub.Repos.Item.Item.CheckRuns +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum CheckRunsPostRequestBodyMember1_status #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/CheckRuns/CheckRunsPostRequestBodyMember2.cs b/src/GitHub/Repos/Item/Item/CheckRuns/CheckRunsPostRequestBodyMember2.cs index 546f751b..892a5cc5 100644 --- a/src/GitHub/Repos/Item/Item/CheckRuns/CheckRunsPostRequestBodyMember2.cs +++ b/src/GitHub/Repos/Item/Item/CheckRuns/CheckRunsPostRequestBodyMember2.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.CheckRuns { +namespace GitHub.Repos.Item.Item.CheckRuns +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CheckRunsPostRequestBodyMember2 : IAdditionalDataHolder, IParsable + public partial class CheckRunsPostRequestBodyMember2 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The status property - public CheckRunsPostRequestBodyMember2_status? Status { get; set; } + public global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember2_status? Status { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckRunsPostRequestBodyMember2() { @@ -23,12 +25,12 @@ public CheckRunsPostRequestBodyMember2() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CheckRunsPostRequestBodyMember2 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember2 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckRunsPostRequestBodyMember2(); + return new global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember2(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"status", n => { Status = n.GetEnumValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("status", Status); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/CheckRuns/CheckRunsPostRequestBodyMember2_status.cs b/src/GitHub/Repos/Item/Item/CheckRuns/CheckRunsPostRequestBodyMember2_status.cs index 57c07a32..9adf6416 100644 --- a/src/GitHub/Repos/Item/Item/CheckRuns/CheckRunsPostRequestBodyMember2_status.cs +++ b/src/GitHub/Repos/Item/Item/CheckRuns/CheckRunsPostRequestBodyMember2_status.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.CheckRuns { +namespace GitHub.Repos.Item.Item.CheckRuns +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum CheckRunsPostRequestBodyMember2_status #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/CheckRuns/CheckRunsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CheckRuns/CheckRunsRequestBuilder.cs index 5426c744..4f490530 100644 --- a/src/GitHub/Repos/Item/Item/CheckRuns/CheckRunsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CheckRuns/CheckRunsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.CheckRuns.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CheckRuns { +namespace GitHub.Repos.Item.Item.CheckRuns +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\check-runs /// - public class CheckRunsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CheckRunsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.checkRuns.item collection /// The unique identifier of the check run. - /// A - public WithCheck_run_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("check_run_id", position); - return new WithCheck_run_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public CheckRunsRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,22 +49,22 @@ public CheckRunsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Creates a new check run for a specific commit in a repository.To create a check run, you must use a GitHub App. OAuth apps and authenticated users are not able to create a check suite.In a check suite, GitHub limits the number of check runs with the same name to 1000. Once these check runs exceed 1000, GitHub will start to automatically delete older check runs.> [!NOTE]> The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(CheckRunsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsRequestBuilder.CheckRunsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(CheckRunsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsRequestBuilder.CheckRunsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CheckRun.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CheckRun.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Creates a new check run for a specific commit in a repository.To create a check run, you must use a GitHub App. OAuth apps and authenticated users are not able to create a check suite.In a check suite, GitHub limits the number of check runs with the same name to 1000. Once these check runs exceed 1000, GitHub will start to automatically delete older check runs.> [!NOTE]> The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. @@ -72,11 +74,11 @@ public async Task PostAsync(CheckRunsPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(CheckRunsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsRequestBuilder.CheckRunsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckRunsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsRequestBuilder.CheckRunsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -89,74 +91,75 @@ public RequestInformation ToPostRequestInformation(CheckRunsPostRequestBody body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CheckRunsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsRequestBuilder WithUrl(string rawUrl) { - return new CheckRunsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class CheckRunsPostRequestBody : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CheckRunsPostRequestBody : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember1? CheckRunsPostRequestBodyCheckRunsPostRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember1? CheckRunsPostRequestBodyCheckRunsPostRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember1 CheckRunsPostRequestBodyCheckRunsPostRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember1 CheckRunsPostRequestBodyCheckRunsPostRequestBodyMember1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember2? CheckRunsPostRequestBodyCheckRunsPostRequestBodyMember2 { get; set; } + public global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember2? CheckRunsPostRequestBodyCheckRunsPostRequestBodyMember2 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember2 CheckRunsPostRequestBodyCheckRunsPostRequestBodyMember2 { get; set; } + public global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember2 CheckRunsPostRequestBodyCheckRunsPostRequestBodyMember2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember1? CheckRunsPostRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember1? CheckRunsPostRequestBodyMember1 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember1 CheckRunsPostRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember1 CheckRunsPostRequestBodyMember1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember2? CheckRunsPostRequestBodyMember2 { get; set; } + public global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember2? CheckRunsPostRequestBodyMember2 { get; set; } #nullable restore #else - public GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember2 CheckRunsPostRequestBodyMember2 { get; set; } + public global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember2 CheckRunsPostRequestBodyMember2 { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CheckRunsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsRequestBuilder.CheckRunsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new CheckRunsPostRequestBody(); + var result = new global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsRequestBuilder.CheckRunsPostRequestBody(); if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.CheckRunsPostRequestBodyCheckRunsPostRequestBodyMember1 = new GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember1(); + result.CheckRunsPostRequestBodyCheckRunsPostRequestBodyMember1 = new global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember1(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.CheckRunsPostRequestBodyCheckRunsPostRequestBodyMember2 = new GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember2(); + result.CheckRunsPostRequestBodyCheckRunsPostRequestBodyMember2 = new global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember2(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.CheckRunsPostRequestBodyMember1 = new GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember1(); + result.CheckRunsPostRequestBodyMember1 = new global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember1(); } else if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.CheckRunsPostRequestBodyMember2 = new GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember2(); + result.CheckRunsPostRequestBodyMember2 = new global::GitHub.Repos.Item.Item.CheckRuns.CheckRunsPostRequestBodyMember2(); } return result; } @@ -193,19 +196,19 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(CheckRunsPostRequestBodyCheckRunsPostRequestBodyMember1 != null) { - writer.WriteObjectValue(null, CheckRunsPostRequestBodyCheckRunsPostRequestBodyMember1); + writer.WriteObjectValue(null, CheckRunsPostRequestBodyCheckRunsPostRequestBodyMember1); } else if(CheckRunsPostRequestBodyCheckRunsPostRequestBodyMember2 != null) { - writer.WriteObjectValue(null, CheckRunsPostRequestBodyCheckRunsPostRequestBodyMember2); + writer.WriteObjectValue(null, CheckRunsPostRequestBodyCheckRunsPostRequestBodyMember2); } else if(CheckRunsPostRequestBodyMember1 != null) { - writer.WriteObjectValue(null, CheckRunsPostRequestBodyMember1); + writer.WriteObjectValue(null, CheckRunsPostRequestBodyMember1); } else if(CheckRunsPostRequestBodyMember2 != null) { - writer.WriteObjectValue(null, CheckRunsPostRequestBodyMember2); + writer.WriteObjectValue(null, CheckRunsPostRequestBodyMember2); } } } diff --git a/src/GitHub/Repos/Item/Item/CheckRuns/Item/Annotations/AnnotationsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CheckRuns/Item/Annotations/AnnotationsRequestBuilder.cs index 53bb2e1c..a1aaf82b 100644 --- a/src/GitHub/Repos/Item/Item/CheckRuns/Item/Annotations/AnnotationsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CheckRuns/Item/Annotations/AnnotationsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CheckRuns.Item.Annotations { +namespace GitHub.Repos.Item.Item.CheckRuns.Item.Annotations +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\check-runs\{check_run_id}\annotations /// - public class AnnotationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AnnotationsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AnnotationsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public AnnotationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Lists annotations for a check run using the annotation `id`.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository. /// API method documentation /// - /// A List<CheckAnnotation> + /// A List<global::GitHub.Models.CheckAnnotation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CheckAnnotation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CheckAnnotation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists annotations for a check run using the annotation `id`.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository. @@ -57,11 +59,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -72,16 +74,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AnnotationsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CheckRuns.Item.Annotations.AnnotationsRequestBuilder WithUrl(string rawUrl) { - return new AnnotationsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CheckRuns.Item.Annotations.AnnotationsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists annotations for a check run using the annotation `id`.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository. /// - public class AnnotationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AnnotationsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/CheckRuns/Item/Rerequest/RerequestRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CheckRuns/Item/Rerequest/RerequestRequestBuilder.cs index cbe5d1f3..93e46237 100644 --- a/src/GitHub/Repos/Item/Item/CheckRuns/Item/Rerequest/RerequestRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CheckRuns/Item/Rerequest/RerequestRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CheckRuns.Item.Rerequest { +namespace GitHub.Repos.Item.Item.CheckRuns.Item.Rerequest +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\check-runs\{check_run_id}\rerequest /// - public class RerequestRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RerequestRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RerequestRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,29 +36,29 @@ public RerequestRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Triggers GitHub to rerequest an existing check run, without pushing new code to a repository. This endpoint will trigger the [`check_run` webhook](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#check_run) event with the action `rerequested`. When a check run is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.For more information about how to re-run GitHub Actions jobs, see "[Re-run a job from a workflow run](https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run)".OAuth apps and personal access tokens (classic) cannot use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, EmptyObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EmptyObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Triggers GitHub to rerequest an existing check run, without pushing new code to a repository. This endpoint will trigger the [`check_run` webhook](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#check_run) event with the action `rerequested`. When a check run is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.For more information about how to re-run GitHub Actions jobs, see "[Re-run a job from a workflow run](https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run)".OAuth apps and personal access tokens (classic) cannot use this endpoint. @@ -80,11 +82,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RerequestRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CheckRuns.Item.Rerequest.RerequestRequestBuilder WithUrl(string rawUrl) { - return new RerequestRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CheckRuns.Item.Rerequest.RerequestRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/CheckRuns/Item/WithCheck_run_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CheckRuns/Item/WithCheck_run_ItemRequestBuilder.cs index 3a20f794..9e956d87 100644 --- a/src/GitHub/Repos/Item/Item/CheckRuns/Item/WithCheck_run_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CheckRuns/Item/WithCheck_run_ItemRequestBuilder.cs @@ -2,32 +2,34 @@ using GitHub.Models; using GitHub.Repos.Item.Item.CheckRuns.Item.Annotations; using GitHub.Repos.Item.Item.CheckRuns.Item.Rerequest; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CheckRuns.Item { +namespace GitHub.Repos.Item.Item.CheckRuns.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\check-runs\{check_run_id} /// - public class WithCheck_run_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithCheck_run_ItemRequestBuilder : BaseRequestBuilder { /// The annotations property - public AnnotationsRequestBuilder Annotations + public global::GitHub.Repos.Item.Item.CheckRuns.Item.Annotations.AnnotationsRequestBuilder Annotations { - get => new AnnotationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.CheckRuns.Item.Annotations.AnnotationsRequestBuilder(PathParameters, RequestAdapter); } /// The rerequest property - public RerequestRequestBuilder Rerequest + public global::GitHub.Repos.Item.Item.CheckRuns.Item.Rerequest.RerequestRequestBuilder Rerequest { - get => new RerequestRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.CheckRuns.Item.Rerequest.RerequestRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public WithCheck_run_ItemRequestBuilder(Dictionary pathParameter { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,41 +48,41 @@ public WithCheck_run_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Gets a single check run using its `id`.> [!NOTE]> The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CheckRun.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CheckRun.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Updates a check run for a specific commit in a repository.> [!NOTE]> The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.OAuth apps and personal access tokens (classic) cannot use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithCheck_run_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_ItemRequestBuilder.WithCheck_run_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithCheck_run_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_ItemRequestBuilder.WithCheck_run_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CheckRun.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CheckRun.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets a single check run using its `id`.> [!NOTE]> The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository. @@ -109,11 +111,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithCheck_run_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_ItemRequestBuilder.WithCheck_run_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithCheck_run_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_ItemRequestBuilder.WithCheck_run_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -126,62 +128,63 @@ public RequestInformation ToPatchRequestInformation(WithCheck_run_PatchRequestBo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithCheck_run_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithCheck_run_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_ItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class WithCheck_run_PatchRequestBody : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithCheck_run_PatchRequestBody : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithCheck_run_PatchRequestBodyMember1? WithCheckRunPatchRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_PatchRequestBodyMember1? WithCheckRunPatchRequestBodyMember1 { get; set; } #nullable restore #else - public WithCheck_run_PatchRequestBodyMember1 WithCheckRunPatchRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_PatchRequestBodyMember1 WithCheckRunPatchRequestBodyMember1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithCheck_run_PatchRequestBodyMember2? WithCheckRunPatchRequestBodyMember2 { get; set; } + public global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_PatchRequestBodyMember2? WithCheckRunPatchRequestBodyMember2 { get; set; } #nullable restore #else - public WithCheck_run_PatchRequestBodyMember2 WithCheckRunPatchRequestBodyMember2 { get; set; } + public global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_PatchRequestBodyMember2 WithCheckRunPatchRequestBodyMember2 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithCheck_run_PatchRequestBodyMember1? WithCheckRunPatchRequestBodyWithCheckRunPatchRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_PatchRequestBodyMember1? WithCheckRunPatchRequestBodyWithCheckRunPatchRequestBodyMember1 { get; set; } #nullable restore #else - public WithCheck_run_PatchRequestBodyMember1 WithCheckRunPatchRequestBodyWithCheckRunPatchRequestBodyMember1 { get; set; } + public global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_PatchRequestBodyMember1 WithCheckRunPatchRequestBodyWithCheckRunPatchRequestBodyMember1 { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithCheck_run_PatchRequestBodyMember2? WithCheckRunPatchRequestBodyWithCheckRunPatchRequestBodyMember2 { get; set; } + public global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_PatchRequestBodyMember2? WithCheckRunPatchRequestBodyWithCheckRunPatchRequestBodyMember2 { get; set; } #nullable restore #else - public WithCheck_run_PatchRequestBodyMember2 WithCheckRunPatchRequestBodyWithCheckRunPatchRequestBodyMember2 { get; set; } + public global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_PatchRequestBodyMember2 WithCheckRunPatchRequestBodyWithCheckRunPatchRequestBodyMember2 { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithCheck_run_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_ItemRequestBuilder.WithCheck_run_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - var result = new WithCheck_run_PatchRequestBody(); - result.WithCheckRunPatchRequestBodyMember1 = new WithCheck_run_PatchRequestBodyMember1(); - result.WithCheckRunPatchRequestBodyMember2 = new WithCheck_run_PatchRequestBodyMember2(); - result.WithCheckRunPatchRequestBodyWithCheckRunPatchRequestBodyMember1 = new WithCheck_run_PatchRequestBodyMember1(); - result.WithCheckRunPatchRequestBodyWithCheckRunPatchRequestBodyMember2 = new WithCheck_run_PatchRequestBodyMember2(); + var result = new global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_ItemRequestBuilder.WithCheck_run_PatchRequestBody(); + result.WithCheckRunPatchRequestBodyMember1 = new global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_PatchRequestBodyMember1(); + result.WithCheckRunPatchRequestBodyMember2 = new global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_PatchRequestBodyMember2(); + result.WithCheckRunPatchRequestBodyWithCheckRunPatchRequestBodyMember1 = new global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_PatchRequestBodyMember1(); + result.WithCheckRunPatchRequestBodyWithCheckRunPatchRequestBodyMember2 = new global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_PatchRequestBodyMember2(); return result; } /// @@ -203,7 +206,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue(null, WithCheckRunPatchRequestBodyMember1, WithCheckRunPatchRequestBodyMember2, WithCheckRunPatchRequestBodyWithCheckRunPatchRequestBodyMember1, WithCheckRunPatchRequestBodyWithCheckRunPatchRequestBodyMember2); + writer.WriteObjectValue(null, WithCheckRunPatchRequestBodyMember1, WithCheckRunPatchRequestBodyMember2, WithCheckRunPatchRequestBodyWithCheckRunPatchRequestBodyMember1, WithCheckRunPatchRequestBodyWithCheckRunPatchRequestBodyMember2); } } } diff --git a/src/GitHub/Repos/Item/Item/CheckRuns/Item/WithCheck_run_PatchRequestBodyMember1.cs b/src/GitHub/Repos/Item/Item/CheckRuns/Item/WithCheck_run_PatchRequestBodyMember1.cs index efe4ebd5..a647c934 100644 --- a/src/GitHub/Repos/Item/Item/CheckRuns/Item/WithCheck_run_PatchRequestBodyMember1.cs +++ b/src/GitHub/Repos/Item/Item/CheckRuns/Item/WithCheck_run_PatchRequestBodyMember1.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.CheckRuns.Item { +namespace GitHub.Repos.Item.Item.CheckRuns.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithCheck_run_PatchRequestBodyMember1 : IAdditionalDataHolder, IParsable + public partial class WithCheck_run_PatchRequestBodyMember1 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The status property - public WithCheck_run_PatchRequestBodyMember1_status? Status { get; set; } + public global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_PatchRequestBodyMember1_status? Status { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithCheck_run_PatchRequestBodyMember1() { @@ -23,12 +25,12 @@ public WithCheck_run_PatchRequestBodyMember1() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithCheck_run_PatchRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_PatchRequestBodyMember1 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithCheck_run_PatchRequestBodyMember1(); + return new global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_PatchRequestBodyMember1(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"status", n => { Status = n.GetEnumValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("status", Status); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/CheckRuns/Item/WithCheck_run_PatchRequestBodyMember1_status.cs b/src/GitHub/Repos/Item/Item/CheckRuns/Item/WithCheck_run_PatchRequestBodyMember1_status.cs index 2f240b9e..76398dd1 100644 --- a/src/GitHub/Repos/Item/Item/CheckRuns/Item/WithCheck_run_PatchRequestBodyMember1_status.cs +++ b/src/GitHub/Repos/Item/Item/CheckRuns/Item/WithCheck_run_PatchRequestBodyMember1_status.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.CheckRuns.Item { +namespace GitHub.Repos.Item.Item.CheckRuns.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum WithCheck_run_PatchRequestBodyMember1_status #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/CheckRuns/Item/WithCheck_run_PatchRequestBodyMember2.cs b/src/GitHub/Repos/Item/Item/CheckRuns/Item/WithCheck_run_PatchRequestBodyMember2.cs index 93b79750..a72cb3e8 100644 --- a/src/GitHub/Repos/Item/Item/CheckRuns/Item/WithCheck_run_PatchRequestBodyMember2.cs +++ b/src/GitHub/Repos/Item/Item/CheckRuns/Item/WithCheck_run_PatchRequestBodyMember2.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.CheckRuns.Item { +namespace GitHub.Repos.Item.Item.CheckRuns.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithCheck_run_PatchRequestBodyMember2 : IAdditionalDataHolder, IParsable + public partial class WithCheck_run_PatchRequestBodyMember2 : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The status property - public WithCheck_run_PatchRequestBodyMember2_status? Status { get; set; } + public global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_PatchRequestBodyMember2_status? Status { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithCheck_run_PatchRequestBodyMember2() { @@ -23,12 +25,12 @@ public WithCheck_run_PatchRequestBodyMember2() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithCheck_run_PatchRequestBodyMember2 CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_PatchRequestBodyMember2 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithCheck_run_PatchRequestBodyMember2(); + return new global::GitHub.Repos.Item.Item.CheckRuns.Item.WithCheck_run_PatchRequestBodyMember2(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"status", n => { Status = n.GetEnumValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("status", Status); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/CheckRuns/Item/WithCheck_run_PatchRequestBodyMember2_status.cs b/src/GitHub/Repos/Item/Item/CheckRuns/Item/WithCheck_run_PatchRequestBodyMember2_status.cs index 7b8ec1bc..f68c5b80 100644 --- a/src/GitHub/Repos/Item/Item/CheckRuns/Item/WithCheck_run_PatchRequestBodyMember2_status.cs +++ b/src/GitHub/Repos/Item/Item/CheckRuns/Item/WithCheck_run_PatchRequestBodyMember2_status.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.CheckRuns.Item { +namespace GitHub.Repos.Item.Item.CheckRuns.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum WithCheck_run_PatchRequestBodyMember2_status #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/CheckSuites/CheckSuitesPostRequestBody.cs b/src/GitHub/Repos/Item/Item/CheckSuites/CheckSuitesPostRequestBody.cs index 6023cc90..dc5981d4 100644 --- a/src/GitHub/Repos/Item/Item/CheckSuites/CheckSuitesPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/CheckSuites/CheckSuitesPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.CheckSuites { +namespace GitHub.Repos.Item.Item.CheckSuites +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CheckSuitesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckSuitesPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class CheckSuitesPostRequestBody : IAdditionalDataHolder, IParsable public string HeadSha { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckSuitesPostRequestBody() { @@ -29,12 +31,12 @@ public CheckSuitesPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CheckSuitesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.CheckSuites.CheckSuitesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckSuitesPostRequestBody(); + return new global::GitHub.Repos.Item.Item.CheckSuites.CheckSuitesPostRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"head_sha", n => { HeadSha = n.GetStringValue(); } }, + { "head_sha", n => { HeadSha = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/CheckSuites/CheckSuitesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CheckSuites/CheckSuitesRequestBuilder.cs index 8f08509a..2ba9ff47 100644 --- a/src/GitHub/Repos/Item/Item/CheckSuites/CheckSuitesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CheckSuites/CheckSuitesRequestBuilder.cs @@ -2,39 +2,41 @@ using GitHub.Models; using GitHub.Repos.Item.Item.CheckSuites.Item; using GitHub.Repos.Item.Item.CheckSuites.Preferences; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CheckSuites { +namespace GitHub.Repos.Item.Item.CheckSuites +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\check-suites /// - public class CheckSuitesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CheckSuitesRequestBuilder : BaseRequestBuilder { /// The preferences property - public PreferencesRequestBuilder Preferences + public global::GitHub.Repos.Item.Item.CheckSuites.Preferences.PreferencesRequestBuilder Preferences { - get => new PreferencesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.CheckSuites.Preferences.PreferencesRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.repos.item.item.checkSuites.item collection /// The unique identifier of the check suite. - /// A - public WithCheck_suite_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.CheckSuites.Item.WithCheck_suite_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("check_suite_id", position); - return new WithCheck_suite_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CheckSuites.Item.WithCheck_suite_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -42,7 +44,7 @@ public CheckSuitesRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -53,22 +55,22 @@ public CheckSuitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Creates a check suite manually. By default, check suites are automatically created when you create a [check run](https://docs.github.com/enterprise-cloud@latest//rest/checks/runs). You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using "[Update repository preferences for check suites](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#update-repository-preferences-for-check-suites)".> [!NOTE]> The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.OAuth apps and personal access tokens (classic) cannot use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(CheckSuitesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.CheckSuites.CheckSuitesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(CheckSuitesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.CheckSuites.CheckSuitesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CheckSuite.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CheckSuite.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Creates a check suite manually. By default, check suites are automatically created when you create a [check run](https://docs.github.com/enterprise-cloud@latest//rest/checks/runs). You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using "[Update repository preferences for check suites](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#update-repository-preferences-for-check-suites)".> [!NOTE]> The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.OAuth apps and personal access tokens (classic) cannot use this endpoint. @@ -78,11 +80,11 @@ public async Task PostAsync(CheckSuitesPostRequestBody body, Action< /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(CheckSuitesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.CheckSuites.CheckSuitesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckSuitesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.CheckSuites.CheckSuitesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -95,11 +97,11 @@ public RequestInformation ToPostRequestInformation(CheckSuitesPostRequestBody bo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CheckSuitesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CheckSuites.CheckSuitesRequestBuilder WithUrl(string rawUrl) { - return new CheckSuitesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CheckSuites.CheckSuitesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/CheckSuites/Item/CheckRuns/CheckRunsGetResponse.cs b/src/GitHub/Repos/Item/Item/CheckSuites/Item/CheckRuns/CheckRunsGetResponse.cs index 64f870ad..ab38b84a 100644 --- a/src/GitHub/Repos/Item/Item/CheckSuites/Item/CheckRuns/CheckRunsGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/CheckSuites/Item/CheckRuns/CheckRunsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.CheckSuites.Item.CheckRuns { +namespace GitHub.Repos.Item.Item.CheckSuites.Item.CheckRuns +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CheckRunsGetResponse : IAdditionalDataHolder, IParsable + public partial class CheckRunsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class CheckRunsGetResponse : IAdditionalDataHolder, IParsable /// The check_runs property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? CheckRuns { get; set; } + public List? CheckRuns { get; set; } #nullable restore #else - public List CheckRuns { get; set; } + public List CheckRuns { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckRunsGetResponse() { @@ -32,12 +34,12 @@ public CheckRunsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CheckRunsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.CheckSuites.Item.CheckRuns.CheckRunsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckRunsGetResponse(); + return new global::GitHub.Repos.Item.Item.CheckSuites.Item.CheckRuns.CheckRunsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"check_runs", n => { CheckRuns = n.GetCollectionOfObjectValues(CheckRun.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "check_runs", n => { CheckRuns = n.GetCollectionOfObjectValues(global::GitHub.Models.CheckRun.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("check_runs", CheckRuns); + writer.WriteCollectionOfObjectValues("check_runs", CheckRuns); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/CheckSuites/Item/CheckRuns/CheckRunsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CheckSuites/Item/CheckRuns/CheckRunsRequestBuilder.cs index b54049a0..c482f5ec 100644 --- a/src/GitHub/Repos/Item/Item/CheckSuites/Item/CheckRuns/CheckRunsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CheckSuites/Item/CheckRuns/CheckRunsRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CheckSuites.Item.CheckRuns { +namespace GitHub.Repos.Item.Item.CheckSuites.Item.CheckRuns +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\check-suites\{check_suite_id}\check-runs /// - public class CheckRunsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CheckRunsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public CheckRunsRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,20 +35,20 @@ public CheckRunsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Lists check runs for a check suite using its `id`.> [!NOTE]> The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CheckRunsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.CheckSuites.Item.CheckRuns.CheckRunsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists check runs for a check suite using its `id`.> [!NOTE]> The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository. @@ -55,11 +57,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -70,16 +72,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CheckRunsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CheckSuites.Item.CheckRuns.CheckRunsRequestBuilder WithUrl(string rawUrl) { - return new CheckRunsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CheckSuites.Item.CheckRuns.CheckRunsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists check runs for a check suite using its `id`.> [!NOTE]> The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository. /// - public class CheckRunsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CheckRunsRequestBuilderGetQueryParameters { /// Returns check runs with the specified `name`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -93,7 +96,7 @@ public class CheckRunsRequestBuilderGetQueryParameters #endif /// Filters check runs by their `completed_at` timestamp. `latest` returns the most recent check runs. [QueryParameter("filter")] - public GetFilterQueryParameterType? Filter { get; set; } + public global::GitHub.Repos.Item.Item.CheckSuites.Item.CheckRuns.GetFilterQueryParameterType? Filter { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } @@ -102,7 +105,7 @@ public class CheckRunsRequestBuilderGetQueryParameters public int? PerPage { get; set; } /// Returns check runs with the specified `status`. [QueryParameter("status")] - public GetStatusQueryParameterType? Status { get; set; } + public global::GitHub.Repos.Item.Item.CheckSuites.Item.CheckRuns.GetStatusQueryParameterType? Status { get; set; } } } } diff --git a/src/GitHub/Repos/Item/Item/CheckSuites/Item/CheckRuns/GetFilterQueryParameterType.cs b/src/GitHub/Repos/Item/Item/CheckSuites/Item/CheckRuns/GetFilterQueryParameterType.cs index e1deb677..049f0e3c 100644 --- a/src/GitHub/Repos/Item/Item/CheckSuites/Item/CheckRuns/GetFilterQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/CheckSuites/Item/CheckRuns/GetFilterQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.CheckSuites.Item.CheckRuns { +namespace GitHub.Repos.Item.Item.CheckSuites.Item.CheckRuns +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetFilterQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/CheckSuites/Item/CheckRuns/GetStatusQueryParameterType.cs b/src/GitHub/Repos/Item/Item/CheckSuites/Item/CheckRuns/GetStatusQueryParameterType.cs index 3dd367df..bd73598d 100644 --- a/src/GitHub/Repos/Item/Item/CheckSuites/Item/CheckRuns/GetStatusQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/CheckSuites/Item/CheckRuns/GetStatusQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.CheckSuites.Item.CheckRuns { +namespace GitHub.Repos.Item.Item.CheckSuites.Item.CheckRuns +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetStatusQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/CheckSuites/Item/Rerequest/RerequestRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CheckSuites/Item/Rerequest/RerequestRequestBuilder.cs index 27892b38..ddb82dac 100644 --- a/src/GitHub/Repos/Item/Item/CheckSuites/Item/Rerequest/RerequestRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CheckSuites/Item/Rerequest/RerequestRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CheckSuites.Item.Rerequest { +namespace GitHub.Repos.Item.Item.CheckSuites.Item.Rerequest +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\check-suites\{check_suite_id}\rerequest /// - public class RerequestRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RerequestRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RerequestRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public RerequestRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#check_suite) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.OAuth apps and personal access tokens (classic) cannot use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#check_suite) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.OAuth apps and personal access tokens (classic) cannot use this endpoint. @@ -71,11 +73,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RerequestRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CheckSuites.Item.Rerequest.RerequestRequestBuilder WithUrl(string rawUrl) { - return new RerequestRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CheckSuites.Item.Rerequest.RerequestRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/CheckSuites/Item/WithCheck_suite_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CheckSuites/Item/WithCheck_suite_ItemRequestBuilder.cs index 91209e2d..abadf6df 100644 --- a/src/GitHub/Repos/Item/Item/CheckSuites/Item/WithCheck_suite_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CheckSuites/Item/WithCheck_suite_ItemRequestBuilder.cs @@ -2,32 +2,34 @@ using GitHub.Models; using GitHub.Repos.Item.Item.CheckSuites.Item.CheckRuns; using GitHub.Repos.Item.Item.CheckSuites.Item.Rerequest; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CheckSuites.Item { +namespace GitHub.Repos.Item.Item.CheckSuites.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\check-suites\{check_suite_id} /// - public class WithCheck_suite_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithCheck_suite_ItemRequestBuilder : BaseRequestBuilder { /// The checkRuns property - public CheckRunsRequestBuilder CheckRuns + public global::GitHub.Repos.Item.Item.CheckSuites.Item.CheckRuns.CheckRunsRequestBuilder CheckRuns { - get => new CheckRunsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.CheckSuites.Item.CheckRuns.CheckRunsRequestBuilder(PathParameters, RequestAdapter); } /// The rerequest property - public RerequestRequestBuilder Rerequest + public global::GitHub.Repos.Item.Item.CheckSuites.Item.Rerequest.RerequestRequestBuilder Rerequest { - get => new RerequestRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.CheckSuites.Item.Rerequest.RerequestRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public WithCheck_suite_ItemRequestBuilder(Dictionary pathParamet { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,20 +48,20 @@ public WithCheck_suite_ItemRequestBuilder(string rawUrl, IRequestAdapter request /// Gets a single check suite using its `id`.> [!NOTE]> The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CheckSuite.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CheckSuite.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets a single check suite using its `id`.> [!NOTE]> The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository. @@ -83,11 +85,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithCheck_suite_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CheckSuites.Item.WithCheck_suite_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithCheck_suite_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CheckSuites.Item.WithCheck_suite_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/CheckSuites/Preferences/PreferencesPatchRequestBody.cs b/src/GitHub/Repos/Item/Item/CheckSuites/Preferences/PreferencesPatchRequestBody.cs index d1a7bc9e..c49a38ca 100644 --- a/src/GitHub/Repos/Item/Item/CheckSuites/Preferences/PreferencesPatchRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/CheckSuites/Preferences/PreferencesPatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.CheckSuites.Preferences { +namespace GitHub.Repos.Item.Item.CheckSuites.Preferences +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PreferencesPatchRequestBody : IAdditionalDataHolder, IParsable + public partial class PreferencesPatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,13 +16,13 @@ public class PreferencesPatchRequestBody : IAdditionalDataHolder, IParsable /// Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? AutoTriggerChecks { get; set; } + public List? AutoTriggerChecks { get; set; } #nullable restore #else - public List AutoTriggerChecks { get; set; } + public List AutoTriggerChecks { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PreferencesPatchRequestBody() { @@ -29,12 +31,12 @@ public PreferencesPatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PreferencesPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.CheckSuites.Preferences.PreferencesPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PreferencesPatchRequestBody(); + return new global::GitHub.Repos.Item.Item.CheckSuites.Preferences.PreferencesPatchRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"auto_trigger_checks", n => { AutoTriggerChecks = n.GetCollectionOfObjectValues(PreferencesPatchRequestBody_auto_trigger_checks.CreateFromDiscriminatorValue)?.ToList(); } }, + { "auto_trigger_checks", n => { AutoTriggerChecks = n.GetCollectionOfObjectValues(global::GitHub.Repos.Item.Item.CheckSuites.Preferences.PreferencesPatchRequestBody_auto_trigger_checks.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -54,7 +56,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("auto_trigger_checks", AutoTriggerChecks); + writer.WriteCollectionOfObjectValues("auto_trigger_checks", AutoTriggerChecks); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/CheckSuites/Preferences/PreferencesPatchRequestBody_auto_trigger_checks.cs b/src/GitHub/Repos/Item/Item/CheckSuites/Preferences/PreferencesPatchRequestBody_auto_trigger_checks.cs index 3b4a07d7..6c06f057 100644 --- a/src/GitHub/Repos/Item/Item/CheckSuites/Preferences/PreferencesPatchRequestBody_auto_trigger_checks.cs +++ b/src/GitHub/Repos/Item/Item/CheckSuites/Preferences/PreferencesPatchRequestBody_auto_trigger_checks.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.CheckSuites.Preferences { +namespace GitHub.Repos.Item.Item.CheckSuites.Preferences +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class PreferencesPatchRequestBody_auto_trigger_checks : IAdditionalDataHolder, IParsable + public partial class PreferencesPatchRequestBody_auto_trigger_checks : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -16,7 +18,7 @@ public class PreferencesPatchRequestBody_auto_trigger_checks : IAdditionalDataHo /// Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them. public bool? Setting { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PreferencesPatchRequestBody_auto_trigger_checks() { @@ -25,12 +27,12 @@ public PreferencesPatchRequestBody_auto_trigger_checks() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PreferencesPatchRequestBody_auto_trigger_checks CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.CheckSuites.Preferences.PreferencesPatchRequestBody_auto_trigger_checks CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PreferencesPatchRequestBody_auto_trigger_checks(); + return new global::GitHub.Repos.Item.Item.CheckSuites.Preferences.PreferencesPatchRequestBody_auto_trigger_checks(); } /// /// The deserialization information for the current model @@ -40,8 +42,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"app_id", n => { AppId = n.GetIntValue(); } }, - {"setting", n => { Setting = n.GetBoolValue(); } }, + { "app_id", n => { AppId = n.GetIntValue(); } }, + { "setting", n => { Setting = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/CheckSuites/Preferences/PreferencesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CheckSuites/Preferences/PreferencesRequestBuilder.cs index 7ce659e6..ff7e7c52 100644 --- a/src/GitHub/Repos/Item/Item/CheckSuites/Preferences/PreferencesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CheckSuites/Preferences/PreferencesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CheckSuites.Preferences { +namespace GitHub.Repos.Item.Item.CheckSuites.Preferences +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\check-suites\preferences /// - public class PreferencesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PreferencesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public PreferencesRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,22 +36,22 @@ public PreferencesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Changes the default automatic flow when creating check suites. By default, a check suite is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually [Create a check suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#create-a-check-suite).You must have admin permissions in the repository to set preferences for check suites. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(PreferencesPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.CheckSuites.Preferences.PreferencesPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(PreferencesPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.CheckSuites.Preferences.PreferencesPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CheckSuitePreference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CheckSuitePreference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Changes the default automatic flow when creating check suites. By default, a check suite is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually [Create a check suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#create-a-check-suite).You must have admin permissions in the repository to set preferences for check suites. @@ -59,11 +61,11 @@ public async Task PatchAsync(PreferencesPatchRequestBody b /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(PreferencesPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.CheckSuites.Preferences.PreferencesPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(PreferencesPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.CheckSuites.Preferences.PreferencesPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -76,11 +78,11 @@ public RequestInformation ToPatchRequestInformation(PreferencesPatchRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PreferencesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CheckSuites.Preferences.PreferencesRequestBuilder WithUrl(string rawUrl) { - return new PreferencesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CheckSuites.Preferences.PreferencesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/AlertsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/AlertsRequestBuilder.cs index 34096a7d..2282869c 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/AlertsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/AlertsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.CodeScanning.Alerts.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Alerts { +namespace GitHub.Repos.Item.Item.CodeScanning.Alerts +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\alerts /// - public class AlertsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AlertsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.codeScanning.alerts.item collection /// The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. - /// A - public WithAlert_numberItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.CodeScanning.Alerts.Item.WithAlert_numberItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("alert_number", position); - return new WithAlert_numberItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CodeScanning.Alerts.Item.WithAlert_numberItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public AlertsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,30 +49,30 @@ public AlertsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Lists code scanning alerts.The response includes a `most_recent_instance` object.This provides details of the most recent instance of this alertfor the default branch (or for the specified Git reference if you used `ref` in the request).OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// API method documentation /// - /// A List<CodeScanningAlertItems> + /// A List<global::GitHub.Models.CodeScanningAlertItems> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 503 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"503", Alerts503Error.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.Alerts503Error.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CodeScanningAlertItems.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CodeScanningAlertItems.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists code scanning alerts.The response includes a `most_recent_instance` object.This provides details of the most recent instance of this alertfor the default branch (or for the specified Git reference if you used `ref` in the request).OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. @@ -79,11 +81,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -94,20 +96,21 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AlertsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CodeScanning.Alerts.AlertsRequestBuilder WithUrl(string rawUrl) { - return new AlertsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CodeScanning.Alerts.AlertsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists code scanning alerts.The response includes a `most_recent_instance` object.This provides details of the most recent instance of this alertfor the default branch (or for the specified Git reference if you used `ref` in the request).OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// - public class AlertsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AlertsRequestBuilderGetQueryParameters { /// The direction to sort the results by. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Repos.Item.Item.CodeScanning.Alerts.GetDirectionQueryParameterType? Direction { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } @@ -126,13 +129,13 @@ public class AlertsRequestBuilderGetQueryParameters #endif /// If specified, only code scanning alerts with this severity will be returned. [QueryParameter("severity")] - public CodeScanningAlertSeverity? Severity { get; set; } + public global::GitHub.Models.CodeScanningAlertSeverity? Severity { get; set; } /// The property by which to sort the results. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Repos.Item.Item.CodeScanning.Alerts.GetSortQueryParameterType? Sort { get; set; } /// If specified, only code scanning alerts with this state will be returned. [QueryParameter("state")] - public CodeScanningAlertStateQuery? State { get; set; } + public global::GitHub.Models.CodeScanningAlertStateQuery? State { get; set; } /// The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/GetDirectionQueryParameterType.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/GetDirectionQueryParameterType.cs index 576c6bae..57869cb4 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Alerts { +namespace GitHub.Repos.Item.Item.CodeScanning.Alerts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/GetSortQueryParameterType.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/GetSortQueryParameterType.cs index 3d384334..083692fe 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/GetSortQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Alerts { +namespace GitHub.Repos.Item.Item.CodeScanning.Alerts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/Item/Instances/InstancesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/Item/Instances/InstancesRequestBuilder.cs index 7dca2bd0..8fbd6d64 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/Item/Instances/InstancesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/Item/Instances/InstancesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Alerts.Item.Instances { +namespace GitHub.Repos.Item.Item.CodeScanning.Alerts.Item.Instances +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\alerts\{alert_number}\instances /// - public class InstancesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InstancesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public InstancesRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,30 +36,30 @@ public InstancesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Lists all instances of the specified code scanning alert.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// API method documentation /// - /// A List<CodeScanningAlertInstance> + /// A List<global::GitHub.Models.CodeScanningAlertInstance> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 503 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"503", Instances503Error.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.Instances503Error.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CodeScanningAlertInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CodeScanningAlertInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists all instances of the specified code scanning alert.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. @@ -66,11 +68,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -81,16 +83,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public InstancesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CodeScanning.Alerts.Item.Instances.InstancesRequestBuilder WithUrl(string rawUrl) { - return new InstancesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CodeScanning.Alerts.Item.Instances.InstancesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all instances of the specified code scanning alert.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// - public class InstancesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InstancesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/Item/WithAlert_numberItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/Item/WithAlert_numberItemRequestBuilder.cs index 96c61343..bf66defa 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/Item/WithAlert_numberItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/Item/WithAlert_numberItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.CodeScanning.Alerts.Item.Instances; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Alerts.Item { +namespace GitHub.Repos.Item.Item.CodeScanning.Alerts.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\alerts\{alert_number} /// - public class WithAlert_numberItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithAlert_numberItemRequestBuilder : BaseRequestBuilder { /// The instances property - public InstancesRequestBuilder Instances + public global::GitHub.Repos.Item.Item.CodeScanning.Alerts.Item.Instances.InstancesRequestBuilder Instances { - get => new InstancesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.CodeScanning.Alerts.Item.Instances.InstancesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithAlert_numberItemRequestBuilder(Dictionary pathParamet { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -40,59 +42,59 @@ public WithAlert_numberItemRequestBuilder(string rawUrl, IRequestAdapter request /// Gets a single code scanning alert.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 503 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"503", CodeScanningAlert503Error.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.CodeScanningAlert503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CodeScanningAlert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeScanningAlert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Updates the status of a single code scanning alert.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 503 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithAlert_numberPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.CodeScanning.Alerts.Item.WithAlert_numberPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithAlert_numberPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.CodeScanning.Alerts.Item.WithAlert_numberPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"503", CodeScanningAlert503Error.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.CodeScanningAlert503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CodeScanningAlert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeScanningAlert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets a single code scanning alert.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. @@ -121,11 +123,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithAlert_numberPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.CodeScanning.Alerts.Item.WithAlert_numberPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithAlert_numberPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.CodeScanning.Alerts.Item.WithAlert_numberPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -138,11 +140,11 @@ public RequestInformation ToPatchRequestInformation(WithAlert_numberPatchRequest /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithAlert_numberItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CodeScanning.Alerts.Item.WithAlert_numberItemRequestBuilder WithUrl(string rawUrl) { - return new WithAlert_numberItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CodeScanning.Alerts.Item.WithAlert_numberItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/Item/WithAlert_numberPatchRequestBody.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/Item/WithAlert_numberPatchRequestBody.cs index cdc0f7f3..d992f189 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/Item/WithAlert_numberPatchRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/Item/WithAlert_numberPatchRequestBody.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Alerts.Item { +namespace GitHub.Repos.Item.Item.CodeScanning.Alerts.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithAlert_numberPatchRequestBody : IAdditionalDataHolder, IParsable + public partial class WithAlert_numberPatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -21,11 +23,11 @@ public class WithAlert_numberPatchRequestBody : IAdditionalDataHolder, IParsable public string DismissedComment { get; set; } #endif /// **Required when the state is dismissed.** The reason for dismissing or closing the alert. - public CodeScanningAlertDismissedReason? DismissedReason { get; set; } + public global::GitHub.Models.CodeScanningAlertDismissedReason? DismissedReason { get; set; } /// Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`. - public CodeScanningAlertSetState? State { get; set; } + public global::GitHub.Models.CodeScanningAlertSetState? State { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithAlert_numberPatchRequestBody() { @@ -34,12 +36,12 @@ public WithAlert_numberPatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithAlert_numberPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.CodeScanning.Alerts.Item.WithAlert_numberPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithAlert_numberPatchRequestBody(); + return new global::GitHub.Repos.Item.Item.CodeScanning.Alerts.Item.WithAlert_numberPatchRequestBody(); } /// /// The deserialization information for the current model @@ -49,9 +51,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"dismissed_comment", n => { DismissedComment = n.GetStringValue(); } }, - {"dismissed_reason", n => { DismissedReason = n.GetEnumValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, + { "dismissed_comment", n => { DismissedComment = n.GetStringValue(); } }, + { "dismissed_reason", n => { DismissedReason = n.GetEnumValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, }; } /// @@ -62,8 +64,8 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("dismissed_comment", DismissedComment); - writer.WriteEnumValue("dismissed_reason", DismissedReason); - writer.WriteEnumValue("state", State); + writer.WriteEnumValue("dismissed_reason", DismissedReason); + writer.WriteEnumValue("state", State); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Analyses/AnalysesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Analyses/AnalysesRequestBuilder.cs index 0aadffbf..0dc8429c 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Analyses/AnalysesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Analyses/AnalysesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.CodeScanning.Analyses.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Analyses { +namespace GitHub.Repos.Item.Item.CodeScanning.Analyses +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\analyses /// - public class AnalysesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AnalysesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.codeScanning.analyses.item collection /// The ID of the analysis, as returned from the `GET /repos/{owner}/{repo}/code-scanning/analyses` operation. - /// A - public WithAnalysis_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.CodeScanning.Analyses.Item.WithAnalysis_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("analysis_id", position); - return new WithAnalysis_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CodeScanning.Analyses.Item.WithAnalysis_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public AnalysesRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,30 +49,30 @@ public AnalysesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Lists the details of all code scanning analyses for a repository,starting with the most recent.The response is paginated and you can use the `page` and `per_page` parametersto list the analyses you're interested in.By default 30 analyses are listed per page.The `rules_count` field in the response give the number of rulesthat were run in the analysis.For very old analyses this data is not available,and `0` is returned in this field.> [!WARNING]> **Deprecation notice:** The `tool_name` field is deprecated and will, in future, not be included in the response for this endpoint. The example response reflects this change. The tool name can now be found inside the `tool` field.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// API method documentation /// - /// A List<CodeScanningAnalysis> + /// A List<global::GitHub.Models.CodeScanningAnalysis> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 503 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"503", Analyses503Error.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.Analyses503Error.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CodeScanningAnalysis.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CodeScanningAnalysis.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists the details of all code scanning analyses for a repository,starting with the most recent.The response is paginated and you can use the `page` and `per_page` parametersto list the analyses you're interested in.By default 30 analyses are listed per page.The `rules_count` field in the response give the number of rulesthat were run in the analysis.For very old analyses this data is not available,and `0` is returned in this field.> [!WARNING]> **Deprecation notice:** The `tool_name` field is deprecated and will, in future, not be included in the response for this endpoint. The example response reflects this change. The tool name can now be found inside the `tool` field.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. @@ -79,11 +81,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -94,20 +96,21 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AnalysesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CodeScanning.Analyses.AnalysesRequestBuilder WithUrl(string rawUrl) { - return new AnalysesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CodeScanning.Analyses.AnalysesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the details of all code scanning analyses for a repository,starting with the most recent.The response is paginated and you can use the `page` and `per_page` parametersto list the analyses you're interested in.By default 30 analyses are listed per page.The `rules_count` field in the response give the number of rulesthat were run in the analysis.For very old analyses this data is not available,and `0` is returned in this field.> [!WARNING]> **Deprecation notice:** The `tool_name` field is deprecated and will, in future, not be included in the response for this endpoint. The example response reflects this change. The tool name can now be found inside the `tool` field.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// - public class AnalysesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AnalysesRequestBuilderGetQueryParameters { /// The direction to sort the results by. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Repos.Item.Item.CodeScanning.Analyses.GetDirectionQueryParameterType? Direction { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } @@ -136,7 +139,7 @@ public class AnalysesRequestBuilderGetQueryParameters #endif /// The property by which to sort the results. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Repos.Item.Item.CodeScanning.Analyses.GetSortQueryParameterType? Sort { get; set; } /// The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Analyses/GetDirectionQueryParameterType.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Analyses/GetDirectionQueryParameterType.cs index ed7a9458..087862e9 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Analyses/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Analyses/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Analyses { +namespace GitHub.Repos.Item.Item.CodeScanning.Analyses +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Analyses/GetSortQueryParameterType.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Analyses/GetSortQueryParameterType.cs index 444bf859..2836d675 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Analyses/GetSortQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Analyses/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Analyses { +namespace GitHub.Repos.Item.Item.CodeScanning.Analyses +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Analyses/Item/WithAnalysis_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Analyses/Item/WithAnalysis_ItemRequestBuilder.cs index 03a1fc13..196775bf 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Analyses/Item/WithAnalysis_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Analyses/Item/WithAnalysis_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Analyses.Item { +namespace GitHub.Repos.Item.Item.CodeScanning.Analyses.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\analyses\{analysis_id} /// - public class WithAnalysis_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithAnalysis_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithAnalysis_ItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,59 +36,59 @@ public WithAnalysis_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Deletes a specified code scanning analysis from a repository.You can delete one analysis at a time.To delete a series of analyses, start with the most recent analysis and work backwards.Conceptually, the process is similar to the undo function in a text editor.When you list the analyses for a repository,one or more will be identified as deletable in the response:```"deletable": true```An analysis is deletable when it's the most recent in a set of analyses.Typically, a repository will have multiple sets of analysesfor each enabled code scanning tool,where a set is determined by a unique combination of analysis values:* `ref`* `tool`* `category`If you attempt to delete an analysis that is not the most recent in a set,you'll get a 400 response with the message:```Analysis specified is not deletable.```The response from a successful `DELETE` operation provides you withtwo alternative URLs for deleting the next analysis in the set:`next_analysis_url` and `confirm_delete_url`.Use the `next_analysis_url` URL if you want to avoid accidentally deleting the final analysisin a set. This is a useful option if you want to preserve at least one analysisfor the specified tool in your repository.Use the `confirm_delete_url` URL if you are content to remove all analyses for a tool.When you delete the last analysis in a set, the value of `next_analysis_url` and `confirm_delete_url`in the 200 response is `null`.As an example of the deletion process,let's imagine that you added a workflow that configured a particular code scanning toolto analyze the code in a repository. This tool has added 15 analyses:10 on the default branch, and another 5 on a topic branch.You therefore have two separate sets of analyses for this tool.You've now decided that you want to remove all of the analyses for the tool.To do this you must make 15 separate deletion requests.To start, you must find an analysis that's identified as deletable.Each set of analyses always has one that's identified as deletable.Having found the deletable analysis for one of the two sets,delete this analysis and then continue deleting the next analysis in the set until they're all deleted.Then repeat the process for the second set.The procedure therefore consists of a nested loop:**Outer loop**:* List the analyses for the repository, filtered by tool.* Parse this list to find a deletable analysis. If found: **Inner loop**: * Delete the identified analysis. * Parse the response for the value of `confirm_delete_url` and, if found, use this in the next iteration.The above process assumes that you want to remove all trace of the tool's analyses from the GitHub user interface, for the specified repository, and it therefore uses the `confirm_delete_url` value. Alternatively, you could use the `next_analysis_url` value, which would leave the last analysis in each set undeleted to avoid removing a tool's analysis entirely.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 503 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"503", CodeScanningAnalysisDeletion503Error.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.CodeScanningAnalysisDeletion503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CodeScanningAnalysisDeletion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeScanningAnalysisDeletion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets a specified code scanning analysis for a repository.The default JSON response contains fields that describe the analysis.This includes the Git reference and commit SHA to which the analysis relates,the datetime of the analysis, the name of the code scanning tool,and the number of alerts.The `rules_count` field in the default response give the number of rulesthat were run in the analysis.For very old analyses this data is not available,and `0` is returned in this field.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/sarif+json`**: Instead of returning a summary of the analysis, this endpoint returns a subset of the analysis data that was uploaded. The data is formatted as [SARIF version 2.1.0](https://docs.oasis-open.org/sarif/sarif/v2.1.0/cs01/sarif-v2.1.0-cs01.html). It also returns additional data such as the `github/alertNumber` and `github/alertUrl` properties.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 503 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"503", CodeScanningAnalysis503Error.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.CodeScanningAnalysis503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CodeScanningAnalysis.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeScanningAnalysis.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Deletes a specified code scanning analysis from a repository.You can delete one analysis at a time.To delete a series of analyses, start with the most recent analysis and work backwards.Conceptually, the process is similar to the undo function in a text editor.When you list the analyses for a repository,one or more will be identified as deletable in the response:```"deletable": true```An analysis is deletable when it's the most recent in a set of analyses.Typically, a repository will have multiple sets of analysesfor each enabled code scanning tool,where a set is determined by a unique combination of analysis values:* `ref`* `tool`* `category`If you attempt to delete an analysis that is not the most recent in a set,you'll get a 400 response with the message:```Analysis specified is not deletable.```The response from a successful `DELETE` operation provides you withtwo alternative URLs for deleting the next analysis in the set:`next_analysis_url` and `confirm_delete_url`.Use the `next_analysis_url` URL if you want to avoid accidentally deleting the final analysisin a set. This is a useful option if you want to preserve at least one analysisfor the specified tool in your repository.Use the `confirm_delete_url` URL if you are content to remove all analyses for a tool.When you delete the last analysis in a set, the value of `next_analysis_url` and `confirm_delete_url`in the 200 response is `null`.As an example of the deletion process,let's imagine that you added a workflow that configured a particular code scanning toolto analyze the code in a repository. This tool has added 15 analyses:10 on the default branch, and another 5 on a topic branch.You therefore have two separate sets of analyses for this tool.You've now decided that you want to remove all of the analyses for the tool.To do this you must make 15 separate deletion requests.To start, you must find an analysis that's identified as deletable.Each set of analyses always has one that's identified as deletable.Having found the deletable analysis for one of the two sets,delete this analysis and then continue deleting the next analysis in the set until they're all deleted.Then repeat the process for the second set.The procedure therefore consists of a nested loop:**Outer loop**:* List the analyses for the repository, filtered by tool.* Parse this list to find a deletable analysis. If found: **Inner loop**: * Delete the identified analysis. * Parse the response for the value of `confirm_delete_url` and, if found, use this in the next iteration.The above process assumes that you want to remove all trace of the tool's analyses from the GitHub user interface, for the specified repository, and it therefore uses the `confirm_delete_url` value. Alternatively, you could use the `next_analysis_url` value, which would leave the last analysis in each set undeleted to avoid removing a tool's analysis entirely.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. @@ -95,11 +97,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -129,16 +131,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithAnalysis_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CodeScanning.Analyses.Item.WithAnalysis_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithAnalysis_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CodeScanning.Analyses.Item.WithAnalysis_ItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Deletes a specified code scanning analysis from a repository.You can delete one analysis at a time.To delete a series of analyses, start with the most recent analysis and work backwards.Conceptually, the process is similar to the undo function in a text editor.When you list the analyses for a repository,one or more will be identified as deletable in the response:```"deletable": true```An analysis is deletable when it's the most recent in a set of analyses.Typically, a repository will have multiple sets of analysesfor each enabled code scanning tool,where a set is determined by a unique combination of analysis values:* `ref`* `tool`* `category`If you attempt to delete an analysis that is not the most recent in a set,you'll get a 400 response with the message:```Analysis specified is not deletable.```The response from a successful `DELETE` operation provides you withtwo alternative URLs for deleting the next analysis in the set:`next_analysis_url` and `confirm_delete_url`.Use the `next_analysis_url` URL if you want to avoid accidentally deleting the final analysisin a set. This is a useful option if you want to preserve at least one analysisfor the specified tool in your repository.Use the `confirm_delete_url` URL if you are content to remove all analyses for a tool.When you delete the last analysis in a set, the value of `next_analysis_url` and `confirm_delete_url`in the 200 response is `null`.As an example of the deletion process,let's imagine that you added a workflow that configured a particular code scanning toolto analyze the code in a repository. This tool has added 15 analyses:10 on the default branch, and another 5 on a topic branch.You therefore have two separate sets of analyses for this tool.You've now decided that you want to remove all of the analyses for the tool.To do this you must make 15 separate deletion requests.To start, you must find an analysis that's identified as deletable.Each set of analyses always has one that's identified as deletable.Having found the deletable analysis for one of the two sets,delete this analysis and then continue deleting the next analysis in the set until they're all deleted.Then repeat the process for the second set.The procedure therefore consists of a nested loop:**Outer loop**:* List the analyses for the repository, filtered by tool.* Parse this list to find a deletable analysis. If found: **Inner loop**: * Delete the identified analysis. * Parse the response for the value of `confirm_delete_url` and, if found, use this in the next iteration.The above process assumes that you want to remove all trace of the tool's analyses from the GitHub user interface, for the specified repository, and it therefore uses the `confirm_delete_url` value. Alternatively, you could use the `next_analysis_url` value, which would leave the last analysis in each set undeleted to avoid removing a tool's analysis entirely.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// - public class WithAnalysis_ItemRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithAnalysis_ItemRequestBuilderDeleteQueryParameters { /// Allow deletion if the specified analysis is the last in a set. If you attempt to delete the final analysis in a set without setting this parameter to `true`, you'll get a 400 response with the message: `Analysis is last of its type and deletion may result in the loss of historical alert data. Please specify confirm_delete.` #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/CodeScanningRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeScanning/CodeScanningRequestBuilder.cs index 8951411f..78382bd7 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/CodeScanningRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/CodeScanningRequestBuilder.cs @@ -4,45 +4,47 @@ using GitHub.Repos.Item.Item.CodeScanning.Codeql; using GitHub.Repos.Item.Item.CodeScanning.DefaultSetup; using GitHub.Repos.Item.Item.CodeScanning.Sarifs; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Repos.Item.Item.CodeScanning { +namespace GitHub.Repos.Item.Item.CodeScanning +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning /// - public class CodeScanningRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeScanningRequestBuilder : BaseRequestBuilder { /// The alerts property - public AlertsRequestBuilder Alerts + public global::GitHub.Repos.Item.Item.CodeScanning.Alerts.AlertsRequestBuilder Alerts { - get => new AlertsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.CodeScanning.Alerts.AlertsRequestBuilder(PathParameters, RequestAdapter); } /// The analyses property - public AnalysesRequestBuilder Analyses + public global::GitHub.Repos.Item.Item.CodeScanning.Analyses.AnalysesRequestBuilder Analyses { - get => new AnalysesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.CodeScanning.Analyses.AnalysesRequestBuilder(PathParameters, RequestAdapter); } /// The codeql property - public CodeqlRequestBuilder Codeql + public global::GitHub.Repos.Item.Item.CodeScanning.Codeql.CodeqlRequestBuilder Codeql { - get => new CodeqlRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.CodeScanning.Codeql.CodeqlRequestBuilder(PathParameters, RequestAdapter); } /// The defaultSetup property - public DefaultSetupRequestBuilder DefaultSetup + public global::GitHub.Repos.Item.Item.CodeScanning.DefaultSetup.DefaultSetupRequestBuilder DefaultSetup { - get => new DefaultSetupRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.CodeScanning.DefaultSetup.DefaultSetupRequestBuilder(PathParameters, RequestAdapter); } /// The sarifs property - public SarifsRequestBuilder Sarifs + public global::GitHub.Repos.Item.Item.CodeScanning.Sarifs.SarifsRequestBuilder Sarifs { - get => new SarifsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.CodeScanning.Sarifs.SarifsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -50,7 +52,7 @@ public CodeScanningRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/CodeqlRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/CodeqlRequestBuilder.cs index 46a3ec27..17ce1268 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/CodeqlRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/CodeqlRequestBuilder.cs @@ -1,30 +1,32 @@ // using GitHub.Repos.Item.Item.CodeScanning.Codeql.Databases; using GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Codeql { +namespace GitHub.Repos.Item.Item.CodeScanning.Codeql +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\codeql /// - public class CodeqlRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeqlRequestBuilder : BaseRequestBuilder { /// The databases property - public DatabasesRequestBuilder Databases + public global::GitHub.Repos.Item.Item.CodeScanning.Codeql.Databases.DatabasesRequestBuilder Databases { - get => new DatabasesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.CodeScanning.Codeql.Databases.DatabasesRequestBuilder(PathParameters, RequestAdapter); } /// The variantAnalyses property - public VariantAnalysesRequestBuilder VariantAnalyses + public global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.VariantAnalysesRequestBuilder VariantAnalyses { - get => new VariantAnalysesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.VariantAnalysesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -32,7 +34,7 @@ public CodeqlRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/Databases/DatabasesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/Databases/DatabasesRequestBuilder.cs index a2b6094f..f44bd281 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/Databases/DatabasesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/Databases/DatabasesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.CodeScanning.Codeql.Databases.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Codeql.Databases { +namespace GitHub.Repos.Item.Item.CodeScanning.Codeql.Databases +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\codeql\databases /// - public class DatabasesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DatabasesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.codeScanning.codeql.databases.item collection /// The language of the CodeQL database. - /// A - public WithLanguageItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.CodeScanning.Codeql.Databases.Item.WithLanguageItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("language", position); - return new WithLanguageItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CodeScanning.Codeql.Databases.Item.WithLanguageItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public DatabasesRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,30 +49,30 @@ public DatabasesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Lists the CodeQL databases that are available in a repository.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// API method documentation /// - /// A List<CodeScanningCodeqlDatabase> + /// A List<global::GitHub.Models.CodeScanningCodeqlDatabase> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 503 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"503", Databases503Error.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.Databases503Error.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CodeScanningCodeqlDatabase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CodeScanningCodeqlDatabase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists the CodeQL databases that are available in a repository.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. @@ -94,11 +96,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DatabasesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CodeScanning.Codeql.Databases.DatabasesRequestBuilder WithUrl(string rawUrl) { - return new DatabasesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CodeScanning.Codeql.Databases.DatabasesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/Databases/Item/WithLanguageItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/Databases/Item/WithLanguageItemRequestBuilder.cs index db82926b..6bea33d9 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/Databases/Item/WithLanguageItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/Databases/Item/WithLanguageItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Codeql.Databases.Item { +namespace GitHub.Repos.Item.Item.CodeScanning.Codeql.Databases.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\codeql\databases\{language} /// - public class WithLanguageItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithLanguageItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithLanguageItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,29 +36,29 @@ public WithLanguageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Gets a CodeQL database for a language in a repository.By default this endpoint returns JSON metadata about the CodeQL database. Todownload the CodeQL database binary content, set the `Accept` header of the requestto [`application/zip`](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types), and make sureyour HTTP client is configured to follow redirects or use the `Location` headerto make a second request to get the redirect URL.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 503 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"503", CodeScanningCodeqlDatabase503Error.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.CodeScanningCodeqlDatabase503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CodeScanningCodeqlDatabase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeScanningCodeqlDatabase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets a CodeQL database for a language in a repository.By default this endpoint returns JSON metadata about the CodeQL database. Todownload the CodeQL database binary content, set the `Accept` header of the requestto [`application/zip`](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types), and make sureyour HTTP client is configured to follow redirects or use the `Location` headerto make a second request to get the redirect URL.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. @@ -80,11 +82,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithLanguageItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CodeScanning.Codeql.Databases.Item.WithLanguageItemRequestBuilder WithUrl(string rawUrl) { - return new WithLanguageItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CodeScanning.Codeql.Databases.Item.WithLanguageItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/Item/Repos/Item/Item/WithRepo_nameItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/Item/Repos/Item/Item/WithRepo_nameItemRequestBuilder.cs index 0d90d7c8..869eb2a2 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/Item/Repos/Item/Item/WithRepo_nameItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/Item/Repos/Item/Item/WithRepo_nameItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.Repos.Item.Item { +namespace GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.Repos.Item.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\codeql\variant-analyses\{codeql_variant_analysis_id}\repos\{repo_owner}\{repo_name} /// - public class WithRepo_nameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRepo_nameItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithRepo_nameItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public WithRepo_nameItemRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Gets the analysis status of a repository in a CodeQL variant analysis.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 503 status code + /// When receiving a 404 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"503", CodeScanningVariantAnalysisRepoTask503Error.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.CodeScanningVariantAnalysisRepoTask503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CodeScanningVariantAnalysisRepoTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeScanningVariantAnalysisRepoTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets the analysis status of a repository in a CodeQL variant analysis.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. @@ -78,11 +80,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRepo_nameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.Repos.Item.Item.WithRepo_nameItemRequestBuilder WithUrl(string rawUrl) { - return new WithRepo_nameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.Repos.Item.Item.WithRepo_nameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/Item/Repos/Item/WithRepo_ownerItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/Item/Repos/Item/WithRepo_ownerItemRequestBuilder.cs index e18c35c0..ce87f048 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/Item/Repos/Item/WithRepo_ownerItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/Item/Repos/Item/WithRepo_ownerItemRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.Repos.Item.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.Repos.Item { +namespace GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.Repos.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\codeql\variant-analyses\{codeql_variant_analysis_id}\repos\{repo_owner} /// - public class WithRepo_ownerItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRepo_ownerItemRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.codeScanning.codeql.variantAnalyses.item.repos.item.item collection /// The name of the variant analysis repository. - /// A - public WithRepo_nameItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.Repos.Item.Item.WithRepo_nameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("repo_name", position); - return new WithRepo_nameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.Repos.Item.Item.WithRepo_nameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public WithRepo_ownerItemRequestBuilder(Dictionary pathParameter { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/Item/Repos/ReposRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/Item/Repos/ReposRequestBuilder.cs index af4cbea4..d9d80bfe 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/Item/Repos/ReposRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/Item/Repos/ReposRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.Repos.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.Repos { +namespace GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.Repos +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\codeql\variant-analyses\{codeql_variant_analysis_id}\repos /// - public class ReposRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReposRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.codeScanning.codeql.variantAnalyses.item.repos.item collection /// The account owner of the variant analysis repository. The name is not case sensitive. - /// A - public WithRepo_ownerItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.Repos.Item.WithRepo_ownerItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("repo_owner", position); - return new WithRepo_ownerItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.Repos.Item.WithRepo_ownerItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public ReposRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/Item/WithCodeql_variant_analysis_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/Item/WithCodeql_variant_analysis_ItemRequestBuilder.cs index 59fca053..9166c79f 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/Item/WithCodeql_variant_analysis_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/Item/WithCodeql_variant_analysis_ItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.Repos; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item { +namespace GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\codeql\variant-analyses\{codeql_variant_analysis_id} /// - public class WithCodeql_variant_analysis_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithCodeql_variant_analysis_ItemRequestBuilder : BaseRequestBuilder { /// The repos property - public GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.Repos.ReposRequestBuilder Repos + public global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.Repos.ReposRequestBuilder Repos { - get => new GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.Repos.ReposRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.Repos.ReposRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithCodeql_variant_analysis_ItemRequestBuilder(Dictionary { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -40,27 +42,27 @@ public WithCodeql_variant_analysis_ItemRequestBuilder(string rawUrl, IRequestAda /// Gets the summary of a CodeQL variant analysis.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 503 status code + /// When receiving a 404 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"503", CodeScanningVariantAnalysis503Error.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.CodeScanningVariantAnalysis503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CodeScanningVariantAnalysis.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeScanningVariantAnalysis.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets the summary of a CodeQL variant analysis.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. @@ -84,11 +86,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithCodeql_variant_analysis_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.WithCodeql_variant_analysis_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithCodeql_variant_analysis_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.WithCodeql_variant_analysis_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/VariantAnalysesPostRequestBody.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/VariantAnalysesPostRequestBody.cs index 126178d2..be0e5ab0 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/VariantAnalysesPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/VariantAnalysesPostRequestBody.cs @@ -1,17 +1,19 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses { +namespace GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class VariantAnalysesPostRequestBody : IParsable + public partial class VariantAnalysesPostRequestBody : IParsable #pragma warning restore CS1591 { /// The language targeted by the CodeQL query - public CodeScanningVariantAnalysisLanguage? Language { get; set; } + public global::GitHub.Models.CodeScanningVariantAnalysisLanguage? Language { get; set; } /// A Base64-encoded tarball containing a CodeQL query and all its dependencies #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -47,12 +49,12 @@ public class VariantAnalysesPostRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static VariantAnalysesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.VariantAnalysesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new VariantAnalysesPostRequestBody(); + return new global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.VariantAnalysesPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,11 +64,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"language", n => { Language = n.GetEnumValue(); } }, - {"query_pack", n => { QueryPack = n.GetStringValue(); } }, - {"repositories", n => { Repositories = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"repository_lists", n => { RepositoryLists = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"repository_owners", n => { RepositoryOwners = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "language", n => { Language = n.GetEnumValue(); } }, + { "query_pack", n => { QueryPack = n.GetStringValue(); } }, + { "repositories", n => { Repositories = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "repository_lists", n => { RepositoryLists = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "repository_owners", n => { RepositoryOwners = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -76,7 +78,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("language", Language); + writer.WriteEnumValue("language", Language); writer.WriteStringValue("query_pack", QueryPack); writer.WriteCollectionOfPrimitiveValues("repositories", Repositories); writer.WriteCollectionOfPrimitiveValues("repository_lists", RepositoryLists); diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/VariantAnalysesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/VariantAnalysesRequestBuilder.cs index 0e624f64..56e59ff7 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/VariantAnalysesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/VariantAnalyses/VariantAnalysesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses { +namespace GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\codeql\variant-analyses /// - public class VariantAnalysesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class VariantAnalysesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.codeScanning.codeql.variantAnalyses.item collection /// The unique identifier of the variant analysis. - /// A - public WithCodeql_variant_analysis_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.WithCodeql_variant_analysis_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("codeql_variant_analysis_id", position); - return new WithCodeql_variant_analysis_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.Item.WithCodeql_variant_analysis_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public VariantAnalysesRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,31 +49,31 @@ public VariantAnalysesRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Creates a new CodeQL variant analysis, which will run a CodeQL query against one or more repositories.Get started by learning more about [running CodeQL queries at scale with Multi-Repository Variant Analysis](https://docs.github.com/enterprise-cloud@latest//code-security/codeql-for-vs-code/getting-started-with-codeql-for-vs-code/running-codeql-queries-at-scale-with-multi-repository-variant-analysis).Use the `owner` and `repo` parameters in the URL to specify the controller repository thatwill be used for running GitHub Actions workflows and storing the results of the CodeQL variant analysis.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code - /// When receiving a 503 status code + /// When receiving a 404 status code + /// When receiving a 422 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(VariantAnalysesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.VariantAnalysesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(VariantAnalysesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.VariantAnalysesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", BasicError.CreateFromDiscriminatorValue}, - {"503", CodeScanningVariantAnalysis503Error.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.CodeScanningVariantAnalysis503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CodeScanningVariantAnalysis.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeScanningVariantAnalysis.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Creates a new CodeQL variant analysis, which will run a CodeQL query against one or more repositories.Get started by learning more about [running CodeQL queries at scale with Multi-Repository Variant Analysis](https://docs.github.com/enterprise-cloud@latest//code-security/codeql-for-vs-code/getting-started-with-codeql-for-vs-code/running-codeql-queries-at-scale-with-multi-repository-variant-analysis).Use the `owner` and `repo` parameters in the URL to specify the controller repository thatwill be used for running GitHub Actions workflows and storing the results of the CodeQL variant analysis.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -81,11 +83,11 @@ public async Task PostAsync(VariantAnalysesPostRequ /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(VariantAnalysesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.VariantAnalysesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(VariantAnalysesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.VariantAnalysesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -98,11 +100,11 @@ public RequestInformation ToPostRequestInformation(VariantAnalysesPostRequestBod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public VariantAnalysesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.VariantAnalysesRequestBuilder WithUrl(string rawUrl) { - return new VariantAnalysesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CodeScanning.Codeql.VariantAnalyses.VariantAnalysesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/DefaultSetup/DefaultSetupRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeScanning/DefaultSetup/DefaultSetupRequestBuilder.cs index a33c14bd..6f7ecd05 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/DefaultSetup/DefaultSetupRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/DefaultSetup/DefaultSetupRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.DefaultSetup { +namespace GitHub.Repos.Item.Item.CodeScanning.DefaultSetup +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\default-setup /// - public class DefaultSetupRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DefaultSetupRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public DefaultSetupRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,61 +36,61 @@ public DefaultSetupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Gets a code scanning default setup configuration.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 503 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"503", CodeScanningDefaultSetup503Error.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.CodeScanningDefaultSetup503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CodeScanningDefaultSetup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeScanningDefaultSetup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Updates a code scanning default setup configuration.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// API method documentation /// - /// A + /// A /// Configuration for code scanning default setup. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 409 status code - /// When receiving a 503 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 409 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(CodeScanningDefaultSetupUpdate body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Models.CodeScanningDefaultSetupUpdate body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(CodeScanningDefaultSetupUpdate body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Models.CodeScanningDefaultSetupUpdate body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"409", BasicError.CreateFromDiscriminatorValue}, - {"503", EmptyObject503Error.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.EmptyObject503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, EmptyObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EmptyObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets a code scanning default setup configuration.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. @@ -117,11 +119,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(CodeScanningDefaultSetupUpdate body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Models.CodeScanningDefaultSetupUpdate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(CodeScanningDefaultSetupUpdate body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Models.CodeScanningDefaultSetupUpdate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -134,11 +136,11 @@ public RequestInformation ToPatchRequestInformation(CodeScanningDefaultSetupUpda /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DefaultSetupRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CodeScanning.DefaultSetup.DefaultSetupRequestBuilder WithUrl(string rawUrl) { - return new DefaultSetupRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CodeScanning.DefaultSetup.DefaultSetupRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Sarifs/Item/WithSarif_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Sarifs/Item/WithSarif_ItemRequestBuilder.cs index 34d3a138..fb79800c 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Sarifs/Item/WithSarif_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Sarifs/Item/WithSarif_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Sarifs.Item { +namespace GitHub.Repos.Item.Item.CodeScanning.Sarifs.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\sarifs\{sarif_id} /// - public class WithSarif_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithSarif_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithSarif_ItemRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public WithSarif_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Gets information about a SARIF upload, including the status and the URL of the analysis that was uploaded so that you can retrieve details of the analysis. For more information, see "[Get a code scanning analysis for a repository](/rest/code-scanning/code-scanning#get-a-code-scanning-analysis-for-a-repository)."OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 503 status code + /// When receiving a 403 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"503", CodeScanningSarifsStatus503Error.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.CodeScanningSarifsStatus503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CodeScanningSarifsStatus.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeScanningSarifsStatus.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets information about a SARIF upload, including the status and the URL of the analysis that was uploaded so that you can retrieve details of the analysis. For more information, see "[Get a code scanning analysis for a repository](/rest/code-scanning/code-scanning#get-a-code-scanning-analysis-for-a-repository)."OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. @@ -78,11 +80,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithSarif_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CodeScanning.Sarifs.Item.WithSarif_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithSarif_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CodeScanning.Sarifs.Item.WithSarif_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Sarifs/SarifsPostRequestBody.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Sarifs/SarifsPostRequestBody.cs index 973627a9..f42d6c79 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Sarifs/SarifsPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Sarifs/SarifsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Sarifs { +namespace GitHub.Repos.Item.Item.CodeScanning.Sarifs +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SarifsPostRequestBody : IParsable + public partial class SarifsPostRequestBody : IParsable #pragma warning restore CS1591 { /// The base directory used in the analysis, as it appears in the SARIF file.This property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository. @@ -56,12 +58,12 @@ public class SarifsPostRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SarifsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.CodeScanning.Sarifs.SarifsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SarifsPostRequestBody(); + return new global::GitHub.Repos.Item.Item.CodeScanning.Sarifs.SarifsPostRequestBody(); } /// /// The deserialization information for the current model @@ -71,13 +73,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"checkout_uri", n => { CheckoutUri = n.GetStringValue(); } }, - {"commit_sha", n => { CommitSha = n.GetStringValue(); } }, - {"ref", n => { Ref = n.GetStringValue(); } }, - {"sarif", n => { Sarif = n.GetStringValue(); } }, - {"started_at", n => { StartedAt = n.GetDateTimeOffsetValue(); } }, - {"tool_name", n => { ToolName = n.GetStringValue(); } }, - {"validate", n => { Validate = n.GetBoolValue(); } }, + { "checkout_uri", n => { CheckoutUri = n.GetStringValue(); } }, + { "commit_sha", n => { CommitSha = n.GetStringValue(); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, + { "sarif", n => { Sarif = n.GetStringValue(); } }, + { "started_at", n => { StartedAt = n.GetDateTimeOffsetValue(); } }, + { "tool_name", n => { ToolName = n.GetStringValue(); } }, + { "validate", n => { Validate = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Sarifs/SarifsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Sarifs/SarifsRequestBuilder.cs index 72ae352a..9552c423 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Sarifs/SarifsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Sarifs/SarifsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.CodeScanning.Sarifs.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CodeScanning.Sarifs { +namespace GitHub.Repos.Item.Item.CodeScanning.Sarifs +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\sarifs /// - public class SarifsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SarifsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.codeScanning.sarifs.item collection /// The SARIF ID obtained after uploading. - /// A - public WithSarif_ItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.CodeScanning.Sarifs.Item.WithSarif_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("sarif_id", position); - return new WithSarif_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CodeScanning.Sarifs.Item.WithSarif_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public SarifsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,31 +49,31 @@ public SarifsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Uploads SARIF data containing the results of a code scanning analysis to make the results available in a repository. For troubleshooting information, see "[Troubleshooting SARIF uploads](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/troubleshooting-sarif)."There are two places where you can upload code scanning results. - If you upload to a pull request, for example `--ref refs/pull/42/merge` or `--ref refs/pull/42/head`, then the results appear as alerts in a pull request check. For more information, see "[Triaging code scanning alerts in pull requests](/code-security/secure-coding/triaging-code-scanning-alerts-in-pull-requests)." - If you upload to a branch, for example `--ref refs/heads/my-branch`, then the results appear in the **Security** tab for your repository. For more information, see "[Managing code scanning alerts for your repository](/code-security/secure-coding/managing-code-scanning-alerts-for-your-repository#viewing-the-alerts-for-a-repository)."You must compress the SARIF-formatted analysis data that you want to upload, using `gzip`, and then encode it as a Base64 format string. For example:```gzip -c analysis-data.sarif | base64 -w0```SARIF upload supports a maximum number of entries per the following data objects, and an analysis will be rejected if any of these objects is above its maximum value. For some objects, there are additional values over which the entries will be ignored while keeping the most important entries whenever applicable.To get the most out of your analysis when it includes data above the supported limits, try to optimize the analysis configuration. For example, for the CodeQL tool, identify and remove the most noisy queries. For more information, see "[SARIF results exceed one or more limits](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/troubleshooting-sarif/results-exceed-limit)."| **SARIF data** | **Maximum values** | **Additional limits** ||----------------------------------|:------------------:|----------------------------------------------------------------------------------|| Runs per file | 20 | || Results per run | 25,000 | Only the top 5,000 results will be included, prioritized by severity. || Rules per run | 25,000 | || Tool extensions per run | 100 | || Thread Flow Locations per result | 10,000 | Only the top 1,000 Thread Flow Locations will be included, using prioritization. || Location per result | 1,000 | Only 100 locations will be included. || Tags per rule | 20 | Only 10 tags will be included. |The `202 Accepted` response includes an `id` value.You can use this ID to check the status of the upload by using it in the `/sarifs/{sarif_id}` endpoint.For more information, see "[Get information about a SARIF upload](/rest/code-scanning/code-scanning#get-information-about-a-sarif-upload)."OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.This endpoint is limited to 1,000 requests per hour for each user or app installation calling it. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 503 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(SarifsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.CodeScanning.Sarifs.SarifsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(SarifsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.CodeScanning.Sarifs.SarifsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"503", CodeScanningSarifsReceipt503Error.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.CodeScanningSarifsReceipt503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CodeScanningSarifsReceipt.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeScanningSarifsReceipt.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Uploads SARIF data containing the results of a code scanning analysis to make the results available in a repository. For troubleshooting information, see "[Troubleshooting SARIF uploads](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/troubleshooting-sarif)."There are two places where you can upload code scanning results. - If you upload to a pull request, for example `--ref refs/pull/42/merge` or `--ref refs/pull/42/head`, then the results appear as alerts in a pull request check. For more information, see "[Triaging code scanning alerts in pull requests](/code-security/secure-coding/triaging-code-scanning-alerts-in-pull-requests)." - If you upload to a branch, for example `--ref refs/heads/my-branch`, then the results appear in the **Security** tab for your repository. For more information, see "[Managing code scanning alerts for your repository](/code-security/secure-coding/managing-code-scanning-alerts-for-your-repository#viewing-the-alerts-for-a-repository)."You must compress the SARIF-formatted analysis data that you want to upload, using `gzip`, and then encode it as a Base64 format string. For example:```gzip -c analysis-data.sarif | base64 -w0```SARIF upload supports a maximum number of entries per the following data objects, and an analysis will be rejected if any of these objects is above its maximum value. For some objects, there are additional values over which the entries will be ignored while keeping the most important entries whenever applicable.To get the most out of your analysis when it includes data above the supported limits, try to optimize the analysis configuration. For example, for the CodeQL tool, identify and remove the most noisy queries. For more information, see "[SARIF results exceed one or more limits](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/troubleshooting-sarif/results-exceed-limit)."| **SARIF data** | **Maximum values** | **Additional limits** ||----------------------------------|:------------------:|----------------------------------------------------------------------------------|| Runs per file | 20 | || Results per run | 25,000 | Only the top 5,000 results will be included, prioritized by severity. || Rules per run | 25,000 | || Tool extensions per run | 100 | || Thread Flow Locations per result | 10,000 | Only the top 1,000 Thread Flow Locations will be included, using prioritization. || Location per result | 1,000 | Only 100 locations will be included. || Tags per rule | 20 | Only 10 tags will be included. |The `202 Accepted` response includes an `id` value.You can use this ID to check the status of the upload by using it in the `/sarifs/{sarif_id}` endpoint.For more information, see "[Get information about a SARIF upload](/rest/code-scanning/code-scanning#get-information-about-a-sarif-upload)."OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.This endpoint is limited to 1,000 requests per hour for each user or app installation calling it. @@ -81,11 +83,11 @@ public async Task PostAsync(SarifsPostRequestBody bod /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(SarifsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.CodeScanning.Sarifs.SarifsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SarifsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.CodeScanning.Sarifs.SarifsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -98,11 +100,11 @@ public RequestInformation ToPostRequestInformation(SarifsPostRequestBody body, A /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SarifsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CodeScanning.Sarifs.SarifsRequestBuilder WithUrl(string rawUrl) { - return new SarifsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CodeScanning.Sarifs.SarifsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/CodeSecurityConfiguration/CodeSecurityConfigurationRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeSecurityConfiguration/CodeSecurityConfigurationRequestBuilder.cs index df28fd7f..bf5d2818 100644 --- a/src/GitHub/Repos/Item/Item/CodeSecurityConfiguration/CodeSecurityConfigurationRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CodeSecurityConfiguration/CodeSecurityConfigurationRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.CodeSecurityConfiguration { +namespace GitHub.Repos.Item.Item.CodeSecurityConfiguration +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-security-configuration /// - public class CodeSecurityConfigurationRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeSecurityConfigurationRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public CodeSecurityConfigurationRequestBuilder(Dictionary pathPa { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public CodeSecurityConfigurationRequestBuilder(string rawUrl, IRequestAdapter re /// Get the code security configuration that manages a repository's code security settings.The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CodeSecurityConfigurationForRepository.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeSecurityConfigurationForRepository.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Get the code security configuration that manages a repository's code security settings.The authenticated user must be an administrator or security manager for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -78,11 +80,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CodeSecurityConfigurationRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.CodeSecurityConfiguration.CodeSecurityConfigurationRequestBuilder WithUrl(string rawUrl) { - return new CodeSecurityConfigurationRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.CodeSecurityConfiguration.CodeSecurityConfigurationRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Codeowners/CodeownersRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Codeowners/CodeownersRequestBuilder.cs index 86c92f9a..6841b54b 100644 --- a/src/GitHub/Repos/Item/Item/Codeowners/CodeownersRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Codeowners/CodeownersRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Repos.Item.Item.Codeowners.Errors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Repos.Item.Item.Codeowners { +namespace GitHub.Repos.Item.Item.Codeowners +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\codeowners /// - public class CodeownersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodeownersRequestBuilder : BaseRequestBuilder { /// The errors property - public ErrorsRequestBuilder Errors + public global::GitHub.Repos.Item.Item.Codeowners.Errors.ErrorsRequestBuilder Errors { - get => new ErrorsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Codeowners.Errors.ErrorsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public CodeownersRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Repos/Item/Item/Codeowners/Errors/ErrorsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Codeowners/Errors/ErrorsRequestBuilder.cs index 3e1d8722..c7832fb2 100644 --- a/src/GitHub/Repos/Item/Item/Codeowners/Errors/ErrorsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Codeowners/Errors/ErrorsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Codeowners.Errors { +namespace GitHub.Repos.Item.Item.Codeowners.Errors +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\codeowners\errors /// - public class ErrorsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ErrorsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ErrorsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public ErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// List any syntax errors that are detected in the CODEOWNERSfile.For more information about the correct CODEOWNERS syntax,see "[About code owners](https://docs.github.com/enterprise-cloud@latest//repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners)." /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CodeownersErrors.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeownersErrors.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// List any syntax errors that are detected in the CODEOWNERSfile.For more information about the correct CODEOWNERS syntax,see "[About code owners](https://docs.github.com/enterprise-cloud@latest//repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners)." @@ -56,11 +58,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -71,16 +73,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ErrorsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Codeowners.Errors.ErrorsRequestBuilder WithUrl(string rawUrl) { - return new ErrorsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Codeowners.Errors.ErrorsRequestBuilder(rawUrl, RequestAdapter); } /// /// List any syntax errors that are detected in the CODEOWNERSfile.For more information about the correct CODEOWNERS syntax,see "[About code owners](https://docs.github.com/enterprise-cloud@latest//repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners)." /// - public class ErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ErrorsRequestBuilderGetQueryParameters { /// A branch, tag or commit name used to determine which version of the CODEOWNERS file to use. Default: the repository's default branch (e.g. `main`) #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Repos/Item/Item/Codespaces/CodespacesGetResponse.cs b/src/GitHub/Repos/Item/Item/Codespaces/CodespacesGetResponse.cs index b88bcd3e..24b58243 100644 --- a/src/GitHub/Repos/Item/Item/Codespaces/CodespacesGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Codespaces/CodespacesGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Codespaces { +namespace GitHub.Repos.Item.Item.Codespaces +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodespacesGetResponse : IAdditionalDataHolder, IParsable + public partial class CodespacesGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class CodespacesGetResponse : IAdditionalDataHolder, IParsable /// The codespaces property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Codespaces { get; set; } + public List? Codespaces { get; set; } #nullable restore #else - public List Codespaces { get; set; } + public List Codespaces { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodespacesGetResponse() { @@ -32,12 +34,12 @@ public CodespacesGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodespacesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Codespaces.CodespacesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodespacesGetResponse(); + return new global::GitHub.Repos.Item.Item.Codespaces.CodespacesGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"codespaces", n => { Codespaces = n.GetCollectionOfObjectValues(Codespace.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "codespaces", n => { Codespaces = n.GetCollectionOfObjectValues(global::GitHub.Models.Codespace.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("codespaces", Codespaces); + writer.WriteCollectionOfObjectValues("codespaces", Codespaces); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Codespaces/CodespacesPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Codespaces/CodespacesPostRequestBody.cs index d634c3a0..c98591df 100644 --- a/src/GitHub/Repos/Item/Item/Codespaces/CodespacesPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Codespaces/CodespacesPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Codespaces { +namespace GitHub.Repos.Item.Item.Codespaces +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CodespacesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CodespacesPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class CodespacesPostRequestBody : IAdditionalDataHolder, IParsable public string DisplayName { get; set; } #endif /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. - public CodespacesPostRequestBody_geo? Geo { get; set; } + public global::GitHub.Repos.Item.Item.Codespaces.CodespacesPostRequestBody_geo? Geo { get; set; } /// Time in minutes before codespace stops from inactivity public int? IdleTimeoutMinutes { get; set; } /// The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided. @@ -76,7 +78,7 @@ public class CodespacesPostRequestBody : IAdditionalDataHolder, IParsable public string WorkingDirectory { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodespacesPostRequestBody() { @@ -85,12 +87,12 @@ public CodespacesPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CodespacesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Codespaces.CodespacesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodespacesPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Codespaces.CodespacesPostRequestBody(); } /// /// The deserialization information for the current model @@ -100,17 +102,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"client_ip", n => { ClientIp = n.GetStringValue(); } }, - {"devcontainer_path", n => { DevcontainerPath = n.GetStringValue(); } }, - {"display_name", n => { DisplayName = n.GetStringValue(); } }, - {"geo", n => { Geo = n.GetEnumValue(); } }, - {"idle_timeout_minutes", n => { IdleTimeoutMinutes = n.GetIntValue(); } }, - {"location", n => { Location = n.GetStringValue(); } }, - {"machine", n => { Machine = n.GetStringValue(); } }, - {"multi_repo_permissions_opt_out", n => { MultiRepoPermissionsOptOut = n.GetBoolValue(); } }, - {"ref", n => { Ref = n.GetStringValue(); } }, - {"retention_period_minutes", n => { RetentionPeriodMinutes = n.GetIntValue(); } }, - {"working_directory", n => { WorkingDirectory = n.GetStringValue(); } }, + { "client_ip", n => { ClientIp = n.GetStringValue(); } }, + { "devcontainer_path", n => { DevcontainerPath = n.GetStringValue(); } }, + { "display_name", n => { DisplayName = n.GetStringValue(); } }, + { "geo", n => { Geo = n.GetEnumValue(); } }, + { "idle_timeout_minutes", n => { IdleTimeoutMinutes = n.GetIntValue(); } }, + { "location", n => { Location = n.GetStringValue(); } }, + { "machine", n => { Machine = n.GetStringValue(); } }, + { "multi_repo_permissions_opt_out", n => { MultiRepoPermissionsOptOut = n.GetBoolValue(); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, + { "retention_period_minutes", n => { RetentionPeriodMinutes = n.GetIntValue(); } }, + { "working_directory", n => { WorkingDirectory = n.GetStringValue(); } }, }; } /// @@ -123,7 +125,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("client_ip", ClientIp); writer.WriteStringValue("devcontainer_path", DevcontainerPath); writer.WriteStringValue("display_name", DisplayName); - writer.WriteEnumValue("geo", Geo); + writer.WriteEnumValue("geo", Geo); writer.WriteIntValue("idle_timeout_minutes", IdleTimeoutMinutes); writer.WriteStringValue("location", Location); writer.WriteStringValue("machine", Machine); diff --git a/src/GitHub/Repos/Item/Item/Codespaces/CodespacesPostRequestBody_geo.cs b/src/GitHub/Repos/Item/Item/Codespaces/CodespacesPostRequestBody_geo.cs index b63c940d..b5fa8a42 100644 --- a/src/GitHub/Repos/Item/Item/Codespaces/CodespacesPostRequestBody_geo.cs +++ b/src/GitHub/Repos/Item/Item/Codespaces/CodespacesPostRequestBody_geo.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Codespaces { +namespace GitHub.Repos.Item.Item.Codespaces +{ /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum CodespacesPostRequestBody_geo { [EnumMember(Value = "EuropeWest")] diff --git a/src/GitHub/Repos/Item/Item/Codespaces/CodespacesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Codespaces/CodespacesRequestBuilder.cs index e6c5e6b6..2e5493dc 100644 --- a/src/GitHub/Repos/Item/Item/Codespaces/CodespacesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Codespaces/CodespacesRequestBuilder.cs @@ -5,47 +5,49 @@ using GitHub.Repos.Item.Item.Codespaces.New; using GitHub.Repos.Item.Item.Codespaces.Permissions_check; using GitHub.Repos.Item.Item.Codespaces.Secrets; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Codespaces { +namespace GitHub.Repos.Item.Item.Codespaces +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\codespaces /// - public class CodespacesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodespacesRequestBuilder : BaseRequestBuilder { /// The devcontainers property - public DevcontainersRequestBuilder Devcontainers + public global::GitHub.Repos.Item.Item.Codespaces.Devcontainers.DevcontainersRequestBuilder Devcontainers { - get => new DevcontainersRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Codespaces.Devcontainers.DevcontainersRequestBuilder(PathParameters, RequestAdapter); } /// The machines property - public MachinesRequestBuilder Machines + public global::GitHub.Repos.Item.Item.Codespaces.Machines.MachinesRequestBuilder Machines { - get => new MachinesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Codespaces.Machines.MachinesRequestBuilder(PathParameters, RequestAdapter); } /// The new property - public NewRequestBuilder New + public global::GitHub.Repos.Item.Item.Codespaces.New.NewRequestBuilder New { - get => new NewRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Codespaces.New.NewRequestBuilder(PathParameters, RequestAdapter); } /// The permissions_check property - public Permissions_checkRequestBuilder Permissions_check + public global::GitHub.Repos.Item.Item.Codespaces.Permissions_check.Permissions_checkRequestBuilder Permissions_check { - get => new Permissions_checkRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Codespaces.Permissions_check.Permissions_checkRequestBuilder(PathParameters, RequestAdapter); } /// The secrets property - public SecretsRequestBuilder Secrets + public global::GitHub.Repos.Item.Item.Codespaces.Secrets.SecretsRequestBuilder Secrets { - get => new SecretsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Codespaces.Secrets.SecretsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -53,7 +55,7 @@ public CodespacesRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -64,65 +66,65 @@ public CodespacesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Lists the codespaces associated to a specified repository and the authenticated user.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CodespacesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Codespaces.CodespacesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Creates a codespace owned by the authenticated user in the specified repository.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 503 status code + /// When receiving a 400 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(CodespacesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Codespaces.CodespacesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(CodespacesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Codespaces.CodespacesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"503", Codespace503Error.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.Codespace503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Codespace.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Codespace.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists the codespaces associated to a specified repository and the authenticated user.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. @@ -131,11 +133,11 @@ public async Task PostAsync(CodespacesPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -151,11 +153,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(CodespacesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Codespaces.CodespacesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CodespacesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Codespaces.CodespacesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -168,16 +170,17 @@ public RequestInformation ToPostRequestInformation(CodespacesPostRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CodespacesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Codespaces.CodespacesRequestBuilder WithUrl(string rawUrl) { - return new CodespacesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Codespaces.CodespacesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the codespaces associated to a specified repository and the authenticated user.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. /// - public class CodespacesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CodespacesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Codespaces/Devcontainers/DevcontainersGetResponse.cs b/src/GitHub/Repos/Item/Item/Codespaces/Devcontainers/DevcontainersGetResponse.cs index b28de245..f977499e 100644 --- a/src/GitHub/Repos/Item/Item/Codespaces/Devcontainers/DevcontainersGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Codespaces/Devcontainers/DevcontainersGetResponse.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Codespaces.Devcontainers { +namespace GitHub.Repos.Item.Item.Codespaces.Devcontainers +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class DevcontainersGetResponse : IAdditionalDataHolder, IParsable + public partial class DevcontainersGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,15 +16,15 @@ public class DevcontainersGetResponse : IAdditionalDataHolder, IParsable /// The devcontainers property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Devcontainers { get; set; } + public List? Devcontainers { get; set; } #nullable restore #else - public List Devcontainers { get; set; } + public List Devcontainers { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DevcontainersGetResponse() { @@ -31,12 +33,12 @@ public DevcontainersGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DevcontainersGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Codespaces.Devcontainers.DevcontainersGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DevcontainersGetResponse(); + return new global::GitHub.Repos.Item.Item.Codespaces.Devcontainers.DevcontainersGetResponse(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"devcontainers", n => { Devcontainers = n.GetCollectionOfObjectValues(DevcontainersGetResponse_devcontainers.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "devcontainers", n => { Devcontainers = n.GetCollectionOfObjectValues(global::GitHub.Repos.Item.Item.Codespaces.Devcontainers.DevcontainersGetResponse_devcontainers.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("devcontainers", Devcontainers); + writer.WriteCollectionOfObjectValues("devcontainers", Devcontainers); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Codespaces/Devcontainers/DevcontainersGetResponse_devcontainers.cs b/src/GitHub/Repos/Item/Item/Codespaces/Devcontainers/DevcontainersGetResponse_devcontainers.cs index 8c841bf8..64c34322 100644 --- a/src/GitHub/Repos/Item/Item/Codespaces/Devcontainers/DevcontainersGetResponse_devcontainers.cs +++ b/src/GitHub/Repos/Item/Item/Codespaces/Devcontainers/DevcontainersGetResponse_devcontainers.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Codespaces.Devcontainers { +namespace GitHub.Repos.Item.Item.Codespaces.Devcontainers +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class DevcontainersGetResponse_devcontainers : IAdditionalDataHolder, IParsable + public partial class DevcontainersGetResponse_devcontainers : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,7 +38,7 @@ public class DevcontainersGetResponse_devcontainers : IAdditionalDataHolder, IPa public string Path { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DevcontainersGetResponse_devcontainers() { @@ -45,12 +47,12 @@ public DevcontainersGetResponse_devcontainers() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DevcontainersGetResponse_devcontainers CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Codespaces.Devcontainers.DevcontainersGetResponse_devcontainers CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DevcontainersGetResponse_devcontainers(); + return new global::GitHub.Repos.Item.Item.Codespaces.Devcontainers.DevcontainersGetResponse_devcontainers(); } /// /// The deserialization information for the current model @@ -60,9 +62,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"display_name", n => { DisplayName = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, + { "display_name", n => { DisplayName = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Codespaces/Devcontainers/DevcontainersRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Codespaces/Devcontainers/DevcontainersRequestBuilder.cs index 19f05d7e..b89f8a9a 100644 --- a/src/GitHub/Repos/Item/Item/Codespaces/Devcontainers/DevcontainersRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Codespaces/Devcontainers/DevcontainersRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Codespaces.Devcontainers { +namespace GitHub.Repos.Item.Item.Codespaces.Devcontainers +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\codespaces\devcontainers /// - public class DevcontainersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DevcontainersRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public DevcontainersRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,33 +36,33 @@ public DevcontainersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Lists the devcontainer.json files associated with a specified repository and the authenticated user. These filesspecify launchpoint configurations for codespaces created within the repository.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 400 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, DevcontainersGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Codespaces.Devcontainers.DevcontainersGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists the devcontainer.json files associated with a specified repository and the authenticated user. These filesspecify launchpoint configurations for codespaces created within the repository.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. @@ -69,11 +71,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -84,16 +86,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DevcontainersRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Codespaces.Devcontainers.DevcontainersRequestBuilder WithUrl(string rawUrl) { - return new DevcontainersRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Codespaces.Devcontainers.DevcontainersRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the devcontainer.json files associated with a specified repository and the authenticated user. These filesspecify launchpoint configurations for codespaces created within the repository.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. /// - public class DevcontainersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DevcontainersRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Codespaces/Machines/MachinesGetResponse.cs b/src/GitHub/Repos/Item/Item/Codespaces/Machines/MachinesGetResponse.cs index c9ab2a16..0a0c764f 100644 --- a/src/GitHub/Repos/Item/Item/Codespaces/Machines/MachinesGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Codespaces/Machines/MachinesGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Codespaces.Machines { +namespace GitHub.Repos.Item.Item.Codespaces.Machines +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class MachinesGetResponse : IAdditionalDataHolder, IParsable + public partial class MachinesGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class MachinesGetResponse : IAdditionalDataHolder, IParsable /// The machines property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Machines { get; set; } + public List? Machines { get; set; } #nullable restore #else - public List Machines { get; set; } + public List Machines { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MachinesGetResponse() { @@ -32,12 +34,12 @@ public MachinesGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MachinesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Codespaces.Machines.MachinesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MachinesGetResponse(); + return new global::GitHub.Repos.Item.Item.Codespaces.Machines.MachinesGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"machines", n => { Machines = n.GetCollectionOfObjectValues(CodespaceMachine.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "machines", n => { Machines = n.GetCollectionOfObjectValues(global::GitHub.Models.CodespaceMachine.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("machines", Machines); + writer.WriteCollectionOfObjectValues("machines", Machines); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Codespaces/Machines/MachinesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Codespaces/Machines/MachinesRequestBuilder.cs index 1728d35b..6a3711a7 100644 --- a/src/GitHub/Repos/Item/Item/Codespaces/Machines/MachinesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Codespaces/Machines/MachinesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Codespaces.Machines { +namespace GitHub.Repos.Item.Item.Codespaces.Machines +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\codespaces\machines /// - public class MachinesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class MachinesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public MachinesRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,31 +36,31 @@ public MachinesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// List the machine types available for a given repository based on its configuration.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 500 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MachinesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Codespaces.Machines.MachinesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// List the machine types available for a given repository based on its configuration.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. @@ -67,11 +69,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -82,16 +84,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MachinesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Codespaces.Machines.MachinesRequestBuilder WithUrl(string rawUrl) { - return new MachinesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Codespaces.Machines.MachinesRequestBuilder(rawUrl, RequestAdapter); } /// /// List the machine types available for a given repository based on its configuration.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. /// - public class MachinesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class MachinesRequestBuilderGetQueryParameters { /// IP for location auto-detection when proxying a request #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Repos/Item/Item/Codespaces/New/NewGetResponse.cs b/src/GitHub/Repos/Item/Item/Codespaces/New/NewGetResponse.cs index b10f7652..e7e9de2e 100644 --- a/src/GitHub/Repos/Item/Item/Codespaces/New/NewGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Codespaces/New/NewGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Codespaces.New { +namespace GitHub.Repos.Item.Item.Codespaces.New +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class NewGetResponse : IAdditionalDataHolder, IParsable + public partial class NewGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,21 +17,21 @@ public class NewGetResponse : IAdditionalDataHolder, IParsable /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? BillableOwner { get; set; } + public global::GitHub.Models.SimpleUser? BillableOwner { get; set; } #nullable restore #else - public SimpleUser BillableOwner { get; set; } + public global::GitHub.Models.SimpleUser BillableOwner { get; set; } #endif /// The defaults property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NewGetResponse_defaults? Defaults { get; set; } + public global::GitHub.Repos.Item.Item.Codespaces.New.NewGetResponse_defaults? Defaults { get; set; } #nullable restore #else - public NewGetResponse_defaults Defaults { get; set; } + public global::GitHub.Repos.Item.Item.Codespaces.New.NewGetResponse_defaults Defaults { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NewGetResponse() { @@ -38,12 +40,12 @@ public NewGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NewGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Codespaces.New.NewGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NewGetResponse(); + return new global::GitHub.Repos.Item.Item.Codespaces.New.NewGetResponse(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"billable_owner", n => { BillableOwner = n.GetObjectValue(SimpleUser.CreateFromDiscriminatorValue); } }, - {"defaults", n => { Defaults = n.GetObjectValue(NewGetResponse_defaults.CreateFromDiscriminatorValue); } }, + { "billable_owner", n => { BillableOwner = n.GetObjectValue(global::GitHub.Models.SimpleUser.CreateFromDiscriminatorValue); } }, + { "defaults", n => { Defaults = n.GetObjectValue(global::GitHub.Repos.Item.Item.Codespaces.New.NewGetResponse_defaults.CreateFromDiscriminatorValue); } }, }; } /// @@ -64,8 +66,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("billable_owner", BillableOwner); - writer.WriteObjectValue("defaults", Defaults); + writer.WriteObjectValue("billable_owner", BillableOwner); + writer.WriteObjectValue("defaults", Defaults); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Codespaces/New/NewGetResponse_defaults.cs b/src/GitHub/Repos/Item/Item/Codespaces/New/NewGetResponse_defaults.cs index 6562175b..68cf39f9 100644 --- a/src/GitHub/Repos/Item/Item/Codespaces/New/NewGetResponse_defaults.cs +++ b/src/GitHub/Repos/Item/Item/Codespaces/New/NewGetResponse_defaults.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Codespaces.New { +namespace GitHub.Repos.Item.Item.Codespaces.New +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class NewGetResponse_defaults : IAdditionalDataHolder, IParsable + public partial class NewGetResponse_defaults : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class NewGetResponse_defaults : IAdditionalDataHolder, IParsable public string Location { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NewGetResponse_defaults() { @@ -37,12 +39,12 @@ public NewGetResponse_defaults() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NewGetResponse_defaults CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Codespaces.New.NewGetResponse_defaults CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NewGetResponse_defaults(); + return new global::GitHub.Repos.Item.Item.Codespaces.New.NewGetResponse_defaults(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"devcontainer_path", n => { DevcontainerPath = n.GetStringValue(); } }, - {"location", n => { Location = n.GetStringValue(); } }, + { "devcontainer_path", n => { DevcontainerPath = n.GetStringValue(); } }, + { "location", n => { Location = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Codespaces/New/NewRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Codespaces/New/NewRequestBuilder.cs index 5b64c20a..172dbe96 100644 --- a/src/GitHub/Repos/Item/Item/Codespaces/New/NewRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Codespaces/New/NewRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Codespaces.New { +namespace GitHub.Repos.Item.Item.Codespaces.New +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\codespaces\new /// - public class NewRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class NewRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public NewRequestBuilder(Dictionary pathParameters, IRequestAdap { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,29 +36,29 @@ public NewRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Gets the default attributes for codespaces created by the user with the repository.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, NewGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Codespaces.New.NewGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets the default attributes for codespaces created by the user with the repository.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. @@ -65,11 +67,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -80,16 +82,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public NewRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Codespaces.New.NewRequestBuilder WithUrl(string rawUrl) { - return new NewRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Codespaces.New.NewRequestBuilder(rawUrl, RequestAdapter); } /// /// Gets the default attributes for codespaces created by the user with the repository.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. /// - public class NewRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class NewRequestBuilderGetQueryParameters { /// An alternative IP for default location auto-detection, such as when proxying a request. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Repos/Item/Item/Codespaces/Permissions_check/Permissions_checkRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Codespaces/Permissions_check/Permissions_checkRequestBuilder.cs index ac101711..4253b6ed 100644 --- a/src/GitHub/Repos/Item/Item/Codespaces/Permissions_check/Permissions_checkRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Codespaces/Permissions_check/Permissions_checkRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Codespaces.Permissions_check { +namespace GitHub.Repos.Item.Item.Codespaces.Permissions_check +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\codespaces\permissions_check /// - public class Permissions_checkRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Permissions_checkRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Permissions_checkRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,33 +36,33 @@ public Permissions_checkRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Checks whether the permissions defined by a given devcontainer configuration have been accepted by the authenticated user.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code - /// When receiving a 503 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, - {"503", CodespacesPermissionsCheckForDevcontainer503Error.CreateFromDiscriminatorValue}, + { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.CodespacesPermissionsCheckForDevcontainer503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CodespacesPermissionsCheckForDevcontainer.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodespacesPermissionsCheckForDevcontainer.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Checks whether the permissions defined by a given devcontainer configuration have been accepted by the authenticated user.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. @@ -69,11 +71,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -84,16 +86,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Permissions_checkRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Codespaces.Permissions_check.Permissions_checkRequestBuilder WithUrl(string rawUrl) { - return new Permissions_checkRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Codespaces.Permissions_check.Permissions_checkRequestBuilder(rawUrl, RequestAdapter); } /// /// Checks whether the permissions defined by a given devcontainer configuration have been accepted by the authenticated user.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. /// - public class Permissions_checkRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Permissions_checkRequestBuilderGetQueryParameters { /// Path to the devcontainer.json configuration to use for the permission check. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Repos/Item/Item/Codespaces/Secrets/Item/WithSecret_nameItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Codespaces/Secrets/Item/WithSecret_nameItemRequestBuilder.cs index 29bc11ff..4fe0ceca 100644 --- a/src/GitHub/Repos/Item/Item/Codespaces/Secrets/Item/WithSecret_nameItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Codespaces/Secrets/Item/WithSecret_nameItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Codespaces.Secrets.Item { +namespace GitHub.Repos.Item.Item.Codespaces.Secrets.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\codespaces\secrets\{secret_name} /// - public class WithSecret_nameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithSecret_nameItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithSecret_nameItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,41 +54,41 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RepoCodespacesSecret.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.RepoCodespacesSecret.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Creates or updates a repository development 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/enterprise-cloud@latest//rest/guides/encrypting-secrets-for-the-rest-api)."OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(WithSecret_namePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Codespaces.Secrets.Item.WithSecret_namePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(WithSecret_namePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Codespaces.Secrets.Item.WithSecret_namePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Deletes a development environment secret in a repository using the secret name.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -133,11 +135,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(WithSecret_namePutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Codespaces.Secrets.Item.WithSecret_namePutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(WithSecret_namePutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Codespaces.Secrets.Item.WithSecret_namePutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -150,11 +152,11 @@ public RequestInformation ToPutRequestInformation(WithSecret_namePutRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithSecret_nameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Codespaces.Secrets.Item.WithSecret_nameItemRequestBuilder WithUrl(string rawUrl) { - return new WithSecret_nameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Codespaces.Secrets.Item.WithSecret_nameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Codespaces/Secrets/Item/WithSecret_namePutRequestBody.cs b/src/GitHub/Repos/Item/Item/Codespaces/Secrets/Item/WithSecret_namePutRequestBody.cs index f14fa26e..f980c8cf 100644 --- a/src/GitHub/Repos/Item/Item/Codespaces/Secrets/Item/WithSecret_namePutRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Codespaces/Secrets/Item/WithSecret_namePutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Codespaces.Secrets.Item { +namespace GitHub.Repos.Item.Item.Codespaces.Secrets.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithSecret_namePutRequestBody : IAdditionalDataHolder, IParsable + public partial class WithSecret_namePutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class WithSecret_namePutRequestBody : IAdditionalDataHolder, IParsable public string KeyId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithSecret_namePutRequestBody() { @@ -37,12 +39,12 @@ public WithSecret_namePutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithSecret_namePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Codespaces.Secrets.Item.WithSecret_namePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithSecret_namePutRequestBody(); + return new global::GitHub.Repos.Item.Item.Codespaces.Secrets.Item.WithSecret_namePutRequestBody(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"encrypted_value", n => { EncryptedValue = n.GetStringValue(); } }, - {"key_id", n => { KeyId = n.GetStringValue(); } }, + { "encrypted_value", n => { EncryptedValue = n.GetStringValue(); } }, + { "key_id", n => { KeyId = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Codespaces/Secrets/PublicKey/PublicKeyRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Codespaces/Secrets/PublicKey/PublicKeyRequestBuilder.cs index 80930256..e686829c 100644 --- a/src/GitHub/Repos/Item/Item/Codespaces/Secrets/PublicKey/PublicKeyRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Codespaces/Secrets/PublicKey/PublicKeyRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Codespaces.Secrets.PublicKey { +namespace GitHub.Repos.Item.Item.Codespaces.Secrets.PublicKey +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\codespaces\secrets\public-key /// - public class PublicKeyRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PublicKeyRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public PublicKeyRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public PublicKeyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Gets your public key, which you need to encrypt secrets. You need toencrypt 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 app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CodespacesPublicKey.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodespacesPublicKey.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets your public key, which you need to encrypt secrets. You need toencrypt 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 app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PublicKeyRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Codespaces.Secrets.PublicKey.PublicKeyRequestBuilder WithUrl(string rawUrl) { - return new PublicKeyRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Codespaces.Secrets.PublicKey.PublicKeyRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Codespaces/Secrets/SecretsGetResponse.cs b/src/GitHub/Repos/Item/Item/Codespaces/Secrets/SecretsGetResponse.cs index 4503bf9b..c602470a 100644 --- a/src/GitHub/Repos/Item/Item/Codespaces/Secrets/SecretsGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Codespaces/Secrets/SecretsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Codespaces.Secrets { +namespace GitHub.Repos.Item.Item.Codespaces.Secrets +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SecretsGetResponse : IAdditionalDataHolder, IParsable + public partial class SecretsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class SecretsGetResponse : IAdditionalDataHolder, IParsable /// The secrets property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Secrets { get; set; } + public List? Secrets { get; set; } #nullable restore #else - public List Secrets { get; set; } + public List Secrets { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretsGetResponse() { @@ -32,12 +34,12 @@ public SecretsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Codespaces.Secrets.SecretsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretsGetResponse(); + return new global::GitHub.Repos.Item.Item.Codespaces.Secrets.SecretsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"secrets", n => { Secrets = n.GetCollectionOfObjectValues(RepoCodespacesSecret.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "secrets", n => { Secrets = n.GetCollectionOfObjectValues(global::GitHub.Models.RepoCodespacesSecret.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("secrets", Secrets); + writer.WriteCollectionOfObjectValues("secrets", Secrets); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Codespaces/Secrets/SecretsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Codespaces/Secrets/SecretsRequestBuilder.cs index b1863bd5..96c0534c 100644 --- a/src/GitHub/Repos/Item/Item/Codespaces/Secrets/SecretsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Codespaces/Secrets/SecretsRequestBuilder.cs @@ -1,39 +1,41 @@ // using GitHub.Repos.Item.Item.Codespaces.Secrets.Item; using GitHub.Repos.Item.Item.Codespaces.Secrets.PublicKey; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Codespaces.Secrets { +namespace GitHub.Repos.Item.Item.Codespaces.Secrets +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\codespaces\secrets /// - public class SecretsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretsRequestBuilder : BaseRequestBuilder { /// The publicKey property - public PublicKeyRequestBuilder PublicKey + public global::GitHub.Repos.Item.Item.Codespaces.Secrets.PublicKey.PublicKeyRequestBuilder PublicKey { - get => new PublicKeyRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Codespaces.Secrets.PublicKey.PublicKeyRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.repos.item.item.codespaces.secrets.item collection /// The name of the secret. - /// A - public WithSecret_nameItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Codespaces.Secrets.Item.WithSecret_nameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("secret_name", position); - return new WithSecret_nameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Codespaces.Secrets.Item.WithSecret_nameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -41,7 +43,7 @@ public SecretsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,20 +54,20 @@ public SecretsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Lists all development environment secrets available in a repository without revealing their encryptedvalues.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, SecretsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Codespaces.Secrets.SecretsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists all development environment secrets available in a repository without revealing their encryptedvalues.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -74,11 +76,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -89,16 +91,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SecretsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Codespaces.Secrets.SecretsRequestBuilder WithUrl(string rawUrl) { - return new SecretsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Codespaces.Secrets.SecretsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all development environment secrets available in a repository without revealing their encryptedvalues.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// - public class SecretsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Collaborators/CollaboratorsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Collaborators/CollaboratorsRequestBuilder.cs index 8bc1cc2f..85ef7416 100644 --- a/src/GitHub/Repos/Item/Item/Collaborators/CollaboratorsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Collaborators/CollaboratorsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Collaborators.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Collaborators { +namespace GitHub.Repos.Item.Item.Collaborators +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\collaborators /// - public class CollaboratorsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CollaboratorsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.collaborators.item collection /// The handle for the GitHub user account. - /// A - public WithUsernameItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Collaborators.Item.WithUsernameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("username", position); - return new WithUsernameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Collaborators.Item.WithUsernameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public CollaboratorsRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,26 +49,26 @@ public CollaboratorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners.Organization members with write, maintain, or admin privileges on the organization-owned repository can use this endpoint.Team members will include the members of child teams.The authenticated user must have push access to the repository to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:org` and `repo` scopes to use this endpoint. /// API method documentation /// - /// A List<Collaborator> + /// A List<global::GitHub.Models.Collaborator> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Collaborator.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Collaborator.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners.Organization members with write, maintain, or admin privileges on the organization-owned repository can use this endpoint.Team members will include the members of child teams.The authenticated user must have push access to the repository to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:org` and `repo` scopes to use this endpoint. @@ -75,11 +77,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -90,26 +92,27 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CollaboratorsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Collaborators.CollaboratorsRequestBuilder WithUrl(string rawUrl) { - return new CollaboratorsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Collaborators.CollaboratorsRequestBuilder(rawUrl, RequestAdapter); } /// /// For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners.Organization members with write, maintain, or admin privileges on the organization-owned repository can use this endpoint.Team members will include the members of child teams.The authenticated user must have push access to the repository to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:org` and `repo` scopes to use this endpoint. /// - public class CollaboratorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CollaboratorsRequestBuilderGetQueryParameters { /// Filter collaborators returned by their affiliation. `outside` means all outside collaborators of an organization-owned repository. `direct` means all collaborators with permissions to an organization-owned repository, regardless of organization membership status. `all` means all collaborators the authenticated user can see. [QueryParameter("affiliation")] - public GetAffiliationQueryParameterType? Affiliation { get; set; } + public global::GitHub.Repos.Item.Item.Collaborators.GetAffiliationQueryParameterType? Affiliation { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } /// Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned. [QueryParameter("permission")] - public GetPermissionQueryParameterType? Permission { get; set; } + public global::GitHub.Repos.Item.Item.Collaborators.GetPermissionQueryParameterType? Permission { get; set; } /// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("per_page")] public int? PerPage { get; set; } diff --git a/src/GitHub/Repos/Item/Item/Collaborators/GetAffiliationQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Collaborators/GetAffiliationQueryParameterType.cs index 6105ce5a..954ef8e1 100644 --- a/src/GitHub/Repos/Item/Item/Collaborators/GetAffiliationQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Collaborators/GetAffiliationQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Collaborators { +namespace GitHub.Repos.Item.Item.Collaborators +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetAffiliationQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Collaborators/GetPermissionQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Collaborators/GetPermissionQueryParameterType.cs index 670a26da..de7b8111 100644 --- a/src/GitHub/Repos/Item/Item/Collaborators/GetPermissionQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Collaborators/GetPermissionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Collaborators { +namespace GitHub.Repos.Item.Item.Collaborators +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetPermissionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Collaborators/Item/Permission/PermissionRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Collaborators/Item/Permission/PermissionRequestBuilder.cs index 78760e40..eb6e7d76 100644 --- a/src/GitHub/Repos/Item/Item/Collaborators/Item/Permission/PermissionRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Collaborators/Item/Permission/PermissionRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Collaborators.Item.Permission { +namespace GitHub.Repos.Item.Item.Collaborators.Item.Permission +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\collaborators\{username}\permission /// - public class PermissionRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PermissionRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public PermissionRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,25 +36,25 @@ public PermissionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Checks the repository permission of a collaborator. The possible repositorypermissions are `admin`, `write`, `read`, and `none`.*Note*: The `permission` attribute provides the legacy base roles of `admin`, `write`, `read`, and `none`, where the`maintain` role is mapped to `write` and the `triage` role is mapped to `read`. To determine the role assigned to thecollaborator, see the `role_name` attribute, which will provide the full role name, including custom roles. The`permissions` hash can also be used to determine which base level of access the collaborator has to the repository. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, RepositoryCollaboratorPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.RepositoryCollaboratorPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Checks the repository permission of a collaborator. The possible repositorypermissions are `admin`, `write`, `read`, and `none`.*Note*: The `permission` attribute provides the legacy base roles of `admin`, `write`, `read`, and `none`, where the`maintain` role is mapped to `write` and the `triage` role is mapped to `read`. To determine the role assigned to thecollaborator, see the `role_name` attribute, which will provide the full role name, including custom roles. The`permissions` hash can also be used to determine which base level of access the collaborator has to the repository. @@ -76,11 +78,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PermissionRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Collaborators.Item.Permission.PermissionRequestBuilder WithUrl(string rawUrl) { - return new PermissionRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Collaborators.Item.Permission.PermissionRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Collaborators/Item/WithUsernameItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Collaborators/Item/WithUsernameItemRequestBuilder.cs index 964ffbff..06c506d1 100644 --- a/src/GitHub/Repos/Item/Item/Collaborators/Item/WithUsernameItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Collaborators/Item/WithUsernameItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Collaborators.Item.Permission; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Collaborators.Item { +namespace GitHub.Repos.Item.Item.Collaborators.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\collaborators\{username} /// - public class WithUsernameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithUsernameItemRequestBuilder : BaseRequestBuilder { /// The permission property - public PermissionRequestBuilder Permission + public global::GitHub.Repos.Item.Item.Collaborators.Item.Permission.PermissionRequestBuilder Permission { - get => new PermissionRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Collaborators.Item.Permission.PermissionRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithUsernameItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -42,8 +44,8 @@ public WithUsernameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -56,8 +58,8 @@ public async Task DeleteAsync(Action> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -83,29 +85,29 @@ public async Task GetAsync(Action> /// This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)."Adding an outside collaborator may be restricted by enterprise administrators. For more information, see "[Enforcing repository management policies in your enterprise](https://docs.github.com/enterprise-cloud@latest//admin/policies/enforcing-policies-for-your-enterprise/enforcing-repository-management-policies-in-your-enterprise#enforcing-a-policy-for-inviting-outside-collaborators-to-repositories)."For more information on permission levels, see "[Repository permission levels for an organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/repository-permission-levels-for-an-organization#permission-levels-for-repositories-owned-by-an-organization)". There are restrictions on which permissions can be granted to organization members when an organization base role is in place. In this case, the permission being given must be equal to or higher than the org base permission. Otherwise, the request will fail with:```Cannot assign {member} permission of {role name}```Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method)."The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the [API](https://docs.github.com/enterprise-cloud@latest//rest/collaborators/invitations).**Updating an existing collaborator's permission level**The endpoint can also be used to change the permissions of an existing collaborator without first removing and re-adding the collaborator. To change the permissions, use the same endpoint and pass a different `permission` parameter. The response will be a `204`, with no other indication that the permission level changed.**Rate limits**You are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(WithUsernamePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Collaborators.Item.WithUsernamePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(WithUsernamePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Collaborators.Item.WithUsernamePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, RepositoryInvitation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.RepositoryInvitation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Removes a collaborator from a repository.To use this endpoint, the authenticated user must either be an administrator of the repository or target themselves for removal.This endpoint also:- Cancels any outstanding invitations- Unasigns the user from any issues- Removes access to organization projects if the user is not an organization member and is not a collaborator on any other organization repositories.- Unstars the repository- Updates access permissions to packagesRemoving a user as a collaborator has the following effects on forks: - If the user had access to a fork through their membership to this repository, the user will also be removed from the fork. - If the user had their own fork of the repository, the fork will be deleted. - If the user still has read access to the repository, open pull requests by this user from a fork will be denied.> [!NOTE]> A user can still have access to the repository through organization permissions like base repository permissions.Although the API responds immediately, the additional permission updates might take some extra time to complete in the background.For more information on fork permissions, see "[About permissions and visibility of forks](https://docs.github.com/enterprise-cloud@latest//pull-requests/collaborating-with-pull-requests/working-with-forks/about-permissions-and-visibility-of-forks)". @@ -152,11 +154,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(WithUsernamePutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Collaborators.Item.WithUsernamePutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(WithUsernamePutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Collaborators.Item.WithUsernamePutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -169,11 +171,11 @@ public RequestInformation ToPutRequestInformation(WithUsernamePutRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithUsernameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Collaborators.Item.WithUsernameItemRequestBuilder WithUrl(string rawUrl) { - return new WithUsernameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Collaborators.Item.WithUsernameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Collaborators/Item/WithUsernamePutRequestBody.cs b/src/GitHub/Repos/Item/Item/Collaborators/Item/WithUsernamePutRequestBody.cs index c5abf806..0e7c7d7f 100644 --- a/src/GitHub/Repos/Item/Item/Collaborators/Item/WithUsernamePutRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Collaborators/Item/WithUsernamePutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Collaborators.Item { +namespace GitHub.Repos.Item.Item.Collaborators.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithUsernamePutRequestBody : IAdditionalDataHolder, IParsable + public partial class WithUsernamePutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class WithUsernamePutRequestBody : IAdditionalDataHolder, IParsable public string Permission { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithUsernamePutRequestBody() { @@ -30,12 +32,12 @@ public WithUsernamePutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithUsernamePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Collaborators.Item.WithUsernamePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithUsernamePutRequestBody(); + return new global::GitHub.Repos.Item.Item.Collaborators.Item.WithUsernamePutRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"permission", n => { Permission = n.GetStringValue(); } }, + { "permission", n => { Permission = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Comments/CommentsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Comments/CommentsRequestBuilder.cs index 46eab3fb..a4e2c305 100644 --- a/src/GitHub/Repos/Item/Item/Comments/CommentsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Comments/CommentsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Comments.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Comments { +namespace GitHub.Repos.Item.Item.Comments +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\comments /// - public class CommentsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommentsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.comments.item collection /// The unique identifier of the comment. - /// A - public WithComment_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Comments.Item.WithComment_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("comment_id", position); - return new WithComment_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Comments.Item.WithComment_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public CommentsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public CommentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Lists the commit comments for a specified repository. Comments are ordered by ascending ID.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. /// API method documentation /// - /// A List<CommitComment> + /// A List<global::GitHub.Models.CommitComment> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CommitComment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CommitComment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists the commit comments for a specified repository. Comments are ordered by ascending ID.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. @@ -70,11 +72,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -85,16 +87,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CommentsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Comments.CommentsRequestBuilder WithUrl(string rawUrl) { - return new CommentsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Comments.CommentsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the commit comments for a specified repository. Comments are ordered by ascending ID.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. /// - public class CommentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommentsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Comments/Item/Reactions/GetContentQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Comments/Item/Reactions/GetContentQueryParameterType.cs index f85696d4..c91f06c3 100644 --- a/src/GitHub/Repos/Item/Item/Comments/Item/Reactions/GetContentQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Comments/Item/Reactions/GetContentQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Comments.Item.Reactions { +namespace GitHub.Repos.Item.Item.Comments.Item.Reactions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetContentQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Comments/Item/Reactions/Item/WithReaction_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Comments/Item/Reactions/Item/WithReaction_ItemRequestBuilder.cs index 7b6ba931..9bbdaf9f 100644 --- a/src/GitHub/Repos/Item/Item/Comments/Item/Reactions/Item/WithReaction_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Comments/Item/Reactions/Item/WithReaction_ItemRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Comments.Item.Reactions.Item { +namespace GitHub.Repos.Item.Item.Comments.Item.Reactions.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\comments\{comment_id}\reactions\{reaction_id} /// - public class WithReaction_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithReaction_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public WithReaction_ItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -68,11 +70,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithReaction_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Comments.Item.Reactions.Item.WithReaction_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithReaction_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Comments.Item.Reactions.Item.WithReaction_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Comments/Item/Reactions/ReactionsPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Comments/Item/Reactions/ReactionsPostRequestBody.cs index a5ec9ebf..7f7af2c3 100644 --- a/src/GitHub/Repos/Item/Item/Comments/Item/Reactions/ReactionsPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Comments/Item/Reactions/ReactionsPostRequestBody.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Comments.Item.Reactions { +namespace GitHub.Repos.Item.Item.Comments.Item.Reactions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ReactionsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ReactionsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the commit comment. - public ReactionsPostRequestBody_content? Content { get; set; } + public global::GitHub.Repos.Item.Item.Comments.Item.Reactions.ReactionsPostRequestBody_content? Content { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReactionsPostRequestBody() { @@ -23,12 +25,12 @@ public ReactionsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ReactionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Comments.Item.Reactions.ReactionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReactionsPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Comments.Item.Reactions.ReactionsPostRequestBody(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content", n => { Content = n.GetEnumValue(); } }, + { "content", n => { Content = n.GetEnumValue(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("content", Content); + writer.WriteEnumValue("content", Content); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Comments/Item/Reactions/ReactionsPostRequestBody_content.cs b/src/GitHub/Repos/Item/Item/Comments/Item/Reactions/ReactionsPostRequestBody_content.cs index 1032b3c1..1b717874 100644 --- a/src/GitHub/Repos/Item/Item/Comments/Item/Reactions/ReactionsPostRequestBody_content.cs +++ b/src/GitHub/Repos/Item/Item/Comments/Item/Reactions/ReactionsPostRequestBody_content.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Comments.Item.Reactions { +namespace GitHub.Repos.Item.Item.Comments.Item.Reactions +{ /// The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the commit comment. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ReactionsPostRequestBody_content { [EnumMember(Value = "+1")] diff --git a/src/GitHub/Repos/Item/Item/Comments/Item/Reactions/ReactionsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Comments/Item/Reactions/ReactionsRequestBuilder.cs index 91ebed35..06d9ceb2 100644 --- a/src/GitHub/Repos/Item/Item/Comments/Item/Reactions/ReactionsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Comments/Item/Reactions/ReactionsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Comments.Item.Reactions.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Comments.Item.Reactions { +namespace GitHub.Repos.Item.Item.Comments.Item.Reactions +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\comments\{comment_id}\reactions /// - public class ReactionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReactionsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.comments.item.reactions.item collection /// The unique identifier of the reaction. - /// A - public WithReaction_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Comments.Item.Reactions.Item.WithReaction_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("reaction_id", position); - return new WithReaction_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Comments.Item.Reactions.Item.WithReaction_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public ReactionsRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,52 +49,52 @@ public ReactionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// List the reactions to a [commit comment](https://docs.github.com/enterprise-cloud@latest//rest/commits/comments#get-a-commit-comment). /// API method documentation /// - /// A List<Reaction> + /// A List<global::GitHub.Models.Reaction> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Reaction.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Reaction.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a reaction to a [commit comment](https://docs.github.com/enterprise-cloud@latest//rest/commits/comments#get-a-commit-comment). A response with an HTTP `200` status means that you already added the reaction type to this commit comment. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ReactionsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Comments.Item.Reactions.ReactionsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(ReactionsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Comments.Item.Reactions.ReactionsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Reaction.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Reaction.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// List the reactions to a [commit comment](https://docs.github.com/enterprise-cloud@latest//rest/commits/comments#get-a-commit-comment). @@ -101,11 +103,11 @@ public async Task PostAsync(ReactionsPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -121,11 +123,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ReactionsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Comments.Item.Reactions.ReactionsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReactionsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Comments.Item.Reactions.ReactionsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -138,20 +140,21 @@ public RequestInformation ToPostRequestInformation(ReactionsPostRequestBody body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ReactionsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Comments.Item.Reactions.ReactionsRequestBuilder WithUrl(string rawUrl) { - return new ReactionsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Comments.Item.Reactions.ReactionsRequestBuilder(rawUrl, RequestAdapter); } /// /// List the reactions to a [commit comment](https://docs.github.com/enterprise-cloud@latest//rest/commits/comments#get-a-commit-comment). /// - public class ReactionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReactionsRequestBuilderGetQueryParameters { /// Returns a single [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a commit comment. [QueryParameter("content")] - public GetContentQueryParameterType? Content { get; set; } + public global::GitHub.Repos.Item.Item.Comments.Item.Reactions.GetContentQueryParameterType? Content { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } diff --git a/src/GitHub/Repos/Item/Item/Comments/Item/WithComment_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Comments/Item/WithComment_ItemRequestBuilder.cs index 3580ec29..32bbd104 100644 --- a/src/GitHub/Repos/Item/Item/Comments/Item/WithComment_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Comments/Item/WithComment_ItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Comments.Item.Reactions; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Comments.Item { +namespace GitHub.Repos.Item.Item.Comments.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\comments\{comment_id} /// - public class WithComment_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithComment_ItemRequestBuilder : BaseRequestBuilder { /// The reactions property - public ReactionsRequestBuilder Reactions + public global::GitHub.Repos.Item.Item.Comments.Item.Reactions.ReactionsRequestBuilder Reactions { - get => new ReactionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Comments.Item.Reactions.ReactionsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithComment_ItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -42,7 +44,7 @@ public WithComment_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -55,7 +57,7 @@ public async Task DeleteAsync(Action> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -63,51 +65,51 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CommitComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CommitComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Updates the contents of a specified commit comment.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithComment_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Comments.Item.WithComment_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithComment_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Comments.Item.WithComment_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CommitComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CommitComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -152,11 +154,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithComment_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Comments.Item.WithComment_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithComment_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Comments.Item.WithComment_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -169,11 +171,11 @@ public RequestInformation ToPatchRequestInformation(WithComment_PatchRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithComment_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Comments.Item.WithComment_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithComment_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Comments.Item.WithComment_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Comments/Item/WithComment_PatchRequestBody.cs b/src/GitHub/Repos/Item/Item/Comments/Item/WithComment_PatchRequestBody.cs index ab270775..3377c6e3 100644 --- a/src/GitHub/Repos/Item/Item/Comments/Item/WithComment_PatchRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Comments/Item/WithComment_PatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Comments.Item { +namespace GitHub.Repos.Item.Item.Comments.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithComment_PatchRequestBody : IAdditionalDataHolder, IParsable + public partial class WithComment_PatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class WithComment_PatchRequestBody : IAdditionalDataHolder, IParsable public string Body { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithComment_PatchRequestBody() { @@ -29,12 +31,12 @@ public WithComment_PatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithComment_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Comments.Item.WithComment_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithComment_PatchRequestBody(); + return new global::GitHub.Repos.Item.Item.Comments.Item.WithComment_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"body", n => { Body = n.GetStringValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Commits/CommitsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Commits/CommitsRequestBuilder.cs index 195057df..549af0cd 100644 --- a/src/GitHub/Repos/Item/Item/Commits/CommitsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Commits/CommitsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Commits.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Commits { +namespace GitHub.Repos.Item.Item.Commits +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\commits /// - public class CommitsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommitsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.commits.item collection /// The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. - /// A - public Commit_shaItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Commits.Item.Commit_shaItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("commit_sha%2Did", position); - return new Commit_shaItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Commits.Item.Commit_shaItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public CommitsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,32 +49,32 @@ public CommitsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// **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 /// - /// A List<Commit> + /// A List<global::GitHub.Models.Commit> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 404 status code - /// When receiving a 409 status code - /// When receiving a 500 status code + /// When receiving a 400 status code + /// When receiving a 404 status code + /// When receiving a 409 status code + /// When receiving a 500 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"409", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Commit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Commit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// **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. | @@ -81,11 +83,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -96,16 +98,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CommitsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Commits.CommitsRequestBuilder WithUrl(string rawUrl) { - return new CommitsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Commits.CommitsRequestBuilder(rawUrl, RequestAdapter); } /// /// **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. | /// - public class CommitsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommitsRequestBuilderGetQueryParameters { /// GitHub username or email address to use to filter by commit author. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Repos/Item/Item/Commits/Item/BranchesWhereHead/BranchesWhereHeadRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Commits/Item/BranchesWhereHead/BranchesWhereHeadRequestBuilder.cs index 27ee28fa..7f4a1cf9 100644 --- a/src/GitHub/Repos/Item/Item/Commits/Item/BranchesWhereHead/BranchesWhereHeadRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Commits/Item/BranchesWhereHead/BranchesWhereHeadRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Commits.Item.BranchesWhereHead { +namespace GitHub.Repos.Item.Item.Commits.Item.BranchesWhereHead +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\commits\{commit_sha-id}\branches-where-head /// - public class BranchesWhereHeadRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class BranchesWhereHeadRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public BranchesWhereHeadRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,28 +36,28 @@ public BranchesWhereHeadRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Returns all branches where the given commit SHA is the HEAD, or latest commit for the branch. /// API method documentation /// - /// A List<BranchShort> + /// A List<global::GitHub.Models.BranchShort> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 409 status code - /// When receiving a 422 status code + /// When receiving a 409 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"409", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, BranchShort.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.BranchShort.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Returns all branches where the given commit SHA is the HEAD, or latest commit for the branch. @@ -79,11 +81,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public BranchesWhereHeadRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Commits.Item.BranchesWhereHead.BranchesWhereHeadRequestBuilder WithUrl(string rawUrl) { - return new BranchesWhereHeadRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Commits.Item.BranchesWhereHead.BranchesWhereHeadRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Commits/Item/CheckRuns/CheckRunsGetResponse.cs b/src/GitHub/Repos/Item/Item/Commits/Item/CheckRuns/CheckRunsGetResponse.cs index 1a13091e..12e2f11c 100644 --- a/src/GitHub/Repos/Item/Item/Commits/Item/CheckRuns/CheckRunsGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Commits/Item/CheckRuns/CheckRunsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Commits.Item.CheckRuns { +namespace GitHub.Repos.Item.Item.Commits.Item.CheckRuns +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CheckRunsGetResponse : IAdditionalDataHolder, IParsable + public partial class CheckRunsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class CheckRunsGetResponse : IAdditionalDataHolder, IParsable /// The check_runs property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? CheckRuns { get; set; } + public List? CheckRuns { get; set; } #nullable restore #else - public List CheckRuns { get; set; } + public List CheckRuns { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckRunsGetResponse() { @@ -32,12 +34,12 @@ public CheckRunsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CheckRunsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Commits.Item.CheckRuns.CheckRunsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckRunsGetResponse(); + return new global::GitHub.Repos.Item.Item.Commits.Item.CheckRuns.CheckRunsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"check_runs", n => { CheckRuns = n.GetCollectionOfObjectValues(CheckRun.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "check_runs", n => { CheckRuns = n.GetCollectionOfObjectValues(global::GitHub.Models.CheckRun.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("check_runs", CheckRuns); + writer.WriteCollectionOfObjectValues("check_runs", CheckRuns); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Commits/Item/CheckRuns/CheckRunsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Commits/Item/CheckRuns/CheckRunsRequestBuilder.cs index 1082b14c..ca8770a3 100644 --- a/src/GitHub/Repos/Item/Item/Commits/Item/CheckRuns/CheckRunsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Commits/Item/CheckRuns/CheckRunsRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Commits.Item.CheckRuns { +namespace GitHub.Repos.Item.Item.Commits.Item.CheckRuns +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\commits\{commit_sha-id}\check-runs /// - public class CheckRunsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CheckRunsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public CheckRunsRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,20 +35,20 @@ public CheckRunsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name.> [!NOTE]> The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.If there are more than 1000 check suites on a single git reference, this endpoint will limit check runs to the 1000 most recent check suites. To iterate over all possible check runs, use the [List check suites for a Git reference](https://docs.github.com/enterprise-cloud@latest//rest/reference/checks#list-check-suites-for-a-git-reference) endpoint and provide the `check_suite_id` parameter to the [List check runs in a check suite](https://docs.github.com/enterprise-cloud@latest//rest/reference/checks#list-check-runs-in-a-check-suite) endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CheckRunsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Commits.Item.CheckRuns.CheckRunsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name.> [!NOTE]> The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.If there are more than 1000 check suites on a single git reference, this endpoint will limit check runs to the 1000 most recent check suites. To iterate over all possible check runs, use the [List check suites for a Git reference](https://docs.github.com/enterprise-cloud@latest//rest/reference/checks#list-check-suites-for-a-git-reference) endpoint and provide the `check_suite_id` parameter to the [List check runs in a check suite](https://docs.github.com/enterprise-cloud@latest//rest/reference/checks#list-check-runs-in-a-check-suite) endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository. @@ -55,11 +57,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -70,16 +72,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CheckRunsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Commits.Item.CheckRuns.CheckRunsRequestBuilder WithUrl(string rawUrl) { - return new CheckRunsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Commits.Item.CheckRuns.CheckRunsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name.> [!NOTE]> The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.If there are more than 1000 check suites on a single git reference, this endpoint will limit check runs to the 1000 most recent check suites. To iterate over all possible check runs, use the [List check suites for a Git reference](https://docs.github.com/enterprise-cloud@latest//rest/reference/checks#list-check-suites-for-a-git-reference) endpoint and provide the `check_suite_id` parameter to the [List check runs in a check suite](https://docs.github.com/enterprise-cloud@latest//rest/reference/checks#list-check-runs-in-a-check-suite) endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository. /// - public class CheckRunsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CheckRunsRequestBuilderGetQueryParameters { [QueryParameter("app_id")] public int? AppId { get; set; } @@ -95,7 +98,7 @@ public class CheckRunsRequestBuilderGetQueryParameters #endif /// Filters check runs by their `completed_at` timestamp. `latest` returns the most recent check runs. [QueryParameter("filter")] - public GetFilterQueryParameterType? Filter { get; set; } + public global::GitHub.Repos.Item.Item.Commits.Item.CheckRuns.GetFilterQueryParameterType? Filter { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } @@ -104,7 +107,7 @@ public class CheckRunsRequestBuilderGetQueryParameters public int? PerPage { get; set; } /// Returns check runs with the specified `status`. [QueryParameter("status")] - public GetStatusQueryParameterType? Status { get; set; } + public global::GitHub.Repos.Item.Item.Commits.Item.CheckRuns.GetStatusQueryParameterType? Status { get; set; } } } } diff --git a/src/GitHub/Repos/Item/Item/Commits/Item/CheckRuns/GetFilterQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Commits/Item/CheckRuns/GetFilterQueryParameterType.cs index 41b7c24e..a6e52b14 100644 --- a/src/GitHub/Repos/Item/Item/Commits/Item/CheckRuns/GetFilterQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Commits/Item/CheckRuns/GetFilterQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Commits.Item.CheckRuns { +namespace GitHub.Repos.Item.Item.Commits.Item.CheckRuns +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetFilterQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Commits/Item/CheckRuns/GetStatusQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Commits/Item/CheckRuns/GetStatusQueryParameterType.cs index c8f4b422..9d8731f7 100644 --- a/src/GitHub/Repos/Item/Item/Commits/Item/CheckRuns/GetStatusQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Commits/Item/CheckRuns/GetStatusQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Commits.Item.CheckRuns { +namespace GitHub.Repos.Item.Item.Commits.Item.CheckRuns +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetStatusQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Commits/Item/CheckSuites/CheckSuitesGetResponse.cs b/src/GitHub/Repos/Item/Item/Commits/Item/CheckSuites/CheckSuitesGetResponse.cs index 19ce3926..dbb9e848 100644 --- a/src/GitHub/Repos/Item/Item/Commits/Item/CheckSuites/CheckSuitesGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Commits/Item/CheckSuites/CheckSuitesGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Commits.Item.CheckSuites { +namespace GitHub.Repos.Item.Item.Commits.Item.CheckSuites +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CheckSuitesGetResponse : IAdditionalDataHolder, IParsable + public partial class CheckSuitesGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class CheckSuitesGetResponse : IAdditionalDataHolder, IParsable /// The check_suites property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? CheckSuites { get; set; } + public List? CheckSuites { get; set; } #nullable restore #else - public List CheckSuites { get; set; } + public List CheckSuites { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckSuitesGetResponse() { @@ -32,12 +34,12 @@ public CheckSuitesGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CheckSuitesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Commits.Item.CheckSuites.CheckSuitesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckSuitesGetResponse(); + return new global::GitHub.Repos.Item.Item.Commits.Item.CheckSuites.CheckSuitesGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"check_suites", n => { CheckSuites = n.GetCollectionOfObjectValues(CheckSuite.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "check_suites", n => { CheckSuites = n.GetCollectionOfObjectValues(global::GitHub.Models.CheckSuite.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("check_suites", CheckSuites); + writer.WriteCollectionOfObjectValues("check_suites", CheckSuites); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Commits/Item/CheckSuites/CheckSuitesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Commits/Item/CheckSuites/CheckSuitesRequestBuilder.cs index 446ac97b..32db25bf 100644 --- a/src/GitHub/Repos/Item/Item/Commits/Item/CheckSuites/CheckSuitesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Commits/Item/CheckSuites/CheckSuitesRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Commits.Item.CheckSuites { +namespace GitHub.Repos.Item.Item.Commits.Item.CheckSuites +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\commits\{commit_sha-id}\check-suites /// - public class CheckSuitesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CheckSuitesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public CheckSuitesRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,20 +35,20 @@ public CheckSuitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name.> [!NOTE]> The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CheckSuitesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Commits.Item.CheckSuites.CheckSuitesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name.> [!NOTE]> The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository. @@ -55,11 +57,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -70,16 +72,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CheckSuitesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Commits.Item.CheckSuites.CheckSuitesRequestBuilder WithUrl(string rawUrl) { - return new CheckSuitesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Commits.Item.CheckSuites.CheckSuitesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name.> [!NOTE]> The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository. /// - public class CheckSuitesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CheckSuitesRequestBuilderGetQueryParameters { /// Filters check suites by GitHub App `id`. [QueryParameter("app_id")] diff --git a/src/GitHub/Repos/Item/Item/Commits/Item/Comments/CommentsPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Commits/Item/Comments/CommentsPostRequestBody.cs index 3efd71f5..d437117e 100644 --- a/src/GitHub/Repos/Item/Item/Commits/Item/Comments/CommentsPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Commits/Item/Comments/CommentsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Commits.Item.Comments { +namespace GitHub.Repos.Item.Item.Commits.Item.Comments +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CommentsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CommentsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -32,7 +34,7 @@ public class CommentsPostRequestBody : IAdditionalDataHolder, IParsable /// Line index in the diff to comment on. public int? Position { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommentsPostRequestBody() { @@ -41,12 +43,12 @@ public CommentsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CommentsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Commits.Item.Comments.CommentsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommentsPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Commits.Item.Comments.CommentsPostRequestBody(); } /// /// The deserialization information for the current model @@ -56,10 +58,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"body", n => { Body = n.GetStringValue(); } }, - {"line", n => { Line = n.GetIntValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"position", n => { Position = n.GetIntValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "line", n => { Line = n.GetIntValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "position", n => { Position = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Commits/Item/Comments/CommentsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Commits/Item/Comments/CommentsRequestBuilder.cs index 5a79c477..5c6fbebd 100644 --- a/src/GitHub/Repos/Item/Item/Commits/Item/Comments/CommentsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Commits/Item/Comments/CommentsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Commits.Item.Comments { +namespace GitHub.Repos.Item.Item.Commits.Item.Comments +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\commits\{commit_sha-id}\comments /// - public class CommentsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommentsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public CommentsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,49 +36,49 @@ public CommentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Lists the comments for a specified commit.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. /// API method documentation /// - /// A List<CommitComment> + /// A List<global::GitHub.Models.CommitComment> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CommitComment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CommitComment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a comment for a commit using its `:commit_sha`.This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)."This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(CommentsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Commits.Item.Comments.CommentsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(CommentsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Commits.Item.Comments.CommentsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CommitComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CommitComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists the comments for a specified commit.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. @@ -85,11 +87,11 @@ public async Task PostAsync(CommentsPostRequestBody body, Action< /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -105,11 +107,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(CommentsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Commits.Item.Comments.CommentsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CommentsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Commits.Item.Comments.CommentsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,16 +124,17 @@ public RequestInformation ToPostRequestInformation(CommentsPostRequestBody body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CommentsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Commits.Item.Comments.CommentsRequestBuilder WithUrl(string rawUrl) { - return new CommentsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Commits.Item.Comments.CommentsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the comments for a specified commit.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. /// - public class CommentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommentsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Commits/Item/Commit_shaItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Commits/Item/Commit_shaItemRequestBuilder.cs index ae7a7310..12a6a573 100644 --- a/src/GitHub/Repos/Item/Item/Commits/Item/Commit_shaItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Commits/Item/Commit_shaItemRequestBuilder.cs @@ -7,57 +7,59 @@ using GitHub.Repos.Item.Item.Commits.Item.Pulls; using GitHub.Repos.Item.Item.Commits.Item.Status; using GitHub.Repos.Item.Item.Commits.Item.Statuses; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Commits.Item { +namespace GitHub.Repos.Item.Item.Commits.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\commits\{commit_sha-id} /// - public class Commit_shaItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Commit_shaItemRequestBuilder : BaseRequestBuilder { /// The branchesWhereHead property - public BranchesWhereHeadRequestBuilder BranchesWhereHead + public global::GitHub.Repos.Item.Item.Commits.Item.BranchesWhereHead.BranchesWhereHeadRequestBuilder BranchesWhereHead { - get => new BranchesWhereHeadRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Commits.Item.BranchesWhereHead.BranchesWhereHeadRequestBuilder(PathParameters, RequestAdapter); } /// The checkRuns property - public CheckRunsRequestBuilder CheckRuns + public global::GitHub.Repos.Item.Item.Commits.Item.CheckRuns.CheckRunsRequestBuilder CheckRuns { - get => new CheckRunsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Commits.Item.CheckRuns.CheckRunsRequestBuilder(PathParameters, RequestAdapter); } /// The checkSuites property - public CheckSuitesRequestBuilder CheckSuites + public global::GitHub.Repos.Item.Item.Commits.Item.CheckSuites.CheckSuitesRequestBuilder CheckSuites { - get => new CheckSuitesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Commits.Item.CheckSuites.CheckSuitesRequestBuilder(PathParameters, RequestAdapter); } /// The comments property - public CommentsRequestBuilder Comments + public global::GitHub.Repos.Item.Item.Commits.Item.Comments.CommentsRequestBuilder Comments { - get => new CommentsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Commits.Item.Comments.CommentsRequestBuilder(PathParameters, RequestAdapter); } /// The pulls property - public PullsRequestBuilder Pulls + public global::GitHub.Repos.Item.Item.Commits.Item.Pulls.PullsRequestBuilder Pulls { - get => new PullsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Commits.Item.Pulls.PullsRequestBuilder(PathParameters, RequestAdapter); } /// The status property - public StatusRequestBuilder Status + public global::GitHub.Repos.Item.Item.Commits.Item.Status.StatusRequestBuilder Status { - get => new StatusRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Commits.Item.Status.StatusRequestBuilder(PathParameters, RequestAdapter); } /// The statuses property - public StatusesRequestBuilder Statuses + public global::GitHub.Repos.Item.Item.Commits.Item.Statuses.StatusesRequestBuilder Statuses { - get => new StatusesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Commits.Item.Statuses.StatusesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -65,7 +67,7 @@ public Commit_shaItemRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -76,33 +78,33 @@ public Commit_shaItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// 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/enterprise-cloud@latest//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. | /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 409 status code - /// When receiving a 422 status code - /// When receiving a 500 status code - /// When receiving a 503 status code + /// When receiving a 404 status code + /// When receiving a 409 status code + /// When receiving a 422 status code + /// When receiving a 500 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"409", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, - {"503", Commit503Error.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.Commit503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Commit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Commit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// 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/enterprise-cloud@latest//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. | @@ -111,11 +113,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -126,16 +128,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Commit_shaItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Commits.Item.Commit_shaItemRequestBuilder WithUrl(string rawUrl) { - return new Commit_shaItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Commits.Item.Commit_shaItemRequestBuilder(rawUrl, RequestAdapter); } /// /// 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/enterprise-cloud@latest//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. | /// - public class Commit_shaItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Commit_shaItemRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Commits/Item/Pulls/PullsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Commits/Item/Pulls/PullsRequestBuilder.cs index aa5ad999..3971239e 100644 --- a/src/GitHub/Repos/Item/Item/Commits/Item/Pulls/PullsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Commits/Item/Pulls/PullsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Commits.Item.Pulls { +namespace GitHub.Repos.Item.Item.Commits.Item.Pulls +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\commits\{commit_sha-id}\pulls /// - public class PullsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PullsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public PullsRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,26 +36,26 @@ public PullsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Lists the merged pull request that introduced the commit to the repository. If the commit is not present in the default branch, will only return open pull requests associated with the commit.To list the open or merged pull requests associated with a branch, you can set the `commit_sha` parameter to the branch name. /// API method documentation /// - /// A List<PullRequestSimple> + /// A List<global::GitHub.Models.PullRequestSimple> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 409 status code + /// When receiving a 409 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"409", BasicError.CreateFromDiscriminatorValue}, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, PullRequestSimple.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.PullRequestSimple.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists the merged pull request that introduced the commit to the repository. If the commit is not present in the default branch, will only return open pull requests associated with the commit.To list the open or merged pull requests associated with a branch, you can set the `commit_sha` parameter to the branch name. @@ -62,11 +64,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -77,16 +79,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PullsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Commits.Item.Pulls.PullsRequestBuilder WithUrl(string rawUrl) { - return new PullsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Commits.Item.Pulls.PullsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the merged pull request that introduced the commit to the repository. If the commit is not present in the default branch, will only return open pull requests associated with the commit.To list the open or merged pull requests associated with a branch, you can set the `commit_sha` parameter to the branch name. /// - public class PullsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PullsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Commits/Item/Status/StatusRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Commits/Item/Status/StatusRequestBuilder.cs index f8c7b2cd..2e76241b 100644 --- a/src/GitHub/Repos/Item/Item/Commits/Item/Status/StatusRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Commits/Item/Status/StatusRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Commits.Item.Status { +namespace GitHub.Repos.Item.Item.Commits.Item.Status +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\commits\{commit_sha-id}\status /// - public class StatusRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class StatusRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public StatusRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,25 +36,25 @@ public StatusRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Users with pull access in a repository can access a combined view of commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name.Additionally, a combined `state` is returned. The `state` is one of:* **failure** if any of the contexts report as `error` or `failure`* **pending** if there are no statuses or a context is `pending`* **success** if the latest status for all contexts is `success` /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CombinedCommitStatus.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CombinedCommitStatus.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Users with pull access in a repository can access a combined view of commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name.Additionally, a combined `state` is returned. The `state` is one of:* **failure** if any of the contexts report as `error` or `failure`* **pending** if there are no statuses or a context is `pending`* **success** if the latest status for all contexts is `success` @@ -61,11 +63,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -76,16 +78,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public StatusRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Commits.Item.Status.StatusRequestBuilder WithUrl(string rawUrl) { - return new StatusRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Commits.Item.Status.StatusRequestBuilder(rawUrl, RequestAdapter); } /// /// Users with pull access in a repository can access a combined view of commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name.Additionally, a combined `state` is returned. The `state` is one of:* **failure** if any of the contexts report as `error` or `failure`* **pending** if there are no statuses or a context is `pending`* **success** if the latest status for all contexts is `success` /// - public class StatusRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class StatusRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Commits/Item/Statuses/StatusesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Commits/Item/Statuses/StatusesRequestBuilder.cs index c2e753cd..9b354065 100644 --- a/src/GitHub/Repos/Item/Item/Commits/Item/Statuses/StatusesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Commits/Item/Statuses/StatusesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Commits.Item.Statuses { +namespace GitHub.Repos.Item.Item.Commits.Item.Statuses +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\commits\{commit_sha-id}\statuses /// - public class StatusesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class StatusesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public StatusesRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public StatusesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Users with pull access in a repository can view commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. Statuses are returned in reverse chronological order. The first status in the list will be the latest one.This resource is also available via a legacy route: `GET /repos/:owner/:repo/statuses/:ref`. /// API method documentation /// - /// A List<GitHub.Models.Status> + /// A List<global::GitHub.Models.Status> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GitHub.Models.Status.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Status.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Users with pull access in a repository can view commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. Statuses are returned in reverse chronological order. The first status in the list will be the latest one.This resource is also available via a legacy route: `GET /repos/:owner/:repo/statuses/:ref`. @@ -57,11 +59,11 @@ public StatusesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -72,16 +74,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public StatusesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Commits.Item.Statuses.StatusesRequestBuilder WithUrl(string rawUrl) { - return new StatusesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Commits.Item.Statuses.StatusesRequestBuilder(rawUrl, RequestAdapter); } /// /// Users with pull access in a repository can view commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. Statuses are returned in reverse chronological order. The first status in the list will be the latest one.This resource is also available via a legacy route: `GET /repos/:owner/:repo/statuses/:ref`. /// - public class StatusesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class StatusesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Community/CommunityRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Community/CommunityRequestBuilder.cs index 6cf4c981..bc2c80d1 100644 --- a/src/GitHub/Repos/Item/Item/Community/CommunityRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Community/CommunityRequestBuilder.cs @@ -1,24 +1,26 @@ // using GitHub.Repos.Item.Item.Community.Profile; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Repos.Item.Item.Community { +namespace GitHub.Repos.Item.Item.Community +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\community /// - public class CommunityRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommunityRequestBuilder : BaseRequestBuilder { /// The profile property - public ProfileRequestBuilder Profile + public global::GitHub.Repos.Item.Item.Community.Profile.ProfileRequestBuilder Profile { - get => new ProfileRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Community.Profile.ProfileRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public CommunityRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Repos/Item/Item/Community/Profile/ProfileRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Community/Profile/ProfileRequestBuilder.cs index 9ece10cc..dd5d9774 100644 --- a/src/GitHub/Repos/Item/Item/Community/Profile/ProfileRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Community/Profile/ProfileRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Community.Profile { +namespace GitHub.Repos.Item.Item.Community.Profile +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\community\profile /// - public class ProfileRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ProfileRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ProfileRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public ProfileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Returns all community profile metrics for a repository. The repository cannot be a fork.The returned metrics include an overall health score, the repository description, the presence of documentation, thedetected code of conduct, the detected license, and the presence of ISSUE\_TEMPLATE, PULL\_REQUEST\_TEMPLATE,README, and CONTRIBUTING files.The `health_percentage` score is defined as a percentage of how many ofthe recommended community health files are present. For more information, see"[About community profiles for public repositories](https://docs.github.com/enterprise-cloud@latest//communities/setting-up-your-project-for-healthy-contributions/about-community-profiles-for-public-repositories)."`content_reports_enabled` is only returned for organization-owned repositories. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CommunityProfile.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CommunityProfile.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Returns all community profile metrics for a repository. The repository cannot be a fork.The returned metrics include an overall health score, the repository description, the presence of documentation, thedetected code of conduct, the detected license, and the presence of ISSUE\_TEMPLATE, PULL\_REQUEST\_TEMPLATE,README, and CONTRIBUTING files.The `health_percentage` score is defined as a percentage of how many ofthe recommended community health files are present. For more information, see"[About community profiles for public repositories](https://docs.github.com/enterprise-cloud@latest//communities/setting-up-your-project-for-healthy-contributions/about-community-profiles-for-public-repositories)."`content_reports_enabled` is only returned for organization-owned repositories. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ProfileRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Community.Profile.ProfileRequestBuilder WithUrl(string rawUrl) { - return new ProfileRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Community.Profile.ProfileRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Compare/CompareRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Compare/CompareRequestBuilder.cs index 1376c899..cfe282ef 100644 --- a/src/GitHub/Repos/Item/Item/Compare/CompareRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Compare/CompareRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Repos.Item.Item.Compare.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Repos.Item.Item.Compare { +namespace GitHub.Repos.Item.Item.Compare +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\compare /// - public class CompareRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CompareRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.compare.item collection /// The base branch and head branch to compare. This parameter expects the format `BASE...HEAD`. Both must be branch names in `repo`. To compare with a branch that exists in a different repository in the same network as `repo`, the `basehead` parameter expects the format `USERNAME:BASE...USERNAME:HEAD`. - /// A - public WithBaseheadItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Compare.Item.WithBaseheadItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("basehead", position); - return new WithBaseheadItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Compare.Item.WithBaseheadItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public CompareRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Repos/Item/Item/Compare/Item/WithBaseheadItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Compare/Item/WithBaseheadItemRequestBuilder.cs index aee0c047..110cb321 100644 --- a/src/GitHub/Repos/Item/Item/Compare/Item/WithBaseheadItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Compare/Item/WithBaseheadItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Compare.Item { +namespace GitHub.Repos.Item.Item.Compare.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\compare\{basehead} /// - public class WithBaseheadItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithBaseheadItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithBaseheadItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,29 +36,29 @@ public WithBaseheadItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Compares two commits against one another. You can compare refs (branches or tags) and commit SHAs in the same repository, or you can compare refs and commit SHAs that exist in different repositories within the same repository network, including fork branches. For more information about how to view a repository's network, see "[Understanding connections between repositories](https://docs.github.com/enterprise-cloud@latest//repositories/viewing-activity-and-data-for-your-repository/understanding-connections-between-repositories)."This endpoint is equivalent to running the `git log BASE..HEAD` command, but it returns commits in a different order. The `git log BASE..HEAD` command returns commits in reverse chronological order, whereas the API returns commits in chronological order.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.diff`**: Returns the diff of the commit.- **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property.The API response includes details about the files that were changed between the two commits. This includes the status of the change (if a file was added, removed, modified, or renamed), and details of the change itself. For example, files with a `renamed` status have a `previous_filename` field showing the previous filename of the file, and files with a `modified` status have a `patch` field showing the changes made to the file.When calling this endpoint without any paging parameter (`per_page` or `page`), the returned list is limited to 250 commits, and the last commit in the list is the most recent of the entire comparison.**Working with large comparisons**To process a response with a large number of commits, use a query parameter (`per_page` or `page`) to paginate the results. When using pagination:- The list of changed files is only shown on the first page of results, and it includes up to 300 changed files for the entire comparison.- The results are returned in chronological order, but the last commit in the returned list may not be the most recent one in the entire set if there are more pages of results.For more information on working with pagination, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api)."**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The `verification` object includes the following fields:| 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 /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 500 status code - /// When receiving a 503 status code + /// When receiving a 404 status code + /// When receiving a 500 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"500", BasicError.CreateFromDiscriminatorValue}, - {"503", CommitComparison503Error.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.CommitComparison503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, CommitComparison.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CommitComparison.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Compares two commits against one another. You can compare refs (branches or tags) and commit SHAs in the same repository, or you can compare refs and commit SHAs that exist in different repositories within the same repository network, including fork branches. For more information about how to view a repository's network, see "[Understanding connections between repositories](https://docs.github.com/enterprise-cloud@latest//repositories/viewing-activity-and-data-for-your-repository/understanding-connections-between-repositories)."This endpoint is equivalent to running the `git log BASE..HEAD` command, but it returns commits in a different order. The `git log BASE..HEAD` command returns commits in reverse chronological order, whereas the API returns commits in chronological order.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.diff`**: Returns the diff of the commit.- **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property.The API response includes details about the files that were changed between the two commits. This includes the status of the change (if a file was added, removed, modified, or renamed), and details of the change itself. For example, files with a `renamed` status have a `previous_filename` field showing the previous filename of the file, and files with a `modified` status have a `patch` field showing the changes made to the file.When calling this endpoint without any paging parameter (`per_page` or `page`), the returned list is limited to 250 commits, and the last commit in the list is the most recent of the entire comparison.**Working with large comparisons**To process a response with a large number of commits, use a query parameter (`per_page` or `page`) to paginate the results. When using pagination:- The list of changed files is only shown on the first page of results, and it includes up to 300 changed files for the entire comparison.- The results are returned in chronological order, but the last commit in the returned list may not be the most recent one in the entire set if there are more pages of results.For more information on working with pagination, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api)."**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The `verification` object includes the following fields:| 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. | @@ -65,11 +67,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -80,16 +82,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithBaseheadItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Compare.Item.WithBaseheadItemRequestBuilder WithUrl(string rawUrl) { - return new WithBaseheadItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Compare.Item.WithBaseheadItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Compares two commits against one another. You can compare refs (branches or tags) and commit SHAs in the same repository, or you can compare refs and commit SHAs that exist in different repositories within the same repository network, including fork branches. For more information about how to view a repository's network, see "[Understanding connections between repositories](https://docs.github.com/enterprise-cloud@latest//repositories/viewing-activity-and-data-for-your-repository/understanding-connections-between-repositories)."This endpoint is equivalent to running the `git log BASE..HEAD` command, but it returns commits in a different order. The `git log BASE..HEAD` command returns commits in reverse chronological order, whereas the API returns commits in chronological order.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.diff`**: Returns the diff of the commit.- **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property.The API response includes details about the files that were changed between the two commits. This includes the status of the change (if a file was added, removed, modified, or renamed), and details of the change itself. For example, files with a `renamed` status have a `previous_filename` field showing the previous filename of the file, and files with a `modified` status have a `patch` field showing the changes made to the file.When calling this endpoint without any paging parameter (`per_page` or `page`), the returned list is limited to 250 commits, and the last commit in the list is the most recent of the entire comparison.**Working with large comparisons**To process a response with a large number of commits, use a query parameter (`per_page` or `page`) to paginate the results. When using pagination:- The list of changed files is only shown on the first page of results, and it includes up to 300 changed files for the entire comparison.- The results are returned in chronological order, but the last commit in the returned list may not be the most recent one in the entire set if there are more pages of results.For more information on working with pagination, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api)."**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The `verification` object includes the following fields:| 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. | /// - public class WithBaseheadItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithBaseheadItemRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Contents/ContentsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Contents/ContentsRequestBuilder.cs index 9a9fe7cc..d79ca8a2 100644 --- a/src/GitHub/Repos/Item/Item/Contents/ContentsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Contents/ContentsRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Repos.Item.Item.Contents.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Repos.Item.Item.Contents { +namespace GitHub.Repos.Item.Item.Contents +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\contents /// - public class ContentsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ContentsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.contents.item collection /// path parameter - /// A - public WithPathItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Contents.Item.WithPathItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("path", position); - return new WithPathItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Contents.Item.WithPathItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public ContentsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody.cs b/src/GitHub/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody.cs index 5ac16f4b..ff33c27f 100644 --- a/src/GitHub/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Contents.Item { +namespace GitHub.Repos.Item.Item.Contents.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithPathDeleteRequestBody : IAdditionalDataHolder, IParsable + public partial class WithPathDeleteRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,10 +16,10 @@ public class WithPathDeleteRequestBody : IAdditionalDataHolder, IParsable /// object containing information about the author. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithPathDeleteRequestBody_author? Author { get; set; } + public global::GitHub.Repos.Item.Item.Contents.Item.WithPathDeleteRequestBody_author? Author { get; set; } #nullable restore #else - public WithPathDeleteRequestBody_author Author { get; set; } + public global::GitHub.Repos.Item.Item.Contents.Item.WithPathDeleteRequestBody_author Author { get; set; } #endif /// The branch name. Default: the repository’s default branch #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -30,10 +32,10 @@ public class WithPathDeleteRequestBody : IAdditionalDataHolder, IParsable /// object containing information about the committer. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithPathDeleteRequestBody_committer? Committer { get; set; } + public global::GitHub.Repos.Item.Item.Contents.Item.WithPathDeleteRequestBody_committer? Committer { get; set; } #nullable restore #else - public WithPathDeleteRequestBody_committer Committer { get; set; } + public global::GitHub.Repos.Item.Item.Contents.Item.WithPathDeleteRequestBody_committer Committer { get; set; } #endif /// The commit message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -52,7 +54,7 @@ public class WithPathDeleteRequestBody : IAdditionalDataHolder, IParsable public string Sha { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithPathDeleteRequestBody() { @@ -61,12 +63,12 @@ public WithPathDeleteRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithPathDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Contents.Item.WithPathDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithPathDeleteRequestBody(); + return new global::GitHub.Repos.Item.Item.Contents.Item.WithPathDeleteRequestBody(); } /// /// The deserialization information for the current model @@ -76,11 +78,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author", n => { Author = n.GetObjectValue(WithPathDeleteRequestBody_author.CreateFromDiscriminatorValue); } }, - {"branch", n => { Branch = n.GetStringValue(); } }, - {"committer", n => { Committer = n.GetObjectValue(WithPathDeleteRequestBody_committer.CreateFromDiscriminatorValue); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, + { "author", n => { Author = n.GetObjectValue(global::GitHub.Repos.Item.Item.Contents.Item.WithPathDeleteRequestBody_author.CreateFromDiscriminatorValue); } }, + { "branch", n => { Branch = n.GetStringValue(); } }, + { "committer", n => { Committer = n.GetObjectValue(global::GitHub.Repos.Item.Item.Contents.Item.WithPathDeleteRequestBody_committer.CreateFromDiscriminatorValue); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, }; } /// @@ -90,9 +92,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("author", Author); + writer.WriteObjectValue("author", Author); writer.WriteStringValue("branch", Branch); - writer.WriteObjectValue("committer", Committer); + writer.WriteObjectValue("committer", Committer); writer.WriteStringValue("message", Message); writer.WriteStringValue("sha", Sha); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody_author.cs b/src/GitHub/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody_author.cs index cd22516d..4161abe8 100644 --- a/src/GitHub/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody_author.cs +++ b/src/GitHub/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody_author.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Contents.Item { +namespace GitHub.Repos.Item.Item.Contents.Item +{ /// /// object containing information about the author. /// - public class WithPathDeleteRequestBody_author : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithPathDeleteRequestBody_author : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class WithPathDeleteRequestBody_author : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithPathDeleteRequestBody_author() { @@ -38,12 +40,12 @@ public WithPathDeleteRequestBody_author() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithPathDeleteRequestBody_author CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Contents.Item.WithPathDeleteRequestBody_author CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithPathDeleteRequestBody_author(); + return new global::GitHub.Repos.Item.Item.Contents.Item.WithPathDeleteRequestBody_author(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"email", n => { Email = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody_committer.cs b/src/GitHub/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody_committer.cs index d739fcc3..3db86b54 100644 --- a/src/GitHub/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody_committer.cs +++ b/src/GitHub/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody_committer.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Contents.Item { +namespace GitHub.Repos.Item.Item.Contents.Item +{ /// /// object containing information about the committer. /// - public class WithPathDeleteRequestBody_committer : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithPathDeleteRequestBody_committer : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,7 +31,7 @@ public class WithPathDeleteRequestBody_committer : IAdditionalDataHolder, IParsa public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithPathDeleteRequestBody_committer() { @@ -38,12 +40,12 @@ public WithPathDeleteRequestBody_committer() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithPathDeleteRequestBody_committer CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Contents.Item.WithPathDeleteRequestBody_committer CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithPathDeleteRequestBody_committer(); + return new global::GitHub.Repos.Item.Item.Contents.Item.WithPathDeleteRequestBody_committer(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"email", n => { Email = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Contents/Item/WithPathItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Contents/Item/WithPathItemRequestBuilder.cs index 51cb004f..a552a5f1 100644 --- a/src/GitHub/Repos/Item/Item/Contents/Item/WithPathItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Contents/Item/WithPathItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Contents.Item { +namespace GitHub.Repos.Item.Item.Contents.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\contents\{path} /// - public class WithPathItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithPathItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithPathItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,87 +36,87 @@ public WithPathItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Deletes a file in a repository.You can provide an additional `committer` parameter, which is an object containing information about the committer. Or, you can provide an `author` parameter, which is an object containing information about the author.The `author` section is optional and is filled in with the `committer` information if omitted. If the `committer` information is omitted, the authenticated user's information is used.You must provide values for both `name` and `email`, whether you choose to use `author` or `committer`. Otherwise, you'll receive a `422` status code.> [!NOTE]> If you use this endpoint and the "[Create or update file contents](https://docs.github.com/enterprise-cloud@latest//rest/repos/contents/#create-or-update-file-contents)" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 409 status code - /// When receiving a 422 status code - /// When receiving a 503 status code + /// When receiving a 404 status code + /// When receiving a 409 status code + /// When receiving a 422 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(WithPathDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(global::GitHub.Repos.Item.Item.Contents.Item.WithPathDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(WithPathDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(global::GitHub.Repos.Item.Item.Contents.Item.WithPathDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"409", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, - {"503", FileCommit503Error.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.FileCommit503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, FileCommit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.FileCommit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets the contents of a file or directory in a repository. Specify the file path or directory with the `path` parameter. If you omit the `path` parameter, you will receive the contents of the repository's root directory.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw file contents for files and symlinks.- **`application/vnd.github.html+json`**: Returns the file contents in HTML. Markup languages are rendered to HTML using GitHub's open-source [Markup library](https://github.com/github/markup).- **`application/vnd.github.object+json`**: Returns the contents in a consistent object format regardless of the content type. For example, instead of an array of objects for a directory, the response will be an object with an `entries` attribute containing the array of objects.If the content is a directory, the response will be an array of objects, one object for each item in the directory. When listing the contents of a directory, submodules have their "type" specified as "file". Logically, the value _should_ be "submodule". This behavior exists [for backwards compatibility purposes](https://git.io/v1YCW). In the next major version of the API, the type will be returned as "submodule".If the content is a symlink and the symlink's target is a normal file in the repository, then the API responds with the content of the file. Otherwise, the API responds with an object describing the symlink itself.If the content is a submodule, the `submodule_git_url` field identifies the location of the submodule repository, and the `sha` identifies a specific commit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out the submodule at that specific commit. If the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links["git"]`) and the github.com URLs (`html_url` and `_links["html"]`) will have null values.**Notes**:- To get a repository's contents recursively, you can [recursively get the tree](https://docs.github.com/enterprise-cloud@latest//rest/git/trees#get-a-tree).- This API has an upper limit of 1,000 files for a directory. If you need to retrievemore files, use the [Git Trees API](https://docs.github.com/enterprise-cloud@latest//rest/git/trees#get-a-tree).- Download URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download.- If the requested file's size is: - 1 MB or smaller: All features of this endpoint are supported. - Between 1-100 MB: Only the `raw` or `object` custom media types are supported. Both will work as normal, except that when using the `object` media type, the `content` field will be an emptystring and the `encoding` field will be `"none"`. To get the contents of these larger files, use the `raw` media type. - Greater than 100 MB: This endpoint is not supported. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, WithPathGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Contents.Item.WithPathItemRequestBuilder.WithPathGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Creates a new file or replaces an existing file in a repository.> [!NOTE]> If you use this endpoint and the "[Delete a file](https://docs.github.com/enterprise-cloud@latest//rest/repos/contents/#delete-a-file)" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. The `workflow` scope is also required in order to modify files in the `.github/workflows` directory. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(WithPathPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Contents.Item.WithPathPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(WithPathPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Contents.Item.WithPathPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, FileCommit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.FileCommit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Deletes a file in a repository.You can provide an additional `committer` parameter, which is an object containing information about the committer. Or, you can provide an `author` parameter, which is an object containing information about the author.The `author` section is optional and is filled in with the `committer` information if omitted. If the `committer` information is omitted, the authenticated user's information is used.You must provide values for both `name` and `email`, whether you choose to use `author` or `committer`. Otherwise, you'll receive a `422` status code.> [!NOTE]> If you use this endpoint and the "[Create or update file contents](https://docs.github.com/enterprise-cloud@latest//rest/repos/contents/#create-or-update-file-contents)" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead. @@ -124,11 +126,11 @@ public async Task PutAsync(WithPathPutRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(WithPathDeleteRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Repos.Item.Item.Contents.Item.WithPathDeleteRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(WithPathDeleteRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Repos.Item.Item.Contents.Item.WithPathDeleteRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -145,11 +147,11 @@ public RequestInformation ToDeleteRequestInformation(WithPathDeleteRequestBody b /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -165,11 +167,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(WithPathPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Contents.Item.WithPathPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(WithPathPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Contents.Item.WithPathPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -182,72 +184,73 @@ public RequestInformation ToPutRequestInformation(WithPathPutRequestBody body, A /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithPathItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Contents.Item.WithPathItemRequestBuilder WithUrl(string rawUrl) { - return new WithPathItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Contents.Item.WithPathItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Composed type wrapper for classes , , , List<WithPathGetResponseMember1> + /// Composed type wrapper for classes , , , List<global::GitHub.Models.WithPathGetResponseMember1> /// - public class WithPathGetResponse : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithPathGetResponse : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.ContentFile? ContentFile { get; set; } + public global::GitHub.Models.ContentFile? ContentFile { get; set; } #nullable restore #else - public GitHub.Models.ContentFile ContentFile { get; set; } + public global::GitHub.Models.ContentFile ContentFile { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.ContentSubmodule? ContentSubmodule { get; set; } + public global::GitHub.Models.ContentSubmodule? ContentSubmodule { get; set; } #nullable restore #else - public GitHub.Models.ContentSubmodule ContentSubmodule { get; set; } + public global::GitHub.Models.ContentSubmodule ContentSubmodule { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GitHub.Models.ContentSymlink? ContentSymlink { get; set; } + public global::GitHub.Models.ContentSymlink? ContentSymlink { get; set; } #nullable restore #else - public GitHub.Models.ContentSymlink ContentSymlink { get; set; } + public global::GitHub.Models.ContentSymlink ContentSymlink { get; set; } #endif - /// Composed type representation for type List<GitHub.Models.WithPathGetResponseMember1> + /// Composed type representation for type List<global::GitHub.Models.WithPathGetResponseMember1> #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? WithPathGetResponseMember1 { get; set; } + public List? WithPathGetResponseMember1 { get; set; } #nullable restore #else - public List WithPathGetResponseMember1 { get; set; } + public List WithPathGetResponseMember1 { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithPathGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Contents.Item.WithPathItemRequestBuilder.WithPathGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new WithPathGetResponse(); + var result = new global::GitHub.Repos.Item.Item.Contents.Item.WithPathItemRequestBuilder.WithPathGetResponse(); if("content-file".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.ContentFile = new GitHub.Models.ContentFile(); + result.ContentFile = new global::GitHub.Models.ContentFile(); } else if("content-submodule".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.ContentSubmodule = new GitHub.Models.ContentSubmodule(); + result.ContentSubmodule = new global::GitHub.Models.ContentSubmodule(); } else if("content-symlink".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.ContentSymlink = new GitHub.Models.ContentSymlink(); + result.ContentSymlink = new global::GitHub.Models.ContentSymlink(); } - else if(parseNode.GetCollectionOfObjectValues(GitHub.Models.WithPathGetResponseMember1.CreateFromDiscriminatorValue)?.ToList() is List withPathGetResponseMember1Value) + else if(parseNode.GetCollectionOfObjectValues(global::GitHub.Models.WithPathGetResponseMember1.CreateFromDiscriminatorValue)?.AsList() is List withPathGetResponseMember1Value) { result.WithPathGetResponseMember1 = withPathGetResponseMember1Value; } @@ -282,26 +285,27 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(ContentFile != null) { - writer.WriteObjectValue(null, ContentFile); + writer.WriteObjectValue(null, ContentFile); } else if(ContentSubmodule != null) { - writer.WriteObjectValue(null, ContentSubmodule); + writer.WriteObjectValue(null, ContentSubmodule); } else if(ContentSymlink != null) { - writer.WriteObjectValue(null, ContentSymlink); + writer.WriteObjectValue(null, ContentSymlink); } else if(WithPathGetResponseMember1 != null) { - writer.WriteCollectionOfObjectValues(null, WithPathGetResponseMember1); + writer.WriteCollectionOfObjectValues(null, WithPathGetResponseMember1); } } } /// /// Gets the contents of a file or directory in a repository. Specify the file path or directory with the `path` parameter. If you omit the `path` parameter, you will receive the contents of the repository's root directory.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw file contents for files and symlinks.- **`application/vnd.github.html+json`**: Returns the file contents in HTML. Markup languages are rendered to HTML using GitHub's open-source [Markup library](https://github.com/github/markup).- **`application/vnd.github.object+json`**: Returns the contents in a consistent object format regardless of the content type. For example, instead of an array of objects for a directory, the response will be an object with an `entries` attribute containing the array of objects.If the content is a directory, the response will be an array of objects, one object for each item in the directory. When listing the contents of a directory, submodules have their "type" specified as "file". Logically, the value _should_ be "submodule". This behavior exists [for backwards compatibility purposes](https://git.io/v1YCW). In the next major version of the API, the type will be returned as "submodule".If the content is a symlink and the symlink's target is a normal file in the repository, then the API responds with the content of the file. Otherwise, the API responds with an object describing the symlink itself.If the content is a submodule, the `submodule_git_url` field identifies the location of the submodule repository, and the `sha` identifies a specific commit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out the submodule at that specific commit. If the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links["git"]`) and the github.com URLs (`html_url` and `_links["html"]`) will have null values.**Notes**:- To get a repository's contents recursively, you can [recursively get the tree](https://docs.github.com/enterprise-cloud@latest//rest/git/trees#get-a-tree).- This API has an upper limit of 1,000 files for a directory. If you need to retrievemore files, use the [Git Trees API](https://docs.github.com/enterprise-cloud@latest//rest/git/trees#get-a-tree).- Download URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download.- If the requested file's size is: - 1 MB or smaller: All features of this endpoint are supported. - Between 1-100 MB: Only the `raw` or `object` custom media types are supported. Both will work as normal, except that when using the `object` media type, the `content` field will be an emptystring and the `encoding` field will be `"none"`. To get the contents of these larger files, use the `raw` media type. - Greater than 100 MB: This endpoint is not supported. /// - public class WithPathItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithPathItemRequestBuilderGetQueryParameters { /// The name of the commit/branch/tag. Default: the repository’s default branch. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Repos/Item/Item/Contents/Item/WithPathPutRequestBody.cs b/src/GitHub/Repos/Item/Item/Contents/Item/WithPathPutRequestBody.cs index 6e58aed1..ae8324c1 100644 --- a/src/GitHub/Repos/Item/Item/Contents/Item/WithPathPutRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Contents/Item/WithPathPutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Contents.Item { +namespace GitHub.Repos.Item.Item.Contents.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithPathPutRequestBody : IAdditionalDataHolder, IParsable + public partial class WithPathPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,10 +16,10 @@ public class WithPathPutRequestBody : IAdditionalDataHolder, IParsable /// The author of the file. Default: The `committer` or the authenticated user if you omit `committer`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithPathPutRequestBody_author? Author { get; set; } + public global::GitHub.Repos.Item.Item.Contents.Item.WithPathPutRequestBody_author? Author { get; set; } #nullable restore #else - public WithPathPutRequestBody_author Author { get; set; } + public global::GitHub.Repos.Item.Item.Contents.Item.WithPathPutRequestBody_author Author { get; set; } #endif /// The branch name. Default: the repository’s default branch. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -30,10 +32,10 @@ public class WithPathPutRequestBody : IAdditionalDataHolder, IParsable /// The person that committed the file. Default: the authenticated user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithPathPutRequestBody_committer? Committer { get; set; } + public global::GitHub.Repos.Item.Item.Contents.Item.WithPathPutRequestBody_committer? Committer { get; set; } #nullable restore #else - public WithPathPutRequestBody_committer Committer { get; set; } + public global::GitHub.Repos.Item.Item.Contents.Item.WithPathPutRequestBody_committer Committer { get; set; } #endif /// The new file content, using Base64 encoding. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -60,7 +62,7 @@ public class WithPathPutRequestBody : IAdditionalDataHolder, IParsable public string Sha { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithPathPutRequestBody() { @@ -69,12 +71,12 @@ public WithPathPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithPathPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Contents.Item.WithPathPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithPathPutRequestBody(); + return new global::GitHub.Repos.Item.Item.Contents.Item.WithPathPutRequestBody(); } /// /// The deserialization information for the current model @@ -84,12 +86,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author", n => { Author = n.GetObjectValue(WithPathPutRequestBody_author.CreateFromDiscriminatorValue); } }, - {"branch", n => { Branch = n.GetStringValue(); } }, - {"committer", n => { Committer = n.GetObjectValue(WithPathPutRequestBody_committer.CreateFromDiscriminatorValue); } }, - {"content", n => { Content = n.GetStringValue(); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, + { "author", n => { Author = n.GetObjectValue(global::GitHub.Repos.Item.Item.Contents.Item.WithPathPutRequestBody_author.CreateFromDiscriminatorValue); } }, + { "branch", n => { Branch = n.GetStringValue(); } }, + { "committer", n => { Committer = n.GetObjectValue(global::GitHub.Repos.Item.Item.Contents.Item.WithPathPutRequestBody_committer.CreateFromDiscriminatorValue); } }, + { "content", n => { Content = n.GetStringValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, }; } /// @@ -99,9 +101,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("author", Author); + writer.WriteObjectValue("author", Author); writer.WriteStringValue("branch", Branch); - writer.WriteObjectValue("committer", Committer); + writer.WriteObjectValue("committer", Committer); writer.WriteStringValue("content", Content); writer.WriteStringValue("message", Message); writer.WriteStringValue("sha", Sha); diff --git a/src/GitHub/Repos/Item/Item/Contents/Item/WithPathPutRequestBody_author.cs b/src/GitHub/Repos/Item/Item/Contents/Item/WithPathPutRequestBody_author.cs index 014803e8..542b9eae 100644 --- a/src/GitHub/Repos/Item/Item/Contents/Item/WithPathPutRequestBody_author.cs +++ b/src/GitHub/Repos/Item/Item/Contents/Item/WithPathPutRequestBody_author.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Contents.Item { +namespace GitHub.Repos.Item.Item.Contents.Item +{ /// /// The author of the file. Default: The `committer` or the authenticated user if you omit `committer`. /// - public class WithPathPutRequestBody_author : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithPathPutRequestBody_author : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -37,7 +39,7 @@ public class WithPathPutRequestBody_author : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithPathPutRequestBody_author() { @@ -46,12 +48,12 @@ public WithPathPutRequestBody_author() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithPathPutRequestBody_author CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Contents.Item.WithPathPutRequestBody_author CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithPathPutRequestBody_author(); + return new global::GitHub.Repos.Item.Item.Contents.Item.WithPathPutRequestBody_author(); } /// /// The deserialization information for the current model @@ -61,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"date", n => { Date = n.GetStringValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "date", n => { Date = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Contents/Item/WithPathPutRequestBody_committer.cs b/src/GitHub/Repos/Item/Item/Contents/Item/WithPathPutRequestBody_committer.cs index cc5b5969..5861003a 100644 --- a/src/GitHub/Repos/Item/Item/Contents/Item/WithPathPutRequestBody_committer.cs +++ b/src/GitHub/Repos/Item/Item/Contents/Item/WithPathPutRequestBody_committer.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Contents.Item { +namespace GitHub.Repos.Item.Item.Contents.Item +{ /// /// The person that committed the file. Default: the authenticated user. /// - public class WithPathPutRequestBody_committer : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithPathPutRequestBody_committer : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -37,7 +39,7 @@ public class WithPathPutRequestBody_committer : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithPathPutRequestBody_committer() { @@ -46,12 +48,12 @@ public WithPathPutRequestBody_committer() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithPathPutRequestBody_committer CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Contents.Item.WithPathPutRequestBody_committer CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithPathPutRequestBody_committer(); + return new global::GitHub.Repos.Item.Item.Contents.Item.WithPathPutRequestBody_committer(); } /// /// The deserialization information for the current model @@ -61,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"date", n => { Date = n.GetStringValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "date", n => { Date = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Contributors/ContributorsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Contributors/ContributorsRequestBuilder.cs index f76a90f7..122a6eb8 100644 --- a/src/GitHub/Repos/Item/Item/Contributors/ContributorsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Contributors/ContributorsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Contributors { +namespace GitHub.Repos.Item.Item.Contributors +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\contributors /// - public class ContributorsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ContributorsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ContributorsRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,28 +36,28 @@ public ContributorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Lists contributors to the specified repository and sorts them by the number of commits per contributor in descending order. This endpoint may return information that is a few hours old because the GitHub REST API caches contributor data to improve performance.GitHub identifies contributors by author email address. This endpoint groups contribution counts by GitHub user, which includes all associated email addresses. To improve performance, only the first 500 author email addresses in the repository link to GitHub users. The rest will appear as anonymous contributors without associated GitHub user information. /// API method documentation /// - /// A List<Contributor> + /// A List<global::GitHub.Models.Contributor> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Contributor.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Contributor.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists contributors to the specified repository and sorts them by the number of commits per contributor in descending order. This endpoint may return information that is a few hours old because the GitHub REST API caches contributor data to improve performance.GitHub identifies contributors by author email address. This endpoint groups contribution counts by GitHub user, which includes all associated email addresses. To improve performance, only the first 500 author email addresses in the repository link to GitHub users. The rest will appear as anonymous contributors without associated GitHub user information. @@ -64,11 +66,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -79,16 +81,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ContributorsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Contributors.ContributorsRequestBuilder WithUrl(string rawUrl) { - return new ContributorsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Contributors.ContributorsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists contributors to the specified repository and sorts them by the number of commits per contributor in descending order. This endpoint may return information that is a few hours old because the GitHub REST API caches contributor data to improve performance.GitHub identifies contributors by author email address. This endpoint groups contribution counts by GitHub user, which includes all associated email addresses. To improve performance, only the first 500 author email addresses in the repository link to GitHub users. The rest will appear as anonymous contributors without associated GitHub user information. /// - public class ContributorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ContributorsRequestBuilderGetQueryParameters { /// Set to `1` or `true` to include anonymous contributors in results. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Repos/Item/Item/Dependabot/Alerts/AlertsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Dependabot/Alerts/AlertsRequestBuilder.cs index 60b521a9..08135f23 100644 --- a/src/GitHub/Repos/Item/Item/Dependabot/Alerts/AlertsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Dependabot/Alerts/AlertsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Dependabot.Alerts.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Dependabot.Alerts { +namespace GitHub.Repos.Item.Item.Dependabot.Alerts +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependabot\alerts /// - public class AlertsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AlertsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.dependabot.alerts.item collection /// The number that identifies a Dependabot alert in its repository.You can find this at the end of the URL for a Dependabot alert within GitHub,or in `number` fields in the response from the`GET /repos/{owner}/{repo}/dependabot/alerts` operation. - /// A - public WithAlert_numberItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Dependabot.Alerts.Item.WithAlert_numberItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("alert_number", position); - return new WithAlert_numberItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Dependabot.Alerts.Item.WithAlert_numberItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public AlertsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,32 +49,32 @@ public AlertsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. /// API method documentation /// - /// A List<DependabotAlert> + /// A List<global::GitHub.Models.DependabotAlert> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, DependabotAlert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.DependabotAlert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. @@ -81,11 +83,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -96,16 +98,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AlertsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Dependabot.Alerts.AlertsRequestBuilder WithUrl(string rawUrl) { - return new AlertsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Dependabot.Alerts.AlertsRequestBuilder(rawUrl, RequestAdapter); } /// /// OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. /// - public class AlertsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AlertsRequestBuilderGetQueryParameters { /// A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,7 +132,7 @@ public class AlertsRequestBuilderGetQueryParameters #endif /// The direction to sort the results by. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Repos.Item.Item.Dependabot.Alerts.GetDirectionQueryParameterType? Direction { get; set; } /// A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned.Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -176,7 +179,7 @@ public class AlertsRequestBuilderGetQueryParameters public int? PerPage { get; set; } /// The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. [QueryParameter("scope")] - public GetScopeQueryParameterType? Scope { get; set; } + public global::GitHub.Repos.Item.Item.Dependabot.Alerts.GetScopeQueryParameterType? Scope { get; set; } /// A comma-separated list of severities. If specified, only alerts with these severities will be returned.Can be: `low`, `medium`, `high`, `critical` #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -189,7 +192,7 @@ public class AlertsRequestBuilderGetQueryParameters #endif /// The property by which to sort the results.`created` means when the alert was created.`updated` means when the alert's state last changed. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Repos.Item.Item.Dependabot.Alerts.GetSortQueryParameterType? Sort { get; set; } /// A comma-separated list of states. If specified, only alerts with these states will be returned.Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/GitHub/Repos/Item/Item/Dependabot/Alerts/GetDirectionQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Dependabot/Alerts/GetDirectionQueryParameterType.cs index cac7053d..81eab93a 100644 --- a/src/GitHub/Repos/Item/Item/Dependabot/Alerts/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Dependabot/Alerts/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Dependabot.Alerts { +namespace GitHub.Repos.Item.Item.Dependabot.Alerts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Dependabot/Alerts/GetScopeQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Dependabot/Alerts/GetScopeQueryParameterType.cs index d2811f42..8189abae 100644 --- a/src/GitHub/Repos/Item/Item/Dependabot/Alerts/GetScopeQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Dependabot/Alerts/GetScopeQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Dependabot.Alerts { +namespace GitHub.Repos.Item.Item.Dependabot.Alerts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetScopeQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Dependabot/Alerts/GetSortQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Dependabot/Alerts/GetSortQueryParameterType.cs index 87299ad2..4fd12a57 100644 --- a/src/GitHub/Repos/Item/Item/Dependabot/Alerts/GetSortQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Dependabot/Alerts/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Dependabot.Alerts { +namespace GitHub.Repos.Item.Item.Dependabot.Alerts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Dependabot/Alerts/Item/WithAlert_numberItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Dependabot/Alerts/Item/WithAlert_numberItemRequestBuilder.cs index df31d187..fbd0640e 100644 --- a/src/GitHub/Repos/Item/Item/Dependabot/Alerts/Item/WithAlert_numberItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Dependabot/Alerts/Item/WithAlert_numberItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Dependabot.Alerts.Item { +namespace GitHub.Repos.Item.Item.Dependabot.Alerts.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependabot\alerts\{alert_number} /// - public class WithAlert_numberItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithAlert_numberItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithAlert_numberItemRequestBuilder(Dictionary pathParamet { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,61 +36,61 @@ public WithAlert_numberItemRequestBuilder(string rawUrl, IRequestAdapter request /// OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, DependabotAlert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.DependabotAlert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The authenticated user must have access to security alerts for the repository to use this endpoint. For more information, see "[Granting access to security alerts](https://docs.github.com/enterprise-cloud@latest//repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository#granting-access-to-security-alerts)."OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 409 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 409 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithAlert_numberPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Dependabot.Alerts.Item.WithAlert_numberPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithAlert_numberPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Dependabot.Alerts.Item.WithAlert_numberPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"409", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, DependabotAlert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.DependabotAlert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. @@ -117,11 +119,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithAlert_numberPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Dependabot.Alerts.Item.WithAlert_numberPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithAlert_numberPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Dependabot.Alerts.Item.WithAlert_numberPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -134,11 +136,11 @@ public RequestInformation ToPatchRequestInformation(WithAlert_numberPatchRequest /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithAlert_numberItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Dependabot.Alerts.Item.WithAlert_numberItemRequestBuilder WithUrl(string rawUrl) { - return new WithAlert_numberItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Dependabot.Alerts.Item.WithAlert_numberItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Dependabot/Alerts/Item/WithAlert_numberPatchRequestBody.cs b/src/GitHub/Repos/Item/Item/Dependabot/Alerts/Item/WithAlert_numberPatchRequestBody.cs index 35610906..00a9d91a 100644 --- a/src/GitHub/Repos/Item/Item/Dependabot/Alerts/Item/WithAlert_numberPatchRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Dependabot/Alerts/Item/WithAlert_numberPatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Dependabot.Alerts.Item { +namespace GitHub.Repos.Item.Item.Dependabot.Alerts.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithAlert_numberPatchRequestBody : IParsable + public partial class WithAlert_numberPatchRequestBody : IParsable #pragma warning restore CS1591 { /// An optional comment associated with dismissing the alert. @@ -18,18 +20,18 @@ public class WithAlert_numberPatchRequestBody : IParsable public string DismissedComment { get; set; } #endif /// **Required when `state` is `dismissed`.** A reason for dismissing the alert. - public WithAlert_numberPatchRequestBody_dismissed_reason? DismissedReason { get; set; } + public global::GitHub.Repos.Item.Item.Dependabot.Alerts.Item.WithAlert_numberPatchRequestBody_dismissed_reason? DismissedReason { get; set; } /// The state of the Dependabot alert.A `dismissed_reason` must be provided when setting the state to `dismissed`. - public WithAlert_numberPatchRequestBody_state? State { get; set; } + public global::GitHub.Repos.Item.Item.Dependabot.Alerts.Item.WithAlert_numberPatchRequestBody_state? State { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithAlert_numberPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Dependabot.Alerts.Item.WithAlert_numberPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithAlert_numberPatchRequestBody(); + return new global::GitHub.Repos.Item.Item.Dependabot.Alerts.Item.WithAlert_numberPatchRequestBody(); } /// /// The deserialization information for the current model @@ -39,9 +41,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"dismissed_comment", n => { DismissedComment = n.GetStringValue(); } }, - {"dismissed_reason", n => { DismissedReason = n.GetEnumValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, + { "dismissed_comment", n => { DismissedComment = n.GetStringValue(); } }, + { "dismissed_reason", n => { DismissedReason = n.GetEnumValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, }; } /// @@ -52,8 +54,8 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("dismissed_comment", DismissedComment); - writer.WriteEnumValue("dismissed_reason", DismissedReason); - writer.WriteEnumValue("state", State); + writer.WriteEnumValue("dismissed_reason", DismissedReason); + writer.WriteEnumValue("state", State); } } } diff --git a/src/GitHub/Repos/Item/Item/Dependabot/Alerts/Item/WithAlert_numberPatchRequestBody_dismissed_reason.cs b/src/GitHub/Repos/Item/Item/Dependabot/Alerts/Item/WithAlert_numberPatchRequestBody_dismissed_reason.cs index 0bfac189..ad1d48fb 100644 --- a/src/GitHub/Repos/Item/Item/Dependabot/Alerts/Item/WithAlert_numberPatchRequestBody_dismissed_reason.cs +++ b/src/GitHub/Repos/Item/Item/Dependabot/Alerts/Item/WithAlert_numberPatchRequestBody_dismissed_reason.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Dependabot.Alerts.Item { +namespace GitHub.Repos.Item.Item.Dependabot.Alerts.Item +{ /// **Required when `state` is `dismissed`.** A reason for dismissing the alert. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithAlert_numberPatchRequestBody_dismissed_reason { [EnumMember(Value = "fix_started")] diff --git a/src/GitHub/Repos/Item/Item/Dependabot/Alerts/Item/WithAlert_numberPatchRequestBody_state.cs b/src/GitHub/Repos/Item/Item/Dependabot/Alerts/Item/WithAlert_numberPatchRequestBody_state.cs index 14c7a31b..9c107b8d 100644 --- a/src/GitHub/Repos/Item/Item/Dependabot/Alerts/Item/WithAlert_numberPatchRequestBody_state.cs +++ b/src/GitHub/Repos/Item/Item/Dependabot/Alerts/Item/WithAlert_numberPatchRequestBody_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Dependabot.Alerts.Item { +namespace GitHub.Repos.Item.Item.Dependabot.Alerts.Item +{ /// The state of the Dependabot alert.A `dismissed_reason` must be provided when setting the state to `dismissed`. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithAlert_numberPatchRequestBody_state { [EnumMember(Value = "dismissed")] diff --git a/src/GitHub/Repos/Item/Item/Dependabot/DependabotRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Dependabot/DependabotRequestBuilder.cs index 39e34c29..08fa9573 100644 --- a/src/GitHub/Repos/Item/Item/Dependabot/DependabotRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Dependabot/DependabotRequestBuilder.cs @@ -1,30 +1,32 @@ // using GitHub.Repos.Item.Item.Dependabot.Alerts; using GitHub.Repos.Item.Item.Dependabot.Secrets; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Repos.Item.Item.Dependabot { +namespace GitHub.Repos.Item.Item.Dependabot +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependabot /// - public class DependabotRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DependabotRequestBuilder : BaseRequestBuilder { /// The alerts property - public AlertsRequestBuilder Alerts + public global::GitHub.Repos.Item.Item.Dependabot.Alerts.AlertsRequestBuilder Alerts { - get => new AlertsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Dependabot.Alerts.AlertsRequestBuilder(PathParameters, RequestAdapter); } /// The secrets property - public SecretsRequestBuilder Secrets + public global::GitHub.Repos.Item.Item.Dependabot.Secrets.SecretsRequestBuilder Secrets { - get => new SecretsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Dependabot.Secrets.SecretsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -32,7 +34,7 @@ public DependabotRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Repos/Item/Item/Dependabot/Secrets/Item/WithSecret_nameItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Dependabot/Secrets/Item/WithSecret_nameItemRequestBuilder.cs index 618bad9d..44879ca0 100644 --- a/src/GitHub/Repos/Item/Item/Dependabot/Secrets/Item/WithSecret_nameItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Dependabot/Secrets/Item/WithSecret_nameItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Dependabot.Secrets.Item { +namespace GitHub.Repos.Item.Item.Dependabot.Secrets.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependabot\secrets\{secret_name} /// - public class WithSecret_nameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithSecret_nameItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithSecret_nameItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,41 +54,41 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, DependabotSecret.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.DependabotSecret.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Creates or updates a repository 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/enterprise-cloud@latest//rest/guides/encrypting-secrets-for-the-rest-api)."OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(WithSecret_namePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Dependabot.Secrets.Item.WithSecret_namePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(WithSecret_namePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Dependabot.Secrets.Item.WithSecret_namePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Deletes a secret in a repository using the secret name.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -133,11 +135,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(WithSecret_namePutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Dependabot.Secrets.Item.WithSecret_namePutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(WithSecret_namePutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Dependabot.Secrets.Item.WithSecret_namePutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -150,11 +152,11 @@ public RequestInformation ToPutRequestInformation(WithSecret_namePutRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithSecret_nameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Dependabot.Secrets.Item.WithSecret_nameItemRequestBuilder WithUrl(string rawUrl) { - return new WithSecret_nameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Dependabot.Secrets.Item.WithSecret_nameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Dependabot/Secrets/Item/WithSecret_namePutRequestBody.cs b/src/GitHub/Repos/Item/Item/Dependabot/Secrets/Item/WithSecret_namePutRequestBody.cs index 0eb4ccfb..26e8e640 100644 --- a/src/GitHub/Repos/Item/Item/Dependabot/Secrets/Item/WithSecret_namePutRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Dependabot/Secrets/Item/WithSecret_namePutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Dependabot.Secrets.Item { +namespace GitHub.Repos.Item.Item.Dependabot.Secrets.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithSecret_namePutRequestBody : IAdditionalDataHolder, IParsable + public partial class WithSecret_namePutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class WithSecret_namePutRequestBody : IAdditionalDataHolder, IParsable public string KeyId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithSecret_namePutRequestBody() { @@ -37,12 +39,12 @@ public WithSecret_namePutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithSecret_namePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Dependabot.Secrets.Item.WithSecret_namePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithSecret_namePutRequestBody(); + return new global::GitHub.Repos.Item.Item.Dependabot.Secrets.Item.WithSecret_namePutRequestBody(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"encrypted_value", n => { EncryptedValue = n.GetStringValue(); } }, - {"key_id", n => { KeyId = n.GetStringValue(); } }, + { "encrypted_value", n => { EncryptedValue = n.GetStringValue(); } }, + { "key_id", n => { KeyId = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Dependabot/Secrets/PublicKey/PublicKeyRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Dependabot/Secrets/PublicKey/PublicKeyRequestBuilder.cs index bd219e56..5ff7d6db 100644 --- a/src/GitHub/Repos/Item/Item/Dependabot/Secrets/PublicKey/PublicKeyRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Dependabot/Secrets/PublicKey/PublicKeyRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Dependabot.Secrets.PublicKey { +namespace GitHub.Repos.Item.Item.Dependabot.Secrets.PublicKey +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependabot\secrets\public-key /// - public class PublicKeyRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PublicKeyRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public PublicKeyRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public PublicKeyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Gets your public key, which you need to encrypt secrets. You need toencrypt a secret before you can create or update secrets. Anyone with read accessto the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint if the repository is private. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, DependabotPublicKey.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.DependabotPublicKey.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets your public key, which you need to encrypt secrets. You need toencrypt a secret before you can create or update secrets. Anyone with read accessto the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint if the repository is private. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PublicKeyRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Dependabot.Secrets.PublicKey.PublicKeyRequestBuilder WithUrl(string rawUrl) { - return new PublicKeyRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Dependabot.Secrets.PublicKey.PublicKeyRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Dependabot/Secrets/SecretsGetResponse.cs b/src/GitHub/Repos/Item/Item/Dependabot/Secrets/SecretsGetResponse.cs index 51f42109..92ad6590 100644 --- a/src/GitHub/Repos/Item/Item/Dependabot/Secrets/SecretsGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Dependabot/Secrets/SecretsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Dependabot.Secrets { +namespace GitHub.Repos.Item.Item.Dependabot.Secrets +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SecretsGetResponse : IAdditionalDataHolder, IParsable + public partial class SecretsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class SecretsGetResponse : IAdditionalDataHolder, IParsable /// The secrets property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Secrets { get; set; } + public List? Secrets { get; set; } #nullable restore #else - public List Secrets { get; set; } + public List Secrets { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretsGetResponse() { @@ -32,12 +34,12 @@ public SecretsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Dependabot.Secrets.SecretsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretsGetResponse(); + return new global::GitHub.Repos.Item.Item.Dependabot.Secrets.SecretsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"secrets", n => { Secrets = n.GetCollectionOfObjectValues(DependabotSecret.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "secrets", n => { Secrets = n.GetCollectionOfObjectValues(global::GitHub.Models.DependabotSecret.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("secrets", Secrets); + writer.WriteCollectionOfObjectValues("secrets", Secrets); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Dependabot/Secrets/SecretsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Dependabot/Secrets/SecretsRequestBuilder.cs index 2d5468f8..dedd3a11 100644 --- a/src/GitHub/Repos/Item/Item/Dependabot/Secrets/SecretsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Dependabot/Secrets/SecretsRequestBuilder.cs @@ -1,39 +1,41 @@ // using GitHub.Repos.Item.Item.Dependabot.Secrets.Item; using GitHub.Repos.Item.Item.Dependabot.Secrets.PublicKey; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Dependabot.Secrets { +namespace GitHub.Repos.Item.Item.Dependabot.Secrets +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependabot\secrets /// - public class SecretsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretsRequestBuilder : BaseRequestBuilder { /// The publicKey property - public PublicKeyRequestBuilder PublicKey + public global::GitHub.Repos.Item.Item.Dependabot.Secrets.PublicKey.PublicKeyRequestBuilder PublicKey { - get => new PublicKeyRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Dependabot.Secrets.PublicKey.PublicKeyRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.repos.item.item.dependabot.secrets.item collection /// The name of the secret. - /// A - public WithSecret_nameItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Dependabot.Secrets.Item.WithSecret_nameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("secret_name", position); - return new WithSecret_nameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Dependabot.Secrets.Item.WithSecret_nameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -41,7 +43,7 @@ public SecretsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,20 +54,20 @@ public SecretsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Lists all secrets available in a repository without revealing their encryptedvalues.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, SecretsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Dependabot.Secrets.SecretsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists all secrets available in a repository without revealing their encryptedvalues.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -74,11 +76,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -89,16 +91,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SecretsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Dependabot.Secrets.SecretsRequestBuilder WithUrl(string rawUrl) { - return new SecretsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Dependabot.Secrets.SecretsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all secrets available in a repository without revealing their encryptedvalues.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// - public class SecretsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/DependencyGraph/Compare/CompareRequestBuilder.cs b/src/GitHub/Repos/Item/Item/DependencyGraph/Compare/CompareRequestBuilder.cs index 7b189313..d5da2988 100644 --- a/src/GitHub/Repos/Item/Item/DependencyGraph/Compare/CompareRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/DependencyGraph/Compare/CompareRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Repos.Item.Item.DependencyGraph.Compare.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Repos.Item.Item.DependencyGraph.Compare { +namespace GitHub.Repos.Item.Item.DependencyGraph.Compare +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependency-graph\compare /// - public class CompareRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CompareRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.dependencyGraph.compare.item collection /// The base and head Git revisions to compare. The Git revisions will be resolved to commit SHAs. Named revisions will be resolved to their corresponding HEAD commits, and an appropriate merge base will be determined. This parameter expects the format `{base}...{head}`. - /// A - public WithBaseheadItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.DependencyGraph.Compare.Item.WithBaseheadItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("basehead", position); - return new WithBaseheadItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.DependencyGraph.Compare.Item.WithBaseheadItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public CompareRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Repos/Item/Item/DependencyGraph/Compare/Item/WithBaseheadItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/DependencyGraph/Compare/Item/WithBaseheadItemRequestBuilder.cs index a732480c..28cfe886 100644 --- a/src/GitHub/Repos/Item/Item/DependencyGraph/Compare/Item/WithBaseheadItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/DependencyGraph/Compare/Item/WithBaseheadItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.DependencyGraph.Compare.Item { +namespace GitHub.Repos.Item.Item.DependencyGraph.Compare.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependency-graph\compare\{basehead} /// - public class WithBaseheadItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithBaseheadItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithBaseheadItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,28 +36,28 @@ public WithBaseheadItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Gets the diff of the dependency changes between two commits of a repository, based on the changes to the dependency manifests made in those commits. /// API method documentation /// - /// A List<DependencyGraphDiff> + /// A List<global::GitHub.Models.DependencyGraphDiff> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, DependencyGraphDiff.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.DependencyGraphDiff.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Gets the diff of the dependency changes between two commits of a repository, based on the changes to the dependency manifests made in those commits. @@ -64,11 +66,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -79,16 +81,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithBaseheadItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.DependencyGraph.Compare.Item.WithBaseheadItemRequestBuilder WithUrl(string rawUrl) { - return new WithBaseheadItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.DependencyGraph.Compare.Item.WithBaseheadItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Gets the diff of the dependency changes between two commits of a repository, based on the changes to the dependency manifests made in those commits. /// - public class WithBaseheadItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithBaseheadItemRequestBuilderGetQueryParameters { /// The full path, relative to the repository root, of the dependency manifest file. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Repos/Item/Item/DependencyGraph/DependencyGraphRequestBuilder.cs b/src/GitHub/Repos/Item/Item/DependencyGraph/DependencyGraphRequestBuilder.cs index ae5bc2f2..86247cfb 100644 --- a/src/GitHub/Repos/Item/Item/DependencyGraph/DependencyGraphRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/DependencyGraph/DependencyGraphRequestBuilder.cs @@ -2,35 +2,37 @@ using GitHub.Repos.Item.Item.DependencyGraph.Compare; using GitHub.Repos.Item.Item.DependencyGraph.Sbom; using GitHub.Repos.Item.Item.DependencyGraph.Snapshots; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Repos.Item.Item.DependencyGraph { +namespace GitHub.Repos.Item.Item.DependencyGraph +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependency-graph /// - public class DependencyGraphRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DependencyGraphRequestBuilder : BaseRequestBuilder { /// The compare property - public CompareRequestBuilder Compare + public global::GitHub.Repos.Item.Item.DependencyGraph.Compare.CompareRequestBuilder Compare { - get => new CompareRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.DependencyGraph.Compare.CompareRequestBuilder(PathParameters, RequestAdapter); } /// The sbom property - public SbomRequestBuilder Sbom + public global::GitHub.Repos.Item.Item.DependencyGraph.Sbom.SbomRequestBuilder Sbom { - get => new SbomRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.DependencyGraph.Sbom.SbomRequestBuilder(PathParameters, RequestAdapter); } /// The snapshots property - public SnapshotsRequestBuilder Snapshots + public global::GitHub.Repos.Item.Item.DependencyGraph.Snapshots.SnapshotsRequestBuilder Snapshots { - get => new SnapshotsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.DependencyGraph.Snapshots.SnapshotsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -38,7 +40,7 @@ public DependencyGraphRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Repos/Item/Item/DependencyGraph/Sbom/SbomRequestBuilder.cs b/src/GitHub/Repos/Item/Item/DependencyGraph/Sbom/SbomRequestBuilder.cs index 63059f7f..72c4af82 100644 --- a/src/GitHub/Repos/Item/Item/DependencyGraph/Sbom/SbomRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/DependencyGraph/Sbom/SbomRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.DependencyGraph.Sbom { +namespace GitHub.Repos.Item.Item.DependencyGraph.Sbom +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependency-graph\sbom /// - public class SbomRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SbomRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public SbomRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public SbomRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// Exports the software bill of materials (SBOM) for a repository in SPDX JSON format. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, DependencyGraphSpdxSbom.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.DependencyGraphSpdxSbom.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Exports the software bill of materials (SBOM) for a repository in SPDX JSON format. @@ -78,11 +80,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SbomRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.DependencyGraph.Sbom.SbomRequestBuilder WithUrl(string rawUrl) { - return new SbomRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.DependencyGraph.Sbom.SbomRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/DependencyGraph/Snapshots/SnapshotsPostResponse.cs b/src/GitHub/Repos/Item/Item/DependencyGraph/Snapshots/SnapshotsPostResponse.cs index 477bcb10..c74eea5f 100644 --- a/src/GitHub/Repos/Item/Item/DependencyGraph/Snapshots/SnapshotsPostResponse.cs +++ b/src/GitHub/Repos/Item/Item/DependencyGraph/Snapshots/SnapshotsPostResponse.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.DependencyGraph.Snapshots { +namespace GitHub.Repos.Item.Item.DependencyGraph.Snapshots +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SnapshotsPostResponse : IAdditionalDataHolder, IParsable + public partial class SnapshotsPostResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -38,7 +40,7 @@ public class SnapshotsPostResponse : IAdditionalDataHolder, IParsable public string Result { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SnapshotsPostResponse() { @@ -47,12 +49,12 @@ public SnapshotsPostResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SnapshotsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.DependencyGraph.Snapshots.SnapshotsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SnapshotsPostResponse(); + return new global::GitHub.Repos.Item.Item.DependencyGraph.Snapshots.SnapshotsPostResponse(); } /// /// The deserialization information for the current model @@ -62,10 +64,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetStringValue(); } }, - {"id", n => { Id = n.GetIntValue(); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"result", n => { Result = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "result", n => { Result = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/DependencyGraph/Snapshots/SnapshotsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/DependencyGraph/Snapshots/SnapshotsRequestBuilder.cs index 6c9711f9..509d0947 100644 --- a/src/GitHub/Repos/Item/Item/DependencyGraph/Snapshots/SnapshotsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/DependencyGraph/Snapshots/SnapshotsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.DependencyGraph.Snapshots { +namespace GitHub.Repos.Item.Item.DependencyGraph.Snapshots +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependency-graph\snapshots /// - public class SnapshotsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SnapshotsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public SnapshotsRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,22 +36,22 @@ public SnapshotsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Create a new snapshot of a repository's dependencies.The authenticated user must have access to the repository.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Create a new snapshot of a repository's dependencies. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Snapshot body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Models.Snapshot body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Snapshot body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Models.Snapshot body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, SnapshotsPostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.DependencyGraph.Snapshots.SnapshotsPostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Create a new snapshot of a repository's dependencies.The authenticated user must have access to the repository.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -59,11 +61,11 @@ public async Task PostAsync(Snapshot body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Snapshot body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Models.Snapshot body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Snapshot body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Models.Snapshot body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -76,11 +78,11 @@ public RequestInformation ToPostRequestInformation(Snapshot body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SnapshotsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.DependencyGraph.Snapshots.SnapshotsRequestBuilder WithUrl(string rawUrl) { - return new SnapshotsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.DependencyGraph.Snapshots.SnapshotsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Deployments/DeploymentsPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Deployments/DeploymentsPostRequestBody.cs index 162a8cb0..0d9d93b7 100644 --- a/src/GitHub/Repos/Item/Item/Deployments/DeploymentsPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Deployments/DeploymentsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Deployments { +namespace GitHub.Repos.Item.Item.Deployments +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class DeploymentsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DeploymentsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -66,7 +68,7 @@ public class DeploymentsPostRequestBody : IAdditionalDataHolder, IParsable /// Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false` public bool? TransientEnvironment { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DeploymentsPostRequestBody() { @@ -77,12 +79,12 @@ public DeploymentsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DeploymentsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Deployments.DeploymentsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeploymentsPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Deployments.DeploymentsPostRequestBody(); } /// /// The deserialization information for the current model @@ -92,15 +94,15 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"auto_merge", n => { AutoMerge = n.GetBoolValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"environment", n => { Environment = n.GetStringValue(); } }, - {"payload", n => { Payload = n.GetStringValue(); } }, - {"production_environment", n => { ProductionEnvironment = n.GetBoolValue(); } }, - {"ref", n => { Ref = n.GetStringValue(); } }, - {"required_contexts", n => { RequiredContexts = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"task", n => { Task = n.GetStringValue(); } }, - {"transient_environment", n => { TransientEnvironment = n.GetBoolValue(); } }, + { "auto_merge", n => { AutoMerge = n.GetBoolValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "environment", n => { Environment = n.GetStringValue(); } }, + { "payload", n => { Payload = n.GetStringValue(); } }, + { "production_environment", n => { ProductionEnvironment = n.GetBoolValue(); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, + { "required_contexts", n => { RequiredContexts = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "task", n => { Task = n.GetStringValue(); } }, + { "transient_environment", n => { TransientEnvironment = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Deployments/DeploymentsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Deployments/DeploymentsRequestBuilder.cs index 66a4dfcd..575f6976 100644 --- a/src/GitHub/Repos/Item/Item/Deployments/DeploymentsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Deployments/DeploymentsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Deployments.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Deployments { +namespace GitHub.Repos.Item.Item.Deployments +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\deployments /// - public class DeploymentsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DeploymentsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.deployments.item collection /// deployment_id parameter - /// A - public WithDeployment_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Deployments.Item.WithDeployment_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("deployment_id", position); - return new WithDeployment_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Deployments.Item.WithDeployment_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public DeploymentsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,47 +49,47 @@ public DeploymentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Simple filtering of deployments is available via query parameters: /// API method documentation /// - /// A List<Deployment> + /// A List<global::GitHub.Models.Deployment> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Deployment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Deployment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Deployments offer a few configurable parameters with certain defaults.The `ref` parameter can be any named branch, tag, or SHA. At GitHub Enterprise Cloud we often deploy branches and verify thembefore we merge a pull request.The `environment` parameter allows deployments to be issued to different runtime environments. Teams often havemultiple environments for verifying their applications, such as `production`, `staging`, and `qa`. This parametermakes it easier to track which environments have requested deployments. The default environment is `production`.The `auto_merge` parameter is used to ensure that the requested ref is not behind the repository's default branch. Ifthe ref _is_ behind the default branch for the repository, we will attempt to merge it for you. If the merge succeeds,the API will return a successful merge commit. If merge conflicts prevent the merge from succeeding, the API willreturn a failure response.By default, [commit statuses](https://docs.github.com/enterprise-cloud@latest//rest/commits/statuses) for every submitted context must be in a `success`state. The `required_contexts` parameter allows you to specify a subset of contexts that must be `success`, or tospecify contexts that have not yet been submitted. You are not required to use commit statuses to deploy. If you donot require any contexts or create any commit statuses, the deployment will always succeed.The `payload` parameter is available for any extra information that a deployment system might need. It is a JSON textfield that will be passed on when a deployment event is dispatched.The `task` parameter is used by the deployment system to allow different execution paths. In the web world this mightbe `deploy:migrations` to run schema changes on the system. In the compiled world this could be a flag to compile anapplication with debugging enabled.Merged branch response:You will see this response when GitHub automatically merges the base branch into the topic branch instead of creatinga deployment. This auto-merge happens when:* Auto-merge option is enabled in the repository* Topic branch does not include the latest changes on the base branch, which is `master` in the response example* There are no merge conflictsIf there are no new commits in the base branch, a new request to create a deployment should give a successfulresponse.Merge conflict response:This error happens when the `auto_merge` option is enabled and when the default branch (in this case `master`), can'tbe merged into the branch that's being deployed (in this case `topic-branch`), due to merge conflicts.Failed commit status checks:This error happens when the `required_contexts` parameter indicates that one or more contexts need to have a `success`status for the commit to be deployed, but one or more of the required contexts do not have a state of `success`.OAuth app tokens and personal access tokens (classic) need the `repo` or `repo_deployment` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(DeploymentsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Deployments.DeploymentsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(DeploymentsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Deployments.DeploymentsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Deployment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Deployment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Simple filtering of deployments is available via query parameters: @@ -96,11 +98,11 @@ public async Task PostAsync(DeploymentsPostRequestBody body, Action< /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -116,11 +118,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(DeploymentsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Deployments.DeploymentsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeploymentsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Deployments.DeploymentsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -133,16 +135,17 @@ public RequestInformation ToPostRequestInformation(DeploymentsPostRequestBody bo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DeploymentsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Deployments.DeploymentsRequestBuilder WithUrl(string rawUrl) { - return new DeploymentsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Deployments.DeploymentsRequestBuilder(rawUrl, RequestAdapter); } /// /// Simple filtering of deployments is available via query parameters: /// - public class DeploymentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DeploymentsRequestBuilderGetQueryParameters { /// The name of the environment that was deployed to (e.g., `staging` or `production`). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Repos/Item/Item/Deployments/Item/Statuses/Item/WithStatus_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Deployments/Item/Statuses/Item/WithStatus_ItemRequestBuilder.cs index 8d9b7cc1..ef0c4d9b 100644 --- a/src/GitHub/Repos/Item/Item/Deployments/Item/Statuses/Item/WithStatus_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Deployments/Item/Statuses/Item/WithStatus_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Deployments.Item.Statuses.Item { +namespace GitHub.Repos.Item.Item.Deployments.Item.Statuses.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\deployments\{deployment_id}\statuses\{status_id} /// - public class WithStatus_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithStatus_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithStatus_ItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,25 +36,25 @@ public WithStatus_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Users with pull access can view a deployment status for a deployment: /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, DeploymentStatus.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.DeploymentStatus.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Users with pull access can view a deployment status for a deployment: @@ -76,11 +78,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithStatus_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Deployments.Item.Statuses.Item.WithStatus_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithStatus_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Deployments.Item.Statuses.Item.WithStatus_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Deployments/Item/Statuses/StatusesPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Deployments/Item/Statuses/StatusesPostRequestBody.cs index 00b5dbb5..5333790f 100644 --- a/src/GitHub/Repos/Item/Item/Deployments/Item/Statuses/StatusesPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Deployments/Item/Statuses/StatusesPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Deployments.Item.Statuses { +namespace GitHub.Repos.Item.Item.Deployments.Item.Statuses +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class StatusesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class StatusesPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -46,7 +48,7 @@ public class StatusesPostRequestBody : IAdditionalDataHolder, IParsable public string LogUrl { get; set; } #endif /// The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub. - public StatusesPostRequestBody_state? State { get; set; } + public global::GitHub.Repos.Item.Item.Deployments.Item.Statuses.StatusesPostRequestBody_state? State { get; set; } /// The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment.> [!NOTE]> It's recommended to use the `log_url` parameter, which replaces `target_url`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -56,7 +58,7 @@ public class StatusesPostRequestBody : IAdditionalDataHolder, IParsable public string TargetUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public StatusesPostRequestBody() { @@ -65,12 +67,12 @@ public StatusesPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static StatusesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Deployments.Item.Statuses.StatusesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new StatusesPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Deployments.Item.Statuses.StatusesPostRequestBody(); } /// /// The deserialization information for the current model @@ -80,13 +82,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"auto_inactive", n => { AutoInactive = n.GetBoolValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"environment", n => { Environment = n.GetStringValue(); } }, - {"environment_url", n => { EnvironmentUrl = n.GetStringValue(); } }, - {"log_url", n => { LogUrl = n.GetStringValue(); } }, - {"state", n => { State = n.GetEnumValue(); } }, - {"target_url", n => { TargetUrl = n.GetStringValue(); } }, + { "auto_inactive", n => { AutoInactive = n.GetBoolValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "environment", n => { Environment = n.GetStringValue(); } }, + { "environment_url", n => { EnvironmentUrl = n.GetStringValue(); } }, + { "log_url", n => { LogUrl = n.GetStringValue(); } }, + { "state", n => { State = n.GetEnumValue(); } }, + { "target_url", n => { TargetUrl = n.GetStringValue(); } }, }; } /// @@ -101,7 +103,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("environment", Environment); writer.WriteStringValue("environment_url", EnvironmentUrl); writer.WriteStringValue("log_url", LogUrl); - writer.WriteEnumValue("state", State); + writer.WriteEnumValue("state", State); writer.WriteStringValue("target_url", TargetUrl); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Deployments/Item/Statuses/StatusesPostRequestBody_state.cs b/src/GitHub/Repos/Item/Item/Deployments/Item/Statuses/StatusesPostRequestBody_state.cs index 80bb8268..d98b7c89 100644 --- a/src/GitHub/Repos/Item/Item/Deployments/Item/Statuses/StatusesPostRequestBody_state.cs +++ b/src/GitHub/Repos/Item/Item/Deployments/Item/Statuses/StatusesPostRequestBody_state.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Deployments.Item.Statuses { +namespace GitHub.Repos.Item.Item.Deployments.Item.Statuses +{ /// The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum StatusesPostRequestBody_state { [EnumMember(Value = "error")] diff --git a/src/GitHub/Repos/Item/Item/Deployments/Item/Statuses/StatusesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Deployments/Item/Statuses/StatusesRequestBuilder.cs index e16cbe62..41616143 100644 --- a/src/GitHub/Repos/Item/Item/Deployments/Item/Statuses/StatusesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Deployments/Item/Statuses/StatusesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Deployments.Item.Statuses.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Deployments.Item.Statuses { +namespace GitHub.Repos.Item.Item.Deployments.Item.Statuses +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\deployments\{deployment_id}\statuses /// - public class StatusesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class StatusesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.deployments.item.statuses.item collection /// Unique identifier of the item - /// A - public WithStatus_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Deployments.Item.Statuses.Item.WithStatus_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("status_id", position); - return new WithStatus_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Deployments.Item.Statuses.Item.WithStatus_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public StatusesRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,52 +49,52 @@ public StatusesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Users with pull access can view deployment statuses for a deployment: /// API method documentation /// - /// A List<DeploymentStatus> + /// A List<global::GitHub.Models.DeploymentStatus> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, DeploymentStatus.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.DeploymentStatus.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Users with `push` access can create deployment statuses for a given deployment.OAuth app tokens and personal access tokens (classic) need the `repo_deployment` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(StatusesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Deployments.Item.Statuses.StatusesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(StatusesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Deployments.Item.Statuses.StatusesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, DeploymentStatus.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.DeploymentStatus.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Users with pull access can view deployment statuses for a deployment: @@ -101,11 +103,11 @@ public async Task PostAsync(StatusesPostRequestBody body, Acti /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -121,11 +123,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(StatusesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Deployments.Item.Statuses.StatusesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(StatusesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Deployments.Item.Statuses.StatusesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -138,16 +140,17 @@ public RequestInformation ToPostRequestInformation(StatusesPostRequestBody body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public StatusesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Deployments.Item.Statuses.StatusesRequestBuilder WithUrl(string rawUrl) { - return new StatusesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Deployments.Item.Statuses.StatusesRequestBuilder(rawUrl, RequestAdapter); } /// /// Users with pull access can view deployment statuses for a deployment: /// - public class StatusesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class StatusesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Deployments/Item/WithDeployment_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Deployments/Item/WithDeployment_ItemRequestBuilder.cs index ff8a8309..5c0f7199 100644 --- a/src/GitHub/Repos/Item/Item/Deployments/Item/WithDeployment_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Deployments/Item/WithDeployment_ItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Deployments.Item.Statuses; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Deployments.Item { +namespace GitHub.Repos.Item.Item.Deployments.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\deployments\{deployment_id} /// - public class WithDeployment_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithDeployment_ItemRequestBuilder : BaseRequestBuilder { /// The statuses property - public StatusesRequestBuilder Statuses + public global::GitHub.Repos.Item.Item.Deployments.Item.Statuses.StatusesRequestBuilder Statuses { - get => new StatusesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Deployments.Item.Statuses.StatusesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithDeployment_ItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -42,8 +44,8 @@ public WithDeployment_ItemRequestBuilder(string rawUrl, IRequestAdapter requestA /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -56,8 +58,8 @@ public async Task DeleteAsync(Action> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationErrorSimple.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -65,25 +67,25 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Deployment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Deployment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// If the repository only has one deployment, you can delete the deployment regardless of its status. If the repository has more than one deployment, you can only delete inactive deployments. This ensures that repositories with multiple deployments will always have an active deployment.To set a deployment as inactive, you must:* Create a new deployment that is active so that the system has a record of the current state, then delete the previously active deployment.* Mark the active deployment as inactive by adding any non-successful deployment status.For more information, see "[Create a deployment](https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments/#create-a-deployment)" and "[Create a deployment status](https://docs.github.com/enterprise-cloud@latest//rest/deployments/statuses#create-a-deployment-status)."OAuth app tokens and personal access tokens (classic) need the `repo` or `repo_deployment` scope to use this endpoint. @@ -123,11 +125,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithDeployment_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Deployments.Item.WithDeployment_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithDeployment_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Deployments.Item.WithDeployment_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Dispatches/DispatchesPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Dispatches/DispatchesPostRequestBody.cs index 0ed8bb12..c1c5f689 100644 --- a/src/GitHub/Repos/Item/Item/Dispatches/DispatchesPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Dispatches/DispatchesPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Dispatches { +namespace GitHub.Repos.Item.Item.Dispatches +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class DispatchesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DispatchesPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,10 +16,10 @@ public class DispatchesPostRequestBody : IAdditionalDataHolder, IParsable /// JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DispatchesPostRequestBody_client_payload? ClientPayload { get; set; } + public global::GitHub.Repos.Item.Item.Dispatches.DispatchesPostRequestBody_client_payload? ClientPayload { get; set; } #nullable restore #else - public DispatchesPostRequestBody_client_payload ClientPayload { get; set; } + public global::GitHub.Repos.Item.Item.Dispatches.DispatchesPostRequestBody_client_payload ClientPayload { get; set; } #endif /// A custom webhook event name. Must be 100 characters or fewer. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -28,7 +30,7 @@ public class DispatchesPostRequestBody : IAdditionalDataHolder, IParsable public string EventType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DispatchesPostRequestBody() { @@ -37,12 +39,12 @@ public DispatchesPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DispatchesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Dispatches.DispatchesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DispatchesPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Dispatches.DispatchesPostRequestBody(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"client_payload", n => { ClientPayload = n.GetObjectValue(DispatchesPostRequestBody_client_payload.CreateFromDiscriminatorValue); } }, - {"event_type", n => { EventType = n.GetStringValue(); } }, + { "client_payload", n => { ClientPayload = n.GetObjectValue(global::GitHub.Repos.Item.Item.Dispatches.DispatchesPostRequestBody_client_payload.CreateFromDiscriminatorValue); } }, + { "event_type", n => { EventType = n.GetStringValue(); } }, }; } /// @@ -63,7 +65,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("client_payload", ClientPayload); + writer.WriteObjectValue("client_payload", ClientPayload); writer.WriteStringValue("event_type", EventType); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Dispatches/DispatchesPostRequestBody_client_payload.cs b/src/GitHub/Repos/Item/Item/Dispatches/DispatchesPostRequestBody_client_payload.cs index 67f07abd..9870e3bf 100644 --- a/src/GitHub/Repos/Item/Item/Dispatches/DispatchesPostRequestBody_client_payload.cs +++ b/src/GitHub/Repos/Item/Item/Dispatches/DispatchesPostRequestBody_client_payload.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Dispatches { +namespace GitHub.Repos.Item.Item.Dispatches +{ /// /// JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. /// - public class DispatchesPostRequestBody_client_payload : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DispatchesPostRequestBody_client_payload : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DispatchesPostRequestBody_client_payload() { @@ -22,12 +24,12 @@ public DispatchesPostRequestBody_client_payload() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DispatchesPostRequestBody_client_payload CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Dispatches.DispatchesPostRequestBody_client_payload CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DispatchesPostRequestBody_client_payload(); + return new global::GitHub.Repos.Item.Item.Dispatches.DispatchesPostRequestBody_client_payload(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Repos/Item/Item/Dispatches/DispatchesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Dispatches/DispatchesRequestBuilder.cs index daab54c3..1b91bf52 100644 --- a/src/GitHub/Repos/Item/Item/Dispatches/DispatchesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Dispatches/DispatchesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Dispatches { +namespace GitHub.Repos.Item.Item.Dispatches +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dispatches /// - public class DispatchesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DispatchesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public DispatchesRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -37,23 +39,23 @@ public DispatchesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(DispatchesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Dispatches.DispatchesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(DispatchesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Dispatches.DispatchesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -65,11 +67,11 @@ public async Task PostAsync(DispatchesPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(DispatchesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Dispatches.DispatchesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DispatchesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Dispatches.DispatchesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -82,11 +84,11 @@ public RequestInformation ToPostRequestInformation(DispatchesPostRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DispatchesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Dispatches.DispatchesRequestBuilder WithUrl(string rawUrl) { - return new DispatchesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Dispatches.DispatchesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Environments/EnvironmentsGetResponse.cs b/src/GitHub/Repos/Item/Item/Environments/EnvironmentsGetResponse.cs index 0b028ba5..262e5bd5 100644 --- a/src/GitHub/Repos/Item/Item/Environments/EnvironmentsGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Environments/EnvironmentsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Environments { +namespace GitHub.Repos.Item.Item.Environments +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class EnvironmentsGetResponse : IAdditionalDataHolder, IParsable + public partial class EnvironmentsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class EnvironmentsGetResponse : IAdditionalDataHolder, IParsable /// The environments property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Environments { get; set; } + public List? Environments { get; set; } #nullable restore #else - public List Environments { get; set; } + public List Environments { get; set; } #endif /// The number of environments in this repository public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public EnvironmentsGetResponse() { @@ -32,12 +34,12 @@ public EnvironmentsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static EnvironmentsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Environments.EnvironmentsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EnvironmentsGetResponse(); + return new global::GitHub.Repos.Item.Item.Environments.EnvironmentsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"environments", n => { Environments = n.GetCollectionOfObjectValues(EnvironmentObject.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "environments", n => { Environments = n.GetCollectionOfObjectValues(global::GitHub.Models.EnvironmentObject.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("environments", Environments); + writer.WriteCollectionOfObjectValues("environments", Environments); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Environments/EnvironmentsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Environments/EnvironmentsRequestBuilder.cs index 1d222794..f3364893 100644 --- a/src/GitHub/Repos/Item/Item/Environments/EnvironmentsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Environments/EnvironmentsRequestBuilder.cs @@ -1,33 +1,35 @@ // using GitHub.Repos.Item.Item.Environments.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Environments { +namespace GitHub.Repos.Item.Item.Environments +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\environments /// - public class EnvironmentsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EnvironmentsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.environments.item collection /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. - /// A - public WithEnvironment_nameItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Environments.Item.WithEnvironment_nameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("environment_name", position); - return new WithEnvironment_nameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Environments.Item.WithEnvironment_nameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -35,7 +37,7 @@ public EnvironmentsRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,20 +48,20 @@ public EnvironmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Lists the environments for a repository.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, EnvironmentsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Environments.EnvironmentsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists the environments for a repository.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. @@ -68,11 +70,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -83,16 +85,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public EnvironmentsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Environments.EnvironmentsRequestBuilder WithUrl(string rawUrl) { - return new EnvironmentsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Environments.EnvironmentsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the environments for a repository.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// - public class EnvironmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EnvironmentsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/DeploymentBranchPolicies/DeploymentBranchPoliciesGetResponse.cs b/src/GitHub/Repos/Item/Item/Environments/Item/DeploymentBranchPolicies/DeploymentBranchPoliciesGetResponse.cs index 207a8c91..80b51831 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/DeploymentBranchPolicies/DeploymentBranchPoliciesGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/DeploymentBranchPolicies/DeploymentBranchPoliciesGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Environments.Item.DeploymentBranchPolicies { +namespace GitHub.Repos.Item.Item.Environments.Item.DeploymentBranchPolicies +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class DeploymentBranchPoliciesGetResponse : IAdditionalDataHolder, IParsable + public partial class DeploymentBranchPoliciesGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class DeploymentBranchPoliciesGetResponse : IAdditionalDataHolder, IParsa /// The branch_policies property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? BranchPolicies { get; set; } + public List? BranchPolicies { get; set; } #nullable restore #else - public List BranchPolicies { get; set; } + public List BranchPolicies { get; set; } #endif /// The number of deployment branch policies for the environment. public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DeploymentBranchPoliciesGetResponse() { @@ -32,12 +34,12 @@ public DeploymentBranchPoliciesGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DeploymentBranchPoliciesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Environments.Item.DeploymentBranchPolicies.DeploymentBranchPoliciesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeploymentBranchPoliciesGetResponse(); + return new global::GitHub.Repos.Item.Item.Environments.Item.DeploymentBranchPolicies.DeploymentBranchPoliciesGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"branch_policies", n => { BranchPolicies = n.GetCollectionOfObjectValues(DeploymentBranchPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "branch_policies", n => { BranchPolicies = n.GetCollectionOfObjectValues(global::GitHub.Models.DeploymentBranchPolicy.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("branch_policies", BranchPolicies); + writer.WriteCollectionOfObjectValues("branch_policies", BranchPolicies); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/DeploymentBranchPolicies/DeploymentBranchPoliciesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Environments/Item/DeploymentBranchPolicies/DeploymentBranchPoliciesRequestBuilder.cs index 84c94729..aa520fa4 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/DeploymentBranchPolicies/DeploymentBranchPoliciesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/DeploymentBranchPolicies/DeploymentBranchPoliciesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Environments.Item.DeploymentBranchPolicies.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Environments.Item.DeploymentBranchPolicies { +namespace GitHub.Repos.Item.Item.Environments.Item.DeploymentBranchPolicies +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\environments\{environment_name}\deployment-branch-policies /// - public class DeploymentBranchPoliciesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DeploymentBranchPoliciesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.environments.item.deploymentBranchPolicies.item collection /// The unique identifier of the branch policy. - /// A - public WithBranch_policy_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Environments.Item.DeploymentBranchPolicies.Item.WithBranch_policy_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("branch_policy_id", position); - return new WithBranch_policy_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Environments.Item.DeploymentBranchPolicies.Item.WithBranch_policy_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public DeploymentBranchPoliciesRequestBuilder(Dictionary pathPar { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,41 +49,41 @@ public DeploymentBranchPoliciesRequestBuilder(string rawUrl, IRequestAdapter req /// Lists the deployment branch policies for an environment.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, DeploymentBranchPoliciesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Environments.Item.DeploymentBranchPolicies.DeploymentBranchPoliciesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Creates a deployment branch or tag policy for an environment.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(DeploymentBranchPolicyNamePatternWithType body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Models.DeploymentBranchPolicyNamePatternWithType body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(DeploymentBranchPolicyNamePatternWithType body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Models.DeploymentBranchPolicyNamePatternWithType body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, DeploymentBranchPolicy.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.DeploymentBranchPolicy.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Lists the deployment branch policies for an environment.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. @@ -90,11 +92,11 @@ public async Task PostAsync(DeploymentBranchPolicyNamePa /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -110,11 +112,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(DeploymentBranchPolicyNamePatternWithType body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Models.DeploymentBranchPolicyNamePatternWithType body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeploymentBranchPolicyNamePatternWithType body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Models.DeploymentBranchPolicyNamePatternWithType body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -127,16 +129,17 @@ public RequestInformation ToPostRequestInformation(DeploymentBranchPolicyNamePat /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DeploymentBranchPoliciesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Environments.Item.DeploymentBranchPolicies.DeploymentBranchPoliciesRequestBuilder WithUrl(string rawUrl) { - return new DeploymentBranchPoliciesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Environments.Item.DeploymentBranchPolicies.DeploymentBranchPoliciesRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists the deployment branch policies for an environment.Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. /// - public class DeploymentBranchPoliciesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DeploymentBranchPoliciesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/DeploymentBranchPolicies/Item/WithBranch_policy_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Environments/Item/DeploymentBranchPolicies/Item/WithBranch_policy_ItemRequestBuilder.cs index 65f1a5ea..f40533c6 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/DeploymentBranchPolicies/Item/WithBranch_policy_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/DeploymentBranchPolicies/Item/WithBranch_policy_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Environments.Item.DeploymentBranchPolicies.Item { +namespace GitHub.Repos.Item.Item.Environments.Item.DeploymentBranchPolicies.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\environments\{environment_name}\deployment-branch-policies\{branch_policy_id} /// - public class WithBranch_policy_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithBranch_policy_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithBranch_policy_ItemRequestBuilder(Dictionary pathParam { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,41 +54,41 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, DeploymentBranchPolicy.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.DeploymentBranchPolicy.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Updates a deployment branch or tag policy for an environment.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(DeploymentBranchPolicyNamePattern body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.DeploymentBranchPolicyNamePattern body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(DeploymentBranchPolicyNamePattern body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.DeploymentBranchPolicyNamePattern body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, DeploymentBranchPolicy.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.DeploymentBranchPolicy.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Deletes a deployment branch or tag policy for an environment.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -133,11 +135,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(DeploymentBranchPolicyNamePattern body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.DeploymentBranchPolicyNamePattern body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(DeploymentBranchPolicyNamePattern body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.DeploymentBranchPolicyNamePattern body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -150,11 +152,11 @@ public RequestInformation ToPutRequestInformation(DeploymentBranchPolicyNamePatt /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithBranch_policy_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Environments.Item.DeploymentBranchPolicies.Item.WithBranch_policy_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithBranch_policy_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Environments.Item.DeploymentBranchPolicies.Item.WithBranch_policy_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Apps/AppsGetResponse.cs b/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Apps/AppsGetResponse.cs index e7b3cab0..bb1ae01d 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Apps/AppsGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Apps/AppsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Apps { +namespace GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Apps +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AppsGetResponse : IAdditionalDataHolder, IParsable + public partial class AppsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class AppsGetResponse : IAdditionalDataHolder, IParsable /// The available_custom_deployment_protection_rule_integrations property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? AvailableCustomDeploymentProtectionRuleIntegrations { get; set; } + public List? AvailableCustomDeploymentProtectionRuleIntegrations { get; set; } #nullable restore #else - public List AvailableCustomDeploymentProtectionRuleIntegrations { get; set; } + public List AvailableCustomDeploymentProtectionRuleIntegrations { get; set; } #endif /// The total number of custom deployment protection rule integrations available for this environment. public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AppsGetResponse() { @@ -32,12 +34,12 @@ public AppsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AppsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Apps.AppsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AppsGetResponse(); + return new global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Apps.AppsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"available_custom_deployment_protection_rule_integrations", n => { AvailableCustomDeploymentProtectionRuleIntegrations = n.GetCollectionOfObjectValues(CustomDeploymentRuleApp.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "available_custom_deployment_protection_rule_integrations", n => { AvailableCustomDeploymentProtectionRuleIntegrations = n.GetCollectionOfObjectValues(global::GitHub.Models.CustomDeploymentRuleApp.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("available_custom_deployment_protection_rule_integrations", AvailableCustomDeploymentProtectionRuleIntegrations); + writer.WriteCollectionOfObjectValues("available_custom_deployment_protection_rule_integrations", AvailableCustomDeploymentProtectionRuleIntegrations); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Apps/AppsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Apps/AppsRequestBuilder.cs index 2d77478e..7360f3e2 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Apps/AppsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Apps/AppsRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Apps { +namespace GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Apps +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\environments\{environment_name}\deployment_protection_rules\apps /// - public class AppsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AppsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public AppsRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,20 +35,20 @@ public AppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// 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/enterprise-cloud@latest//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/enterprise-cloud@latest//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. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, AppsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Apps.AppsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// 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/enterprise-cloud@latest//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/enterprise-cloud@latest//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. @@ -55,11 +57,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -70,16 +72,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AppsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Apps.AppsRequestBuilder WithUrl(string rawUrl) { - return new AppsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Apps.AppsRequestBuilder(rawUrl, RequestAdapter); } /// /// 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/enterprise-cloud@latest//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/enterprise-cloud@latest//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. /// - public class AppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AppsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Deployment_protection_rulesGetResponse.cs b/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Deployment_protection_rulesGetResponse.cs index 4ac3c952..a817cce7 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Deployment_protection_rulesGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Deployment_protection_rulesGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules { +namespace GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Deployment_protection_rulesGetResponse : IAdditionalDataHolder, IParsable + public partial class Deployment_protection_rulesGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class Deployment_protection_rulesGetResponse : IAdditionalDataHolder, IPa /// The custom_deployment_protection_rules property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? CustomDeploymentProtectionRules { get; set; } + public List? CustomDeploymentProtectionRules { get; set; } #nullable restore #else - public List CustomDeploymentProtectionRules { get; set; } + public List CustomDeploymentProtectionRules { get; set; } #endif /// The number of enabled custom deployment protection rules for this environment public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Deployment_protection_rulesGetResponse() { @@ -32,12 +34,12 @@ public Deployment_protection_rulesGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Deployment_protection_rulesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Deployment_protection_rulesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Deployment_protection_rulesGetResponse(); + return new global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Deployment_protection_rulesGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"custom_deployment_protection_rules", n => { CustomDeploymentProtectionRules = n.GetCollectionOfObjectValues(DeploymentProtectionRule.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "custom_deployment_protection_rules", n => { CustomDeploymentProtectionRules = n.GetCollectionOfObjectValues(global::GitHub.Models.DeploymentProtectionRule.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("custom_deployment_protection_rules", CustomDeploymentProtectionRules); + writer.WriteCollectionOfObjectValues("custom_deployment_protection_rules", CustomDeploymentProtectionRules); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Deployment_protection_rulesPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Deployment_protection_rulesPostRequestBody.cs index f9fd9288..39db6996 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Deployment_protection_rulesPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Deployment_protection_rulesPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules { +namespace GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class Deployment_protection_rulesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Deployment_protection_rulesPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,7 +16,7 @@ public class Deployment_protection_rulesPostRequestBody : IAdditionalDataHolder, /// The ID of the custom app that will be enabled on the environment. public int? IntegrationId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Deployment_protection_rulesPostRequestBody() { @@ -23,12 +25,12 @@ public Deployment_protection_rulesPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Deployment_protection_rulesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Deployment_protection_rulesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Deployment_protection_rulesPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Deployment_protection_rulesPostRequestBody(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"integration_id", n => { IntegrationId = n.GetIntValue(); } }, + { "integration_id", n => { IntegrationId = n.GetIntValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Deployment_protection_rulesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Deployment_protection_rulesRequestBuilder.cs index 10f2bee7..474b4302 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Deployment_protection_rulesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Deployment_protection_rulesRequestBuilder.cs @@ -2,39 +2,41 @@ using GitHub.Models; using GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Apps; using GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules { +namespace GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\environments\{environment_name}\deployment_protection_rules /// - public class Deployment_protection_rulesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Deployment_protection_rulesRequestBuilder : BaseRequestBuilder { /// The apps property - public AppsRequestBuilder Apps + public global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Apps.AppsRequestBuilder Apps { - get => new AppsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Apps.AppsRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.repos.item.item.environments.item.deployment_protection_rules.item collection /// The unique identifier of the protection rule. - /// A - public WithProtection_rule_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Item.WithProtection_rule_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("protection_rule_id", position); - return new WithProtection_rule_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Item.WithProtection_rule_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -42,7 +44,7 @@ public Deployment_protection_rulesRequestBuilder(Dictionary path { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -53,41 +55,41 @@ public Deployment_protection_rulesRequestBuilder(string rawUrl, IRequestAdapter /// Gets all custom deployment protection rules that are enabled 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/enterprise-cloud@latest//actions/deployment/targeting-different-environments/using-environments-for-deployment)."For more information about the app that is providing this custom deployment rule, see the [documentation for the `GET /apps/{app_slug}` endpoint](https://docs.github.com/enterprise-cloud@latest//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. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, Deployment_protection_rulesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Deployment_protection_rulesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Enable a custom deployment protection rule for an environment.The authenticated user must have admin or owner permissions to the repository to use this endpoint.For more information about the app that is providing this custom deployment rule, see the [documentation for the `GET /apps/{app_slug}` endpoint](https://docs.github.com/enterprise-cloud@latest//rest/apps/apps#get-an-app).OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Deployment_protection_rulesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Deployment_protection_rulesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Deployment_protection_rulesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Deployment_protection_rulesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, DeploymentProtectionRule.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.DeploymentProtectionRule.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Gets all custom deployment protection rules that are enabled 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/enterprise-cloud@latest//actions/deployment/targeting-different-environments/using-environments-for-deployment)."For more information about the app that is providing this custom deployment rule, see the [documentation for the `GET /apps/{app_slug}` endpoint](https://docs.github.com/enterprise-cloud@latest//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. @@ -116,11 +118,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Deployment_protection_rulesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Deployment_protection_rulesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Deployment_protection_rulesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Deployment_protection_rulesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -133,11 +135,11 @@ public RequestInformation ToPostRequestInformation(Deployment_protection_rulesPo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Deployment_protection_rulesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Deployment_protection_rulesRequestBuilder WithUrl(string rawUrl) { - return new Deployment_protection_rulesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Deployment_protection_rulesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Item/WithProtection_rule_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Item/WithProtection_rule_ItemRequestBuilder.cs index cf373218..830299c1 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Item/WithProtection_rule_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/Deployment_protection_rules/Item/WithProtection_rule_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Item { +namespace GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\environments\{environment_name}\deployment_protection_rules\{protection_rule_id} /// - public class WithProtection_rule_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithProtection_rule_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithProtection_rule_ItemRequestBuilder(Dictionary pathPar { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,20 +54,20 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, DeploymentProtectionRule.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.DeploymentProtectionRule.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Disables a custom deployment protection rule for an environment.The authenticated user must have admin or owner permissions to the repository to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -107,11 +109,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithProtection_rule_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Item.WithProtection_rule_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithProtection_rule_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Item.WithProtection_rule_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/Secrets/Item/WithSecret_nameItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Environments/Item/Secrets/Item/WithSecret_nameItemRequestBuilder.cs index dca8df46..cd6d05e2 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/Secrets/Item/WithSecret_nameItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/Secrets/Item/WithSecret_nameItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Environments.Item.Secrets.Item { +namespace GitHub.Repos.Item.Item.Environments.Item.Secrets.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\environments\{environment_name}\secrets\{secret_name} /// - public class WithSecret_nameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithSecret_nameItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithSecret_nameItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,41 +54,41 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ActionsSecret.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsSecret.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// 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/enterprise-cloud@latest//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. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(WithSecret_namePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Environments.Item.Secrets.Item.WithSecret_namePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(WithSecret_namePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Environments.Item.Secrets.Item.WithSecret_namePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// 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. @@ -133,11 +135,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(WithSecret_namePutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Environments.Item.Secrets.Item.WithSecret_namePutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(WithSecret_namePutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Environments.Item.Secrets.Item.WithSecret_namePutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -150,11 +152,11 @@ public RequestInformation ToPutRequestInformation(WithSecret_namePutRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithSecret_nameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Environments.Item.Secrets.Item.WithSecret_nameItemRequestBuilder WithUrl(string rawUrl) { - return new WithSecret_nameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Environments.Item.Secrets.Item.WithSecret_nameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/Secrets/Item/WithSecret_namePutRequestBody.cs b/src/GitHub/Repos/Item/Item/Environments/Item/Secrets/Item/WithSecret_namePutRequestBody.cs index ae88e862..c0958867 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/Secrets/Item/WithSecret_namePutRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/Secrets/Item/WithSecret_namePutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Environments.Item.Secrets.Item { +namespace GitHub.Repos.Item.Item.Environments.Item.Secrets.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithSecret_namePutRequestBody : IAdditionalDataHolder, IParsable + public partial class WithSecret_namePutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class WithSecret_namePutRequestBody : IAdditionalDataHolder, IParsable public string KeyId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithSecret_namePutRequestBody() { @@ -37,12 +39,12 @@ public WithSecret_namePutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithSecret_namePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Environments.Item.Secrets.Item.WithSecret_namePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithSecret_namePutRequestBody(); + return new global::GitHub.Repos.Item.Item.Environments.Item.Secrets.Item.WithSecret_namePutRequestBody(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"encrypted_value", n => { EncryptedValue = n.GetStringValue(); } }, - {"key_id", n => { KeyId = n.GetStringValue(); } }, + { "encrypted_value", n => { EncryptedValue = n.GetStringValue(); } }, + { "key_id", n => { KeyId = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/Secrets/PublicKey/PublicKeyRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Environments/Item/Secrets/PublicKey/PublicKeyRequestBuilder.cs index e3aa76d6..edcbf2cc 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/Secrets/PublicKey/PublicKeyRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/Secrets/PublicKey/PublicKeyRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Environments.Item.Secrets.PublicKey { +namespace GitHub.Repos.Item.Item.Environments.Item.Secrets.PublicKey +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\environments\{environment_name}\secrets\public-key /// - public class PublicKeyRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PublicKeyRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public PublicKeyRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public PublicKeyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// 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. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ActionsPublicKey.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsPublicKey.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// 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. @@ -71,11 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PublicKeyRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Environments.Item.Secrets.PublicKey.PublicKeyRequestBuilder WithUrl(string rawUrl) { - return new PublicKeyRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Environments.Item.Secrets.PublicKey.PublicKeyRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/Secrets/SecretsGetResponse.cs b/src/GitHub/Repos/Item/Item/Environments/Item/Secrets/SecretsGetResponse.cs index 9ad76da1..2eb921b3 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/Secrets/SecretsGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/Secrets/SecretsGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Environments.Item.Secrets { +namespace GitHub.Repos.Item.Item.Environments.Item.Secrets +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class SecretsGetResponse : IAdditionalDataHolder, IParsable + public partial class SecretsGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,15 +17,15 @@ public class SecretsGetResponse : IAdditionalDataHolder, IParsable /// The secrets property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Secrets { get; set; } + public List? Secrets { get; set; } #nullable restore #else - public List Secrets { get; set; } + public List Secrets { get; set; } #endif /// The total_count property public int? TotalCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretsGetResponse() { @@ -32,12 +34,12 @@ public SecretsGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SecretsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Environments.Item.Secrets.SecretsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretsGetResponse(); + return new global::GitHub.Repos.Item.Item.Environments.Item.Secrets.SecretsGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"secrets", n => { Secrets = n.GetCollectionOfObjectValues(ActionsSecret.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetIntValue(); } }, + { "secrets", n => { Secrets = n.GetCollectionOfObjectValues(global::GitHub.Models.ActionsSecret.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, }; } /// @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("secrets", Secrets); + writer.WriteCollectionOfObjectValues("secrets", Secrets); writer.WriteIntValue("total_count", TotalCount); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/Secrets/SecretsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Environments/Item/Secrets/SecretsRequestBuilder.cs index 4c03d883..fa3eb810 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/Secrets/SecretsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/Secrets/SecretsRequestBuilder.cs @@ -1,39 +1,41 @@ // using GitHub.Repos.Item.Item.Environments.Item.Secrets.Item; using GitHub.Repos.Item.Item.Environments.Item.Secrets.PublicKey; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Environments.Item.Secrets { +namespace GitHub.Repos.Item.Item.Environments.Item.Secrets +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\environments\{environment_name}\secrets /// - public class SecretsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretsRequestBuilder : BaseRequestBuilder { /// The publicKey property - public PublicKeyRequestBuilder PublicKey + public global::GitHub.Repos.Item.Item.Environments.Item.Secrets.PublicKey.PublicKeyRequestBuilder PublicKey { - get => new PublicKeyRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Environments.Item.Secrets.PublicKey.PublicKeyRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.repos.item.item.environments.item.secrets.item collection /// The name of the secret. - /// A - public WithSecret_nameItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Environments.Item.Secrets.Item.WithSecret_nameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("secret_name", position); - return new WithSecret_nameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Environments.Item.Secrets.Item.WithSecret_nameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -41,7 +43,7 @@ public SecretsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,20 +54,20 @@ public SecretsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// 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. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, SecretsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Environments.Item.Secrets.SecretsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// 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. @@ -74,11 +76,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -89,16 +91,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SecretsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Environments.Item.Secrets.SecretsRequestBuilder WithUrl(string rawUrl) { - return new SecretsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Environments.Item.Secrets.SecretsRequestBuilder(rawUrl, RequestAdapter); } /// /// 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. /// - public class SecretsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class SecretsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/Variables/Item/WithNameItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Environments/Item/Variables/Item/WithNameItemRequestBuilder.cs index 3dd69482..c1a01a8f 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/Variables/Item/WithNameItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/Variables/Item/WithNameItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Environments.Item.Variables.Item { +namespace GitHub.Repos.Item.Item.Environments.Item.Variables.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\environments\{environment_name}\variables\{name} /// - public class WithNameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithNameItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithNameItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,20 +54,20 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ActionsVariable.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsVariable.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// 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. @@ -76,11 +78,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithNamePatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Environments.Item.Variables.Item.WithNamePatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithNamePatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Environments.Item.Variables.Item.WithNamePatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -132,11 +134,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithNamePatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Environments.Item.Variables.Item.WithNamePatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithNamePatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Environments.Item.Variables.Item.WithNamePatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -148,11 +150,11 @@ public RequestInformation ToPatchRequestInformation(WithNamePatchRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithNameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Environments.Item.Variables.Item.WithNameItemRequestBuilder WithUrl(string rawUrl) { - return new WithNameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Environments.Item.Variables.Item.WithNameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/Variables/Item/WithNamePatchRequestBody.cs b/src/GitHub/Repos/Item/Item/Environments/Item/Variables/Item/WithNamePatchRequestBody.cs index 68d11490..9835e3d5 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/Variables/Item/WithNamePatchRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/Variables/Item/WithNamePatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Environments.Item.Variables.Item { +namespace GitHub.Repos.Item.Item.Environments.Item.Variables.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithNamePatchRequestBody : IAdditionalDataHolder, IParsable + public partial class WithNamePatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class WithNamePatchRequestBody : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithNamePatchRequestBody() { @@ -37,12 +39,12 @@ public WithNamePatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithNamePatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Environments.Item.Variables.Item.WithNamePatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithNamePatchRequestBody(); + return new global::GitHub.Repos.Item.Item.Environments.Item.Variables.Item.WithNamePatchRequestBody(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/Variables/VariablesGetResponse.cs b/src/GitHub/Repos/Item/Item/Environments/Item/Variables/VariablesGetResponse.cs index 5dc140a5..21fa406c 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/Variables/VariablesGetResponse.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/Variables/VariablesGetResponse.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Environments.Item.Variables { +namespace GitHub.Repos.Item.Item.Environments.Item.Variables +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class VariablesGetResponse : IAdditionalDataHolder, IParsable + public partial class VariablesGetResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -17,13 +19,13 @@ public class VariablesGetResponse : IAdditionalDataHolder, IParsable /// The variables property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Variables { get; set; } + public List? Variables { get; set; } #nullable restore #else - public List Variables { get; set; } + public List Variables { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public VariablesGetResponse() { @@ -32,12 +34,12 @@ public VariablesGetResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static VariablesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Environments.Item.Variables.VariablesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new VariablesGetResponse(); + return new global::GitHub.Repos.Item.Item.Environments.Item.Variables.VariablesGetResponse(); } /// /// The deserialization information for the current model @@ -47,8 +49,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"total_count", n => { TotalCount = n.GetIntValue(); } }, - {"variables", n => { Variables = n.GetCollectionOfObjectValues(ActionsVariable.CreateFromDiscriminatorValue)?.ToList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, + { "variables", n => { Variables = n.GetCollectionOfObjectValues(global::GitHub.Models.ActionsVariable.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -59,7 +61,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("total_count", TotalCount); - writer.WriteCollectionOfObjectValues("variables", Variables); + writer.WriteCollectionOfObjectValues("variables", Variables); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/Variables/VariablesPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Environments/Item/Variables/VariablesPostRequestBody.cs index 1d6db6cb..e1af3951 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/Variables/VariablesPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/Variables/VariablesPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Environments.Item.Variables { +namespace GitHub.Repos.Item.Item.Environments.Item.Variables +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class VariablesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class VariablesPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class VariablesPostRequestBody : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public VariablesPostRequestBody() { @@ -37,12 +39,12 @@ public VariablesPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static VariablesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Environments.Item.Variables.VariablesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new VariablesPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Environments.Item.Variables.VariablesPostRequestBody(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/Variables/VariablesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Environments/Item/Variables/VariablesRequestBuilder.cs index 5b770701..4956f416 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/Variables/VariablesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/Variables/VariablesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Environments.Item.Variables.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Environments.Item.Variables { +namespace GitHub.Repos.Item.Item.Environments.Item.Variables +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\environments\{environment_name}\variables /// - public class VariablesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class VariablesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.environments.item.variables.item collection /// The name of the variable. - /// A - public WithNameItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Environments.Item.Variables.Item.WithNameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("name", position); - return new WithNameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Environments.Item.Variables.Item.WithNameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public VariablesRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,41 +49,41 @@ public VariablesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// 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. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, VariablesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Environments.Item.Variables.VariablesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// 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. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(VariablesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Environments.Item.Variables.VariablesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(VariablesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Environments.Item.Variables.VariablesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EmptyObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// 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. @@ -90,11 +92,11 @@ public async Task PostAsync(VariablesPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -110,11 +112,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(VariablesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Environments.Item.Variables.VariablesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(VariablesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Environments.Item.Variables.VariablesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -127,16 +129,17 @@ public RequestInformation ToPostRequestInformation(VariablesPostRequestBody body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public VariablesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Environments.Item.Variables.VariablesRequestBuilder WithUrl(string rawUrl) { - return new VariablesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Environments.Item.Variables.VariablesRequestBuilder(rawUrl, RequestAdapter); } /// /// 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. /// - public class VariablesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class VariablesRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/WithEnvironment_nameItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Environments/Item/WithEnvironment_nameItemRequestBuilder.cs index b646c201..d81ace7c 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/WithEnvironment_nameItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/WithEnvironment_nameItemRequestBuilder.cs @@ -4,42 +4,44 @@ using GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules; using GitHub.Repos.Item.Item.Environments.Item.Secrets; using GitHub.Repos.Item.Item.Environments.Item.Variables; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Environments.Item { +namespace GitHub.Repos.Item.Item.Environments.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\environments\{environment_name} /// - public class WithEnvironment_nameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithEnvironment_nameItemRequestBuilder : BaseRequestBuilder { /// The deployment_protection_rules property - public Deployment_protection_rulesRequestBuilder Deployment_protection_rules + public global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Deployment_protection_rulesRequestBuilder Deployment_protection_rules { - get => new Deployment_protection_rulesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Environments.Item.Deployment_protection_rules.Deployment_protection_rulesRequestBuilder(PathParameters, RequestAdapter); } /// The deploymentBranchPolicies property - public DeploymentBranchPoliciesRequestBuilder DeploymentBranchPolicies + public global::GitHub.Repos.Item.Item.Environments.Item.DeploymentBranchPolicies.DeploymentBranchPoliciesRequestBuilder DeploymentBranchPolicies { - get => new DeploymentBranchPoliciesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Environments.Item.DeploymentBranchPolicies.DeploymentBranchPoliciesRequestBuilder(PathParameters, RequestAdapter); } /// The secrets property - public SecretsRequestBuilder Secrets + public global::GitHub.Repos.Item.Item.Environments.Item.Secrets.SecretsRequestBuilder Secrets { - get => new SecretsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Environments.Item.Secrets.SecretsRequestBuilder(PathParameters, RequestAdapter); } /// The variables property - public VariablesRequestBuilder Variables + public global::GitHub.Repos.Item.Item.Environments.Item.Variables.VariablesRequestBuilder Variables { - get => new VariablesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Environments.Item.Variables.VariablesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -47,7 +49,7 @@ public WithEnvironment_nameItemRequestBuilder(Dictionary pathPar { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -76,46 +78,46 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, EnvironmentObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EnvironmentObject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see "[Environments](/actions/reference/environments#environment-protection-rules)."> [!NOTE]> To create or update name patterns that branches must match in order to deploy to this environment, see "[Deployment branch policies](/rest/deployments/branch-policies)."> [!NOTE]> To create or update secrets for an environment, see "[GitHub Actions secrets](/rest/actions/secrets)."OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(WithEnvironment_namePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Environments.Item.WithEnvironment_namePutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(WithEnvironment_namePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Environments.Item.WithEnvironment_namePutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", BasicError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, EnvironmentObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EnvironmentObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. @@ -162,11 +164,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(WithEnvironment_namePutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Environments.Item.WithEnvironment_namePutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(WithEnvironment_namePutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Environments.Item.WithEnvironment_namePutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -179,11 +181,11 @@ public RequestInformation ToPutRequestInformation(WithEnvironment_namePutRequest /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithEnvironment_nameItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Environments.Item.WithEnvironment_nameItemRequestBuilder WithUrl(string rawUrl) { - return new WithEnvironment_nameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Environments.Item.WithEnvironment_nameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/WithEnvironment_namePutRequestBody.cs b/src/GitHub/Repos/Item/Item/Environments/Item/WithEnvironment_namePutRequestBody.cs index ab18fd16..e61125a9 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/WithEnvironment_namePutRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/WithEnvironment_namePutRequestBody.cs @@ -1,44 +1,46 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Environments.Item { +namespace GitHub.Repos.Item.Item.Environments.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithEnvironment_namePutRequestBody : IParsable + public partial class WithEnvironment_namePutRequestBody : IParsable #pragma warning restore CS1591 { /// The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DeploymentBranchPolicySettings? DeploymentBranchPolicy { get; set; } + public global::GitHub.Models.DeploymentBranchPolicySettings? DeploymentBranchPolicy { get; set; } #nullable restore #else - public DeploymentBranchPolicySettings DeploymentBranchPolicy { get; set; } + public global::GitHub.Models.DeploymentBranchPolicySettings DeploymentBranchPolicy { get; set; } #endif /// Whether or not a user who created the job is prevented from approving their own job. public bool? PreventSelfReview { get; set; } /// The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Reviewers { get; set; } + public List? Reviewers { get; set; } #nullable restore #else - public List Reviewers { get; set; } + public List Reviewers { get; set; } #endif /// The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days). public int? WaitTimer { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithEnvironment_namePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Environments.Item.WithEnvironment_namePutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithEnvironment_namePutRequestBody(); + return new global::GitHub.Repos.Item.Item.Environments.Item.WithEnvironment_namePutRequestBody(); } /// /// The deserialization information for the current model @@ -48,10 +50,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"deployment_branch_policy", n => { DeploymentBranchPolicy = n.GetObjectValue(DeploymentBranchPolicySettings.CreateFromDiscriminatorValue); } }, - {"prevent_self_review", n => { PreventSelfReview = n.GetBoolValue(); } }, - {"reviewers", n => { Reviewers = n.GetCollectionOfObjectValues(WithEnvironment_namePutRequestBody_reviewers.CreateFromDiscriminatorValue)?.ToList(); } }, - {"wait_timer", n => { WaitTimer = n.GetIntValue(); } }, + { "deployment_branch_policy", n => { DeploymentBranchPolicy = n.GetObjectValue(global::GitHub.Models.DeploymentBranchPolicySettings.CreateFromDiscriminatorValue); } }, + { "prevent_self_review", n => { PreventSelfReview = n.GetBoolValue(); } }, + { "reviewers", n => { Reviewers = n.GetCollectionOfObjectValues(global::GitHub.Repos.Item.Item.Environments.Item.WithEnvironment_namePutRequestBody_reviewers.CreateFromDiscriminatorValue)?.AsList(); } }, + { "wait_timer", n => { WaitTimer = n.GetIntValue(); } }, }; } /// @@ -61,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("deployment_branch_policy", DeploymentBranchPolicy); + writer.WriteObjectValue("deployment_branch_policy", DeploymentBranchPolicy); writer.WriteBoolValue("prevent_self_review", PreventSelfReview); - writer.WriteCollectionOfObjectValues("reviewers", Reviewers); + writer.WriteCollectionOfObjectValues("reviewers", Reviewers); writer.WriteIntValue("wait_timer", WaitTimer); } } diff --git a/src/GitHub/Repos/Item/Item/Environments/Item/WithEnvironment_namePutRequestBody_reviewers.cs b/src/GitHub/Repos/Item/Item/Environments/Item/WithEnvironment_namePutRequestBody_reviewers.cs index 6538d661..e6fedd32 100644 --- a/src/GitHub/Repos/Item/Item/Environments/Item/WithEnvironment_namePutRequestBody_reviewers.cs +++ b/src/GitHub/Repos/Item/Item/Environments/Item/WithEnvironment_namePutRequestBody_reviewers.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Environments.Item { +namespace GitHub.Repos.Item.Item.Environments.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithEnvironment_namePutRequestBody_reviewers : IAdditionalDataHolder, IParsable + public partial class WithEnvironment_namePutRequestBody_reviewers : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -15,9 +17,9 @@ public class WithEnvironment_namePutRequestBody_reviewers : IAdditionalDataHolde /// The id of the user or team who can review the deployment public int? Id { get; set; } /// The type of reviewer. - public DeploymentReviewerType? Type { get; set; } + public global::GitHub.Models.DeploymentReviewerType? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithEnvironment_namePutRequestBody_reviewers() { @@ -26,12 +28,12 @@ public WithEnvironment_namePutRequestBody_reviewers() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithEnvironment_namePutRequestBody_reviewers CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Environments.Item.WithEnvironment_namePutRequestBody_reviewers CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithEnvironment_namePutRequestBody_reviewers(); + return new global::GitHub.Repos.Item.Item.Environments.Item.WithEnvironment_namePutRequestBody_reviewers(); } /// /// The deserialization information for the current model @@ -41,8 +43,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetIntValue(); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "id", n => { Id = n.GetIntValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -53,7 +55,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("id", Id); - writer.WriteEnumValue("type", Type); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Events/EventsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Events/EventsRequestBuilder.cs index f5f5008f..78ee1020 100644 --- a/src/GitHub/Repos/Item/Item/Events/EventsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Events/EventsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Events { +namespace GitHub.Repos.Item.Item.Events +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\events /// - public class EventsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EventsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public EventsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. /// API method documentation /// - /// A List<Event> + /// A List<global::GitHub.Models.Event> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Event.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Event.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. @@ -57,11 +59,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -72,16 +74,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public EventsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Events.EventsRequestBuilder WithUrl(string rawUrl) { - return new EventsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Events.EventsRequestBuilder(rawUrl, RequestAdapter); } /// /// > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. /// - public class EventsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EventsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Forks/ForksPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Forks/ForksPostRequestBody.cs index 462beed6..4db2b222 100644 --- a/src/GitHub/Repos/Item/Item/Forks/ForksPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Forks/ForksPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Forks { +namespace GitHub.Repos.Item.Item.Forks +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ForksPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ForksPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -30,7 +32,7 @@ public class ForksPostRequestBody : IAdditionalDataHolder, IParsable public string Organization { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ForksPostRequestBody() { @@ -39,12 +41,12 @@ public ForksPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ForksPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Forks.ForksPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ForksPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Forks.ForksPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"default_branch_only", n => { DefaultBranchOnly = n.GetBoolValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"organization", n => { Organization = n.GetStringValue(); } }, + { "default_branch_only", n => { DefaultBranchOnly = n.GetBoolValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "organization", n => { Organization = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Forks/ForksRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Forks/ForksRequestBuilder.cs index 46035356..4cf106a4 100644 --- a/src/GitHub/Repos/Item/Item/Forks/ForksRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Forks/ForksRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Forks { +namespace GitHub.Repos.Item.Item.Forks +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\forks /// - public class ForksRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ForksRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ForksRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,68 +36,68 @@ public ForksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// List forks /// API method documentation /// - /// A List<MinimalRepository> + /// A List<global::GitHub.Models.MinimalRepository> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code + /// When receiving a 400 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, MinimalRepository.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.MinimalRepository.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a fork for the authenticated user.> [!NOTE]> Forking a Repository happens asynchronously. You may have to wait a short period of time before you can access the git objects. If this takes longer than 5 minutes, be sure to contact [GitHub Enterprise Cloud Support](https://support.github.com/contact?tags=dotcom-rest-api).> [!NOTE]> Although this endpoint works with GitHub Apps, the GitHub App must be installed on the destination account with access to all repositories and on the source account with access to the source repository. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ForksPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Forks.ForksPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(ForksPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Forks.ForksPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, FullRepository.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.FullRepository.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -111,11 +113,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ForksPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Forks.ForksPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ForksPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Forks.ForksPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,16 +130,17 @@ public RequestInformation ToPostRequestInformation(ForksPostRequestBody body, Ac /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ForksRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Forks.ForksRequestBuilder WithUrl(string rawUrl) { - return new ForksRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Forks.ForksRequestBuilder(rawUrl, RequestAdapter); } /// /// List forks /// - public class ForksRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ForksRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] @@ -147,7 +150,7 @@ public class ForksRequestBuilderGetQueryParameters public int? PerPage { get; set; } /// The sort order. `stargazers` will sort by star count. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Repos.Item.Item.Forks.GetSortQueryParameterType? Sort { get; set; } } } } diff --git a/src/GitHub/Repos/Item/Item/Forks/GetSortQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Forks/GetSortQueryParameterType.cs index 0eae1cc2..961cba9e 100644 --- a/src/GitHub/Repos/Item/Item/Forks/GetSortQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Forks/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Forks { +namespace GitHub.Repos.Item.Item.Forks +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Generate/GeneratePostRequestBody.cs b/src/GitHub/Repos/Item/Item/Generate/GeneratePostRequestBody.cs index 7aa7a04b..b6abfe00 100644 --- a/src/GitHub/Repos/Item/Item/Generate/GeneratePostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Generate/GeneratePostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Generate { +namespace GitHub.Repos.Item.Item.Generate +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class GeneratePostRequestBody : IAdditionalDataHolder, IParsable + public partial class GeneratePostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -40,7 +42,7 @@ public class GeneratePostRequestBody : IAdditionalDataHolder, IParsable /// Either `true` to create a new private repository or `false` to create a new public one. public bool? Private { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GeneratePostRequestBody() { @@ -49,12 +51,12 @@ public GeneratePostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GeneratePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Generate.GeneratePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GeneratePostRequestBody(); + return new global::GitHub.Repos.Item.Item.Generate.GeneratePostRequestBody(); } /// /// The deserialization information for the current model @@ -64,11 +66,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"include_all_branches", n => { IncludeAllBranches = n.GetBoolValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"owner", n => { Owner = n.GetStringValue(); } }, - {"private", n => { Private = n.GetBoolValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "include_all_branches", n => { IncludeAllBranches = n.GetBoolValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "owner", n => { Owner = n.GetStringValue(); } }, + { "private", n => { Private = n.GetBoolValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Generate/GenerateRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Generate/GenerateRequestBuilder.cs index 70e4052a..33d6ab0f 100644 --- a/src/GitHub/Repos/Item/Item/Generate/GenerateRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Generate/GenerateRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Generate { +namespace GitHub.Repos.Item.Item.Generate +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\generate /// - public class GenerateRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GenerateRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public GenerateRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,22 +36,22 @@ public GenerateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Creates a new repository using a repository template. Use the `template_owner` and `template_repo` route parameters to specify the repository to use as the template. If the repository is not public, the authenticated user must own or be a member of an organization that owns the repository. To check if a repository is available to use as a template, get the repository's information using the [Get a repository](https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#get-a-repository) endpoint and check that the `is_template` key is `true`.OAuth app tokens and personal access tokens (classic) need the `public_repo` or `repo` scope to create a public repository, and `repo` scope to create a private repository. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(GeneratePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Generate.GeneratePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(GeneratePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Generate.GeneratePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, FullRepository.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.FullRepository.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Creates a new repository using a repository template. Use the `template_owner` and `template_repo` route parameters to specify the repository to use as the template. If the repository is not public, the authenticated user must own or be a member of an organization that owns the repository. To check if a repository is available to use as a template, get the repository's information using the [Get a repository](https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#get-a-repository) endpoint and check that the `is_template` key is `true`.OAuth app tokens and personal access tokens (classic) need the `public_repo` or `repo` scope to create a public repository, and `repo` scope to create a private repository. @@ -59,11 +61,11 @@ public async Task PostAsync(GeneratePostRequestBody body, Action /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(GeneratePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Generate.GeneratePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GeneratePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Generate.GeneratePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -76,11 +78,11 @@ public RequestInformation ToPostRequestInformation(GeneratePostRequestBody body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public GenerateRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Generate.GenerateRequestBuilder WithUrl(string rawUrl) { - return new GenerateRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Generate.GenerateRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Git/Blobs/BlobsPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Git/Blobs/BlobsPostRequestBody.cs index 0de8ebc9..10aa62f2 100644 --- a/src/GitHub/Repos/Item/Item/Git/Blobs/BlobsPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Git/Blobs/BlobsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Git.Blobs { +namespace GitHub.Repos.Item.Item.Git.Blobs +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class BlobsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class BlobsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class BlobsPostRequestBody : IAdditionalDataHolder, IParsable public string Encoding { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BlobsPostRequestBody() { @@ -38,12 +40,12 @@ public BlobsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BlobsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Git.Blobs.BlobsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BlobsPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Git.Blobs.BlobsPostRequestBody(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content", n => { Content = n.GetStringValue(); } }, - {"encoding", n => { Encoding = n.GetStringValue(); } }, + { "content", n => { Content = n.GetStringValue(); } }, + { "encoding", n => { Encoding = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Git/Blobs/BlobsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Blobs/BlobsRequestBuilder.cs index 31bd28f6..d332e205 100644 --- a/src/GitHub/Repos/Item/Item/Git/Blobs/BlobsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Git/Blobs/BlobsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Git.Blobs.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Git.Blobs { +namespace GitHub.Repos.Item.Item.Git.Blobs +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\blobs /// - public class BlobsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class BlobsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.git.blobs.item collection /// Unique identifier of the item - /// A - public WithFile_shaItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Git.Blobs.Item.WithFile_shaItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("file_sha", position); - return new WithFile_shaItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Git.Blobs.Item.WithFile_shaItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public BlobsRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,42 +49,42 @@ public BlobsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Create a blob /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 409 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 409 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(BlobsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Git.Blobs.BlobsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(BlobsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Git.Blobs.BlobsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"409", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ShortBlob.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ShortBlob.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(BlobsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Git.Blobs.BlobsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(BlobsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Git.Blobs.BlobsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -95,11 +97,11 @@ public RequestInformation ToPostRequestInformation(BlobsPostRequestBody body, Ac /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public BlobsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Git.Blobs.BlobsRequestBuilder WithUrl(string rawUrl) { - return new BlobsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Git.Blobs.BlobsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Git/Blobs/Item/WithFile_shaItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Blobs/Item/WithFile_shaItemRequestBuilder.cs index 60735b62..70e51b0d 100644 --- a/src/GitHub/Repos/Item/Item/Git/Blobs/Item/WithFile_shaItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Git/Blobs/Item/WithFile_shaItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Git.Blobs.Item { +namespace GitHub.Repos.Item.Item.Git.Blobs.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\blobs\{file_sha} /// - public class WithFile_shaItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithFile_shaItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithFile_shaItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,31 +36,31 @@ public WithFile_shaItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// The `content` in the response will always be Base64 encoded.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw blob data.- **`application/vnd.github+json`**: Returns a JSON representation of the blob with `content` as a base64 encoded string. This is the default if no media type is specified.**Note** This endpoint supports blobs up to 100 megabytes in size. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 409 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 409 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"409", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Blob.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Blob.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The `content` in the response will always be Base64 encoded.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw blob data.- **`application/vnd.github+json`**: Returns a JSON representation of the blob with `content` as a base64 encoded string. This is the default if no media type is specified.**Note** This endpoint supports blobs up to 100 megabytes in size. @@ -82,11 +84,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithFile_shaItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Git.Blobs.Item.WithFile_shaItemRequestBuilder WithUrl(string rawUrl) { - return new WithFile_shaItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Git.Blobs.Item.WithFile_shaItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Git/Commits/CommitsPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Git/Commits/CommitsPostRequestBody.cs index 4e92817d..2a54fdb5 100644 --- a/src/GitHub/Repos/Item/Item/Git/Commits/CommitsPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Git/Commits/CommitsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Git.Commits { +namespace GitHub.Repos.Item.Item.Git.Commits +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CommitsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CommitsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -14,18 +16,18 @@ public class CommitsPostRequestBody : IAdditionalDataHolder, IParsable /// Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CommitsPostRequestBody_author? Author { get; set; } + public global::GitHub.Repos.Item.Item.Git.Commits.CommitsPostRequestBody_author? Author { get; set; } #nullable restore #else - public CommitsPostRequestBody_author Author { get; set; } + public global::GitHub.Repos.Item.Item.Git.Commits.CommitsPostRequestBody_author Author { get; set; } #endif /// Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CommitsPostRequestBody_committer? Committer { get; set; } + public global::GitHub.Repos.Item.Item.Git.Commits.CommitsPostRequestBody_committer? Committer { get; set; } #nullable restore #else - public CommitsPostRequestBody_committer Committer { get; set; } + public global::GitHub.Repos.Item.Item.Git.Commits.CommitsPostRequestBody_committer Committer { get; set; } #endif /// The commit message #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -60,7 +62,7 @@ public class CommitsPostRequestBody : IAdditionalDataHolder, IParsable public string Tree { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitsPostRequestBody() { @@ -69,12 +71,12 @@ public CommitsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CommitsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Git.Commits.CommitsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitsPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Git.Commits.CommitsPostRequestBody(); } /// /// The deserialization information for the current model @@ -84,12 +86,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"author", n => { Author = n.GetObjectValue(CommitsPostRequestBody_author.CreateFromDiscriminatorValue); } }, - {"committer", n => { Committer = n.GetObjectValue(CommitsPostRequestBody_committer.CreateFromDiscriminatorValue); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"parents", n => { Parents = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"signature", n => { Signature = n.GetStringValue(); } }, - {"tree", n => { Tree = n.GetStringValue(); } }, + { "author", n => { Author = n.GetObjectValue(global::GitHub.Repos.Item.Item.Git.Commits.CommitsPostRequestBody_author.CreateFromDiscriminatorValue); } }, + { "committer", n => { Committer = n.GetObjectValue(global::GitHub.Repos.Item.Item.Git.Commits.CommitsPostRequestBody_committer.CreateFromDiscriminatorValue); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "parents", n => { Parents = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "signature", n => { Signature = n.GetStringValue(); } }, + { "tree", n => { Tree = n.GetStringValue(); } }, }; } /// @@ -99,8 +101,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("author", Author); - writer.WriteObjectValue("committer", Committer); + writer.WriteObjectValue("author", Author); + writer.WriteObjectValue("committer", Committer); writer.WriteStringValue("message", Message); writer.WriteCollectionOfPrimitiveValues("parents", Parents); writer.WriteStringValue("signature", Signature); diff --git a/src/GitHub/Repos/Item/Item/Git/Commits/CommitsPostRequestBody_author.cs b/src/GitHub/Repos/Item/Item/Git/Commits/CommitsPostRequestBody_author.cs index c875554f..53503b62 100644 --- a/src/GitHub/Repos/Item/Item/Git/Commits/CommitsPostRequestBody_author.cs +++ b/src/GitHub/Repos/Item/Item/Git/Commits/CommitsPostRequestBody_author.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Git.Commits { +namespace GitHub.Repos.Item.Item.Git.Commits +{ /// /// Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details. /// - public class CommitsPostRequestBody_author : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommitsPostRequestBody_author : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -31,7 +33,7 @@ public class CommitsPostRequestBody_author : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitsPostRequestBody_author() { @@ -40,12 +42,12 @@ public CommitsPostRequestBody_author() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CommitsPostRequestBody_author CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Git.Commits.CommitsPostRequestBody_author CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitsPostRequestBody_author(); + return new global::GitHub.Repos.Item.Item.Git.Commits.CommitsPostRequestBody_author(); } /// /// The deserialization information for the current model @@ -55,9 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"date", n => { Date = n.GetDateTimeOffsetValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "date", n => { Date = n.GetDateTimeOffsetValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Git/Commits/CommitsPostRequestBody_committer.cs b/src/GitHub/Repos/Item/Item/Git/Commits/CommitsPostRequestBody_committer.cs index 6859f488..d0257e1a 100644 --- a/src/GitHub/Repos/Item/Item/Git/Commits/CommitsPostRequestBody_committer.cs +++ b/src/GitHub/Repos/Item/Item/Git/Commits/CommitsPostRequestBody_committer.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Git.Commits { +namespace GitHub.Repos.Item.Item.Git.Commits +{ /// /// Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details. /// - public class CommitsPostRequestBody_committer : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommitsPostRequestBody_committer : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -31,7 +33,7 @@ public class CommitsPostRequestBody_committer : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitsPostRequestBody_committer() { @@ -40,12 +42,12 @@ public CommitsPostRequestBody_committer() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CommitsPostRequestBody_committer CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Git.Commits.CommitsPostRequestBody_committer CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitsPostRequestBody_committer(); + return new global::GitHub.Repos.Item.Item.Git.Commits.CommitsPostRequestBody_committer(); } /// /// The deserialization information for the current model @@ -55,9 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"date", n => { Date = n.GetDateTimeOffsetValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "date", n => { Date = n.GetDateTimeOffsetValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Git/Commits/CommitsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Commits/CommitsRequestBuilder.cs index b0eee555..290ab5c6 100644 --- a/src/GitHub/Repos/Item/Item/Git/Commits/CommitsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Git/Commits/CommitsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Git.Commits.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Git.Commits { +namespace GitHub.Repos.Item.Item.Git.Commits +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\commits /// - public class CommitsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommitsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.git.commits.item collection /// Unique identifier of the item - /// A - public WithCommit_shaItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Git.Commits.Item.WithCommit_shaItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("commit_sha", position); - return new WithCommit_shaItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Git.Commits.Item.WithCommit_shaItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public CommitsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,31 +49,31 @@ public CommitsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Creates a new Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects).**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 the 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 /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 409 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 409 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(CommitsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Git.Commits.CommitsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(CommitsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Git.Commits.CommitsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"409", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GitCommit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GitCommit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Creates a new Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects).**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 the 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. | @@ -81,11 +83,11 @@ public async Task PostAsync(CommitsPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(CommitsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Git.Commits.CommitsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CommitsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Git.Commits.CommitsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -98,11 +100,11 @@ public RequestInformation ToPostRequestInformation(CommitsPostRequestBody body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CommitsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Git.Commits.CommitsRequestBuilder WithUrl(string rawUrl) { - return new CommitsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Git.Commits.CommitsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Git/Commits/Item/WithCommit_shaItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Commits/Item/WithCommit_shaItemRequestBuilder.cs index 5a0fdcce..b2df3ce5 100644 --- a/src/GitHub/Repos/Item/Item/Git/Commits/Item/WithCommit_shaItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Git/Commits/Item/WithCommit_shaItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Git.Commits.Item { +namespace GitHub.Repos.Item.Item.Git.Commits.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\commits\{commit_sha} /// - public class WithCommit_shaItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithCommit_shaItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithCommit_shaItemRequestBuilder(Dictionary pathParameter { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public WithCommit_shaItemRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Gets a Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects).To get the contents of a commit, see "[Get a commit](/rest/commits/commits#get-a-commit)."**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 the 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 /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 409 status code + /// When receiving a 404 status code + /// When receiving a 409 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"409", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GitCommit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GitCommit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets a Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects).To get the contents of a commit, see "[Get a commit](/rest/commits/commits#get-a-commit)."**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 the 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. | @@ -78,11 +80,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithCommit_shaItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Git.Commits.Item.WithCommit_shaItemRequestBuilder WithUrl(string rawUrl) { - return new WithCommit_shaItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Git.Commits.Item.WithCommit_shaItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Git/GitRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/GitRequestBuilder.cs index 7c1a96e8..1e0bb213 100644 --- a/src/GitHub/Repos/Item/Item/Git/GitRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Git/GitRequestBuilder.cs @@ -6,55 +6,57 @@ using GitHub.Repos.Item.Item.Git.Refs; using GitHub.Repos.Item.Item.Git.Tags; using GitHub.Repos.Item.Item.Git.Trees; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Repos.Item.Item.Git { +namespace GitHub.Repos.Item.Item.Git +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git /// - public class GitRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class GitRequestBuilder : BaseRequestBuilder { /// The blobs property - public BlobsRequestBuilder Blobs + public global::GitHub.Repos.Item.Item.Git.Blobs.BlobsRequestBuilder Blobs { - get => new BlobsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Git.Blobs.BlobsRequestBuilder(PathParameters, RequestAdapter); } /// The commits property - public CommitsRequestBuilder Commits + public global::GitHub.Repos.Item.Item.Git.Commits.CommitsRequestBuilder Commits { - get => new CommitsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Git.Commits.CommitsRequestBuilder(PathParameters, RequestAdapter); } /// The matchingRefs property - public MatchingRefsRequestBuilder MatchingRefs + public global::GitHub.Repos.Item.Item.Git.MatchingRefs.MatchingRefsRequestBuilder MatchingRefs { - get => new MatchingRefsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Git.MatchingRefs.MatchingRefsRequestBuilder(PathParameters, RequestAdapter); } /// The ref property - public RefRequestBuilder Ref + public global::GitHub.Repos.Item.Item.Git.Ref.RefRequestBuilder Ref { - get => new RefRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Git.Ref.RefRequestBuilder(PathParameters, RequestAdapter); } /// The refs property - public RefsRequestBuilder Refs + public global::GitHub.Repos.Item.Item.Git.Refs.RefsRequestBuilder Refs { - get => new RefsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Git.Refs.RefsRequestBuilder(PathParameters, RequestAdapter); } /// The tags property - public TagsRequestBuilder Tags + public global::GitHub.Repos.Item.Item.Git.Tags.TagsRequestBuilder Tags { - get => new TagsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Git.Tags.TagsRequestBuilder(PathParameters, RequestAdapter); } /// The trees property - public TreesRequestBuilder Trees + public global::GitHub.Repos.Item.Item.Git.Trees.TreesRequestBuilder Trees { - get => new TreesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Git.Trees.TreesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -62,7 +64,7 @@ public GitRequestBuilder(Dictionary pathParameters, IRequestAdap { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Repos/Item/Item/Git/MatchingRefs/Item/WithRefItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/MatchingRefs/Item/WithRefItemRequestBuilder.cs index d8ea81b6..ef37cce8 100644 --- a/src/GitHub/Repos/Item/Item/Git/MatchingRefs/Item/WithRefItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Git/MatchingRefs/Item/WithRefItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Git.MatchingRefs.Item { +namespace GitHub.Repos.Item.Item.Git.MatchingRefs.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\matching-refs\{ref} /// - public class WithRefItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRefItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithRefItemRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,26 +36,26 @@ public WithRefItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Returns an array of references from your Git database that match the supplied name. The `:ref` in the URL must be formatted as `heads/<branch name>` for branches and `tags/<tag name>` for tags. If the `:ref` doesn't exist in the repository, but existing refs start with `:ref`, they will be returned as an array.When you use this endpoint without providing a `:ref`, it will return an array of all the references from your Git database, including notes and stashes if they exist on the server. Anything in the namespace is returned, not just `heads` and `tags`.> [!NOTE]> You need to explicitly [request a pull request](https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#get-a-pull-request) to trigger a test merge commit, which checks the mergeability of pull requests. For more information, see "[Checking mergeability of pull requests](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-git-database-api#checking-mergeability-of-pull-requests)".If you request matching references for a branch named `feature` but the branch `feature` doesn't exist, the response can still include other matching head refs that start with the word `feature`, such as `featureA` and `featureB`. /// API method documentation /// - /// A List<GitRef> + /// A List<global::GitHub.Models.GitRef> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 409 status code + /// When receiving a 409 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"409", BasicError.CreateFromDiscriminatorValue}, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GitRef.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.GitRef.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Returns an array of references from your Git database that match the supplied name. The `:ref` in the URL must be formatted as `heads/<branch name>` for branches and `tags/<tag name>` for tags. If the `:ref` doesn't exist in the repository, but existing refs start with `:ref`, they will be returned as an array.When you use this endpoint without providing a `:ref`, it will return an array of all the references from your Git database, including notes and stashes if they exist on the server. Anything in the namespace is returned, not just `heads` and `tags`.> [!NOTE]> You need to explicitly [request a pull request](https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#get-a-pull-request) to trigger a test merge commit, which checks the mergeability of pull requests. For more information, see "[Checking mergeability of pull requests](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-git-database-api#checking-mergeability-of-pull-requests)".If you request matching references for a branch named `feature` but the branch `feature` doesn't exist, the response can still include other matching head refs that start with the word `feature`, such as `featureA` and `featureB`. @@ -77,11 +79,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRefItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Git.MatchingRefs.Item.WithRefItemRequestBuilder WithUrl(string rawUrl) { - return new WithRefItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Git.MatchingRefs.Item.WithRefItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Git/MatchingRefs/MatchingRefsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/MatchingRefs/MatchingRefsRequestBuilder.cs index ae5abd67..bd4989a8 100644 --- a/src/GitHub/Repos/Item/Item/Git/MatchingRefs/MatchingRefsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Git/MatchingRefs/MatchingRefsRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Repos.Item.Item.Git.MatchingRefs.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Repos.Item.Item.Git.MatchingRefs { +namespace GitHub.Repos.Item.Item.Git.MatchingRefs +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\matching-refs /// - public class MatchingRefsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class MatchingRefsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.git.matchingRefs.item collection /// The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. - /// A - public WithRefItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Git.MatchingRefs.Item.WithRefItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("ref", position); - return new WithRefItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Git.MatchingRefs.Item.WithRefItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public MatchingRefsRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Repos/Item/Item/Git/Ref/Item/WithRefItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Ref/Item/WithRefItemRequestBuilder.cs index 4279d197..3a2c6fa2 100644 --- a/src/GitHub/Repos/Item/Item/Git/Ref/Item/WithRefItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Git/Ref/Item/WithRefItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Git.Ref.Item { +namespace GitHub.Repos.Item.Item.Git.Ref.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\ref\{ref} /// - public class WithRefItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRefItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithRefItemRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public WithRefItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Returns a single reference from your Git database. The `:ref` in the URL must be formatted as `heads/<branch name>` for branches and `tags/<tag name>` for tags. If the `:ref` doesn't match an existing ref, a `404` is returned.> [!NOTE]> You need to explicitly [request a pull request](https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#get-a-pull-request) to trigger a test merge commit, which checks the mergeability of pull requests. For more information, see "[Checking mergeability of pull requests](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-git-database-api#checking-mergeability-of-pull-requests)". /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 409 status code + /// When receiving a 404 status code + /// When receiving a 409 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"409", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GitRef.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GitRef.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Returns a single reference from your Git database. The `:ref` in the URL must be formatted as `heads/<branch name>` for branches and `tags/<tag name>` for tags. If the `:ref` doesn't match an existing ref, a `404` is returned.> [!NOTE]> You need to explicitly [request a pull request](https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#get-a-pull-request) to trigger a test merge commit, which checks the mergeability of pull requests. For more information, see "[Checking mergeability of pull requests](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-git-database-api#checking-mergeability-of-pull-requests)". @@ -78,11 +80,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRefItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Git.Ref.Item.WithRefItemRequestBuilder WithUrl(string rawUrl) { - return new WithRefItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Git.Ref.Item.WithRefItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Git/Ref/RefRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Ref/RefRequestBuilder.cs index 0cd13046..3e2924af 100644 --- a/src/GitHub/Repos/Item/Item/Git/Ref/RefRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Git/Ref/RefRequestBuilder.cs @@ -1,31 +1,33 @@ // using GitHub.Repos.Item.Item.Git.Ref.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace GitHub.Repos.Item.Item.Git.Ref { +namespace GitHub.Repos.Item.Item.Git.Ref +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\ref /// - public class RefRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RefRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.git.ref.item collection /// The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. - /// A - public WithRefItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Git.Ref.Item.WithRefItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("ref", position); - return new WithRefItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Git.Ref.Item.WithRefItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/GitHub/Repos/Item/Item/Git/Refs/Item/WithRefItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Refs/Item/WithRefItemRequestBuilder.cs index 240b1d40..734299f7 100644 --- a/src/GitHub/Repos/Item/Item/Git/Refs/Item/WithRefItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Git/Refs/Item/WithRefItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Git.Refs.Item { +namespace GitHub.Repos.Item.Item.Git.Refs.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\refs\{ref} /// - public class WithRefItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithRefItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithRefItemRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,8 +38,8 @@ public WithRefItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 409 status code - /// When receiving a 422 status code + /// When receiving a 409 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -50,8 +52,8 @@ public async Task DeleteAsync(Action> { - {"409", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -59,29 +61,29 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 409 status code - /// When receiving a 422 status code + /// When receiving a 409 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithRefPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Git.Refs.Item.WithRefPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithRefPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Git.Refs.Item.WithRefPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"409", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GitRef.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GitRef.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Deletes the provided reference. @@ -110,11 +112,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithRefPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Git.Refs.Item.WithRefPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithRefPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Git.Refs.Item.WithRefPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -127,11 +129,11 @@ public RequestInformation ToPatchRequestInformation(WithRefPatchRequestBody body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRefItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Git.Refs.Item.WithRefItemRequestBuilder WithUrl(string rawUrl) { - return new WithRefItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Git.Refs.Item.WithRefItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Git/Refs/Item/WithRefPatchRequestBody.cs b/src/GitHub/Repos/Item/Item/Git/Refs/Item/WithRefPatchRequestBody.cs index 484e8d8f..d88e61b2 100644 --- a/src/GitHub/Repos/Item/Item/Git/Refs/Item/WithRefPatchRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Git/Refs/Item/WithRefPatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Git.Refs.Item { +namespace GitHub.Repos.Item.Item.Git.Refs.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithRefPatchRequestBody : IAdditionalDataHolder, IParsable + public partial class WithRefPatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,7 +24,7 @@ public class WithRefPatchRequestBody : IAdditionalDataHolder, IParsable public string Sha { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithRefPatchRequestBody() { @@ -31,12 +33,12 @@ public WithRefPatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithRefPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Git.Refs.Item.WithRefPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithRefPatchRequestBody(); + return new global::GitHub.Repos.Item.Item.Git.Refs.Item.WithRefPatchRequestBody(); } /// /// The deserialization information for the current model @@ -46,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"force", n => { Force = n.GetBoolValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, + { "force", n => { Force = n.GetBoolValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Git/Refs/RefsPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Git/Refs/RefsPostRequestBody.cs index 183857de..88c0c983 100644 --- a/src/GitHub/Repos/Item/Item/Git/Refs/RefsPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Git/Refs/RefsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Git.Refs { +namespace GitHub.Repos.Item.Item.Git.Refs +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class RefsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RefsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -28,7 +30,7 @@ public class RefsPostRequestBody : IAdditionalDataHolder, IParsable public string Sha { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RefsPostRequestBody() { @@ -37,12 +39,12 @@ public RefsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RefsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Git.Refs.RefsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RefsPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Git.Refs.RefsPostRequestBody(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"ref", n => { Ref = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, + { "ref", n => { Ref = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Git/Refs/RefsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Refs/RefsRequestBuilder.cs index 69fc444d..3aca3abd 100644 --- a/src/GitHub/Repos/Item/Item/Git/Refs/RefsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Git/Refs/RefsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Git.Refs.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Git.Refs { +namespace GitHub.Repos.Item.Item.Git.Refs +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\refs /// - public class RefsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class RefsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.git.refs.item collection /// The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. - /// A - public WithRefItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Git.Refs.Item.WithRefItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("ref", position); - return new WithRefItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Git.Refs.Item.WithRefItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public RefsRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,29 +49,29 @@ public RefsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// Creates a reference for your repository. You are unable to create new references for empty repositories, even if the commit SHA-1 hash used exists. Empty repositories are repositories without branches. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 409 status code - /// When receiving a 422 status code + /// When receiving a 409 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(RefsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Git.Refs.RefsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(RefsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Git.Refs.RefsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"409", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GitRef.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GitRef.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Creates a reference for your repository. You are unable to create new references for empty repositories, even if the commit SHA-1 hash used exists. Empty repositories are repositories without branches. @@ -79,11 +81,11 @@ public async Task PostAsync(RefsPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(RefsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Git.Refs.RefsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RefsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Git.Refs.RefsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -96,11 +98,11 @@ public RequestInformation ToPostRequestInformation(RefsPostRequestBody body, Act /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RefsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Git.Refs.RefsRequestBuilder WithUrl(string rawUrl) { - return new RefsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Git.Refs.RefsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Git/Tags/Item/WithTag_shaItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Tags/Item/WithTag_shaItemRequestBuilder.cs index 807b6e21..a4d621ca 100644 --- a/src/GitHub/Repos/Item/Item/Git/Tags/Item/WithTag_shaItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Git/Tags/Item/WithTag_shaItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Git.Tags.Item { +namespace GitHub.Repos.Item.Item.Git.Tags.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\tags\{tag_sha} /// - public class WithTag_shaItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithTag_shaItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithTag_shaItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public WithTag_shaItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// **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 /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 409 status code + /// When receiving a 404 status code + /// When receiving a 409 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"409", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GitTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GitTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// **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. | @@ -78,11 +80,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithTag_shaItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Git.Tags.Item.WithTag_shaItemRequestBuilder WithUrl(string rawUrl) { - return new WithTag_shaItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Git.Tags.Item.WithTag_shaItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Git/Tags/TagsPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Git/Tags/TagsPostRequestBody.cs index 0c0e3184..62930334 100644 --- a/src/GitHub/Repos/Item/Item/Git/Tags/TagsPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Git/Tags/TagsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Git.Tags { +namespace GitHub.Repos.Item.Item.Git.Tags +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TagsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TagsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -38,15 +40,15 @@ public class TagsPostRequestBody : IAdditionalDataHolder, IParsable /// An object with information about the individual creating the tag. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TagsPostRequestBody_tagger? Tagger { get; set; } + public global::GitHub.Repos.Item.Item.Git.Tags.TagsPostRequestBody_tagger? Tagger { get; set; } #nullable restore #else - public TagsPostRequestBody_tagger Tagger { get; set; } + public global::GitHub.Repos.Item.Item.Git.Tags.TagsPostRequestBody_tagger Tagger { get; set; } #endif /// The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`. - public TagsPostRequestBody_type? Type { get; set; } + public global::GitHub.Repos.Item.Item.Git.Tags.TagsPostRequestBody_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TagsPostRequestBody() { @@ -55,12 +57,12 @@ public TagsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TagsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Git.Tags.TagsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TagsPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Git.Tags.TagsPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,11 +72,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"message", n => { Message = n.GetStringValue(); } }, - {"object", n => { Object = n.GetStringValue(); } }, - {"tag", n => { Tag = n.GetStringValue(); } }, - {"tagger", n => { Tagger = n.GetObjectValue(TagsPostRequestBody_tagger.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "object", n => { Object = n.GetStringValue(); } }, + { "tag", n => { Tag = n.GetStringValue(); } }, + { "tagger", n => { Tagger = n.GetObjectValue(global::GitHub.Repos.Item.Item.Git.Tags.TagsPostRequestBody_tagger.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -87,8 +89,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("message", Message); writer.WriteStringValue("object", Object); writer.WriteStringValue("tag", Tag); - writer.WriteObjectValue("tagger", Tagger); - writer.WriteEnumValue("type", Type); + writer.WriteObjectValue("tagger", Tagger); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Git/Tags/TagsPostRequestBody_tagger.cs b/src/GitHub/Repos/Item/Item/Git/Tags/TagsPostRequestBody_tagger.cs index 191e9fc4..2c76233a 100644 --- a/src/GitHub/Repos/Item/Item/Git/Tags/TagsPostRequestBody_tagger.cs +++ b/src/GitHub/Repos/Item/Item/Git/Tags/TagsPostRequestBody_tagger.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Git.Tags { +namespace GitHub.Repos.Item.Item.Git.Tags +{ /// /// An object with information about the individual creating the tag. /// - public class TagsPostRequestBody_tagger : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TagsPostRequestBody_tagger : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -31,7 +33,7 @@ public class TagsPostRequestBody_tagger : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TagsPostRequestBody_tagger() { @@ -40,12 +42,12 @@ public TagsPostRequestBody_tagger() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TagsPostRequestBody_tagger CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Git.Tags.TagsPostRequestBody_tagger CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TagsPostRequestBody_tagger(); + return new global::GitHub.Repos.Item.Item.Git.Tags.TagsPostRequestBody_tagger(); } /// /// The deserialization information for the current model @@ -55,9 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"date", n => { Date = n.GetDateTimeOffsetValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "date", n => { Date = n.GetDateTimeOffsetValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Git/Tags/TagsPostRequestBody_type.cs b/src/GitHub/Repos/Item/Item/Git/Tags/TagsPostRequestBody_type.cs index 8f16f5a0..d44572a4 100644 --- a/src/GitHub/Repos/Item/Item/Git/Tags/TagsPostRequestBody_type.cs +++ b/src/GitHub/Repos/Item/Item/Git/Tags/TagsPostRequestBody_type.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Git.Tags { +namespace GitHub.Repos.Item.Item.Git.Tags +{ /// The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum TagsPostRequestBody_type { [EnumMember(Value = "commit")] diff --git a/src/GitHub/Repos/Item/Item/Git/Tags/TagsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Tags/TagsRequestBuilder.cs index a2b0a7b7..2775cddc 100644 --- a/src/GitHub/Repos/Item/Item/Git/Tags/TagsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Git/Tags/TagsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Git.Tags.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Git.Tags { +namespace GitHub.Repos.Item.Item.Git.Tags +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\tags /// - public class TagsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TagsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.git.tags.item collection /// Unique identifier of the item - /// A - public WithTag_shaItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Git.Tags.Item.WithTag_shaItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("tag_sha", position); - return new WithTag_shaItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Git.Tags.Item.WithTag_shaItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public TagsRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,29 +49,29 @@ public TagsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then [create](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#create-a-reference) the `refs/tags/[tag]` reference. If you want to create a lightweight tag, you only have to [create](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#create-a-reference) the tag reference - this call would be unnecessary.**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 /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 409 status code - /// When receiving a 422 status code + /// When receiving a 409 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(TagsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Git.Tags.TagsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(TagsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Git.Tags.TagsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"409", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GitTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GitTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then [create](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#create-a-reference) the `refs/tags/[tag]` reference. If you want to create a lightweight tag, you only have to [create](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#create-a-reference) the tag reference - this call would be unnecessary.**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. | @@ -79,11 +81,11 @@ public async Task PostAsync(TagsPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(TagsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Git.Tags.TagsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TagsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Git.Tags.TagsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -96,11 +98,11 @@ public RequestInformation ToPostRequestInformation(TagsPostRequestBody body, Act /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public TagsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Git.Tags.TagsRequestBuilder WithUrl(string rawUrl) { - return new TagsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Git.Tags.TagsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Git/Trees/Item/WithTree_shaItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Trees/Item/WithTree_shaItemRequestBuilder.cs index cd37c815..52e59c64 100644 --- a/src/GitHub/Repos/Item/Item/Git/Trees/Item/WithTree_shaItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Git/Trees/Item/WithTree_shaItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Git.Trees.Item { +namespace GitHub.Repos.Item.Item.Git.Trees.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\trees\{tree_sha} /// - public class WithTree_shaItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithTree_shaItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithTree_shaItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,29 +36,29 @@ public WithTree_shaItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Returns a single tree using the SHA1 value or ref name for that tree.If `truncated` is `true` in the response then the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, use the non-recursive method of fetching trees, and fetch one sub-tree at a time.> [!NOTE]> The limit for the `tree` array is 100,000 entries with a maximum size of 7 MB when using the `recursive` parameter. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 409 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 409 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"409", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GitTree.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GitTree.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Returns a single tree using the SHA1 value or ref name for that tree.If `truncated` is `true` in the response then the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, use the non-recursive method of fetching trees, and fetch one sub-tree at a time.> [!NOTE]> The limit for the `tree` array is 100,000 entries with a maximum size of 7 MB when using the `recursive` parameter. @@ -65,11 +67,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -80,16 +82,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithTree_shaItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Git.Trees.Item.WithTree_shaItemRequestBuilder WithUrl(string rawUrl) { - return new WithTree_shaItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Git.Trees.Item.WithTree_shaItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns a single tree using the SHA1 value or ref name for that tree.If `truncated` is `true` in the response then the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, use the non-recursive method of fetching trees, and fetch one sub-tree at a time.> [!NOTE]> The limit for the `tree` array is 100,000 entries with a maximum size of 7 MB when using the `recursive` parameter. /// - public class WithTree_shaItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithTree_shaItemRequestBuilderGetQueryParameters { /// Setting this parameter to any value returns the objects or subtrees referenced by the tree specified in `:tree_sha`. For example, setting `recursive` to any of the following will enable returning objects or subtrees: `0`, `1`, `"true"`, and `"false"`. Omit this parameter to prevent recursively returning objects or subtrees. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Repos/Item/Item/Git/Trees/TreesPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Git/Trees/TreesPostRequestBody.cs index 2cc8f2d6..1b5d315a 100644 --- a/src/GitHub/Repos/Item/Item/Git/Trees/TreesPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Git/Trees/TreesPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Git.Trees { +namespace GitHub.Repos.Item.Item.Git.Trees +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TreesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TreesPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -22,13 +24,13 @@ public class TreesPostRequestBody : IAdditionalDataHolder, IParsable /// Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Tree { get; set; } + public List? Tree { get; set; } #nullable restore #else - public List Tree { get; set; } + public List Tree { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TreesPostRequestBody() { @@ -37,12 +39,12 @@ public TreesPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TreesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Git.Trees.TreesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TreesPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Git.Trees.TreesPostRequestBody(); } /// /// The deserialization information for the current model @@ -52,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"base_tree", n => { BaseTree = n.GetStringValue(); } }, - {"tree", n => { Tree = n.GetCollectionOfObjectValues(TreesPostRequestBody_tree.CreateFromDiscriminatorValue)?.ToList(); } }, + { "base_tree", n => { BaseTree = n.GetStringValue(); } }, + { "tree", n => { Tree = n.GetCollectionOfObjectValues(global::GitHub.Repos.Item.Item.Git.Trees.TreesPostRequestBody_tree.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -64,7 +66,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("base_tree", BaseTree); - writer.WriteCollectionOfObjectValues("tree", Tree); + writer.WriteCollectionOfObjectValues("tree", Tree); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Git/Trees/TreesPostRequestBody_tree.cs b/src/GitHub/Repos/Item/Item/Git/Trees/TreesPostRequestBody_tree.cs index 69fc9bce..50e20525 100644 --- a/src/GitHub/Repos/Item/Item/Git/Trees/TreesPostRequestBody_tree.cs +++ b/src/GitHub/Repos/Item/Item/Git/Trees/TreesPostRequestBody_tree.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Git.Trees { +namespace GitHub.Repos.Item.Item.Git.Trees +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class TreesPostRequestBody_tree : IAdditionalDataHolder, IParsable + public partial class TreesPostRequestBody_tree : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class TreesPostRequestBody_tree : IAdditionalDataHolder, IParsable public string Content { get; set; } #endif /// The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink. - public TreesPostRequestBody_tree_mode? Mode { get; set; } + public global::GitHub.Repos.Item.Item.Git.Trees.TreesPostRequestBody_tree_mode? Mode { get; set; } /// The file referenced in the tree. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -38,9 +40,9 @@ public class TreesPostRequestBody_tree : IAdditionalDataHolder, IParsable public string Sha { get; set; } #endif /// Either `blob`, `tree`, or `commit`. - public TreesPostRequestBody_tree_type? Type { get; set; } + public global::GitHub.Repos.Item.Item.Git.Trees.TreesPostRequestBody_tree_type? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TreesPostRequestBody_tree() { @@ -49,12 +51,12 @@ public TreesPostRequestBody_tree() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TreesPostRequestBody_tree CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Git.Trees.TreesPostRequestBody_tree CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TreesPostRequestBody_tree(); + return new global::GitHub.Repos.Item.Item.Git.Trees.TreesPostRequestBody_tree(); } /// /// The deserialization information for the current model @@ -64,11 +66,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content", n => { Content = n.GetStringValue(); } }, - {"mode", n => { Mode = n.GetEnumValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"sha", n => { Sha = n.GetStringValue(); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "content", n => { Content = n.GetStringValue(); } }, + { "mode", n => { Mode = n.GetEnumValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "sha", n => { Sha = n.GetStringValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -79,10 +81,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("content", Content); - writer.WriteEnumValue("mode", Mode); + writer.WriteEnumValue("mode", Mode); writer.WriteStringValue("path", Path); writer.WriteStringValue("sha", Sha); - writer.WriteEnumValue("type", Type); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Git/Trees/TreesPostRequestBody_tree_mode.cs b/src/GitHub/Repos/Item/Item/Git/Trees/TreesPostRequestBody_tree_mode.cs index 4d2327f9..ecf1ecc6 100644 --- a/src/GitHub/Repos/Item/Item/Git/Trees/TreesPostRequestBody_tree_mode.cs +++ b/src/GitHub/Repos/Item/Item/Git/Trees/TreesPostRequestBody_tree_mode.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Git.Trees { +namespace GitHub.Repos.Item.Item.Git.Trees +{ /// The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum TreesPostRequestBody_tree_mode { [EnumMember(Value = "100644")] diff --git a/src/GitHub/Repos/Item/Item/Git/Trees/TreesPostRequestBody_tree_type.cs b/src/GitHub/Repos/Item/Item/Git/Trees/TreesPostRequestBody_tree_type.cs index 2d4f45f8..09a18de1 100644 --- a/src/GitHub/Repos/Item/Item/Git/Trees/TreesPostRequestBody_tree_type.cs +++ b/src/GitHub/Repos/Item/Item/Git/Trees/TreesPostRequestBody_tree_type.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Git.Trees { +namespace GitHub.Repos.Item.Item.Git.Trees +{ /// Either `blob`, `tree`, or `commit`. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum TreesPostRequestBody_tree_type { [EnumMember(Value = "blob")] diff --git a/src/GitHub/Repos/Item/Item/Git/Trees/TreesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Trees/TreesRequestBuilder.cs index d109539b..8c48fedd 100644 --- a/src/GitHub/Repos/Item/Item/Git/Trees/TreesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Git/Trees/TreesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Git.Trees.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Git.Trees { +namespace GitHub.Repos.Item.Item.Git.Trees +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\trees /// - public class TreesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TreesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.git.trees.item collection /// The SHA1 value or ref (branch or tag) name of the tree. - /// A - public WithTree_shaItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Git.Trees.Item.WithTree_shaItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("tree_sha", position); - return new WithTree_shaItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Git.Trees.Item.WithTree_shaItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public TreesRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,33 +49,33 @@ public TreesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.If you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see "[Create a commit](https://docs.github.com/enterprise-cloud@latest//rest/git/commits#create-a-commit)" and "[Update a reference](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#update-a-reference)."Returns an error if you try to delete a file that does not exist. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 409 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 409 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(TreesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Git.Trees.TreesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(TreesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Git.Trees.TreesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"409", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GitTree.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GitTree.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.If you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see "[Create a commit](https://docs.github.com/enterprise-cloud@latest//rest/git/commits#create-a-commit)" and "[Update a reference](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#update-a-reference)."Returns an error if you try to delete a file that does not exist. @@ -83,11 +85,11 @@ public async Task PostAsync(TreesPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(TreesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Git.Trees.TreesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TreesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Git.Trees.TreesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -100,11 +102,11 @@ public RequestInformation ToPostRequestInformation(TreesPostRequestBody body, Ac /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public TreesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Git.Trees.TreesRequestBuilder WithUrl(string rawUrl) { - return new TreesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Git.Trees.TreesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Hooks/HooksPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Hooks/HooksPostRequestBody.cs index 97087187..f3f0f671 100644 --- a/src/GitHub/Repos/Item/Item/Hooks/HooksPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Hooks/HooksPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Hooks { +namespace GitHub.Repos.Item.Item.Hooks +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class HooksPostRequestBody : IParsable + public partial class HooksPostRequestBody : IParsable #pragma warning restore CS1591 { /// Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. @@ -14,10 +16,10 @@ public class HooksPostRequestBody : IParsable /// Key/value pairs to provide settings for this webhook. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public HooksPostRequestBody_config? Config { get; set; } + public global::GitHub.Repos.Item.Item.Hooks.HooksPostRequestBody_config? Config { get; set; } #nullable restore #else - public HooksPostRequestBody_config Config { get; set; } + public global::GitHub.Repos.Item.Item.Hooks.HooksPostRequestBody_config Config { get; set; } #endif /// Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -38,12 +40,12 @@ public class HooksPostRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static HooksPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Hooks.HooksPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new HooksPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Hooks.HooksPostRequestBody(); } /// /// The deserialization information for the current model @@ -53,10 +55,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"active", n => { Active = n.GetBoolValue(); } }, - {"config", n => { Config = n.GetObjectValue(HooksPostRequestBody_config.CreateFromDiscriminatorValue); } }, - {"events", n => { Events = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "active", n => { Active = n.GetBoolValue(); } }, + { "config", n => { Config = n.GetObjectValue(global::GitHub.Repos.Item.Item.Hooks.HooksPostRequestBody_config.CreateFromDiscriminatorValue); } }, + { "events", n => { Events = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// @@ -67,7 +69,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("active", Active); - writer.WriteObjectValue("config", Config); + writer.WriteObjectValue("config", Config); writer.WriteCollectionOfPrimitiveValues("events", Events); writer.WriteStringValue("name", Name); } diff --git a/src/GitHub/Repos/Item/Item/Hooks/HooksPostRequestBody_config.cs b/src/GitHub/Repos/Item/Item/Hooks/HooksPostRequestBody_config.cs index 77805d32..454acd26 100644 --- a/src/GitHub/Repos/Item/Item/Hooks/HooksPostRequestBody_config.cs +++ b/src/GitHub/Repos/Item/Item/Hooks/HooksPostRequestBody_config.cs @@ -1,15 +1,17 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Hooks { +namespace GitHub.Repos.Item.Item.Hooks +{ /// /// Key/value pairs to provide settings for this webhook. /// - public class HooksPostRequestBody_config : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class HooksPostRequestBody_config : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -24,10 +26,10 @@ public class HooksPostRequestBody_config : IAdditionalDataHolder, IParsable /// The insecure_ssl property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WebhookConfigInsecureSsl? InsecureSsl { get; set; } + public global::GitHub.Models.WebhookConfigInsecureSsl? InsecureSsl { get; set; } #nullable restore #else - public WebhookConfigInsecureSsl InsecureSsl { get; set; } + public global::GitHub.Models.WebhookConfigInsecureSsl InsecureSsl { get; set; } #endif /// 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/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -46,7 +48,7 @@ public class HooksPostRequestBody_config : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public HooksPostRequestBody_config() { @@ -55,12 +57,12 @@ public HooksPostRequestBody_config() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static HooksPostRequestBody_config CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Hooks.HooksPostRequestBody_config CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new HooksPostRequestBody_config(); + return new global::GitHub.Repos.Item.Item.Hooks.HooksPostRequestBody_config(); } /// /// The deserialization information for the current model @@ -70,10 +72,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content_type", n => { ContentType = n.GetStringValue(); } }, - {"insecure_ssl", n => { InsecureSsl = n.GetObjectValue(WebhookConfigInsecureSsl.CreateFromDiscriminatorValue); } }, - {"secret", n => { Secret = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "content_type", n => { ContentType = n.GetStringValue(); } }, + { "insecure_ssl", n => { InsecureSsl = n.GetObjectValue(global::GitHub.Models.WebhookConfigInsecureSsl.CreateFromDiscriminatorValue); } }, + { "secret", n => { Secret = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -84,7 +86,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("content_type", ContentType); - writer.WriteObjectValue("insecure_ssl", InsecureSsl); + writer.WriteObjectValue("insecure_ssl", InsecureSsl); writer.WriteStringValue("secret", Secret); writer.WriteStringValue("url", Url); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Repos/Item/Item/Hooks/HooksRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Hooks/HooksRequestBuilder.cs index d37c1efd..f15633b6 100644 --- a/src/GitHub/Repos/Item/Item/Hooks/HooksRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Hooks/HooksRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Hooks.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Hooks { +namespace GitHub.Repos.Item.Item.Hooks +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\hooks /// - public class HooksRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class HooksRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.hooks.item collection /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. - /// A - public WithHook_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Hooks.Item.WithHook_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("hook_id", position); - return new WithHook_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Hooks.Item.WithHook_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public HooksRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,56 +49,56 @@ public HooksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days. /// API method documentation /// - /// A List<GitHub.Models.Hook> + /// A List<global::GitHub.Models.Hook> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GitHub.Models.Hook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Hook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks canshare the same `config` as long as those webhooks do not have any `events` that overlap. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(HooksPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Hooks.HooksPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(HooksPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Hooks.HooksPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.Hook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Hook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days. @@ -105,11 +107,11 @@ public HooksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -125,11 +127,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(HooksPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Hooks.HooksPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(HooksPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Hooks.HooksPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -142,16 +144,17 @@ public RequestInformation ToPostRequestInformation(HooksPostRequestBody body, Ac /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public HooksRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Hooks.HooksRequestBuilder WithUrl(string rawUrl) { - return new HooksRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Hooks.HooksRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days. /// - public class HooksRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class HooksRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Hooks/Item/Config/ConfigPatchRequestBody.cs b/src/GitHub/Repos/Item/Item/Hooks/Item/Config/ConfigPatchRequestBody.cs index 889cf6ce..6c16a3d8 100644 --- a/src/GitHub/Repos/Item/Item/Hooks/Item/Config/ConfigPatchRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Hooks/Item/Config/ConfigPatchRequestBody.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Hooks.Item.Config { +namespace GitHub.Repos.Item.Item.Hooks.Item.Config +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ConfigPatchRequestBody : IParsable + public partial class ConfigPatchRequestBody : IParsable #pragma warning restore CS1591 { /// The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`. @@ -21,10 +23,10 @@ public class ConfigPatchRequestBody : IParsable /// The insecure_ssl property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WebhookConfigInsecureSsl? InsecureSsl { get; set; } + public global::GitHub.Models.WebhookConfigInsecureSsl? InsecureSsl { get; set; } #nullable restore #else - public WebhookConfigInsecureSsl InsecureSsl { get; set; } + public global::GitHub.Models.WebhookConfigInsecureSsl InsecureSsl { get; set; } #endif /// 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/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -45,12 +47,12 @@ public class ConfigPatchRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ConfigPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Hooks.Item.Config.ConfigPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ConfigPatchRequestBody(); + return new global::GitHub.Repos.Item.Item.Hooks.Item.Config.ConfigPatchRequestBody(); } /// /// The deserialization information for the current model @@ -60,10 +62,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content_type", n => { ContentType = n.GetStringValue(); } }, - {"insecure_ssl", n => { InsecureSsl = n.GetObjectValue(WebhookConfigInsecureSsl.CreateFromDiscriminatorValue); } }, - {"secret", n => { Secret = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "content_type", n => { ContentType = n.GetStringValue(); } }, + { "insecure_ssl", n => { InsecureSsl = n.GetObjectValue(global::GitHub.Models.WebhookConfigInsecureSsl.CreateFromDiscriminatorValue); } }, + { "secret", n => { Secret = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -74,7 +76,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("content_type", ContentType); - writer.WriteObjectValue("insecure_ssl", InsecureSsl); + writer.WriteObjectValue("insecure_ssl", InsecureSsl); writer.WriteStringValue("secret", Secret); writer.WriteStringValue("url", Url); } diff --git a/src/GitHub/Repos/Item/Item/Hooks/Item/Config/ConfigRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Hooks/Item/Config/ConfigRequestBuilder.cs index 5129f60e..183c39a2 100644 --- a/src/GitHub/Repos/Item/Item/Hooks/Item/Config/ConfigRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Hooks/Item/Config/ConfigRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Hooks.Item.Config { +namespace GitHub.Repos.Item.Item.Hooks.Item.Config +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\hooks\{hook_id}\config /// - public class ConfigRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ConfigRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public ConfigRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,41 +36,41 @@ public ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Returns the webhook configuration for a repository. To get more information about the webhook, including the `active` state and `events`, use "[Get a repository webhook](/rest/webhooks/repos#get-a-repository-webhook)."OAuth app tokens and personal access tokens (classic) need the `read:repo_hook` or `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, WebhookConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.WebhookConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Updates the webhook configuration for a repository. To update more information about the webhook, including the `active` state and `events`, use "[Update a repository webhook](/rest/webhooks/repos#update-a-repository-webhook)."OAuth app tokens and personal access tokens (classic) need the `write:repo_hook` or `repo` scope to use this endpoint. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(ConfigPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Hooks.Item.Config.ConfigPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(ConfigPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Hooks.Item.Config.ConfigPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, WebhookConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.WebhookConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Returns the webhook configuration for a repository. To get more information about the webhook, including the `active` state and `events`, use "[Get a repository webhook](/rest/webhooks/repos#get-a-repository-webhook)."OAuth app tokens and personal access tokens (classic) need the `read:repo_hook` or `repo` scope to use this endpoint. @@ -97,11 +99,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ConfigPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Hooks.Item.Config.ConfigPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ConfigPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Hooks.Item.Config.ConfigPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -114,11 +116,11 @@ public RequestInformation ToPatchRequestInformation(ConfigPatchRequestBody body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ConfigRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Hooks.Item.Config.ConfigRequestBuilder WithUrl(string rawUrl) { - return new ConfigRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Hooks.Item.Config.ConfigRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Hooks/Item/Deliveries/DeliveriesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Hooks/Item/Deliveries/DeliveriesRequestBuilder.cs index 694b2a7d..40666a42 100644 --- a/src/GitHub/Repos/Item/Item/Hooks/Item/Deliveries/DeliveriesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Hooks/Item/Deliveries/DeliveriesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Hooks.Item.Deliveries.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Hooks.Item.Deliveries { +namespace GitHub.Repos.Item.Item.Hooks.Item.Deliveries +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\hooks\{hook_id}\deliveries /// - public class DeliveriesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DeliveriesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.hooks.item.deliveries.item collection /// Unique identifier of the item - /// A - public WithDelivery_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Hooks.Item.Deliveries.Item.WithDelivery_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("delivery_id", position); - return new WithDelivery_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Hooks.Item.Deliveries.Item.WithDelivery_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public DeliveriesRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,28 +49,28 @@ public DeliveriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Returns a list of webhook deliveries for a webhook configured in a repository. /// API method documentation /// - /// A List<HookDeliveryItem> + /// A List<global::GitHub.Models.HookDeliveryItem> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, HookDeliveryItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.HookDeliveryItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Returns a list of webhook deliveries for a webhook configured in a repository. @@ -77,11 +79,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -92,16 +94,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DeliveriesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Hooks.Item.Deliveries.DeliveriesRequestBuilder WithUrl(string rawUrl) { - return new DeliveriesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Hooks.Item.Deliveries.DeliveriesRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns a list of webhook deliveries for a webhook configured in a repository. /// - public class DeliveriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class DeliveriesRequestBuilderGetQueryParameters { /// Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Repos/Item/Item/Hooks/Item/Deliveries/Item/Attempts/AttemptsPostResponse.cs b/src/GitHub/Repos/Item/Item/Hooks/Item/Deliveries/Item/Attempts/AttemptsPostResponse.cs index acec00d8..ee221498 100644 --- a/src/GitHub/Repos/Item/Item/Hooks/Item/Deliveries/Item/Attempts/AttemptsPostResponse.cs +++ b/src/GitHub/Repos/Item/Item/Hooks/Item/Deliveries/Item/Attempts/AttemptsPostResponse.cs @@ -1,18 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Hooks.Item.Deliveries.Item.Attempts { +namespace GitHub.Repos.Item.Item.Hooks.Item.Deliveries.Item.Attempts +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AttemptsPostResponse : IAdditionalDataHolder, IParsable + public partial class AttemptsPostResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AttemptsPostResponse() { @@ -21,12 +23,12 @@ public AttemptsPostResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AttemptsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Hooks.Item.Deliveries.Item.Attempts.AttemptsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AttemptsPostResponse(); + return new global::GitHub.Repos.Item.Item.Hooks.Item.Deliveries.Item.Attempts.AttemptsPostResponse(); } /// /// The deserialization information for the current model diff --git a/src/GitHub/Repos/Item/Item/Hooks/Item/Deliveries/Item/Attempts/AttemptsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Hooks/Item/Deliveries/Item/Attempts/AttemptsRequestBuilder.cs index 749894b3..e88507ed 100644 --- a/src/GitHub/Repos/Item/Item/Hooks/Item/Deliveries/Item/Attempts/AttemptsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Hooks/Item/Deliveries/Item/Attempts/AttemptsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Hooks.Item.Deliveries.Item.Attempts { +namespace GitHub.Repos.Item.Item.Hooks.Item.Deliveries.Item.Attempts +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\hooks\{hook_id}\deliveries\{delivery_id}\attempts /// - public class AttemptsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AttemptsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public AttemptsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public AttemptsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Redeliver a webhook delivery for a webhook configured in a repository. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, AttemptsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Hooks.Item.Deliveries.Item.Attempts.AttemptsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Redeliver a webhook delivery for a webhook configured in a repository. @@ -78,11 +80,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AttemptsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Hooks.Item.Deliveries.Item.Attempts.AttemptsRequestBuilder WithUrl(string rawUrl) { - return new AttemptsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Hooks.Item.Deliveries.Item.Attempts.AttemptsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Hooks/Item/Deliveries/Item/WithDelivery_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Hooks/Item/Deliveries/Item/WithDelivery_ItemRequestBuilder.cs index 55ee6423..b8a21708 100644 --- a/src/GitHub/Repos/Item/Item/Hooks/Item/Deliveries/Item/WithDelivery_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Hooks/Item/Deliveries/Item/WithDelivery_ItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Hooks.Item.Deliveries.Item.Attempts; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Hooks.Item.Deliveries.Item { +namespace GitHub.Repos.Item.Item.Hooks.Item.Deliveries.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\hooks\{hook_id}\deliveries\{delivery_id} /// - public class WithDelivery_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithDelivery_ItemRequestBuilder : BaseRequestBuilder { /// The attempts property - public AttemptsRequestBuilder Attempts + public global::GitHub.Repos.Item.Item.Hooks.Item.Deliveries.Item.Attempts.AttemptsRequestBuilder Attempts { - get => new AttemptsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Hooks.Item.Deliveries.Item.Attempts.AttemptsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithDelivery_ItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -40,27 +42,27 @@ public WithDelivery_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Returns a delivery for a webhook configured in a repository. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, HookDelivery.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.HookDelivery.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Returns a delivery for a webhook configured in a repository. @@ -84,11 +86,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithDelivery_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Hooks.Item.Deliveries.Item.WithDelivery_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithDelivery_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Hooks.Item.Deliveries.Item.WithDelivery_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Hooks/Item/Pings/PingsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Hooks/Item/Pings/PingsRequestBuilder.cs index 6b067993..a09e5dd6 100644 --- a/src/GitHub/Repos/Item/Item/Hooks/Item/Pings/PingsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Hooks/Item/Pings/PingsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Hooks.Item.Pings { +namespace GitHub.Repos.Item.Item.Hooks.Item.Pings +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\hooks\{hook_id}\pings /// - public class PingsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class PingsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public PingsRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public PingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -49,7 +51,7 @@ public async Task PostAsync(Action> var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -75,11 +77,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PingsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Hooks.Item.Pings.PingsRequestBuilder WithUrl(string rawUrl) { - return new PingsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Hooks.Item.Pings.PingsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Hooks/Item/Tests/TestsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Hooks/Item/Tests/TestsRequestBuilder.cs index 507bff90..45d2f746 100644 --- a/src/GitHub/Repos/Item/Item/Hooks/Item/Tests/TestsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Hooks/Item/Tests/TestsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Hooks.Item.Tests { +namespace GitHub.Repos.Item.Item.Hooks.Item.Tests +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\hooks\{hook_id}\tests /// - public class TestsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class TestsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public TestsRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public TestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -49,7 +51,7 @@ public async Task PostAsync(Action> var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -75,11 +77,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public TestsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Hooks.Item.Tests.TestsRequestBuilder WithUrl(string rawUrl) { - return new TestsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Hooks.Item.Tests.TestsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Hooks/Item/WithHook_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Hooks/Item/WithHook_ItemRequestBuilder.cs index a63212fa..ba27620b 100644 --- a/src/GitHub/Repos/Item/Item/Hooks/Item/WithHook_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Hooks/Item/WithHook_ItemRequestBuilder.cs @@ -4,42 +4,44 @@ using GitHub.Repos.Item.Item.Hooks.Item.Deliveries; using GitHub.Repos.Item.Item.Hooks.Item.Pings; using GitHub.Repos.Item.Item.Hooks.Item.Tests; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Hooks.Item { +namespace GitHub.Repos.Item.Item.Hooks.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\hooks\{hook_id} /// - public class WithHook_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithHook_ItemRequestBuilder : BaseRequestBuilder { /// The config property - public ConfigRequestBuilder Config + public global::GitHub.Repos.Item.Item.Hooks.Item.Config.ConfigRequestBuilder Config { - get => new ConfigRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Hooks.Item.Config.ConfigRequestBuilder(PathParameters, RequestAdapter); } /// The deliveries property - public DeliveriesRequestBuilder Deliveries + public global::GitHub.Repos.Item.Item.Hooks.Item.Deliveries.DeliveriesRequestBuilder Deliveries { - get => new DeliveriesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Hooks.Item.Deliveries.DeliveriesRequestBuilder(PathParameters, RequestAdapter); } /// The pings property - public PingsRequestBuilder Pings + public global::GitHub.Repos.Item.Item.Hooks.Item.Pings.PingsRequestBuilder Pings { - get => new PingsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Hooks.Item.Pings.PingsRequestBuilder(PathParameters, RequestAdapter); } /// The tests property - public TestsRequestBuilder Tests + public global::GitHub.Repos.Item.Item.Hooks.Item.Tests.TestsRequestBuilder Tests { - get => new TestsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Hooks.Item.Tests.TestsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -47,7 +49,7 @@ public WithHook_ItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -60,7 +62,7 @@ public WithHook_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -73,7 +75,7 @@ public async Task DeleteAsync(Action> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -81,53 +83,53 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.Hook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Hook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Updates a webhook configured in a repository. If you previously had a `secret` set, you must provide the same `secret` or set a new `secret` or the secret will be removed. If you are only updating individual webhook `config` properties, use "[Update a webhook configuration for a repository](/rest/webhooks/repo-config#update-a-webhook-configuration-for-a-repository)." /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithHook_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Hooks.Item.WithHook_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithHook_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Hooks.Item.WithHook_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.Hook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Hook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -172,11 +174,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithHook_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Hooks.Item.WithHook_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithHook_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Hooks.Item.WithHook_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -189,11 +191,11 @@ public RequestInformation ToPatchRequestInformation(WithHook_PatchRequestBody bo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithHook_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Hooks.Item.WithHook_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithHook_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Hooks.Item.WithHook_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Hooks/Item/WithHook_PatchRequestBody.cs b/src/GitHub/Repos/Item/Item/Hooks/Item/WithHook_PatchRequestBody.cs index ed0cc316..10cb124f 100644 --- a/src/GitHub/Repos/Item/Item/Hooks/Item/WithHook_PatchRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Hooks/Item/WithHook_PatchRequestBody.cs @@ -1,13 +1,15 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Hooks.Item { +namespace GitHub.Repos.Item.Item.Hooks.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithHook_PatchRequestBody : IAdditionalDataHolder, IParsable + public partial class WithHook_PatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. @@ -25,10 +27,10 @@ public class WithHook_PatchRequestBody : IAdditionalDataHolder, IParsable /// Configuration object of the webhook #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WebhookConfig? Config { get; set; } + public global::GitHub.Models.WebhookConfig? Config { get; set; } #nullable restore #else - public WebhookConfig Config { get; set; } + public global::GitHub.Models.WebhookConfig Config { get; set; } #endif /// Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -47,7 +49,7 @@ public class WithHook_PatchRequestBody : IAdditionalDataHolder, IParsable public List RemoveEvents { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithHook_PatchRequestBody() { @@ -56,12 +58,12 @@ public WithHook_PatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithHook_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Hooks.Item.WithHook_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithHook_PatchRequestBody(); + return new global::GitHub.Repos.Item.Item.Hooks.Item.WithHook_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -71,11 +73,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"active", n => { Active = n.GetBoolValue(); } }, - {"add_events", n => { AddEvents = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"config", n => { Config = n.GetObjectValue(WebhookConfig.CreateFromDiscriminatorValue); } }, - {"events", n => { Events = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"remove_events", n => { RemoveEvents = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "active", n => { Active = n.GetBoolValue(); } }, + { "add_events", n => { AddEvents = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "config", n => { Config = n.GetObjectValue(global::GitHub.Models.WebhookConfig.CreateFromDiscriminatorValue); } }, + { "events", n => { Events = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "remove_events", n => { RemoveEvents = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -87,7 +89,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("active", Active); writer.WriteCollectionOfPrimitiveValues("add_events", AddEvents); - writer.WriteObjectValue("config", Config); + writer.WriteObjectValue("config", Config); writer.WriteCollectionOfPrimitiveValues("events", Events); writer.WriteCollectionOfPrimitiveValues("remove_events", RemoveEvents); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Repos/Item/Item/Import/Authors/AuthorsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Import/Authors/AuthorsRequestBuilder.cs index 68272add..8fe22aa1 100644 --- a/src/GitHub/Repos/Item/Item/Import/Authors/AuthorsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Import/Authors/AuthorsRequestBuilder.cs @@ -1,35 +1,37 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Import.Authors.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Import.Authors { +namespace GitHub.Repos.Item.Item.Import.Authors +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\import\authors /// - public class AuthorsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AuthorsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.import.authors.item collection /// Unique identifier of the item - /// A + /// A [Obsolete("")] - public WithAuthor_ItemRequestBuilder this[int position] + public global::GitHub.Repos.Item.Item.Import.Authors.Item.WithAuthor_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("author_id", position); - return new WithAuthor_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Import.Authors.Item.WithAuthor_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -37,7 +39,7 @@ public AuthorsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -48,29 +50,29 @@ public AuthorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Each type of source control system represents authors in a different way. For example, a Git commit author has a display name and an email address, but a Subversion commit author just has a username. The GitHub Enterprise Cloud Importer will make the author information valid, but the author might not be correct. For example, it will change the bare Subversion username `hubot` into something like `hubot <hubot@12341234-abab-fefe-8787-fedcba987654>`.This endpoint and the [Map a commit author](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#map-a-commit-author) endpoint allow you to provide correct Git author information.> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// API method documentation /// - /// A List<PorterAuthor> + /// A List<global::GitHub.Models.PorterAuthor> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 503 status code + /// When receiving a 404 status code + /// When receiving a 503 status code [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"503", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, PorterAuthor.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.PorterAuthor.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Each type of source control system represents authors in a different way. For example, a Git commit author has a display name and an email address, but a Subversion commit author just has a username. The GitHub Enterprise Cloud Importer will make the author information valid, but the author might not be correct. For example, it will change the bare Subversion username `hubot` into something like `hubot <hubot@12341234-abab-fefe-8787-fedcba987654>`.This endpoint and the [Map a commit author](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#map-a-commit-author) endpoint allow you to provide correct Git author information.> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). @@ -80,11 +82,11 @@ public async Task> GetAsync(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -95,17 +97,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public AuthorsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Import.Authors.AuthorsRequestBuilder WithUrl(string rawUrl) { - return new AuthorsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Import.Authors.AuthorsRequestBuilder(rawUrl, RequestAdapter); } /// /// Each type of source control system represents authors in a different way. For example, a Git commit author has a display name and an email address, but a Subversion commit author just has a username. The GitHub Enterprise Cloud Importer will make the author information valid, but the author might not be correct. For example, it will change the bare Subversion username `hubot` into something like `hubot <hubot@12341234-abab-fefe-8787-fedcba987654>`.This endpoint and the [Map a commit author](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#map-a-commit-author) endpoint allow you to provide correct Git author information.> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// - public class AuthorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AuthorsRequestBuilderGetQueryParameters { /// A user ID. Only return users with an ID greater than this ID. [QueryParameter("since")] diff --git a/src/GitHub/Repos/Item/Item/Import/Authors/Item/WithAuthor_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Import/Authors/Item/WithAuthor_ItemRequestBuilder.cs index dba215c8..aaf970c8 100644 --- a/src/GitHub/Repos/Item/Item/Import/Authors/Item/WithAuthor_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Import/Authors/Item/WithAuthor_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Import.Authors.Item { +namespace GitHub.Repos.Item.Item.Import.Authors.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\import\authors\{author_id} /// - public class WithAuthor_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithAuthor_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithAuthor_ItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,32 +36,32 @@ public WithAuthor_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Update an author's identity for the import. Your application can continue updating authors any time before you pushnew commits to the repository.> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code - /// When receiving a 503 status code + /// When receiving a 404 status code + /// When receiving a 422 status code + /// When receiving a 503 status code [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithAuthor_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Import.Authors.Item.WithAuthor_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithAuthor_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Import.Authors.Item.WithAuthor_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, - {"503", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, PorterAuthor.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.PorterAuthor.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update an author's identity for the import. Your application can continue updating authors any time before you pushnew commits to the repository.> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). @@ -70,11 +72,11 @@ public async Task PatchAsync(WithAuthor_PatchRequestBody body, Act [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithAuthor_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Import.Authors.Item.WithAuthor_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithAuthor_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Import.Authors.Item.WithAuthor_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -87,12 +89,12 @@ public RequestInformation ToPatchRequestInformation(WithAuthor_PatchRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public WithAuthor_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Import.Authors.Item.WithAuthor_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithAuthor_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Import.Authors.Item.WithAuthor_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Import/Authors/Item/WithAuthor_PatchRequestBody.cs b/src/GitHub/Repos/Item/Item/Import/Authors/Item/WithAuthor_PatchRequestBody.cs index a469b9f2..3477e77e 100644 --- a/src/GitHub/Repos/Item/Item/Import/Authors/Item/WithAuthor_PatchRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Import/Authors/Item/WithAuthor_PatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Import.Authors.Item { +namespace GitHub.Repos.Item.Item.Import.Authors.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithAuthor_PatchRequestBody : IParsable + public partial class WithAuthor_PatchRequestBody : IParsable #pragma warning restore CS1591 { /// The new Git author email. @@ -28,12 +30,12 @@ public class WithAuthor_PatchRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithAuthor_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Import.Authors.Item.WithAuthor_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithAuthor_PatchRequestBody(); + return new global::GitHub.Repos.Item.Item.Import.Authors.Item.WithAuthor_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -43,8 +45,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"email", n => { Email = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Import/ImportPatchRequestBody.cs b/src/GitHub/Repos/Item/Item/Import/ImportPatchRequestBody.cs index c8a21e7d..64f8b2b9 100644 --- a/src/GitHub/Repos/Item/Item/Import/ImportPatchRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Import/ImportPatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Import { +namespace GitHub.Repos.Item.Item.Import +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ImportPatchRequestBody : IAdditionalDataHolder, IParsable + public partial class ImportPatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class ImportPatchRequestBody : IAdditionalDataHolder, IParsable public string TfvcProject { get; set; } #endif /// The type of version control system you are migrating from. - public ImportPatchRequestBody_vcs? Vcs { get; set; } + public global::GitHub.Repos.Item.Item.Import.ImportPatchRequestBody_vcs? Vcs { get; set; } /// The password to provide to the originating repository. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -38,7 +40,7 @@ public class ImportPatchRequestBody : IAdditionalDataHolder, IParsable public string VcsUsername { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImportPatchRequestBody() { @@ -47,12 +49,12 @@ public ImportPatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ImportPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Import.ImportPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImportPatchRequestBody(); + return new global::GitHub.Repos.Item.Item.Import.ImportPatchRequestBody(); } /// /// The deserialization information for the current model @@ -62,10 +64,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"tfvc_project", n => { TfvcProject = n.GetStringValue(); } }, - {"vcs", n => { Vcs = n.GetEnumValue(); } }, - {"vcs_password", n => { VcsPassword = n.GetStringValue(); } }, - {"vcs_username", n => { VcsUsername = n.GetStringValue(); } }, + { "tfvc_project", n => { TfvcProject = n.GetStringValue(); } }, + { "vcs", n => { Vcs = n.GetEnumValue(); } }, + { "vcs_password", n => { VcsPassword = n.GetStringValue(); } }, + { "vcs_username", n => { VcsUsername = n.GetStringValue(); } }, }; } /// @@ -76,7 +78,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("tfvc_project", TfvcProject); - writer.WriteEnumValue("vcs", Vcs); + writer.WriteEnumValue("vcs", Vcs); writer.WriteStringValue("vcs_password", VcsPassword); writer.WriteStringValue("vcs_username", VcsUsername); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Repos/Item/Item/Import/ImportPatchRequestBody_vcs.cs b/src/GitHub/Repos/Item/Item/Import/ImportPatchRequestBody_vcs.cs index 65bd9fcc..0d438459 100644 --- a/src/GitHub/Repos/Item/Item/Import/ImportPatchRequestBody_vcs.cs +++ b/src/GitHub/Repos/Item/Item/Import/ImportPatchRequestBody_vcs.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Import { +namespace GitHub.Repos.Item.Item.Import +{ /// The type of version control system you are migrating from. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ImportPatchRequestBody_vcs { [EnumMember(Value = "subversion")] diff --git a/src/GitHub/Repos/Item/Item/Import/ImportPutRequestBody.cs b/src/GitHub/Repos/Item/Item/Import/ImportPutRequestBody.cs index 086222d4..2f754d98 100644 --- a/src/GitHub/Repos/Item/Item/Import/ImportPutRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Import/ImportPutRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Import { +namespace GitHub.Repos.Item.Item.Import +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ImportPutRequestBody : IAdditionalDataHolder, IParsable + public partial class ImportPutRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class ImportPutRequestBody : IAdditionalDataHolder, IParsable public string TfvcProject { get; set; } #endif /// The originating VCS type. Without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response. - public ImportPutRequestBody_vcs? Vcs { get; set; } + public global::GitHub.Repos.Item.Item.Import.ImportPutRequestBody_vcs? Vcs { get; set; } /// If authentication is required, the password to provide to `vcs_url`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -46,7 +48,7 @@ public class ImportPutRequestBody : IAdditionalDataHolder, IParsable public string VcsUsername { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImportPutRequestBody() { @@ -55,12 +57,12 @@ public ImportPutRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ImportPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Import.ImportPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImportPutRequestBody(); + return new global::GitHub.Repos.Item.Item.Import.ImportPutRequestBody(); } /// /// The deserialization information for the current model @@ -70,11 +72,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"tfvc_project", n => { TfvcProject = n.GetStringValue(); } }, - {"vcs", n => { Vcs = n.GetEnumValue(); } }, - {"vcs_password", n => { VcsPassword = n.GetStringValue(); } }, - {"vcs_url", n => { VcsUrl = n.GetStringValue(); } }, - {"vcs_username", n => { VcsUsername = n.GetStringValue(); } }, + { "tfvc_project", n => { TfvcProject = n.GetStringValue(); } }, + { "vcs", n => { Vcs = n.GetEnumValue(); } }, + { "vcs_password", n => { VcsPassword = n.GetStringValue(); } }, + { "vcs_url", n => { VcsUrl = n.GetStringValue(); } }, + { "vcs_username", n => { VcsUsername = n.GetStringValue(); } }, }; } /// @@ -85,7 +87,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("tfvc_project", TfvcProject); - writer.WriteEnumValue("vcs", Vcs); + writer.WriteEnumValue("vcs", Vcs); writer.WriteStringValue("vcs_password", VcsPassword); writer.WriteStringValue("vcs_url", VcsUrl); writer.WriteStringValue("vcs_username", VcsUsername); diff --git a/src/GitHub/Repos/Item/Item/Import/ImportPutRequestBody_vcs.cs b/src/GitHub/Repos/Item/Item/Import/ImportPutRequestBody_vcs.cs index 4915c6d1..d8dbd694 100644 --- a/src/GitHub/Repos/Item/Item/Import/ImportPutRequestBody_vcs.cs +++ b/src/GitHub/Repos/Item/Item/Import/ImportPutRequestBody_vcs.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Import { +namespace GitHub.Repos.Item.Item.Import +{ /// The originating VCS type. Without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ImportPutRequestBody_vcs { [EnumMember(Value = "subversion")] diff --git a/src/GitHub/Repos/Item/Item/Import/ImportRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Import/ImportRequestBuilder.cs index ab6d5c67..8bd3b159 100644 --- a/src/GitHub/Repos/Item/Item/Import/ImportRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Import/ImportRequestBuilder.cs @@ -3,40 +3,42 @@ using GitHub.Repos.Item.Item.Import.Authors; using GitHub.Repos.Item.Item.Import.Large_files; using GitHub.Repos.Item.Item.Import.Lfs; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Import { +namespace GitHub.Repos.Item.Item.Import +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\import /// - public class ImportRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ImportRequestBuilder : BaseRequestBuilder { /// The authors property [Obsolete("")] - public AuthorsRequestBuilder Authors + public global::GitHub.Repos.Item.Item.Import.Authors.AuthorsRequestBuilder Authors { - get => new AuthorsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Import.Authors.AuthorsRequestBuilder(PathParameters, RequestAdapter); } /// The large_files property [Obsolete("")] - public Large_filesRequestBuilder Large_files + public global::GitHub.Repos.Item.Item.Import.Large_files.Large_filesRequestBuilder Large_files { - get => new Large_filesRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Import.Large_files.Large_filesRequestBuilder(PathParameters, RequestAdapter); } /// The lfs property [Obsolete("")] - public LfsRequestBuilder Lfs + public global::GitHub.Repos.Item.Item.Import.Lfs.LfsRequestBuilder Lfs { - get => new LfsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Import.Lfs.LfsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -44,7 +46,7 @@ public ImportRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -57,7 +59,7 @@ public ImportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 503 status code + /// When receiving a 503 status code [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -71,7 +73,7 @@ public async Task DeleteAsync(Action> { - {"503", BasicError.CreateFromDiscriminatorValue}, + { "503", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -79,86 +81,86 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 503 status code + /// When receiving a 404 status code + /// When receiving a 503 status code [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"503", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.Import.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Import.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// An import can be updated with credentials or a project choice by passing in the appropriate parameters in this APIrequest. If no parameters are provided, the import will be restarted.Some servers (e.g. TFS servers) can have several projects at a single URL. In those cases the import progress willhave the status `detection_found_multiple` and the Import Progress response will include a `project_choices` array.You can select the project to import by providing one of the objects in the `project_choices` array in the update request.> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 503 status code + /// When receiving a 503 status code [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(ImportPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Import.ImportPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(ImportPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Import.ImportPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"503", BasicError.CreateFromDiscriminatorValue}, + { "503", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.Import.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Import.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Start a source import to a GitHub Enterprise Cloud repository using GitHub Enterprise Cloud Importer.Importing into a GitHub Enterprise Cloud repository with GitHub Actions enabled is not supported and willreturn a status `422 Unprocessable Entity` response.> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code - /// When receiving a 503 status code + /// When receiving a 404 status code + /// When receiving a 422 status code + /// When receiving a 503 status code [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ImportPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Import.ImportPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(ImportPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Repos.Item.Item.Import.ImportPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, - {"503", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.Import.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Import.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Stop an import for a repository.> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). @@ -209,11 +211,11 @@ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Import.ImportPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ImportPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Import.ImportPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -232,11 +234,11 @@ public RequestInformation ToPatchRequestInformation(ImportPatchRequestBody body, [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ImportPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Import.ImportPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(ImportPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Repos.Item.Item.Import.ImportPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -249,12 +251,12 @@ public RequestInformation ToPutRequestInformation(ImportPutRequestBody body, Act /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public ImportRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Import.ImportRequestBuilder WithUrl(string rawUrl) { - return new ImportRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Import.ImportRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Import/Large_files/Large_filesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Import/Large_files/Large_filesRequestBuilder.cs index 2283d2b2..17ef006b 100644 --- a/src/GitHub/Repos/Item/Item/Import/Large_files/Large_filesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Import/Large_files/Large_filesRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Import.Large_files { +namespace GitHub.Repos.Item.Item.Import.Large_files +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\import\large_files /// - public class Large_filesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class Large_filesRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Large_filesRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,27 +36,27 @@ public Large_filesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// List files larger than 100MB found during the import> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// API method documentation /// - /// A List<PorterLargeFile> + /// A List<global::GitHub.Models.PorterLargeFile> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 503 status code + /// When receiving a 503 status code [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"503", BasicError.CreateFromDiscriminatorValue}, + { "503", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, PorterLargeFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.PorterLargeFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// List files larger than 100MB found during the import> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). @@ -79,12 +81,12 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public Large_filesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Import.Large_files.Large_filesRequestBuilder WithUrl(string rawUrl) { - return new Large_filesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Import.Large_files.Large_filesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Import/Lfs/LfsPatchRequestBody.cs b/src/GitHub/Repos/Item/Item/Import/Lfs/LfsPatchRequestBody.cs index 0f770f3b..7d8b0934 100644 --- a/src/GitHub/Repos/Item/Item/Import/Lfs/LfsPatchRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Import/Lfs/LfsPatchRequestBody.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Import.Lfs { +namespace GitHub.Repos.Item.Item.Import.Lfs +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class LfsPatchRequestBody : IAdditionalDataHolder, IParsable + public partial class LfsPatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// Whether to store large files during the import. `opt_in` means large files will be stored using Git LFS. `opt_out` means large files will be removed during the import. - public LfsPatchRequestBody_use_lfs? UseLfs { get; set; } + public global::GitHub.Repos.Item.Item.Import.Lfs.LfsPatchRequestBody_use_lfs? UseLfs { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LfsPatchRequestBody() { @@ -23,12 +25,12 @@ public LfsPatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static LfsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Import.Lfs.LfsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LfsPatchRequestBody(); + return new global::GitHub.Repos.Item.Item.Import.Lfs.LfsPatchRequestBody(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"use_lfs", n => { UseLfs = n.GetEnumValue(); } }, + { "use_lfs", n => { UseLfs = n.GetEnumValue(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("use_lfs", UseLfs); + writer.WriteEnumValue("use_lfs", UseLfs); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Import/Lfs/LfsPatchRequestBody_use_lfs.cs b/src/GitHub/Repos/Item/Item/Import/Lfs/LfsPatchRequestBody_use_lfs.cs index aece8941..4fd1308a 100644 --- a/src/GitHub/Repos/Item/Item/Import/Lfs/LfsPatchRequestBody_use_lfs.cs +++ b/src/GitHub/Repos/Item/Item/Import/Lfs/LfsPatchRequestBody_use_lfs.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Import.Lfs { +namespace GitHub.Repos.Item.Item.Import.Lfs +{ /// Whether to store large files during the import. `opt_in` means large files will be stored using Git LFS. `opt_out` means large files will be removed during the import. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum LfsPatchRequestBody_use_lfs { [EnumMember(Value = "opt_in")] diff --git a/src/GitHub/Repos/Item/Item/Import/Lfs/LfsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Import/Lfs/LfsRequestBuilder.cs index 2c105719..19ae0574 100644 --- a/src/GitHub/Repos/Item/Item/Import/Lfs/LfsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Import/Lfs/LfsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Import.Lfs { +namespace GitHub.Repos.Item.Item.Import.Lfs +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\import\lfs /// - public class LfsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class LfsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public LfsRequestBuilder(Dictionary pathParameters, IRequestAdap { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,30 +36,30 @@ public LfsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// You can import repositories from Subversion, Mercurial, and TFS that include files larger than 100MB. This abilityis powered by [Git LFS](https://git-lfs.com).You can learn more about our LFS feature and working with large files [on our helpsite](https://docs.github.com/enterprise-cloud@latest//repositories/working-with-files/managing-large-files).> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code - /// When receiving a 503 status code + /// When receiving a 422 status code + /// When receiving a 503 status code [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(LfsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Import.Lfs.LfsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(LfsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Import.Lfs.LfsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, - {"503", BasicError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.Import.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Import.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// You can import repositories from Subversion, Mercurial, and TFS that include files larger than 100MB. This abilityis powered by [Git LFS](https://git-lfs.com).You can learn more about our LFS feature and working with large files [on our helpsite](https://docs.github.com/enterprise-cloud@latest//repositories/working-with-files/managing-large-files).> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). @@ -68,11 +70,11 @@ public LfsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(LfsPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Import.Lfs.LfsPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(LfsPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Import.Lfs.LfsPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -85,12 +87,12 @@ public RequestInformation ToPatchRequestInformation(LfsPatchRequestBody body, Ac /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public LfsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Import.Lfs.LfsRequestBuilder WithUrl(string rawUrl) { - return new LfsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Import.Lfs.LfsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Installation/InstallationRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Installation/InstallationRequestBuilder.cs index 9e7371b4..495f641f 100644 --- a/src/GitHub/Repos/Item/Item/Installation/InstallationRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Installation/InstallationRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Installation { +namespace GitHub.Repos.Item.Item.Installation +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\installation /// - public class InstallationRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InstallationRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public InstallationRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,25 +36,25 @@ public InstallationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Enables an authenticated GitHub App to find the repository's installation information. The installation's account type will be either an organization or a user account, depending which account the repository belongs to.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.Installation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Installation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Enables an authenticated GitHub App to find the repository's installation information. The installation's account type will be either an organization or a user account, depending which account the repository belongs to.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. @@ -76,11 +78,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public InstallationRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Installation.InstallationRequestBuilder WithUrl(string rawUrl) { - return new InstallationRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Installation.InstallationRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/InteractionLimits/InteractionLimitsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/InteractionLimits/InteractionLimitsRequestBuilder.cs index 69709fd2..e8d0c101 100644 --- a/src/GitHub/Repos/Item/Item/InteractionLimits/InteractionLimitsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/InteractionLimits/InteractionLimitsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.InteractionLimits { +namespace GitHub.Repos.Item.Item.InteractionLimits +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\interaction-limits /// - public class InteractionLimitsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InteractionLimitsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public InteractionLimitsRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,41 +54,41 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, InteractionLimitResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.InteractionLimitResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Temporarily restricts interactions to a certain type of GitHub user within the given repository. You must have owner or admin access to set these restrictions. If an interaction limit is set for the user or organization that owns this repository, you will receive a `409 Conflict` response and will not be able to use this endpoint to change the interaction limit for a single repository. /// API method documentation /// - /// A + /// A /// Limit interactions to a specific type of user for a specified duration /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(InteractionLimit body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.InteractionLimit body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(InteractionLimit body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::GitHub.Models.InteractionLimit body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, InteractionLimitResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.InteractionLimitResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Removes all interaction restrictions from the given repository. You must have owner or admin access to remove restrictions. If the interaction limit is set for the user or organization that owns this repository, you will receive a `409 Conflict` response and will not be able to use this endpoint to change the interaction limit for a single repository. @@ -133,11 +135,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(InteractionLimit body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.InteractionLimit body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(InteractionLimit body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::GitHub.Models.InteractionLimit body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -150,11 +152,11 @@ public RequestInformation ToPutRequestInformation(InteractionLimit body, Action< /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public InteractionLimitsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.InteractionLimits.InteractionLimitsRequestBuilder WithUrl(string rawUrl) { - return new InteractionLimitsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.InteractionLimits.InteractionLimitsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Invitations/InvitationsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Invitations/InvitationsRequestBuilder.cs index d3a2feee..93ea4f67 100644 --- a/src/GitHub/Repos/Item/Item/Invitations/InvitationsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Invitations/InvitationsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Invitations.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Invitations { +namespace GitHub.Repos.Item.Item.Invitations +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\invitations /// - public class InvitationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InvitationsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.invitations.item collection /// The unique identifier of the invitation. - /// A - public WithInvitation_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Invitations.Item.WithInvitation_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("invitation_id", position); - return new WithInvitation_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Invitations.Item.WithInvitation_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public InvitationsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public InvitationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// When authenticating as a user with admin rights to a repository, this endpoint will list all currently open repository invitations. /// API method documentation /// - /// A List<RepositoryInvitation> + /// A List<global::GitHub.Models.RepositoryInvitation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RepositoryInvitation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.RepositoryInvitation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// When authenticating as a user with admin rights to a repository, this endpoint will list all currently open repository invitations. @@ -70,11 +72,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -85,16 +87,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public InvitationsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Invitations.InvitationsRequestBuilder WithUrl(string rawUrl) { - return new InvitationsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Invitations.InvitationsRequestBuilder(rawUrl, RequestAdapter); } /// /// When authenticating as a user with admin rights to a repository, this endpoint will list all currently open repository invitations. /// - public class InvitationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class InvitationsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Invitations/Item/WithInvitation_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Invitations/Item/WithInvitation_ItemRequestBuilder.cs index 4d50334b..e0b4f458 100644 --- a/src/GitHub/Repos/Item/Item/Invitations/Item/WithInvitation_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Invitations/Item/WithInvitation_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Invitations.Item { +namespace GitHub.Repos.Item.Item.Invitations.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\invitations\{invitation_id} /// - public class WithInvitation_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithInvitation_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithInvitation_ItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,22 +54,22 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithInvitation_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Invitations.Item.WithInvitation_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithInvitation_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Invitations.Item.WithInvitation_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RepositoryInvitation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.RepositoryInvitation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -89,11 +91,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithInvitation_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Invitations.Item.WithInvitation_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithInvitation_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Invitations.Item.WithInvitation_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -106,11 +108,11 @@ public RequestInformation ToPatchRequestInformation(WithInvitation_PatchRequestB /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithInvitation_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Invitations.Item.WithInvitation_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithInvitation_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Invitations.Item.WithInvitation_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Invitations/Item/WithInvitation_PatchRequestBody.cs b/src/GitHub/Repos/Item/Item/Invitations/Item/WithInvitation_PatchRequestBody.cs index 991dea53..1d640b75 100644 --- a/src/GitHub/Repos/Item/Item/Invitations/Item/WithInvitation_PatchRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Invitations/Item/WithInvitation_PatchRequestBody.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Invitations.Item { +namespace GitHub.Repos.Item.Item.Invitations.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithInvitation_PatchRequestBody : IAdditionalDataHolder, IParsable + public partial class WithInvitation_PatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`. - public WithInvitation_PatchRequestBody_permissions? Permissions { get; set; } + public global::GitHub.Repos.Item.Item.Invitations.Item.WithInvitation_PatchRequestBody_permissions? Permissions { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithInvitation_PatchRequestBody() { @@ -23,12 +25,12 @@ public WithInvitation_PatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithInvitation_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Invitations.Item.WithInvitation_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithInvitation_PatchRequestBody(); + return new global::GitHub.Repos.Item.Item.Invitations.Item.WithInvitation_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"permissions", n => { Permissions = n.GetEnumValue(); } }, + { "permissions", n => { Permissions = n.GetEnumValue(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("permissions", Permissions); + writer.WriteEnumValue("permissions", Permissions); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Invitations/Item/WithInvitation_PatchRequestBody_permissions.cs b/src/GitHub/Repos/Item/Item/Invitations/Item/WithInvitation_PatchRequestBody_permissions.cs index f10799a5..d3b6b4f9 100644 --- a/src/GitHub/Repos/Item/Item/Invitations/Item/WithInvitation_PatchRequestBody_permissions.cs +++ b/src/GitHub/Repos/Item/Item/Invitations/Item/WithInvitation_PatchRequestBody_permissions.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Invitations.Item { +namespace GitHub.Repos.Item.Item.Invitations.Item +{ /// The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum WithInvitation_PatchRequestBody_permissions { [EnumMember(Value = "read")] diff --git a/src/GitHub/Repos/Item/Item/Issues/Comments/CommentsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Issues/Comments/CommentsRequestBuilder.cs index 25a0ceb4..8d0c9630 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Comments/CommentsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Comments/CommentsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Issues.Comments.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Issues.Comments { +namespace GitHub.Repos.Item.Item.Issues.Comments +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\comments /// - public class CommentsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommentsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.issues.comments.item collection /// The unique identifier of the comment. - /// A - public WithComment_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Issues.Comments.Item.WithComment_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("comment_id", position); - return new WithComment_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Issues.Comments.Item.WithComment_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public CommentsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,28 +49,28 @@ public CommentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// You can use the REST API to list comments on issues and pull requests for a repository. Every pull request is an issue, but not every issue is a pull request.By default, issue comments are ordered by ascending ID.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. /// API method documentation /// - /// A List<IssueComment> + /// A List<global::GitHub.Models.IssueComment> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, IssueComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.IssueComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// You can use the REST API to list comments on issues and pull requests for a repository. Every pull request is an issue, but not every issue is a pull request.By default, issue comments are ordered by ascending ID.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. @@ -77,11 +79,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -92,20 +94,21 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CommentsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Issues.Comments.CommentsRequestBuilder WithUrl(string rawUrl) { - return new CommentsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Issues.Comments.CommentsRequestBuilder(rawUrl, RequestAdapter); } /// /// You can use the REST API to list comments on issues and pull requests for a repository. Every pull request is an issue, but not every issue is a pull request.By default, issue comments are ordered by ascending ID.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. /// - public class CommentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommentsRequestBuilderGetQueryParameters { /// Either `asc` or `desc`. Ignored without the `sort` parameter. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Repos.Item.Item.Issues.Comments.GetDirectionQueryParameterType? Direction { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } @@ -117,7 +120,7 @@ public class CommentsRequestBuilderGetQueryParameters public DateTimeOffset? Since { get; set; } /// The property to sort the results by. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Repos.Item.Item.Issues.Comments.GetSortQueryParameterType? Sort { get; set; } } } } diff --git a/src/GitHub/Repos/Item/Item/Issues/Comments/GetDirectionQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Issues/Comments/GetDirectionQueryParameterType.cs index 4d411afd..52cd0656 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Comments/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Comments/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Issues.Comments { +namespace GitHub.Repos.Item.Item.Issues.Comments +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Issues/Comments/GetSortQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Issues/Comments/GetSortQueryParameterType.cs index 19a0220c..6d952d61 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Comments/GetSortQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Comments/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Issues.Comments { +namespace GitHub.Repos.Item.Item.Issues.Comments +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Issues/Comments/Item/Reactions/GetContentQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Issues/Comments/Item/Reactions/GetContentQueryParameterType.cs index ac63166f..7022b649 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Comments/Item/Reactions/GetContentQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Comments/Item/Reactions/GetContentQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions { +namespace GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetContentQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Issues/Comments/Item/Reactions/Item/WithReaction_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Issues/Comments/Item/Reactions/Item/WithReaction_ItemRequestBuilder.cs index b7805270..752f08b3 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Comments/Item/Reactions/Item/WithReaction_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Comments/Item/Reactions/Item/WithReaction_ItemRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions.Item { +namespace GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\comments\{comment_id}\reactions\{reaction_id} /// - public class WithReaction_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithReaction_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public WithReaction_ItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -68,11 +70,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithReaction_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions.Item.WithReaction_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithReaction_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions.Item.WithReaction_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Issues/Comments/Item/Reactions/ReactionsPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Issues/Comments/Item/Reactions/ReactionsPostRequestBody.cs index c2a2f47b..f794568d 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Comments/Item/Reactions/ReactionsPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Comments/Item/Reactions/ReactionsPostRequestBody.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions { +namespace GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class ReactionsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ReactionsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the issue comment. - public ReactionsPostRequestBody_content? Content { get; set; } + public global::GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions.ReactionsPostRequestBody_content? Content { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReactionsPostRequestBody() { @@ -23,12 +25,12 @@ public ReactionsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ReactionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions.ReactionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReactionsPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions.ReactionsPostRequestBody(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content", n => { Content = n.GetEnumValue(); } }, + { "content", n => { Content = n.GetEnumValue(); } }, }; } /// @@ -48,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("content", Content); + writer.WriteEnumValue("content", Content); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Issues/Comments/Item/Reactions/ReactionsPostRequestBody_content.cs b/src/GitHub/Repos/Item/Item/Issues/Comments/Item/Reactions/ReactionsPostRequestBody_content.cs index 4565969b..09fe0874 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Comments/Item/Reactions/ReactionsPostRequestBody_content.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Comments/Item/Reactions/ReactionsPostRequestBody_content.cs @@ -1,8 +1,10 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions { +namespace GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions +{ /// The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the issue comment. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] public enum ReactionsPostRequestBody_content { [EnumMember(Value = "+1")] diff --git a/src/GitHub/Repos/Item/Item/Issues/Comments/Item/Reactions/ReactionsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Issues/Comments/Item/Reactions/ReactionsRequestBuilder.cs index ffb9eb31..8b9b7008 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Comments/Item/Reactions/ReactionsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Comments/Item/Reactions/ReactionsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions { +namespace GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\comments\{comment_id}\reactions /// - public class ReactionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReactionsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.issues.comments.item.reactions.item collection /// The unique identifier of the reaction. - /// A - public WithReaction_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions.Item.WithReaction_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("reaction_id", position); - return new WithReaction_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions.Item.WithReaction_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public ReactionsRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,52 +49,52 @@ public ReactionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// List the reactions to an [issue comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment). /// API method documentation /// - /// A List<Reaction> + /// A List<global::GitHub.Models.Reaction> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Reaction.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Reaction.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a reaction to an [issue comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment). A response with an HTTP `200` status means that you already added the reaction type to this issue comment. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ReactionsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions.ReactionsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(ReactionsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions.ReactionsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Reaction.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Reaction.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// List the reactions to an [issue comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment). @@ -101,11 +103,11 @@ public async Task PostAsync(ReactionsPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -121,11 +123,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ReactionsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions.ReactionsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReactionsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions.ReactionsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -138,20 +140,21 @@ public RequestInformation ToPostRequestInformation(ReactionsPostRequestBody body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ReactionsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions.ReactionsRequestBuilder WithUrl(string rawUrl) { - return new ReactionsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions.ReactionsRequestBuilder(rawUrl, RequestAdapter); } /// /// List the reactions to an [issue comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment). /// - public class ReactionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class ReactionsRequestBuilderGetQueryParameters { /// Returns a single [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to an issue comment. [QueryParameter("content")] - public GetContentQueryParameterType? Content { get; set; } + public global::GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions.GetContentQueryParameterType? Content { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } diff --git a/src/GitHub/Repos/Item/Item/Issues/Comments/Item/WithComment_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Issues/Comments/Item/WithComment_ItemRequestBuilder.cs index 7c934170..32bd5eab 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Comments/Item/WithComment_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Comments/Item/WithComment_ItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Issues.Comments.Item { +namespace GitHub.Repos.Item.Item.Issues.Comments.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\comments\{comment_id} /// - public class WithComment_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithComment_ItemRequestBuilder : BaseRequestBuilder { /// The reactions property - public ReactionsRequestBuilder Reactions + public global::GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions.ReactionsRequestBuilder Reactions { - get => new ReactionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Issues.Comments.Item.Reactions.ReactionsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithComment_ItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -58,51 +60,51 @@ public async Task DeleteAsync(Action /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, IssueComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.IssueComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// You can use the REST API to update comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithComment_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Issues.Comments.Item.WithComment_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithComment_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Issues.Comments.Item.WithComment_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, IssueComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.IssueComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// You can use the REST API to delete comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request. @@ -149,11 +151,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WithComment_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Issues.Comments.Item.WithComment_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithComment_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Issues.Comments.Item.WithComment_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -166,11 +168,11 @@ public RequestInformation ToPatchRequestInformation(WithComment_PatchRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithComment_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Issues.Comments.Item.WithComment_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithComment_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Issues.Comments.Item.WithComment_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Issues/Comments/Item/WithComment_PatchRequestBody.cs b/src/GitHub/Repos/Item/Item/Issues/Comments/Item/WithComment_PatchRequestBody.cs index abe427ee..30fe567a 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Comments/Item/WithComment_PatchRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Comments/Item/WithComment_PatchRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Issues.Comments.Item { +namespace GitHub.Repos.Item.Item.Issues.Comments.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class WithComment_PatchRequestBody : IAdditionalDataHolder, IParsable + public partial class WithComment_PatchRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class WithComment_PatchRequestBody : IAdditionalDataHolder, IParsable public string Body { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithComment_PatchRequestBody() { @@ -29,12 +31,12 @@ public WithComment_PatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithComment_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Issues.Comments.Item.WithComment_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithComment_PatchRequestBody(); + return new global::GitHub.Repos.Item.Item.Issues.Comments.Item.WithComment_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"body", n => { Body = n.GetStringValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Issues/Events/EventsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Issues/Events/EventsRequestBuilder.cs index 2473ef4d..339c2f7d 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Events/EventsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Events/EventsRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Issues.Events.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Issues.Events { +namespace GitHub.Repos.Item.Item.Issues.Events +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\events /// - public class EventsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EventsRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.issues.events.item collection /// Unique identifier of the item - /// A - public WithEvent_ItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Issues.Events.Item.WithEvent_ItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("event_id", position); - return new WithEvent_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Issues.Events.Item.WithEvent_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public EventsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,26 +49,26 @@ public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Lists events for a repository. /// API method documentation /// - /// A List<IssueEvent> + /// A List<global::GitHub.Models.IssueEvent> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, IssueEvent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.IssueEvent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists events for a repository. @@ -75,11 +77,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -90,16 +92,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public EventsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Issues.Events.EventsRequestBuilder WithUrl(string rawUrl) { - return new EventsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Issues.Events.EventsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists events for a repository. /// - public class EventsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EventsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Issues/Events/Item/WithEvent_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Issues/Events/Item/WithEvent_ItemRequestBuilder.cs index f5b41e6e..438820a3 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Events/Item/WithEvent_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Events/Item/WithEvent_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Issues.Events.Item { +namespace GitHub.Repos.Item.Item.Issues.Events.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\events\{event_id} /// - public class WithEvent_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithEvent_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithEvent_ItemRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,29 +36,29 @@ public WithEvent_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Gets a single event by the event id. /// API method documentation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 410 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 410 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"410", BasicError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "410", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, IssueEvent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.IssueEvent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Gets a single event by the event id. @@ -80,11 +82,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithEvent_ItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Issues.Events.Item.WithEvent_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithEvent_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Issues.Events.Item.WithEvent_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Issues/GetDirectionQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Issues/GetDirectionQueryParameterType.cs index a8ba75d4..f6da330c 100644 --- a/src/GitHub/Repos/Item/Item/Issues/GetDirectionQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Issues/GetDirectionQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Issues { +namespace GitHub.Repos.Item.Item.Issues +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetDirectionQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Issues/GetSortQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Issues/GetSortQueryParameterType.cs index 9780319e..41825bf0 100644 --- a/src/GitHub/Repos/Item/Item/Issues/GetSortQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Issues/GetSortQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Issues { +namespace GitHub.Repos.Item.Item.Issues +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetSortQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Issues/GetStateQueryParameterType.cs b/src/GitHub/Repos/Item/Item/Issues/GetStateQueryParameterType.cs index 44d1fab3..4824fe0e 100644 --- a/src/GitHub/Repos/Item/Item/Issues/GetStateQueryParameterType.cs +++ b/src/GitHub/Repos/Item/Item/Issues/GetStateQueryParameterType.cs @@ -1,7 +1,9 @@ // using System.Runtime.Serialization; using System; -namespace GitHub.Repos.Item.Item.Issues { +namespace GitHub.Repos.Item.Item.Issues +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 public enum GetStateQueryParameterType #pragma warning restore CS1591 diff --git a/src/GitHub/Repos/Item/Item/Issues/IssuesPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Issues/IssuesPostRequestBody.cs index 7de8a0de..1905ae82 100644 --- a/src/GitHub/Repos/Item/Item/Issues/IssuesPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Issues/IssuesPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Issues { +namespace GitHub.Repos.Item.Item.Issues +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class IssuesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class IssuesPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -46,21 +48,21 @@ public class IssuesPostRequestBody : IAdditionalDataHolder, IParsable /// The milestone property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public IssuesPostRequestBody_milestone? Milestone { get; set; } + public global::GitHub.Repos.Item.Item.Issues.IssuesPostRequestBody.IssuesPostRequestBody_milestone? Milestone { get; set; } #nullable restore #else - public IssuesPostRequestBody_milestone Milestone { get; set; } + public global::GitHub.Repos.Item.Item.Issues.IssuesPostRequestBody.IssuesPostRequestBody_milestone Milestone { get; set; } #endif /// The title of the issue. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public IssuesPostRequestBody_title? Title { get; set; } + public global::GitHub.Repos.Item.Item.Issues.IssuesPostRequestBody.IssuesPostRequestBody_title? Title { get; set; } #nullable restore #else - public IssuesPostRequestBody_title Title { get; set; } + public global::GitHub.Repos.Item.Item.Issues.IssuesPostRequestBody.IssuesPostRequestBody_title Title { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IssuesPostRequestBody() { @@ -69,12 +71,12 @@ public IssuesPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IssuesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Issues.IssuesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IssuesPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Issues.IssuesPostRequestBody(); } /// /// The deserialization information for the current model @@ -84,12 +86,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"assignee", n => { Assignee = n.GetStringValue(); } }, - {"assignees", n => { Assignees = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"body", n => { Body = n.GetStringValue(); } }, - {"labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"milestone", n => { Milestone = n.GetObjectValue(IssuesPostRequestBody_milestone.CreateFromDiscriminatorValue); } }, - {"title", n => { Title = n.GetObjectValue(IssuesPostRequestBody_title.CreateFromDiscriminatorValue); } }, + { "assignee", n => { Assignee = n.GetStringValue(); } }, + { "assignees", n => { Assignees = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "labels", n => { Labels = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "milestone", n => { Milestone = n.GetObjectValue(global::GitHub.Repos.Item.Item.Issues.IssuesPostRequestBody.IssuesPostRequestBody_milestone.CreateFromDiscriminatorValue); } }, + { "title", n => { Title = n.GetObjectValue(global::GitHub.Repos.Item.Item.Issues.IssuesPostRequestBody.IssuesPostRequestBody_title.CreateFromDiscriminatorValue); } }, }; } /// @@ -103,14 +105,15 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteCollectionOfPrimitiveValues("assignees", Assignees); writer.WriteStringValue("body", Body); writer.WriteCollectionOfPrimitiveValues("labels", Labels); - writer.WriteObjectValue("milestone", Milestone); - writer.WriteObjectValue("title", Title); + writer.WriteObjectValue("milestone", Milestone); + writer.WriteObjectValue("title", Title); writer.WriteAdditionalData(AdditionalData); } /// /// Composed type wrapper for classes , /// - public class IssuesPostRequestBody_milestone : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class IssuesPostRequestBody_milestone : IComposedTypeWrapper, IParsable { /// Composed type representation for type public int? Integer { get; set; } @@ -125,13 +128,13 @@ public class IssuesPostRequestBody_milestone : IComposedTypeWrapper, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IssuesPostRequestBody_milestone CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Issues.IssuesPostRequestBody.IssuesPostRequestBody_milestone CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new IssuesPostRequestBody_milestone(); + var result = new global::GitHub.Repos.Item.Item.Issues.IssuesPostRequestBody.IssuesPostRequestBody_milestone(); if(parseNode.GetIntValue() is int integerValue) { result.Integer = integerValue; @@ -170,7 +173,8 @@ public virtual void Serialize(ISerializationWriter writer) /// /// Composed type wrapper for classes , /// - public class IssuesPostRequestBody_title : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class IssuesPostRequestBody_title : IComposedTypeWrapper, IParsable { /// Composed type representation for type public int? Integer { get; set; } @@ -185,13 +189,13 @@ public class IssuesPostRequestBody_title : IComposedTypeWrapper, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IssuesPostRequestBody_title CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Issues.IssuesPostRequestBody.IssuesPostRequestBody_title CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new IssuesPostRequestBody_title(); + var result = new global::GitHub.Repos.Item.Item.Issues.IssuesPostRequestBody.IssuesPostRequestBody_title(); if(parseNode.GetIntValue() is int integerValue) { result.Integer = integerValue; diff --git a/src/GitHub/Repos/Item/Item/Issues/IssuesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Issues/IssuesRequestBuilder.cs index 712127f4..50250155 100644 --- a/src/GitHub/Repos/Item/Item/Issues/IssuesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Issues/IssuesRequestBuilder.cs @@ -3,44 +3,46 @@ using GitHub.Repos.Item.Item.Issues.Comments; using GitHub.Repos.Item.Item.Issues.Events; using GitHub.Repos.Item.Item.Issues.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Issues { +namespace GitHub.Repos.Item.Item.Issues +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues /// - public class IssuesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class IssuesRequestBuilder : BaseRequestBuilder { /// The comments property - public CommentsRequestBuilder Comments + public global::GitHub.Repos.Item.Item.Issues.Comments.CommentsRequestBuilder Comments { - get => new CommentsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Issues.Comments.CommentsRequestBuilder(PathParameters, RequestAdapter); } /// The events property - public EventsRequestBuilder Events + public global::GitHub.Repos.Item.Item.Issues.Events.EventsRequestBuilder Events { - get => new EventsRequestBuilder(PathParameters, RequestAdapter); + get => new global::GitHub.Repos.Item.Item.Issues.Events.EventsRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the GitHub.repos.item.item.issues.item collection /// The number that identifies the issue. - /// A - public WithIssue_numberItemRequestBuilder this[int position] + /// A + public global::GitHub.Repos.Item.Item.Issues.Item.WithIssue_numberItemRequestBuilder this[int position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("issue_number", position); - return new WithIssue_numberItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Issues.Item.WithIssue_numberItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -48,7 +50,7 @@ public IssuesRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -59,64 +61,64 @@ public IssuesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// List issues in a repository. Only open issues will be listed.> [!NOTE]> GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#list-pull-requests)" endpoint.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. /// API method documentation /// - /// A List<Issue> + /// A List<global::GitHub.Models.Issue> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Issue.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Issue.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Any user with pull access to a repository can create an issue. If [issues are disabled in the repository](https://docs.github.com/enterprise-cloud@latest//articles/disabling-issues/), the API returns a `410 Gone` status.This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)"and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)."This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 410 status code - /// When receiving a 422 status code - /// When receiving a 503 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 410 status code + /// When receiving a 422 status code + /// When receiving a 503 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(IssuesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Issues.IssuesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(IssuesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Issues.IssuesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", BasicError.CreateFromDiscriminatorValue}, - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"410", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, - {"503", Issue503Error.CreateFromDiscriminatorValue}, + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "410", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.Issue503Error.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Issue.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Issue.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// List issues in a repository. Only open issues will be listed.> [!NOTE]> GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#list-pull-requests)" endpoint.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. @@ -125,11 +127,11 @@ public async Task PostAsync(IssuesPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -145,11 +147,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(IssuesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Issues.IssuesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IssuesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Issues.IssuesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -162,16 +164,17 @@ public RequestInformation ToPostRequestInformation(IssuesPostRequestBody body, A /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public IssuesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Issues.IssuesRequestBuilder WithUrl(string rawUrl) { - return new IssuesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Issues.IssuesRequestBuilder(rawUrl, RequestAdapter); } /// /// List issues in a repository. Only open issues will be listed.> [!NOTE]> GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#list-pull-requests)" endpoint.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. /// - public class IssuesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class IssuesRequestBuilderGetQueryParameters { /// Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +198,7 @@ public class IssuesRequestBuilderGetQueryParameters #endif /// The direction to sort the results by. [QueryParameter("direction")] - public GetDirectionQueryParameterType? Direction { get; set; } + public global::GitHub.Repos.Item.Item.Issues.GetDirectionQueryParameterType? Direction { get; set; } /// A list of comma separated label names. Example: `bug,ui,@high` #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -237,10 +240,10 @@ public class IssuesRequestBuilderGetQueryParameters public DateTimeOffset? Since { get; set; } /// What to sort results by. [QueryParameter("sort")] - public GetSortQueryParameterType? Sort { get; set; } + public global::GitHub.Repos.Item.Item.Issues.GetSortQueryParameterType? Sort { get; set; } /// Indicates the state of the issues to return. [QueryParameter("state")] - public GetStateQueryParameterType? State { get; set; } + public global::GitHub.Repos.Item.Item.Issues.GetStateQueryParameterType? State { get; set; } } } } diff --git a/src/GitHub/Repos/Item/Item/Issues/Item/Assignees/AssigneesDeleteRequestBody.cs b/src/GitHub/Repos/Item/Item/Issues/Item/Assignees/AssigneesDeleteRequestBody.cs index 7fc0fb3c..d224c953 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Item/Assignees/AssigneesDeleteRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Item/Assignees/AssigneesDeleteRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Issues.Item.Assignees { +namespace GitHub.Repos.Item.Item.Issues.Item.Assignees +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AssigneesDeleteRequestBody : IAdditionalDataHolder, IParsable + public partial class AssigneesDeleteRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class AssigneesDeleteRequestBody : IAdditionalDataHolder, IParsable public List Assignees { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AssigneesDeleteRequestBody() { @@ -29,12 +31,12 @@ public AssigneesDeleteRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AssigneesDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Issues.Item.Assignees.AssigneesDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AssigneesDeleteRequestBody(); + return new global::GitHub.Repos.Item.Item.Issues.Item.Assignees.AssigneesDeleteRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"assignees", n => { Assignees = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "assignees", n => { Assignees = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Issues/Item/Assignees/AssigneesPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Issues/Item/Assignees/AssigneesPostRequestBody.cs index 652f8ce4..5ecf1f0f 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Item/Assignees/AssigneesPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Item/Assignees/AssigneesPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Issues.Item.Assignees { +namespace GitHub.Repos.Item.Item.Issues.Item.Assignees +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class AssigneesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AssigneesPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class AssigneesPostRequestBody : IAdditionalDataHolder, IParsable public List Assignees { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AssigneesPostRequestBody() { @@ -29,12 +31,12 @@ public AssigneesPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AssigneesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Issues.Item.Assignees.AssigneesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AssigneesPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Issues.Item.Assignees.AssigneesPostRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"assignees", n => { Assignees = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "assignees", n => { Assignees = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Issues/Item/Assignees/AssigneesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Issues/Item/Assignees/AssigneesRequestBuilder.cs index b5357deb..271f37eb 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Item/Assignees/AssigneesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Item/Assignees/AssigneesRequestBuilder.cs @@ -1,34 +1,36 @@ // using GitHub.Models; using GitHub.Repos.Item.Item.Issues.Item.Assignees.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Issues.Item.Assignees { +namespace GitHub.Repos.Item.Item.Issues.Item.Assignees +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\{issue_number}\assignees /// - public class AssigneesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class AssigneesRequestBuilder : BaseRequestBuilder { /// Gets an item from the GitHub.repos.item.item.issues.item.assignees.item collection /// Unique identifier of the item - /// A - public WithAssigneeItemRequestBuilder this[string position] + /// A + public global::GitHub.Repos.Item.Item.Issues.Item.Assignees.Item.WithAssigneeItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("assignee", position); - return new WithAssigneeItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Issues.Item.Assignees.Item.WithAssigneeItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public AssigneesRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,43 +49,43 @@ public AssigneesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Removes one or more assignees from an issue. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(AssigneesDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(global::GitHub.Repos.Item.Item.Issues.Item.Assignees.AssigneesDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(AssigneesDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(global::GitHub.Repos.Item.Item.Issues.Item.Assignees.AssigneesDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, Issue.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Issue.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(AssigneesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Issues.Item.Assignees.AssigneesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(AssigneesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Issues.Item.Assignees.AssigneesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, Issue.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Issue.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Removes one or more assignees from an issue. @@ -93,11 +95,11 @@ public async Task PostAsync(AssigneesPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(AssigneesDeleteRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Repos.Item.Item.Issues.Item.Assignees.AssigneesDeleteRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(AssigneesDeleteRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(global::GitHub.Repos.Item.Item.Issues.Item.Assignees.AssigneesDeleteRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,11 +117,11 @@ public RequestInformation ToDeleteRequestInformation(AssigneesDeleteRequestBody /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(AssigneesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Issues.Item.Assignees.AssigneesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AssigneesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Issues.Item.Assignees.AssigneesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -132,11 +134,11 @@ public RequestInformation ToPostRequestInformation(AssigneesPostRequestBody body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AssigneesRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Issues.Item.Assignees.AssigneesRequestBuilder WithUrl(string rawUrl) { - return new AssigneesRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Issues.Item.Assignees.AssigneesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Issues/Item/Assignees/Item/WithAssigneeItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Issues/Item/Assignees/Item/WithAssigneeItemRequestBuilder.cs index 2f62aa3a..176f2652 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Item/Assignees/Item/WithAssigneeItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Item/Assignees/Item/WithAssigneeItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Issues.Item.Assignees.Item { +namespace GitHub.Repos.Item.Item.Issues.Item.Assignees.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\{issue_number}\assignees\{assignee} /// - public class WithAssigneeItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithAssigneeItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithAssigneeItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public WithAssigneeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -49,7 +51,7 @@ public async Task GetAsync(Action> var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -75,11 +77,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithAssigneeItemRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Issues.Item.Assignees.Item.WithAssigneeItemRequestBuilder WithUrl(string rawUrl) { - return new WithAssigneeItemRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Issues.Item.Assignees.Item.WithAssigneeItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/GitHub/Repos/Item/Item/Issues/Item/Comments/CommentsPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Issues/Item/Comments/CommentsPostRequestBody.cs index cd87ef79..b79cb678 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Item/Comments/CommentsPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Item/Comments/CommentsPostRequestBody.cs @@ -1,12 +1,14 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace GitHub.Repos.Item.Item.Issues.Item.Comments { +namespace GitHub.Repos.Item.Item.Issues.Item.Comments +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] #pragma warning disable CS1591 - public class CommentsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CommentsPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -20,7 +22,7 @@ public class CommentsPostRequestBody : IAdditionalDataHolder, IParsable public string Body { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommentsPostRequestBody() { @@ -29,12 +31,12 @@ public CommentsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CommentsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::GitHub.Repos.Item.Item.Issues.Item.Comments.CommentsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommentsPostRequestBody(); + return new global::GitHub.Repos.Item.Item.Issues.Item.Comments.CommentsPostRequestBody(); } /// /// The deserialization information for the current model @@ -44,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"body", n => { Body = n.GetStringValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, }; } /// diff --git a/src/GitHub/Repos/Item/Item/Issues/Item/Comments/CommentsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Issues/Item/Comments/CommentsRequestBuilder.cs index e52d10b0..21617645 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Item/Comments/CommentsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Item/Comments/CommentsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Issues.Item.Comments { +namespace GitHub.Repos.Item.Item.Issues.Item.Comments +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\{issue_number}\comments /// - public class CommentsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommentsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public CommentsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,60 +36,60 @@ public CommentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// You can use the REST API to list comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.Issue comments are ordered by ascending ID.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. /// API method documentation /// - /// A List<IssueComment> + /// A List<global::GitHub.Models.IssueComment> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 410 status code + /// When receiving a 404 status code + /// When receiving a 410 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"410", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "410", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, IssueComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.IssueComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// You can use the REST API to create comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications).Creating content too quickly using this endpoint may result in secondary rate limiting.For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)"and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)."This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. /// API method documentation /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 410 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 410 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(CommentsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Issues.Item.Comments.CommentsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(CommentsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::GitHub.Repos.Item.Item.Issues.Item.Comments.CommentsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", BasicError.CreateFromDiscriminatorValue}, - {"404", BasicError.CreateFromDiscriminatorValue}, - {"410", BasicError.CreateFromDiscriminatorValue}, - {"422", ValidationError.CreateFromDiscriminatorValue}, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "410", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, IssueComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.IssueComment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// You can use the REST API to list comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.Issue comments are ordered by ascending ID.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. @@ -96,11 +98,11 @@ public async Task PostAsync(CommentsPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -116,11 +118,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(CommentsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Issues.Item.Comments.CommentsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CommentsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Issues.Item.Comments.CommentsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -133,16 +135,17 @@ public RequestInformation ToPostRequestInformation(CommentsPostRequestBody body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CommentsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Issues.Item.Comments.CommentsRequestBuilder WithUrl(string rawUrl) { - return new CommentsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Issues.Item.Comments.CommentsRequestBuilder(rawUrl, RequestAdapter); } /// /// You can use the REST API to list comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.Issue comments are ordered by ascending ID.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. /// - public class CommentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class CommentsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Issues/Item/Events/EventsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Issues/Item/Events/EventsRequestBuilder.cs index a96be3c6..efc4b575 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Item/Events/EventsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Item/Events/EventsRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Issues.Item.Events { +namespace GitHub.Repos.Item.Item.Issues.Item.Events +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\{issue_number}\events /// - public class EventsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EventsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public EventsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,26 +36,26 @@ public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Lists all events for an issue. /// API method documentation /// - /// A List<IssueEventForIssue> + /// A List<global::GitHub.Models.IssueEventForIssue> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 410 status code + /// When receiving a 410 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"410", BasicError.CreateFromDiscriminatorValue}, + { "410", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, IssueEventForIssue.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.IssueEventForIssue.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Lists all events for an issue. @@ -62,11 +64,11 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -77,16 +79,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public EventsRequestBuilder WithUrl(string rawUrl) + public global::GitHub.Repos.Item.Item.Issues.Item.Events.EventsRequestBuilder WithUrl(string rawUrl) { - return new EventsRequestBuilder(rawUrl, RequestAdapter); + return new global::GitHub.Repos.Item.Item.Issues.Item.Events.EventsRequestBuilder(rawUrl, RequestAdapter); } /// /// Lists all events for an issue. /// - public class EventsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class EventsRequestBuilderGetQueryParameters { /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] diff --git a/src/GitHub/Repos/Item/Item/Issues/Item/Labels/Item/WithNameItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Issues/Item/Labels/Item/WithNameItemRequestBuilder.cs index 10497189..301b636b 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Item/Labels/Item/WithNameItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Item/Labels/Item/WithNameItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace GitHub.Repos.Item.Item.Issues.Item.Labels.Item { +namespace GitHub.Repos.Item.Item.Issues.Item.Labels.Item +{ /// /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\{issue_number}\labels\{name} /// - public class WithNameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")] + public partial class WithNameItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithNameItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,28 +36,28 @@ public WithNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Removes the specified label from the issue, and returns the remaining labels on the issue. This endpoint returns a `404 Not Found` status if the label does not exist. /// API method documentation /// - /// A List<Label> + /// A List<global::GitHub.Models.Label> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 410 status code + /// When receiving a 404 status code + /// When receiving a 410 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", BasicError.CreateFromDiscriminatorValue}, - {"410", BasicError.CreateFromDiscriminatorValue}, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "410", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync